diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Controllers/FamilyEconomyController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Controllers/FamilyEconomyController.cs index e43b1363b..d31534d4b 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Controllers/FamilyEconomyController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Controllers/FamilyEconomyController.cs @@ -25,7 +25,7 @@ namespace Learun.Application.Web.Areas.StudentWork.Controllers [HttpGet] public ActionResult Index() { - return View(); + return View(); } /// /// 表单页 @@ -34,7 +34,16 @@ namespace Learun.Application.Web.Areas.StudentWork.Controllers [HttpGet] public ActionResult Form() { - return View(); + return View(); + } + /// + /// 主页面【二级学院】 + /// + /// + [HttpGet] + public ActionResult IndexOfTwo() + { + return View(); } #endregion @@ -47,7 +56,7 @@ namespace Learun.Application.Web.Areas.StudentWork.Controllers /// [HttpGet] [AjaxOnly] - public ActionResult GetList( string queryJson ) + public ActionResult GetList(string queryJson) { var data = familyEconomyIBLL.GetList(queryJson); return Success(data); @@ -110,11 +119,37 @@ namespace Learun.Application.Web.Areas.StudentWork.Controllers [HttpPost] [ValidateAntiForgeryToken] [AjaxOnly] - public ActionResult SaveForm(string keyValue,FamilyEconomyEntity entity) + public ActionResult SaveForm(string keyValue, FamilyEconomyEntity entity) { familyEconomyIBLL.SaveEntity(keyValue, entity); return Success("保存成功!"); } + + /// + /// 提交 + /// + /// 主键 + /// + [HttpPost] + [AjaxOnly] + public ActionResult DoSubmit(string keyValue, string status, string step) + { + familyEconomyIBLL.DoSubmit(keyValue, status, step); + return Success("操作成功!"); + } + + /// + /// 退回 + /// + /// 主键 + /// + [HttpPost] + [AjaxOnly] + public ActionResult DoBack(string keyValue, string status, string step) + { + familyEconomyIBLL.DoBack(keyValue, status, step); + return Success("操作成功!"); + } #endregion } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/FamilyEconomy/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/FamilyEconomy/Form.cshtml index 18b528e54..9179d7c3c 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/FamilyEconomy/Form.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/FamilyEconomy/Form.cshtml @@ -2,33 +2,54 @@ ViewBag.Title = "家庭经济信息(辅导员)"; Layout = "~/Views/Shared/_Form.cshtml"; } +
学号*
-
+
+
+
+
姓名
+ +
+
+
院校
+
+
+
+
班级
+
+
+
+
身份证件号
+
- @*自动带出内容:姓名 院校 班级 身份证件号*@
身份证件类型*
- +
申请时间*
- @*默认当天*@
是否低保*
-
+
是否孤儿*
-
+
是否单亲家庭子女*
-
- @*不能同时与“是否孤儿”同时填“是”*@ +
是否残疾人子女*
@@ -41,7 +62,6 @@
残疾类别
- @*非必填项。若“本人是否残疾”项填“是”,则该项为必填。*@
是否父母丧失劳动能力*
@@ -87,30 +107,29 @@
家庭是否遭受自然灾害*
-
+
自然灾害具体情况描述
- +
家庭是否遭受突发意外事件*
-
+
突发意外事件具体描述
- - @*若“家庭是否遭受突然意外事件”项填“是”,则该项为必填项*@ +
家庭欠债金额*
-
+
家庭欠债原因
- +
家庭人口数*
- +
劳动力人口数*
@@ -124,26 +143,25 @@
赡养人口数*
-
+
其他信息
- +
是否特困供养*
-
+
其他*
- +
家庭是否遭受疫情*
-
+
家庭遭受疫情具体情况描述
- - @*该项如果填写,则“认定时间”、“认定原因”也必须同时填写且同时通过校验*@ +
认定困难级别名称
@@ -152,24 +170,22 @@
认定时间
- @*该项如果填写,则“认定困难级别名称”、“认定原因”也必须同时填写且同时通过校验。填写困难等级认定的日期,格式如20020112,非必填项*@
-
+
认定原因
- - @*该项如果填写,则“认定困难级别名称”、“认定时间”也必须同时填写且同时通过校验。填写的认定原因,内容不能超过30个字符,例如“家庭人口众多,劳动力少”非必填项*@ +
-
+
班级认定意见
- +
-
+
年级认定意见
- +
-
+
附件
- +
@Html.AppendJsFile("/Areas/StudentWork/Views/FamilyEconomy/Form.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/FamilyEconomy/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/FamilyEconomy/Form.js index 50a2009e9..b05ae3c5e 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/FamilyEconomy/Form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/FamilyEconomy/Form.js @@ -6,19 +6,37 @@ */ var acceptClick; var keyValue = request('keyValue'); +var Step = request('Step');//第几步 var bootstrap = function ($, learun) { "use strict"; var selectedRow = learun.frameTab.currentIframe().selectedRow; var page = { init: function () { + page.hide(); + page.bind(); page.initData(); }, + hide: function () { + if (Step == "2") {//第二步:二级学院审核,时附件显示且必填; + $('#FilesDiv').show(); + $('#Files').attr('isvalid', 'yes'); + $('#Files').attr('checkexpession', 'NotNull'); + $('#Files').prev().html('附件*'); + } else { + $('#Files').removeAttr('isvalid'); + $('#Files').removeAttr('checkexpession'); + $('#Files').prev().html('附件'); + $('#FilesDiv').hide(); + } + }, bind: function () { + $('#F_SchoolId').lrDataSourceSelect({ code: 'company', value: 'f_companyid', text: 'f_fullname' }); + $('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' }); $('#StuNo').lrGirdSelect({ // 字段 url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=StuInfoBasic', param: { strWhere: " 1=1 " }, - selectWord: 'stuno', + selectWord: 'stuname', value: 'stuno', text: 'stuno', headData: [ @@ -73,10 +91,85 @@ var bootstrap = function ($, learun) { { label: "年级", name: "grade", width: 100, align: "left" } ], select: function (item) { - //$("#StuNo").val(item.stuno); + //自动带出内容:姓名 院校 班级 身份证件号 + $("#StuName").val(item.stuname); + $("#F_SchoolId").lrselectSet(item.f_schoolid); + $("#ClassNo").lrselectSet(item.classno); + $("#IdentityCardNo").val(item.identitycardno); } }); - + $('#IdCardType').lrDataItemSelect({ code: 'IdCardType' }); + //申请时间:默认当天 + $('#ApplyTime').val(getNowDate()); + $('#IsLowIncome').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsOrphan').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsSingleFamilyChildren').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsDisabledChildren').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsDisabled').lrDataItemSelect({ + code: 'YesOrNoBit', select: function(item) { + //“残疾类别”非必填项。若“本人是否残疾”项填“是”,则该项为必填。 + if (item != null && item.id == "true") { + $('#DisabledCategory').attr('isvalid', 'yes'); + $('#DisabledCategory').attr('checkexpession', 'NotNull'); + $('#DisabledCategory').prev().html('残疾类别*'); + } else { + $('#DisabledCategory').removeAttr('isvalid'); + $('#DisabledCategory').removeAttr('checkexpession'); + $('#DisabledCategory').prev().html('残疾类别'); + } + } + }); + $('#DisabledCategory').lrDataItemSelect({ code: 'DisabledCategory' }); + $('#IsParentsLoseWork').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsSeriouslyIllPatientInHome').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsOvercomePovertyFamilyStudent').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsUnstablePovertyFamilyStudent').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsEdgePovertyFamilyStudent').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsEdgeAcuteDifficultyStudent').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsLowIncomeFamily').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsMartyrChildren').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#FamilyIncomeSourceCategory').lrDataItemSelect({ code: 'FamilyIncomeSourceCategory' }); + $('#FamilyIsSufferNaturalDisaster').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#FamilyIsSufferUnexpectEvent').lrDataItemSelect({ + code: 'YesOrNoBit', select: function (item) { + //“突发意外事件具体描述”非必填项。若“家庭是否遭受突然意外事件”项填“是”,则该项为必填项。 + if (item != null && item.id == "true") { + $('#SufferUnexpectEventDescription').attr('isvalid', 'yes'); + $('#SufferUnexpectEventDescription').attr('checkexpession', 'NotNull'); + $('#SufferUnexpectEventDescription').prev().html('突发意外事件具体描述*'); + } else { + $('#SufferUnexpectEventDescription').removeAttr('isvalid'); + $('#SufferUnexpectEventDescription').removeAttr('checkexpession'); + $('#SufferUnexpectEventDescription').prev().html('突发意外事件具体描述'); + } + } + }); + $('#IsSpecialPovertySupport').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#FamilyIsSufferEpidemic').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IdentifyDifficultyLevel').lrDataItemSelect({ code: 'DifficultyLevel' }); + //“家庭遭受疫情具体情况描述”该项如果填写,则“认定时间”、“认定原因”、“认定困难级别名称”也必须同时填写且同时通过校验 + $('#SufferEpidemicDescription').on('blur', function () { + if ($(this).val().trim() != null && $(this).val().trim() != undefined && $(this).val().trim() != "") { + $('#IdentifyDifficultyLevel').attr('isvalid', 'yes'); + $('#IdentifyDifficultyLevel').attr('checkexpession', 'NotNull'); + $('#IdentifyDifficultyLevel').prev().html('认定困难级别名称*'); + $('#IdentifyTime').attr('isvalid', 'yes'); + $('#IdentifyTime').attr('checkexpession', 'NotNull'); + $('#IdentifyTime').prev().html('认定时间*'); + $('#IdentifyReason').attr('checkexpession', 'LenStr'); + $('#IdentifyReason').prev().html('认定原因*'); + } else { + $('#IdentifyDifficultyLevel').removeAttr('isvalid'); + $('#IdentifyDifficultyLevel').removeAttr('checkexpession'); + $('#IdentifyDifficultyLevel').prev().html('认定困难级别名称'); + $('#IdentifyTime').removeAttr('isvalid'); + $('#IdentifyTime').removeAttr('checkexpession'); + $('#IdentifyTime').prev().html('认定时间'); + $('#IdentifyReason').attr('checkexpession', 'LenStrOrNull'); + $('#IdentifyReason').prev().html('认定原因'); + } + }); + $('#Files').lrUploader(); }, initData: function () { @@ -87,9 +180,17 @@ var bootstrap = function ($, learun) { }; // 保存数据 acceptClick = function (callBack) { + //判断:“是否单亲家庭子女”不能同时与“是否孤儿”同时填“是” + if ($('#IsOrphan').lrselectGet().toLowerCase() == "true") { + if ($('#IsSingleFamilyChildren').lrselectGet().toLowerCase() == "true") { + learun.alert.warning("“是否单亲家庭子女”不能同时与“是否孤儿”同时填“是”"); + return false; + } + } if (!$('#form').lrValidform()) { return false; } + var postData = $('#form').lrGetFormData(); $.lrSaveForm(top.$.rootUrl + '/StudentWork/FamilyEconomy/SaveForm?keyValue=' + keyValue, postData, function (res) { // 保存成功后才回调 @@ -100,3 +201,18 @@ var bootstrap = function ($, learun) { }; page.init(); } +//获取当前时间 +function getNowDate() { + var myDate = new Date; + var year = myDate.getFullYear(); //获取当前年 + var mon = myDate.getMonth() + 1; //获取当前月 + var date = myDate.getDate(); //获取当前日 + var h = myDate.getHours();//获取当前小时数(0-23) + var m = myDate.getMinutes();//获取当前分钟数(0-59) + var s = myDate.getSeconds();//获取当前秒 + var week = myDate.getDay(); + var weeks = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"]; + //console.log(year, mon, date, weeks[week]) + var result = year + "-" + mon + "-" + date; + return result; +} \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/FamilyEconomy/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/FamilyEconomy/Index.cshtml index 7a86c3759..93b980d6b 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/FamilyEconomy/Index.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/FamilyEconomy/Index.cshtml @@ -2,30 +2,102 @@ ViewBag.Title = "家庭经济信息(辅导员)"; Layout = "~/Views/Shared/_Index.cshtml"; } +
+
+
+
- - @*todo: - 所有是否项目、申请区间*@ - -
+
学号
-
+
院系
-
+
班级
+
+
是否低保
+
+
+
+
是否孤儿
+
+
+
+
是否单亲家庭子女
+
+
+
+
是否残疾人子女
+
+
+
+
本人是否残疾
+
+
+
+
是否家中有大病患者
+
+
+
+
是否脱贫家庭学生
+
+
+
+
是否脱贫不稳定家庭学生
+
+
+
+
是否边缘易致贫家庭学生
+
+
+
+
是否边突发严重困难学生
+
+
+
+
是否低收入家庭
+
+
+
+
烈士子女
+
+
+
+
家庭是否遭受自然灾害
+
+
+
+
家庭是否遭受突发意外事件
+
+
+
+
是否特困供养
+
+
+
+
家庭是否遭受疫情
+
+
+
@@ -40,7 +112,7 @@  删除
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/FamilyEconomy/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/FamilyEconomy/Index.js index 73cac53b7..a21fd59e7 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/FamilyEconomy/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/FamilyEconomy/Index.js @@ -8,17 +8,63 @@ var selectedRow; var refreshGirdData; var bootstrap = function ($, learun) { "use strict"; + var startTime; + var endTime; var page = { init: function () { page.initGird(); page.bind(); }, bind: function () { + // 时间搜索框 + $('#datesearch').lrdate({ + dfdata: [ + { name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, + { name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, + { name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, + { name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } } + ], + // 月 + mShow: false, + premShow: false, + // 季度 + jShow: false, + prejShow: false, + // 年 + ysShow: false, + yxShow: false, + preyShow: false, + yShow: false, + // 默认 + dfvalue: '1', + selectfn: function (begin, end) { + startTime = begin; + endTime = end; + page.search(); + } + }); $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { page.search(queryJson); - }, 220, 400); + }, 450, 560); $('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' }); $('#F_SchoolId').lrDataSourceSelect({ code: 'company', value: 'f_companyid', text: 'f_fullname' }); + $('#IsLowIncome').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsOrphan').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsSingleFamilyChildren').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsDisabledChildren').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsDisabled').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsParentsLoseWork').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsSeriouslyIllPatientInHome').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsOvercomePovertyFamilyStudent').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsUnstablePovertyFamilyStudent').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsEdgePovertyFamilyStudent').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsEdgeAcuteDifficultyStudent').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsLowIncomeFamily').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsMartyrChildren').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#FamilyIsSufferNaturalDisaster').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#FamilyIsSufferUnexpectEvent').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsSpecialPovertySupport').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#FamilyIsSufferEpidemic').lrDataItemSelect({ code: 'YesOrNoBit' }); // 刷新 $('#lr_refresh').on('click', function () { location.reload(); @@ -30,8 +76,8 @@ var bootstrap = function ($, learun) { id: 'form', title: '新增', url: top.$.rootUrl + '/StudentWork/FamilyEconomy/Form', - width: 700, - height: 400, + width: 1100, + height: 800, callBack: function (id) { return top[id].acceptClick(refreshGirdData); } @@ -51,8 +97,8 @@ var bootstrap = function ($, learun) { id: 'form', title: '编辑', url: top.$.rootUrl + '/StudentWork/FamilyEconomy/Form?keyValue=' + keyValue, - width: 700, - height: 400, + width: 1100, + height: 800, callBack: function (id) { return top[id].acceptClick(refreshGirdData); } @@ -88,7 +134,7 @@ var bootstrap = function ($, learun) { } learun.layerConfirm('是否确认提交该项!', function (res) { if (res) { - learun.postForm(top.$.rootUrl + '/StudentWork/FamilyEconomy/...', { keyValue: keyValue }, function () { + learun.postForm(top.$.rootUrl + '/StudentWork/FamilyEconomy/DoSubmit', { keyValue: keyValue, status: '1', step: '1' }, function () { refreshGirdData(); }); } @@ -130,26 +176,125 @@ var bootstrap = function ($, learun) { }, { label: '身份证件类型', name: 'IdCardType', width: 100, align: "left" }, { label: '身份证件号', name: 'IdentityCardNo', width: 100, align: "left" }, - { label: '申请时间', name: 'ApplyTime', width: 100, align: "left" }, - { label: '是否低保', name: 'IsLowIncome', width: 100, align: "left" }, - { label: '是否孤儿', name: 'IsOrphan', width: 100, align: "left" }, - { label: '是否单亲家庭子女', name: 'IsSingleFamilyChildren', width: 150, align: "left" }, - { label: '是否残疾人子女', name: 'IsDisabledChildren', width: 100, align: "left" }, - { label: '本人是否残疾', name: 'IsDisabled', width: 100, align: "left" }, - { label: '残疾类别', name: 'DisabledCategory', width: 100, align: "left" }, - { label: '是否父母丧失劳动能力', name: 'IsParentsLoseWork', width: 150, align: "left" }, - { label: '是否家中有大病患者', name: 'IsSeriouslyIllPatientInHome', width: 150, align: "left" }, - { label: '是否脱贫家庭学生', name: 'IsOvercomePovertyFamilyStudent', width: 150, align: "left" }, - { label: '是否脱贫不稳定家庭学生', name: 'IsUnstablePovertyFamilyStudent', width: 150, align: "left" }, - { label: '是否边缘易致贫家庭学生', name: 'IsEdgePovertyFamilyStudent', width: 150, align: "left" }, - { label: '是否边突发严重困难学生', name: 'IsEdgeAcuteDifficultyStudent', width: 150, align: "left" }, - { label: '是否低收入家庭', name: 'IsLowIncomeFamily', width: 100, align: "left" }, - { label: '烈士子女', name: 'IsMartyrChildren', width: 100, align: "left" }, + { + label: '申请时间', name: 'ApplyTime', width: 100, align: "left", formatter: function (cellvalue) { + return cellvalue.substring(0, 11); + } + }, + { + label: '是否低保', name: 'IsLowIncome', width: 100, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "是" : "否"; + } + }, + { + label: '是否孤儿', name: 'IsOrphan', width: 100, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "是" : "否"; + } + }, + { + label: '是否单亲家庭子女', name: 'IsSingleFamilyChildren', width: 150, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "是" : "否"; + } + }, + { + label: '是否残疾人子女', name: 'IsDisabledChildren', width: 100, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "是" : "否"; + } + }, + { + label: '本人是否残疾', name: 'IsDisabled', width: 100, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "是" : "否"; + } + }, + { + label: '残疾类别', name: 'DisabledCategory', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('dataItem', { + key: value, + code: 'DisabledCategory', + callback: function (_data) { + callback(_data.text); + } + }); + } + }, + { + label: '是否父母丧失劳动能力', name: 'IsParentsLoseWork', width: 150, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "是" : "否"; + } + }, + { + label: '是否家中有大病患者', name: 'IsSeriouslyIllPatientInHome', width: 150, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "是" : "否"; + } + }, + { + label: '是否脱贫家庭学生', name: 'IsOvercomePovertyFamilyStudent', width: 150, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "是" : "否"; + } + }, + { + label: '是否脱贫不稳定家庭学生', name: 'IsUnstablePovertyFamilyStudent', width: 150, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "是" : "否"; + } + }, + { + label: '是否边缘易致贫家庭学生', name: 'IsEdgePovertyFamilyStudent', width: 150, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "是" : "否"; + } + }, + { + label: '是否边突发严重困难学生', name: 'IsEdgeAcuteDifficultyStudent', width: 150, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "是" : "否"; + } + }, + { + label: '是否低收入家庭', name: 'IsLowIncomeFamily', width: 100, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "是" : "否"; + } + }, + { + label: '烈士子女', name: 'IsMartyrChildren', width: 100, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "是" : "否"; + } + }, { label: '家庭人均年收入', name: 'FamilyAverageIncome', width: 100, align: "left" }, - { label: '家庭主要收入来源类型', name: 'FamilyIncomeSourceCategory', width: 150, align: "left" }, - { label: '家庭是否遭受自然灾害', name: 'FamilyIsSufferNaturalDisaster', width: 150, align: "left" }, + { + label: '家庭主要收入来源类型', name: 'FamilyIncomeSourceCategory', width: 150, align: "left", formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('dataItem', { + key: value, + code: 'FamilyIncomeSourceCategory', + callback: function (_data) { + callback(_data.text); + } + }); + } + }, + { + label: '家庭是否遭受自然灾害', name: 'FamilyIsSufferNaturalDisaster', width: 150, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "是" : "否"; + } + }, { label: '自然灾害具体情况描述', name: 'SufferNaturalDisasterDescription', width: 150, align: "left" }, - { label: '家庭是否遭受突发意外事件', name: 'FamilyIsSufferUnexpectEvent', width: 200, align: "left" }, + { + label: '家庭是否遭受突发意外事件', name: 'FamilyIsSufferUnexpectEvent', width: 200, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "是" : "否"; + } + }, { label: '突发意外事件具体描述', name: 'SufferUnexpectEventDescription', width: 150, align: "left" }, { label: '家庭欠债金额', name: 'FamilyOwesAmount', width: 100, align: "left" }, { label: '家庭欠债原因', name: 'FamilyOwesReason', width: 100, align: "left" }, @@ -158,12 +303,38 @@ var bootstrap = function ($, learun) { { label: '家庭成员失业人数', name: 'FamilyUnemployNumber', width: 150, align: "left" }, { label: '赡养人口数', name: 'SupportNumber', width: 100, align: "left" }, { label: '其他信息', name: 'OtherInformation', width: 100, align: "left" }, - { label: '是否特困供养', name: 'IsSpecialPovertySupport', width: 100, align: "left" }, + { + label: '是否特困供养', name: 'IsSpecialPovertySupport', width: 100, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "是" : "否"; + } + }, { label: '其他', name: 'Others', width: 100, align: "left" }, - { label: '家庭是否遭受疫情', name: 'FamilyIsSufferEpidemic', width: 150, align: "left" }, + { + label: '家庭是否遭受疫情', name: 'FamilyIsSufferEpidemic', width: 150, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "是" : "否"; + } + }, { label: '家庭遭受疫情具体情况描述', name: 'SufferEpidemicDescription', width: 200, align: "left" }, - { label: '认定困难级别名称', name: 'IdentifyDifficultyLevel', width: 100, align: "left" }, - { label: '认定时间', name: 'IdentifyTime', width: 130, align: "left" }, + { + label: '认定困难级别名称', name: 'IdentifyDifficultyLevel', width: 150, align: "left", formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('dataItem', { + key: value, + code: 'DifficultyLevel', + callback: function (_data) { + callback(_data.text); + } + }); + } + }, + { + label: '认定时间', name: 'IdentifyTime', width: 100, align: "left", formatter: function (cellvalue) { + if (cellvalue != null && cellvalue != undefined && cellvalue != "") { + return cellvalue.substring(0, 11); + } + } + }, { label: '认定原因', name: 'IdentifyReason', width: 100, align: "left" }, { label: '班级认定意见', name: 'ClassIdentifyOpinion', width: 100, align: "left" }, { label: '年级认定意见', name: 'GradeIdentifyOpinion', width: 100, align: "left" }, @@ -172,23 +343,69 @@ var bootstrap = function ($, learun) { return cellvalue == "0" ? "草稿" : cellvalue == "1" ? "学院审核中" : cellvalue == "2" ? "学工部审核中" : cellvalue == "3" ? "归档" : "草稿"; } }, - { label: '创建人', name: 'CreateUserId', width: 100, align: "left" }, + { + label: '创建人', name: 'CreateUserId', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser', + key: value, + keyId: 'f_userid', + callback: function (_data) { + callback(_data['f_realname']); + } + }); + } + }, { label: '创建时间', name: 'CreateTime', width: 130, align: "left" }, { label: '提交时间', name: 'SubmitTime', width: 130, align: "left" }, - { label: '提交人', name: 'SubmitUserId', width: 100, align: "left" }, - { label: '学院审核人', name: 'FirstCheckUserId', width: 100, align: "left" }, + { + label: '提交人', name: 'SubmitUserId', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser', + key: value, + keyId: 'f_userid', + callback: function (_data) { + callback(_data['f_realname']); + } + }); + } + }, + { + label: '学院审核人', name: 'FirstCheckUserId', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser', + key: value, + keyId: 'f_userid', + callback: function (_data) { + callback(_data['f_realname']); + } + }); + } + }, { label: '学院审核时间', name: 'FirstCheckTime', width: 130, align: "left" }, - { label: '学工部审核人', name: 'SecondCheckUserId', width: 100, align: "left" }, + { + label: '学工部审核人', name: 'SecondCheckUserId', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser', + key: value, + keyId: 'f_userid', + callback: function (_data) { + callback(_data['f_realname']); + } + }); + } + }, { label: '学工部审核时间', name: 'SecondCheckTime', width: 130, align: "left" }, ], mainId: 'Id', isPage: true, - sidx:'CreateTime desc' + sidx: 'CreateTime desc' }); page.search(); }, search: function (param) { param = param || {}; + param.StartTime = startTime; + param.EndTime = endTime; $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); } }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/FamilyEconomy/IndexOfTwo.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/FamilyEconomy/IndexOfTwo.cshtml new file mode 100644 index 000000000..c576b1f8b --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/FamilyEconomy/IndexOfTwo.cshtml @@ -0,0 +1,122 @@ +@{ + ViewBag.Title = "家庭经济信息(辅导员)"; + Layout = "~/Views/Shared/_Index.cshtml"; +} + +
+
+
+
+
+
+
+
+
+
+
+
+
学号
+ +
+
+
院系
+
+
+
+
班级
+
+
+
+
是否低保
+
+
+
+
是否孤儿
+
+
+
+
是否单亲家庭子女
+
+
+
+
是否残疾人子女
+
+
+
+
本人是否残疾
+
+
+
+
是否家中有大病患者
+
+
+
+
是否脱贫家庭学生
+
+
+
+
是否脱贫不稳定家庭学生
+
+
+
+
是否边缘易致贫家庭学生
+
+
+
+
是否边突发严重困难学生
+
+
+
+
是否低收入家庭
+
+
+
+
烈士子女
+
+
+
+
家庭是否遭受自然灾害
+
+
+
+
家庭是否遭受突发意外事件
+
+
+
+
是否特困供养
+
+
+
+
家庭是否遭受疫情
+
+
+ +
+
+
+
+ +
+
+
+
+
+@Html.AppendJsFile("/Areas/StudentWork/Views/FamilyEconomy/IndexOfTwo.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/FamilyEconomy/IndexOfTwo.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/FamilyEconomy/IndexOfTwo.js new file mode 100644 index 000000000..ff573b75b --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/StudentWork/Views/FamilyEconomy/IndexOfTwo.js @@ -0,0 +1,403 @@ +/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) + * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + * 创建人:超级管理员 + * 日 期:2023-03-16 17:18 + * 描 述:家庭经济信息(辅导员) + */ +var selectedRow; +var refreshGirdData; +var bootstrap = function ($, learun) { + "use strict"; + var startTime; + var endTime; + var page = { + init: function () { + page.initGird(); + page.bind(); + }, + bind: function () { + // 时间搜索框 + $('#datesearch').lrdate({ + dfdata: [ + { name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, + { name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, + { name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, + { name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } } + ], + // 月 + mShow: false, + premShow: false, + // 季度 + jShow: false, + prejShow: false, + // 年 + ysShow: false, + yxShow: false, + preyShow: false, + yShow: false, + // 默认 + dfvalue: '1', + selectfn: function (begin, end) { + startTime = begin; + endTime = end; + page.search(); + } + }); + $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { + page.search(queryJson); + }, 450, 560); + $('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' }); + $('#F_SchoolId').lrDataSourceSelect({ code: 'company', value: 'f_companyid', text: 'f_fullname' }); + $('#IsLowIncome').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsOrphan').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsSingleFamilyChildren').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsDisabledChildren').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsDisabled').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsParentsLoseWork').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsSeriouslyIllPatientInHome').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsOvercomePovertyFamilyStudent').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsUnstablePovertyFamilyStudent').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsEdgePovertyFamilyStudent').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsEdgeAcuteDifficultyStudent').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsLowIncomeFamily').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsMartyrChildren').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#FamilyIsSufferNaturalDisaster').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#FamilyIsSufferUnexpectEvent').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#IsSpecialPovertySupport').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#FamilyIsSufferEpidemic').lrDataItemSelect({ code: 'YesOrNoBit' }); + // 刷新 + $('#lr_refresh').on('click', function () { + location.reload(); + }); + // 审核 + $('#lr_edit').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('Id'); + selectedRow = $('#gridtable').jfGridGet('rowdata'); + if (learun.checkrow(keyValue)) { + var Status = $('#gridtable').jfGridValue('Status'); + if (Status != "1") { + learun.alert.warning("当前项不属于学院审核状态,无法审核!"); + return false; + } + learun.layerForm({ + id: 'formOfTwo', + title: '审核', + url: top.$.rootUrl + '/StudentWork/FamilyEconomy/Form?Step=2&keyValue=' + keyValue, + width: 1100, + height: 800, + callBack: function (id) { + return top[id].acceptClick(refreshGirdData); + } + }); + } + }); + // 提交学工部审核 + $('#lr_submit').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('Id'); + if (learun.checkrow(keyValue)) { + var Status = $('#gridtable').jfGridValue('Status'); + if (Status != "1") { + learun.alert.warning("当前项不属于学院审核状态,无法提交学工部审核!"); + return false; + } + learun.layerConfirm('是否确认提交该项!', function (res) { + if (res) { + learun.postForm(top.$.rootUrl + '/StudentWork/FamilyEconomy/DoSubmit', { keyValue: keyValue, status: '2', step: '2' }, function () { + refreshGirdData(); + }); + } + }); + } + }); + // 退回辅导员 + $('#lr_back').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('Id'); + if (learun.checkrow(keyValue)) { + var Status = $('#gridtable').jfGridValue('Status'); + if (Status != "1") { + learun.alert.warning("当前项不属于学院审核状态,无法退回辅导员!"); + return false; + } + learun.layerConfirm('是否确认退回该项!', function (res) { + if (res) { + learun.postForm(top.$.rootUrl + '/StudentWork/FamilyEconomy/DoBack', { keyValue: keyValue, status: '0', step: '2' }, function () { + refreshGirdData(); + }); + } + }); + } + }); + }, + initGird: function () { + $('#gridtable').jfGrid({ + url: top.$.rootUrl + '/StudentWork/FamilyEconomy/GetPageList', + headData: [ + { label: '学号', name: 'StuNo', width: 100, align: "left" }, + { label: '姓名', name: 'StuName', width: 100, align: "left" }, + { + label: '院校', name: 'F_SchoolId', width: 100, align: "left", + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'company', + key: value, + keyId: 'f_companyid', + callback: function (_data) { + callback(_data['f_fullname']); + } + }); + } + }, + { + label: '班级', name: 'ClassNo', width: 100, align: "left", + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj', + key: value, + keyId: 'classno', + callback: function (_data) { + callback(_data['classname']); + } + }); + } + }, + { label: '身份证件类型', name: 'IdCardType', width: 100, align: "left" }, + { label: '身份证件号', name: 'IdentityCardNo', width: 100, align: "left" }, + { + label: '申请时间', name: 'ApplyTime', width: 100, align: "left", formatter: function (cellvalue) { + return cellvalue.substring(0, 11); + } + }, + { + label: '是否低保', name: 'IsLowIncome', width: 100, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "是" : "否"; + } + }, + { + label: '是否孤儿', name: 'IsOrphan', width: 100, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "是" : "否"; + } + }, + { + label: '是否单亲家庭子女', name: 'IsSingleFamilyChildren', width: 150, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "是" : "否"; + } + }, + { + label: '是否残疾人子女', name: 'IsDisabledChildren', width: 100, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "是" : "否"; + } + }, + { + label: '本人是否残疾', name: 'IsDisabled', width: 100, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "是" : "否"; + } + }, + { + label: '残疾类别', name: 'DisabledCategory', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('dataItem', { + key: value, + code: 'DisabledCategory', + callback: function (_data) { + callback(_data.text); + } + }); + } + }, + { + label: '是否父母丧失劳动能力', name: 'IsParentsLoseWork', width: 150, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "是" : "否"; + } + }, + { + label: '是否家中有大病患者', name: 'IsSeriouslyIllPatientInHome', width: 150, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "是" : "否"; + } + }, + { + label: '是否脱贫家庭学生', name: 'IsOvercomePovertyFamilyStudent', width: 150, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "是" : "否"; + } + }, + { + label: '是否脱贫不稳定家庭学生', name: 'IsUnstablePovertyFamilyStudent', width: 150, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "是" : "否"; + } + }, + { + label: '是否边缘易致贫家庭学生', name: 'IsEdgePovertyFamilyStudent', width: 150, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "是" : "否"; + } + }, + { + label: '是否边突发严重困难学生', name: 'IsEdgeAcuteDifficultyStudent', width: 150, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "是" : "否"; + } + }, + { + label: '是否低收入家庭', name: 'IsLowIncomeFamily', width: 100, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "是" : "否"; + } + }, + { + label: '烈士子女', name: 'IsMartyrChildren', width: 100, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "是" : "否"; + } + }, + { label: '家庭人均年收入', name: 'FamilyAverageIncome', width: 100, align: "left" }, + { + label: '家庭主要收入来源类型', name: 'FamilyIncomeSourceCategory', width: 150, align: "left", formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('dataItem', { + key: value, + code: 'FamilyIncomeSourceCategory', + callback: function (_data) { + callback(_data.text); + } + }); + } + }, + { + label: '家庭是否遭受自然灾害', name: 'FamilyIsSufferNaturalDisaster', width: 150, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "是" : "否"; + } + }, + { label: '自然灾害具体情况描述', name: 'SufferNaturalDisasterDescription', width: 150, align: "left" }, + { + label: '家庭是否遭受突发意外事件', name: 'FamilyIsSufferUnexpectEvent', width: 200, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "是" : "否"; + } + }, + { label: '突发意外事件具体描述', name: 'SufferUnexpectEventDescription', width: 150, align: "left" }, + { label: '家庭欠债金额', name: 'FamilyOwesAmount', width: 100, align: "left" }, + { label: '家庭欠债原因', name: 'FamilyOwesReason', width: 100, align: "left" }, + { label: '家庭人口数', name: 'FamilyNumber', width: 100, align: "left" }, + { label: '劳动力人口数', name: 'LaborNumber', width: 100, align: "left" }, + { label: '家庭成员失业人数', name: 'FamilyUnemployNumber', width: 150, align: "left" }, + { label: '赡养人口数', name: 'SupportNumber', width: 100, align: "left" }, + { label: '其他信息', name: 'OtherInformation', width: 100, align: "left" }, + { + label: '是否特困供养', name: 'IsSpecialPovertySupport', width: 100, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "是" : "否"; + } + }, + { label: '其他', name: 'Others', width: 100, align: "left" }, + { + label: '家庭是否遭受疫情', name: 'FamilyIsSufferEpidemic', width: 150, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "是" : "否"; + } + }, + { label: '家庭遭受疫情具体情况描述', name: 'SufferEpidemicDescription', width: 200, align: "left" }, + { + label: '认定困难级别名称', name: 'IdentifyDifficultyLevel', width: 150, align: "left", formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('dataItem', { + key: value, + code: 'DifficultyLevel', + callback: function (_data) { + callback(_data.text); + } + }); + } + }, + { + label: '认定时间', name: 'IdentifyTime', width: 100, align: "left", formatter: function (cellvalue) { + if (cellvalue != null && cellvalue != undefined && cellvalue != "") { + return cellvalue.substring(0, 11); + } + } + }, + { label: '认定原因', name: 'IdentifyReason', width: 100, align: "left" }, + { label: '班级认定意见', name: 'ClassIdentifyOpinion', width: 100, align: "left" }, + { label: '年级认定意见', name: 'GradeIdentifyOpinion', width: 100, align: "left" }, + { + label: '审核状态', name: 'Status', width: 100, align: "left", formatter: function (cellvalue) { + return cellvalue == "0" ? "草稿" : cellvalue == "1" ? "学院审核中" : cellvalue == "2" ? "学工部审核中" : cellvalue == "3" ? "归档" : "草稿"; + } + }, + { + label: '创建人', name: 'CreateUserId', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser', + key: value, + keyId: 'f_userid', + callback: function (_data) { + callback(_data['f_realname']); + } + }); + } + }, + { label: '创建时间', name: 'CreateTime', width: 130, align: "left" }, + { label: '提交时间', name: 'SubmitTime', width: 130, align: "left" }, + { + label: '提交人', name: 'SubmitUserId', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser', + key: value, + keyId: 'f_userid', + callback: function (_data) { + callback(_data['f_realname']); + } + }); + } + }, + { + label: '学院审核人', name: 'FirstCheckUserId', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser', + key: value, + keyId: 'f_userid', + callback: function (_data) { + callback(_data['f_realname']); + } + }); + } + }, + { label: '学院审核时间', name: 'FirstCheckTime', width: 130, align: "left" }, + { + label: '学工部审核人', name: 'SecondCheckUserId', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser', + key: value, + keyId: 'f_userid', + callback: function (_data) { + callback(_data['f_realname']); + } + }); + } + }, + { label: '学工部审核时间', name: 'SecondCheckTime', width: 130, align: "left" }, + ], + mainId: 'Id', + isPage: true, + sidx: 'SubmitTime desc' + }); + page.search(); + }, + search: function (param) { + param = param || {}; + param.StartTime = startTime; + param.EndTime = endTime; + param.Step = "2";//第二步:二级学院审核 + $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); + } + }; + refreshGirdData = function () { + $('#gridtable').jfGridSet('reload'); + }; + page.init(); +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj index 5fa8a0902..ed1a27681 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj @@ -1692,6 +1692,7 @@ + @@ -8110,6 +8111,7 @@ + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/StudentWork/FamilyEconomy/FamilyEconomyBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/StudentWork/FamilyEconomy/FamilyEconomyBLL.cs index 4b8bb1cae..a340baf25 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/StudentWork/FamilyEconomy/FamilyEconomyBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/StudentWork/FamilyEconomy/FamilyEconomyBLL.cs @@ -23,7 +23,7 @@ namespace Learun.Application.TwoDevelopment.StudentWork ///
/// 查询参数 /// - public IEnumerable GetList( string queryJson ) + public IEnumerable GetList(string queryJson) { try { @@ -142,6 +142,52 @@ namespace Learun.Application.TwoDevelopment.StudentWork } } + /// + /// 提交 + /// + /// 主键 + public void DoSubmit(string keyValue, string status, string step) + { + try + { + familyEconomyService.DoSubmit(keyValue, status, step); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + + /// + /// 退回 + /// + /// 主键 + public void DoBack(string keyValue, string status, string step) + { + try + { + familyEconomyService.DoBack(keyValue, status, step); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + #endregion } diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/StudentWork/FamilyEconomy/FamilyEconomyEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/StudentWork/FamilyEconomy/FamilyEconomyEntity.cs index 7f17405cc..b5d2fc449 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/StudentWork/FamilyEconomy/FamilyEconomyEntity.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/StudentWork/FamilyEconomy/FamilyEconomyEntity.cs @@ -273,6 +273,12 @@ namespace Learun.Application.TwoDevelopment.StudentWork [Column("CREATEUSERID")] public string CreateUserId { get; set; } /// + /// 创建人 + /// + /// + [Column("CREATEUSERNO")] + public string CreateUserNo { get; set; } + /// /// 创建时间 /// /// @@ -285,6 +291,12 @@ namespace Learun.Application.TwoDevelopment.StudentWork [Column("MODIFYUSERID")] public string ModifyUserId { get; set; } /// + /// 编辑人 + /// + /// + [Column("MODIFYUSERNO")] + public string ModifyUserNo { get; set; } + /// /// 编辑时间 /// /// @@ -337,6 +349,7 @@ namespace Learun.Application.TwoDevelopment.StudentWork this.Id = Guid.NewGuid().ToString(); this.CreateTime = DateTime.Now; this.CreateUserId = LoginUserInfo.Get().userId; + this.CreateUserNo = LoginUserInfo.Get().account; this.Status = "0";//草稿 } /// @@ -348,6 +361,7 @@ namespace Learun.Application.TwoDevelopment.StudentWork this.Id = keyValue; this.ModifyTime = DateTime.Now; this.ModifyUserId = LoginUserInfo.Get().userId; + this.ModifyUserNo = LoginUserInfo.Get().account; } #endregion diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/StudentWork/FamilyEconomy/FamilyEconomyIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/StudentWork/FamilyEconomy/FamilyEconomyIBLL.cs index 4e6ccc494..bd434dcfb 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/StudentWork/FamilyEconomy/FamilyEconomyIBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/StudentWork/FamilyEconomy/FamilyEconomyIBLL.cs @@ -49,6 +49,18 @@ namespace Learun.Application.TwoDevelopment.StudentWork /// 主键 /// 实体 void SaveEntity(string keyValue, FamilyEconomyEntity entity); + + /// + /// 提交 + /// + /// 主键 + void DoSubmit(string keyValue, string status, string step); + + /// + /// 退回 + /// + /// 主键 + void DoBack(string keyValue, string status, string step); #endregion } diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/StudentWork/FamilyEconomy/FamilyEconomyService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/StudentWork/FamilyEconomy/FamilyEconomyService.cs index 3cc30eabb..228bf8df4 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/StudentWork/FamilyEconomy/FamilyEconomyService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/StudentWork/FamilyEconomy/FamilyEconomyService.cs @@ -141,6 +141,8 @@ namespace Learun.Application.TwoDevelopment.StudentWork strSql.Append("SELECT t.*,s.StuName,s.F_SchoolId,s.ClassNo,s.IdentityCardNo "); strSql.Append(" FROM FamilyEconomy t "); strSql.Append(" left join StuInfoBasic s on t.StuNo=s.StuNo "); + strSql.Append(" left join ClassInfo c on t.CreateUserNo=c.ClassTutorNo and s.ClassNo=c.ClassNo "); + strSql.Append(" left join CdDept d on c.DeptNo=d.DeptNo "); strSql.Append(" where 1=1 "); if (!queryParam["StuNo"].IsEmpty()) { @@ -157,7 +159,97 @@ namespace Learun.Application.TwoDevelopment.StudentWork dp.Add("ClassNo", queryParam["ClassNo"].ToString(), DbType.String); strSql.Append(" AND t.ClassNo = @ClassNo "); } - //todo: + if (!queryParam["IsLowIncome"].IsEmpty()) + { + dp.Add("IsLowIncome", queryParam["IsLowIncome"].ToBool(), DbType.Boolean); + strSql.Append(" AND t.IsLowIncome = @IsLowIncome "); + } + if (!queryParam["IsOrphan"].IsEmpty()) + { + dp.Add("IsOrphan", queryParam["IsOrphan"].ToBool(), DbType.Boolean); + strSql.Append(" AND t.IsOrphan = @IsOrphan "); + } + if (!queryParam["IsSingleFamilyChildren"].IsEmpty()) + { + dp.Add("IsSingleFamilyChildren", queryParam["IsSingleFamilyChildren"].ToBool(), DbType.Boolean); + strSql.Append(" AND t.IsSingleFamilyChildren = @IsSingleFamilyChildren "); + } + if (!queryParam["IsDisabledChildren"].IsEmpty()) + { + dp.Add("IsDisabledChildren", queryParam["IsDisabledChildren"].ToBool(), DbType.Boolean); + strSql.Append(" AND t.IsDisabledChildren = @IsDisabledChildren "); + } + if (!queryParam["IsDisabled"].IsEmpty()) + { + dp.Add("IsDisabled", queryParam["IsDisabled"].ToBool(), DbType.Boolean); + strSql.Append(" AND t.IsDisabled = @IsDisabled "); + } + if (!queryParam["IsSeriouslyIllPatientInHome"].IsEmpty()) + { + dp.Add("IsSeriouslyIllPatientInHome", queryParam["IsSeriouslyIllPatientInHome"].ToBool(), DbType.Boolean); + strSql.Append(" AND t.IsSeriouslyIllPatientInHome = @IsSeriouslyIllPatientInHome "); + } + if (!queryParam["IsOvercomePovertyFamilyStudent"].IsEmpty()) + { + dp.Add("IsOvercomePovertyFamilyStudent", queryParam["IsOvercomePovertyFamilyStudent"].ToBool(), DbType.Boolean); + strSql.Append(" AND t.IsOvercomePovertyFamilyStudent = @IsOvercomePovertyFamilyStudent "); + } + if (!queryParam["IsUnstablePovertyFamilyStudent"].IsEmpty()) + { + dp.Add("IsUnstablePovertyFamilyStudent", queryParam["IsUnstablePovertyFamilyStudent"].ToBool(), DbType.Boolean); + strSql.Append(" AND t.IsUnstablePovertyFamilyStudent = @IsUnstablePovertyFamilyStudent "); + } + if (!queryParam["IsEdgePovertyFamilyStudent"].IsEmpty()) + { + dp.Add("IsEdgePovertyFamilyStudent", queryParam["IsEdgePovertyFamilyStudent"].ToBool(), DbType.Boolean); + strSql.Append(" AND t.IsEdgePovertyFamilyStudent = @IsEdgePovertyFamilyStudent "); + } + if (!queryParam["IsEdgeAcuteDifficultyStudent"].IsEmpty()) + { + dp.Add("IsEdgeAcuteDifficultyStudent", queryParam["IsEdgeAcuteDifficultyStudent"].ToBool(), DbType.Boolean); + strSql.Append(" AND t.IsEdgeAcuteDifficultyStudent = @IsEdgeAcuteDifficultyStudent "); + } + if (!queryParam["IsLowIncomeFamily"].IsEmpty()) + { + dp.Add("IsLowIncomeFamily", queryParam["IsLowIncomeFamily"].ToBool(), DbType.Boolean); + strSql.Append(" AND t.IsLowIncomeFamily = @IsLowIncomeFamily "); + } + if (!queryParam["IsMartyrChildren"].IsEmpty()) + { + dp.Add("IsMartyrChildren", queryParam["IsMartyrChildren"].ToBool(), DbType.Boolean); + strSql.Append(" AND t.IsMartyrChildren = @IsMartyrChildren "); + } + if (!queryParam["FamilyIsSufferNaturalDisaster"].IsEmpty()) + { + dp.Add("FamilyIsSufferNaturalDisaster", queryParam["FamilyIsSufferNaturalDisaster"].ToBool(), DbType.Boolean); + strSql.Append(" AND t.FamilyIsSufferNaturalDisaster = @FamilyIsSufferNaturalDisaster "); + } + if (!queryParam["FamilyIsSufferUnexpectEvent"].IsEmpty()) + { + dp.Add("FamilyIsSufferUnexpectEvent", queryParam["FamilyIsSufferUnexpectEvent"].ToBool(), DbType.Boolean); + strSql.Append(" AND t.FamilyIsSufferUnexpectEvent = @FamilyIsSufferUnexpectEvent "); + } + if (!queryParam["IsSpecialPovertySupport"].IsEmpty()) + { + dp.Add("IsSpecialPovertySupport", queryParam["IsSpecialPovertySupport"].ToBool(), DbType.Boolean); + strSql.Append(" AND t.IsSpecialPovertySupport = @IsSpecialPovertySupport "); + } + if (!queryParam["FamilyIsSufferEpidemic"].IsEmpty()) + { + dp.Add("FamilyIsSufferEpidemic", queryParam["FamilyIsSufferEpidemic"].ToBool(), DbType.Boolean); + strSql.Append(" AND t.FamilyIsSufferEpidemic = @FamilyIsSufferEpidemic "); + } + if (!queryParam["StartTime"].IsEmpty() && !queryParam["EndTime"].IsEmpty()) + { + strSql.Append($" AND t.ApplyTime>='{queryParam["StartTime"].ToString()}' and t.ApplyTime<='{queryParam["EndTime"].ToString()}' "); + } + if (!queryParam["Step"].IsEmpty() && queryParam["Step"].ToString() == "2")//第二步:二级学院审核 + { + //不查看状态为草稿的记录 + strSql.Append(" AND t.Status > 0 "); + //二级学院审核专员==系部负责人==登录用户 + strSql.Append($" and d.DeptDirector='{LoginUserInfo.Get().account}' "); + } return this.BaseRepository("CollegeMIS").FindList(strSql.ToString(), dp, pagination); } @@ -258,6 +350,72 @@ namespace Learun.Application.TwoDevelopment.StudentWork } } + /// + /// 提交 + /// + /// 主键 + public void DoSubmit(string keyValue, string status, string step) + { + try + { + if (step == "1")//第一步:提交二级学院审核 + { + this.BaseRepository("CollegeMIS").ExecuteBySql($"update FamilyEconomy set SubmitTime='{DateTime.Now}',SubmitUserId='{LoginUserInfo.Get().userId}',Status='{status}' where Id='{keyValue}' "); + } + else if (step == "2")//第二步:提交学工部审核 + { + this.BaseRepository("CollegeMIS").ExecuteBySql($"update FamilyEconomy set FirstCheckTime='{DateTime.Now}',FirstCheckUserId='{LoginUserInfo.Get().userId}',Status='{status}' where Id='{keyValue}' "); + } + else if (step == "3")//第三步:归档 + { + this.BaseRepository("CollegeMIS").ExecuteBySql($"update FamilyEconomy set SecondCheckTime='{DateTime.Now}',SecondCheckUserId='{LoginUserInfo.Get().userId}',Status='{status}' where Id='{keyValue}' "); + } + + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } + + /// + /// 退回 + /// + /// 主键 + public void DoBack(string keyValue, string status, string step) + { + try + { + if (step == "2")//第二步:退回辅导员 + { + this.BaseRepository("CollegeMIS").ExecuteBySql($"update FamilyEconomy set FirstCheckTime='{DateTime.Now}',FirstCheckUserId='{LoginUserInfo.Get().userId}',Status='{status}' where Id='{keyValue}' "); + } + else if (step == "3")//第三步:退回辅导员、退回二级学院 + { + this.BaseRepository("CollegeMIS").ExecuteBySql($"update FamilyEconomy set SecondCheckTime='{DateTime.Now}',SecondCheckUserId='{LoginUserInfo.Get().userId}',Status='{status}' where Id='{keyValue}' "); + } + + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } + #endregion }