ExaminationMessageAnn.js 1.0 KB

1234567891011121314151617181920212223242526272829
  1. var mnu = "";
  2. var windowID = "";
  3. var educationRegistrationIDList = [];
  4. //加载
  5. $(function () {
  6. mnu = $.SystemGeneral.getUrlParam("MNU");
  7. windowID = $.SystemGeneral.getUrlParam("WindowID");
  8. educationRegistrationIDList = top.$("#" + windowID).data("inputData");
  9. })
  10. function ExaminationMessage_AnnounceSave() {
  11. $.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + "/ExaminationMessage/Announce", {
  12. MNU: mnu,
  13. examinationRegistrationIDs: educationRegistrationIDList.join(','),
  14. examinationTime: $("#ExaminationTime").val(),
  15. remark: $("#Remark").val()
  16. }, function (res) {
  17. $.messager.alert("系统提示", res.Message, null, function () {
  18. if (res.IsSuccess) {
  19. top.$("#" + windowID).window('close');
  20. var tab = top.$('#index_center_tabs').tabs('getSelected');
  21. var $iframe = tab.panel('body').find("iframe");
  22. if ($iframe[0].contentWindow.reload)
  23. $iframe[0].contentWindow.reload();
  24. }
  25. });
  26. });
  27. }