StudentRecord.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. var url = CMS_SystemConfig.VirtualDirectoryPath + "/StudentRecord/Edit";
  2. $(function () {
  3. mnu = $.SystemGeneral.getUrlParam("MNU");
  4. });
  5. function reload() {
  6. $("#dgStudentList").cmsXDataTable("load", $.getDataGridParams("dgStudentList"));
  7. }
  8. //修改
  9. function StudentPersonal_Edit() {
  10. var d = $("#UserID").val();
  11. var redirectTo = url + '?MNU=' + mnu;
  12. $.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + '/StudentRecord/ProofreadIsOpen', { userID: d }, function (data) {
  13. if (data == "Open") {
  14. $.popupTopWindow('个人信息修改', redirectTo, 1000, 800, null, null);
  15. } else {
  16. $.messager.alert("系统提示", data);
  17. }
  18. });
  19. }
  20. //核对
  21. function StudentPersonal_Check() {
  22. var d = $("#UserID").val();
  23. $.messager.confirm("系统提示", "是否确定信息无误?", function (r) {
  24. if (r) {
  25. $.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + '/StudentRecord/IsOK', { userID: d }, function (data) {
  26. if (data == "核对成功。") {
  27. $.messager.alert("系统提示", data);
  28. } else {
  29. $.messager.alert("系统提示", data);
  30. }
  31. });
  32. }
  33. });
  34. }