123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- //保存
- function StudentChargePaymen_Save() {
-
- $(document.forms[0]).submit();
- }
- //获取收费标准应收金额
- function queryStudentChargeAmount(data) {
- var userID = $("#UserID").combogridX("getValue");
- if (userID == "" || userID == "-1" || userID == null) {
- $("#StandardAmount").val("");
- $("#ChargeAmount").val("");
- $("#ChargeTag").combobox("setValue", "-1");
- $("#ActualAmount").val("");
- $("#PaidAmount").val("");
- return;
- }
- var chargeYearID = $("#ChargeYear").combogrid("getValue");
- if (chargeYearID == "" || chargeYearID == "-1" || chargeYearID == null) {
- $("#StandardAmount").val("");
- $("#ChargeAmount").val("");
- $("#ChargeTag").combobox("setValue", "-1");
- $("#ActualAmount").val("");
- $("#PaidAmount").val("");
- return;
- }
- var chargeProjectID = $("#ChargeProjectID").combogridX("getValue");
- if (chargeProjectID == "" || chargeProjectID == "-1" || chargeProjectID == null) {
- $("#StandardAmount").val("");
- $("#ChargeAmount").val("");
- $("#ChargeTag").combobox("setValue", "-1");
- $("#ActualAmount").val("");
- $("#PaidAmount").val("");
- return;
- }
- $.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + '/StudentChargePaymen/StudentChargeStandard', { userID: userID, chargeYearID: chargeYearID, chargeProjectID: chargeProjectID }, function (data) {
- if (data.IsSuccess == true) {
- if (data.Data != null) {
- $("#StandardAmount").val(data.Data.Amount);
- $("#ChargeAmount").val(data.Data.ChargeAmount);
- $("#ChargeTag").combobox("setValue", data.Data.ChargeTag);
- $("#ActualAmount").val(data.Data.ActualAmount);
- $("#PaidAmount").val(data.Data.PaidAmount);
- }
- else {
- $("#StandardAmount").val("");
- $("#ChargeAmount").val("");
- $("#ChargeTag").combobox("setValue", "-1");
- $("#ActualAmount").val("");
- $("#PaidAmount").val("");
- $.messager.alert("系统提示", "对应的应收名单不存在,请核查。");
- }
- }
- else {
- $("#StandardAmount").val("");
- $("#ChargeAmount").val("");
- $("#ChargeTag").combobox("setValue", "-1");
- $("#ActualAmount").val("");
- $("#PaidAmount").val("");
- $.messager.alert("系统提示", data.Message);
- }
- });
- }
|