123456789101112131415161718192021222324252627 |
- function SetTime_Confirm() {
- var windowID = $.SystemGeneral.getUrlParam("WindowID");
- var dateObj = {
- ExaminationDate: $("#ExaminationDate").val(),
- StartTime: $("#StartTime").val(),
- EndTime: $("#EndTime").val()
- };
- if (dateObj.ExaminationDate == "") dateObj.ExaminationDate = null;
- if (dateObj.StartTime == "") dateObj.StartTime = null;
- if (dateObj.EndTime == "") dateObj.EndTime = null;
- if (dateObj.ExaminationDate && dateObj.StartTime && dateObj.EndTime) {
- var date = dateObj.ExaminationDate;
- date = date.replace(/-/g, "/");
- var stime = date + " " + dateObj.StartTime;
- var etime = date + " " + dateObj.EndTime;
- stime = new Date(stime);
- etime = new Date(etime);
- if (stime > etime) {
- $.messager.alert("系统提示", "开始时间不能大于结束时间");
- return;
- }
- }
- top.$("#" + windowID).data("resultData", dateObj);
- top.$("#" + windowID).dialog("close");
- }
|