123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- function reload() {
- $("#dgAddChargeStandardList").cmsXDataTable("load", $.getDataGridParams("dgAddChargeStandardList"));
- }
- function validChoose() {
- var d = [];
- $.each($("#dgAddChargeStandardList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.GrademajorID);
- });
- return d;
- }
- //确定新增成功后不关闭弹出页面
- function formSuccessReloadNoClose(data) {
- if (data.IsSuccess == true) {
- ////隐藏应收金额
- //$("#amountDiv").attr("style", "display: none;float: left;color: red;font-weight: bold");
- reload();
- }
- $.messager.alert("系统提示", data.Message);
- }
- //确定
- function ChargeStandard_Ensure() {
- var chargeYearID = $("#ChargeYearDropDown").combogrid("getValue");
- if (chargeYearID == "" || chargeYearID == -1 || chargeYearID == null) {
- $.messager.alert("系统提示", "请选择缴费学年。");
- return;
- }
- var chargeProjectID = $("#ChargeProjectID").combogridX("getValue");
- if (chargeProjectID == "" || chargeProjectID == -1 || chargeProjectID == null) {
- $.messager.alert("系统提示", "请选择收费项目。");
- return;
- }
- var d = validChoose();
- if (d == "") {
- $.messager.alert("系统提示", "请选择您要新增的信息,并确认应收金额。");
- return;
- }
- ////显示应收金额
- //$("#amountDiv").attr("style", "float: left;color: red;font-weight: bold");
- var amount = $("#Amount").val();
- if (amount == "" || amount == null) {
- $.messager.alert("系统提示", "请输入应收金额。");
- return;
- }
-
- $("#gradeMajorIDs").val(JSON.stringify(d));
-
- //$.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + '/ChargeStandard/Addlist', { gradeMajorIDs: $("#gradeMajorIDs").val(), chargeYearID: $("#chargeYearID").val(), chargeProjectID: $("#chargeProjectID").val(), amount: $("#amount").val(), inschoolStatus: $("#inschoolStatus").val() }, function (data) {
- // if (data.IsSuccess == true) {
- // //hideCollege();
- // reload();
- // }
- // $.messager.alert("系统提示", data.Message);
- //});
- $(document.forms[0]).submit();
- }
- function QueryStandardDropdownList() {
- reload();
- }
- function QueryEducationDropdownList() {
- reload();
- }
- function QueryLearningformDropdownList() {
- reload();
- }
- function queryClass() {
- var jsonString = "";
- var parameterString = "";
- var collegeID = $("#CollegeDropdown").combogridX("getValue");
- var schoolYearID = $("#DictionarySchoolyear").combobox("getValue");
- var standardID = $("#DictionaryStandard").combogridX("getValue");
- var educationID = $("#DictionaryEducation").combobox("getValue");
- var learningFormID = $("#DictionaryLearningform").combobox("getValue");
- var LearnSystem = $("#DictionaryLearnSystem").combogridX("getValue");
- if (collegeID != nonSelect) parameterString += "CollegeDropdown|*|" + collegeID + "|@|";
- if (schoolYearID != nonSelect) parameterString += "DictionaryGrade|*|" + schoolYearID + "|@|";
- if (standardID != nonSelect) parameterString += "DictionaryStandard|*|" + standardID + "|@|";
- if (educationID != nonSelect) parameterString += "DictionaryEducation|*|" + educationID + "|@|";
- if (learningFormID != nonSelect) parameterString += "DictionaryLearningform|*|" + learningFormID + "|@|";
- if (LearnSystem != nonSelect) parameterString += "DictionaryLearnSystem|*|" + LearnSystem + "|@|";
- if (parameterString != "") {
- jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
- $("#DictionaryStandard").combogridX("reload", eval(jsonString));
- } else {
- $("#DictionaryStandard").combogridX("reload");
- }
- reload();
- }
|