StudentEdit.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. var mnu = "";
  2. //加载
  3. $(function () {
  4. mnu = $.SystemGeneral.getUrlParam("MNU");
  5. });
  6. function Student_Sava() {
  7. var userID = $("#UserID").val();
  8. var code = $("#LoginID").val();
  9. var ReplaceGraduateNo = $("#ReplaceGraduateNo").val();
  10. $.post('/Students/Verification', { userID: userID, code: code, ReplaceGraduateNo: ReplaceGraduateNo }, function (data) {
  11. if (data == "成功") {
  12. $(document.forms[0]).submit();
  13. } else {
  14. $.messager.alert("系统提示", data);
  15. }
  16. });
  17. }
  18. function QueryClassmajorComboGrid(data) {
  19. var schoolyearID = $(this)[0].SchoolyearID; //班级的毕业学年学期
  20. // var learnSystem = $(this)[0].LearnSystem;
  21. // var yearID = parseInt(schoolyearID) + parseInt(learnSystem);
  22. // var schoolcodeID = $(this)[0].SchoolcodeID;
  23. $.post('/Students/GetPlanningGraduateDate', { GradeMajorID: data.GrademajorID }, function (data) {
  24. if (data != "") {
  25. $("#PlanningGraduateDate").val(data);
  26. $("#PlanningGraduateDateStr").val(data);
  27. }
  28. });
  29. }
  30. //点击列表更新
  31. function edit(rowindex, rowdata) {
  32. showDialog(rowdata.EntityID);
  33. }
  34. function showDialog(id) {
  35. var redirectTo = "/DifferentDynamicResult/Edit?a=1";
  36. if (id) {
  37. redirectTo = redirectTo + '&id=' + id;
  38. }
  39. redirectTo = redirectTo + '&MNU=' + mnu;
  40. // top.$('#sysWindow').dialog({
  41. // title: '异动申请信息',
  42. // width: 800,
  43. // height: 500,
  44. // content: '<iframe id="iframe1" frameborder="0" scrolling="no" width="770" height="420" src="' + redirectTo + '"></iframe>',
  45. // modal: true
  46. // });
  47. $.popupTopWindow('异动详情', redirectTo, 800, 600, null, null);
  48. }