日期:2014-05-18 浏览次数:20383 次
$('#dialog').dialog ( { autoOpen: false, width: 700, modal: true, buttons: { "Ok": function() { //校验输入项 // if (!valDialog(this)) // return; var sType=$(".ApplyControl_ddlType").val(); var sFromDate=$(".ApplyControl_fromdatepicker").val(); var sFromHours=$(".ApplyControl_ddlTimeF").val(); var sToDate=$(".ApplyControl_todatepicker").val(); var sToHours=$(".ApplyControl_ddlTimeT").val(); var sDays=$(".ApplyControl_tbday").val(); var sHours=$(".ApplyControl_tbhours").val(); var sRemark=$(".ApplyControl_remark").val(); $.ajax ({ type: "post", contentType: "application/json;charset=utf-8", url: "ApplyControl.ascx/ApplyVacation", //data: "{StrType:'" + sType + "', StrFromDate:'" + sFromDate + "'}", data: "{StrType:'" + sType + "', StrFromDate:'" + sFromDate + "',StrFromHour:'" + sFromHours + "',StrToDate:'" + sToDate + "', StrToHour:'" + sToHours + "', StrDays:'" + sDays + "', StrHours:'" + sHours + "', StrRemark:'" + sRemark + "'}", dataType: "json", success: function (result) { alert(result.d); if(result.d==""){$this.dialog("close");alert("#");} else {alert(result.d);} }, }); }, "Cancel": function () { $(this).dialog("close");} } });
public static string ApplyVacation(string StrType, string StrFromDate, string StrToDate,string StrFromHour,string StrToHour, string StrDays,string StrHours, string StrRemark) { new ITDateClient().InsertVacation(StrType, StrFromDate, StrToDate, StrFromHour, StrToHour, StrDays,StrHours,StrRemark); return ""; }