From 0d1ee3c7002249522229641f7bbc87ee111617e4 Mon Sep 17 00:00:00 2001 From: ndbs Date: Thu, 7 Mar 2024 11:05:00 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=8B=9B=E7=94=9F=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E8=BF=8E=E6=96=B0=E7=B3=BB=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/StuEnroll/AllocationClass.js | 2 +- .../Views/StuEnroll/AmountForm.cshtml | 4 +- .../Views/StuEnroll/Form.js | 2 +- .../Views/StuEnroll/FormView.js | 8 +-- .../Views/StuEnroll/GetArticles.js | 2 +- .../Views/StuEnroll/GetCloth.js | 2 +- .../Views/StuEnroll/GetClothSize.js | 2 +- .../Views/StuEnroll/Index.js | 2 +- .../Views/StuEnroll/IsHelp.js | 71 +++++++++++++++---- .../Views/StuEnroll/IsPay.cshtml | 2 +- .../Views/StuEnroll/IsPay.js | 2 +- .../Views/StuEnroll/IsPhoto.js | 2 +- .../Views/StuEnroll/Military.js | 2 +- .../Views/StuEnroll/PayAfter.js | 2 +- .../Views/StuEnroll/Report.js | 2 +- .../Views/StuEnroll/StuTuition.js | 2 +- .../StuEnroll/StuEnrollService.cs | 8 +-- 17 files changed, 82 insertions(+), 35 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/AllocationClass.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/AllocationClass.js index 471fb686d..0a04eb03e 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/AllocationClass.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/AllocationClass.js @@ -206,7 +206,7 @@ var bootstrap = function ($, learun) { formatterAsync: function (callback, value, row, op, $cell) { learun.clientdata.getAsync('dataItem', { key: value, - code: 'BCdPartyFace', + code: 'PolityStatus', callback: function (_data) { callback(_data.text); } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/AmountForm.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/AmountForm.cshtml index 914445477..a230b08bd 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/AmountForm.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/AmountForm.cshtml @@ -4,8 +4,8 @@ }
-
实收金额
- +
实收金额*
+
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuEnroll/AmountForm.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/Form.js index 7c91d6cfe..f1654dcb0 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/Form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/Form.js @@ -23,7 +23,7 @@ var bootstrap = function ($, learun) { //民族 $('#Nationals').lrDataItemSelect({ code: 'National' }); //政治面貌 - //$('#Political').lrDataSourceSelect({ code: 'BCdPartyFace', value: 'partyfaceno', text: 'partyface' }); + //$('#Political').lrDataSourceSelect({ code: 'PolityStatus', value: 'partyfaceno', text: 'partyface' }); $('#Political').lrDataItemSelect({ code: 'PolityStatus' }); $('#DeptNo').lrselect({ allowSearch: true, diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/FormView.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/FormView.js index 0f7fb355c..87d0eb690 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/FormView.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/FormView.js @@ -16,14 +16,14 @@ var bootstrap = function ($, learun) { idcardreader.objectcheck("btnread"); }, bind: function () { - $('#CheckInUrl').lrUploader(); - $('#MilitaryUrl').lrUploader(); - $('#SubsidizeUrl').lrUploader(); + $('#CheckInUrl').lrUploader({ isUpload: false }); + $('#MilitaryUrl').lrUploader({ isUpload: false }); + $('#SubsidizeUrl').lrUploader({ isUpload: false }); $('#Gender').lrDataItemSelect({ code: 'usersexbit' }); //民族 $('#Nationals').lrDataItemSelect({ code: 'National' }); //政治面貌 - $('#Political').lrDataItemSelect({ code: 'BCdPartyFace' }); + $('#Political').lrDataItemSelect({ code: 'PolityStatus' }); $('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' }); $('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' }); $('#FreshType').lrDataItemSelect({ code: 'timeType' }); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/GetArticles.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/GetArticles.js index 995b60b99..5b8bc0d9e 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/GetArticles.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/GetArticles.js @@ -217,7 +217,7 @@ var bootstrap = function ($, learun) { formatterAsync: function (callback, value, row, op, $cell) { learun.clientdata.getAsync('dataItem', { key: value, - code: 'BCdPartyFace', + code: 'PolityStatus', callback: function (_data) { callback(_data.text); } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/GetCloth.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/GetCloth.js index e948ed27c..bab431379 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/GetCloth.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/GetCloth.js @@ -217,7 +217,7 @@ var bootstrap = function ($, learun) { formatterAsync: function (callback, value, row, op, $cell) { learun.clientdata.getAsync('dataItem', { key: value, - code: 'BCdPartyFace', + code: 'PolityStatus', callback: function (_data) { callback(_data.text); } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/GetClothSize.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/GetClothSize.js index 1f6f13aa9..dd0a4d6fe 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/GetClothSize.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/GetClothSize.js @@ -213,7 +213,7 @@ var bootstrap = function ($, learun) { formatterAsync: function (callback, value, row, op, $cell) { learun.clientdata.getAsync('dataItem', { key: value, - code: 'BCdPartyFace', + code: 'PolityStatus', callback: function (_data) { callback(_data.text); } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/Index.js index e1911ff1b..1840c9ac0 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/Index.js @@ -380,7 +380,7 @@ var bootstrap = function ($, learun) { formatterAsync: function (callback, value, row, op, $cell) { learun.clientdata.getAsync('dataItem', { key: value, - code: 'BCdPartyFace', + code: 'PolityStatus', callback: function (_data) { callback(_data.text); } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/IsHelp.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/IsHelp.js index 3d9f8fb5b..80e2ab26f 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/IsHelp.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/IsHelp.js @@ -157,25 +157,72 @@ var bootstrap = function ($, learun) { { label: "享受等级", name: "SupportGrade", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { - learun.clientdata.getAsync('dataItem', { - key: value, - code: 'SupportGrade', - callback: function (_data) { - callback(_data.text); + if (value && value.indexOf(',') != -1) { + var content = ''; + var texts = value.split(','); + for (var i = 0; i < texts.length; i++) { + learun.clientdata.getAsync('dataItem', + { + key: texts[i], + code: 'SupportGrade', + callback: function (_data) { + content += _data.text + ','; + + } + }); } - }); + content = content.substring(0, content.length - 1); + callback(content); + } else { + learun.clientdata.getAsync('dataItem', + { + key: value, + code: 'SupportGrade', + callback: function (_data) { + callback(_data.text); + } + }); + } } + //formatterAsync: function (callback, value, row, op, $cell) { + // learun.clientdata.getAsync('dataItem', { + // key: value, + // code: 'SupportGrade', + // callback: function (_data) { + // callback(_data.text); + // } + // }); + //} }, { label: "资助种类(一等)", name: "SupportType", width: 200, align: "left", formatterAsync: function (callback, value, row, op, $cell) { - learun.clientdata.getsAsync('dataItem', { - key: value, - code: 'SupportType1', - callback: function (text) { - callback(text); + if (value && value.indexOf(',') != -1) { + var content = ''; + var texts = value.split(','); + for (var i = 0; i < texts.length; i++) { + learun.clientdata.getAsync('dataItem', + { + key: texts[i], + code: 'SupportGrade', + callback: function (_data) { + content += _data.text + ','; + + } + }); } - }); + content = content.substring(0, content.length - 1); + callback(content); + } else { + learun.clientdata.getAsync('dataItem', + { + key: value, + code: 'SupportGrade', + callback: function (_data) { + callback(_data.text); + } + }); + } } }, { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/IsPay.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/IsPay.cshtml index 9461e4bc1..e51aac4cf 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/IsPay.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/IsPay.cshtml @@ -147,7 +147,7 @@