ChargeStandardAdd.js 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. function reload() {
  2. $("#dgAddChargeStandardList").cmsXDataTable("load", $.getDataGridParams("dgAddChargeStandardList"));
  3. }
  4. function validChoose() {
  5. var d = [];
  6. $.each($("#dgAddChargeStandardList").cmsXDataTable("getSelections"), function (index) {
  7. d.push(this.GrademajorID);
  8. });
  9. return d;
  10. }
  11. //确定新增成功后不关闭弹出页面
  12. function formSuccessReloadNoClose(data) {
  13. if (data.IsSuccess == true) {
  14. ////隐藏应收金额
  15. //$("#amountDiv").attr("style", "display: none;float: left;color: red;font-weight: bold");
  16. reload();
  17. }
  18. $.messager.alert("系统提示", data.Message);
  19. }
  20. //确定
  21. function ChargeStandard_Ensure() {
  22. var chargeYearID = $("#ChargeYearDropDown").combogrid("getValue");
  23. if (chargeYearID == "" || chargeYearID == -1 || chargeYearID == null) {
  24. $.messager.alert("系统提示", "请选择缴费学年。");
  25. return;
  26. }
  27. var chargeProjectID = $("#ChargeProjectID").combogridX("getValue");
  28. if (chargeProjectID == "" || chargeProjectID == -1 || chargeProjectID == null) {
  29. $.messager.alert("系统提示", "请选择收费项目。");
  30. return;
  31. }
  32. var d = validChoose();
  33. if (d == "") {
  34. $.messager.alert("系统提示", "请选择您要新增的信息,并确认应收金额。");
  35. return;
  36. }
  37. ////显示应收金额
  38. //$("#amountDiv").attr("style", "float: left;color: red;font-weight: bold");
  39. var amount = $("#Amount").val();
  40. if (amount == "" || amount == null) {
  41. $.messager.alert("系统提示", "请输入应收金额。");
  42. return;
  43. }
  44. $("#gradeMajorIDs").val(JSON.stringify(d));
  45. //$.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + '/ChargeStandard/Addlist', { gradeMajorIDs: $("#gradeMajorIDs").val(), chargeYearID: $("#chargeYearID").val(), chargeProjectID: $("#chargeProjectID").val(), amount: $("#amount").val(), inschoolStatus: $("#inschoolStatus").val() }, function (data) {
  46. // if (data.IsSuccess == true) {
  47. // //hideCollege();
  48. // reload();
  49. // }
  50. // $.messager.alert("系统提示", data.Message);
  51. //});
  52. $(document.forms[0]).submit();
  53. }
  54. function QueryStandardDropdownList() {
  55. reload();
  56. }
  57. function QueryEducationDropdownList() {
  58. reload();
  59. }
  60. function QueryLearningformDropdownList() {
  61. reload();
  62. }
  63. function queryClass() {
  64. var jsonString = "";
  65. var parameterString = "";
  66. var collegeID = $("#CollegeDropdown").combogridX("getValue");
  67. var schoolYearID = $("#DictionarySchoolyear").combobox("getValue");
  68. var standardID = $("#DictionaryStandard").combogridX("getValue");
  69. var educationID = $("#DictionaryEducation").combobox("getValue");
  70. var learningFormID = $("#DictionaryLearningform").combobox("getValue");
  71. var LearnSystem = $("#DictionaryLearnSystem").combogridX("getValue");
  72. if (collegeID != nonSelect) parameterString += "CollegeDropdown|*|" + collegeID + "|@|";
  73. if (schoolYearID != nonSelect) parameterString += "DictionaryGrade|*|" + schoolYearID + "|@|";
  74. if (standardID != nonSelect) parameterString += "DictionaryStandard|*|" + standardID + "|@|";
  75. if (educationID != nonSelect) parameterString += "DictionaryEducation|*|" + educationID + "|@|";
  76. if (learningFormID != nonSelect) parameterString += "DictionaryLearningform|*|" + learningFormID + "|@|";
  77. if (LearnSystem != nonSelect) parameterString += "DictionaryLearnSystem|*|" + LearnSystem + "|@|";
  78. if (parameterString != "") {
  79. jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
  80. $("#DictionaryStandard").combogridX("reload", eval(jsonString));
  81. } else {
  82. $("#DictionaryStandard").combogridX("reload");
  83. }
  84. reload();
  85. }