RetakeOpenControlEdit.js 476 B

123456789101112131415
  1. //保存
  2. function RetakeOpenControl_Save() {
  3. var startDate = $("#StartDate").val();
  4. var endDate = $("#EndDate").val();
  5. startDate = startDate.replace(/-/g, "/");
  6. endDate = endDate.replace(/-/g, "/");
  7. stime = new Date(startDate);
  8. etime = new Date(endDate);
  9. if (stime >= etime) {
  10. $.messager.alert("系统提示", "开始时间不能大于等于结束时间,请重新输入。");
  11. return;
  12. }
  13. $(document.forms[0]).submit();
  14. }