diff --git a/.gitignore b/.gitignore index 6ca799005..e9901da6f 100644 --- a/.gitignore +++ b/.gitignore @@ -76,3 +76,5 @@ typings/ unpackage Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js /Learun.Framework.Ultimate V7/Learun.Application.Web/Resource/ +/Learun.Framework.Ultimate V7/Learun.Application.Mobile/platforms/android/assets/www +/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www.7z diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www.7z b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www.7z deleted file mode 100644 index 65dfec240..000000000 Binary files a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www.7z and /dev/null differ diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/AssetManagementSystem/Ass_InventoryResult/Ass_InventoryItemList/Ass_InventoryItemList.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/AssetManagementSystem/Ass_InventoryResult/Ass_InventoryItemList/Ass_InventoryItemList.js index ed7745c7a..33135cc3e 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/AssetManagementSystem/Ass_InventoryResult/Ass_InventoryItemList/Ass_InventoryItemList.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/AssetManagementSystem/Ass_InventoryResult/Ass_InventoryItemList/Ass_InventoryItemList.js @@ -201,7 +201,7 @@ learun.layer.loading(false); }); } - }, 'Learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }, rowBtns: ['删除'] // 列表行左滑按钮 }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/AssetManagementSystem/Ass_InventoryResult/Ass_InventoryItemList/Form/form.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/AssetManagementSystem/Ass_InventoryResult/Ass_InventoryItemList/Form/form.js index 141881ceb..96450d451 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/AssetManagementSystem/Ass_InventoryResult/Ass_InventoryItemList/Form/form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/AssetManagementSystem/Ass_InventoryResult/Ass_InventoryItemList/Form/form.js @@ -72,7 +72,7 @@ } }); } - }, 'Learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); } } ], diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/AssetManagementSystem/Ass_InventoryResult/Ass_InventoryList/Ass_InventoryList.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/AssetManagementSystem/Ass_InventoryResult/Ass_InventoryList/Ass_InventoryList.js index f50896295..6da95c78a 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/AssetManagementSystem/Ass_InventoryResult/Ass_InventoryList/Ass_InventoryList.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/AssetManagementSystem/Ass_InventoryResult/Ass_InventoryList/Ass_InventoryList.js @@ -82,7 +82,7 @@ learun.layer.loading(false); }); } - }, 'Learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }, rowBtns: ['删除'] // 列表行左滑按钮 }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/BookBorrow/BookBorrow.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/BookBorrow/BookBorrow.js index 8bc05ce6a..6b961ec40 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/BookBorrow/BookBorrow.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/BookBorrow/BookBorrow.js @@ -105,7 +105,7 @@ // learun.layer.loading(false); // }); // } - // }, 'Learun智慧校园提示', ['取消', '确定']); + // }, '智慧校园提示', ['取消', '确定']); //}, //rowBtns: ['删除'] // 列表行左滑按钮 }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/EmpRegister/EmpRegister.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/EmpRegister/EmpRegister.js index 18dcbabf4..13282bcf5 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/EmpRegister/EmpRegister.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/EmpRegister/EmpRegister.js @@ -32,7 +32,7 @@ learun.nav.closeCurrent(); } } - }, 'learun敏捷框架提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }); // 编辑 $header.find('.lr-form-header-edit').on('tap', function () { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/R_EnterBuilding/form/form.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/R_EnterBuilding/form/form.js index d1b7d55ef..4da5906b4 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/R_EnterBuilding/form/form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/R_EnterBuilding/form/form.js @@ -38,7 +38,7 @@ learun.nav.closeCurrent(); } } - }, 'learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }); // 编辑 $header.find('.lr-form-header-edit').on('tap', function () { @@ -70,7 +70,7 @@ } }); } - }, 'Learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); } } ], diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/R_EnterSchool/form/form.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/R_EnterSchool/form/form.js index c5d3628b3..b30f9b801 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/R_EnterSchool/form/form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/R_EnterSchool/form/form.js @@ -38,7 +38,7 @@ learun.nav.closeCurrent(); } } - }, 'learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }); // 编辑 $header.find('.lr-form-header-edit').on('tap', function () { @@ -70,7 +70,7 @@ } }); } - }, 'Learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); } } ], diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/SYS_ReceiveMessage/SYS_ReceiveMessage.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/SYS_ReceiveMessage/SYS_ReceiveMessage.js index 4e8fefc85..137248fb0 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/SYS_ReceiveMessage/SYS_ReceiveMessage.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/SYS_ReceiveMessage/SYS_ReceiveMessage.js @@ -98,7 +98,7 @@ learun.layer.loading(false); }); } - }, 'Learun敏捷框架提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }, rowBtns: ['删除'] // 列表行左滑按钮 }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/SchoolCalendar/SchoolCalendar.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/SchoolCalendar/SchoolCalendar.js index e394a5023..5793bd32a 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/SchoolCalendar/SchoolCalendar.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/SchoolCalendar/SchoolCalendar.js @@ -103,7 +103,7 @@ learun.layer.loading(false); }); } - }, 'Learun敏捷框架提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }, rowBtns: ['删除'] // 列表行左滑按钮 }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/SchoolCalendar/form/form.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/SchoolCalendar/form/form.js index 47bbb9013..bbd47de06 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/SchoolCalendar/form/form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/SchoolCalendar/form/form.js @@ -38,7 +38,7 @@ learun.nav.closeCurrent(); } } - }, 'learun敏捷框架提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }); // 编辑 $header.find('.lr-form-header-edit').on('tap', function () { @@ -70,7 +70,7 @@ } }); } - }, 'Learun敏捷框架提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); } } ], diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuAttendanceLeave/StuAttendanceLeave.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuAttendanceLeave/StuAttendanceLeave.js index 19f83ade4..2b3d16f63 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuAttendanceLeave/StuAttendanceLeave.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuAttendanceLeave/StuAttendanceLeave.js @@ -102,7 +102,7 @@ learun.layer.loading(false); }); } - }, 'Learun敏捷框架提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }, rowBtns: ['删除'] // 列表行左滑按钮 }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuAttendanceLeave/form/form.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuAttendanceLeave/form/form.js index 959acbe22..a482e9091 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuAttendanceLeave/form/form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuAttendanceLeave/form/form.js @@ -70,7 +70,7 @@ // } // }); // } - // }, 'Learun敏捷框架提示', ['取消', '确定']); + // }, '智慧校园提示', ['取消', '确定']); // } // } // ], diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuConsumption/StuConsumption.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuConsumption/StuConsumption.js index 12600ec62..42e701536 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuConsumption/StuConsumption.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuConsumption/StuConsumption.js @@ -130,7 +130,7 @@ learun.layer.loading(false); }); } - }, 'Learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }, rowBtns: ['删除'] // 列表行左滑按钮 }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuConsumption/form/form.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuConsumption/form/form.js index 0e67cde60..f15f05707 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuConsumption/form/form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuConsumption/form/form.js @@ -38,7 +38,7 @@ learun.nav.closeCurrent(); } } - }, 'learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }); // 编辑 $header.find('.lr-form-header-edit').on('tap', function () { @@ -70,7 +70,7 @@ } }); } - }, 'Learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); } } ], diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoBasic/form/form.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoBasic/form/form.js index 90430a045..8251d5739 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoBasic/form/form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoBasic/form/form.js @@ -85,7 +85,7 @@ } }); } - }, 'Learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); } } ], diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/PayFee/PayFee.css b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/PayFee/PayFee.css new file mode 100644 index 000000000..5f282702b --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/PayFee/PayFee.css @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/PayFee/PayFee.html b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/PayFee/PayFee.html new file mode 100644 index 000000000..f7014b1dc --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/PayFee/PayFee.html @@ -0,0 +1,24 @@ +
+
+
+ 总共0条 +
+
+ +
+
+
+ +
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/PayFee/PayFee.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/PayFee/PayFee.js new file mode 100644 index 000000000..27f07365d --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/PayFee/PayFee.js @@ -0,0 +1,135 @@ +/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) + * Copyright (c) 2013-2018 北京泉江科技有限公司 + * 创建人:超级管理员 + * 日 期:2019-12-26 14:43 + * 描 述:新生缴费管理 + */ +(function () { + var begin = ''; + var end = ''; + var multipleData = null; + var page = { + grid: null, + init: function ($page) { + begin = ''; + end = ''; + multipleData = null; + page.grid = $page.find('#lr_StuInfoFreshPayFee_list').lrpagination({ + lclass: page.lclass, + rows: 10, // 每页行数 + getData: function (param, callback) {// 获取数据 param 分页参数,callback 异步回调 + param.multipleData = multipleData; + page.loadData(param, callback, $page); + }, + renderData: function (_index, _item, _$item) {// 渲染数据模板 + return page.rowRender(_index, _item, _$item, $page); + }, + click: function (item, $item, $et) {// 列表行点击事件 + if ($et.hasClass('lr-btn-danger')) { + page.btnClick(item, $item, $page); + } + else { + page.rowClick(item, $item, $page); + } + }, + btns: page.rowBtns + }); + // 多条件查询 + var $multiple = $page.find('.lr_multiple_search').multiplequery({ + callback: function (data) { + begin = ''; + end = ''; + multipleData = data || {}; + multipleData.EmpNo = learun.storage.get('userinfo').baseinfo.account; + page.grid.reload(); + } + }); + //$multiple.find('#ClassNo').lrpickerex({ + // type: 'sourceData', + // code: 'bjsj', + // ivalue:'classno', + // itext:'classname' + //}); + }, + lclass: 'lr-list', + loadData: function (param, callback, $page) {// 列表加载后台数据 + var empno = { + EmpNo: learun.storage.get('userinfo').baseinfo.account + }; + var _postParam = { + pagination: { + rows: param.rows, + page: param.page, + sidx: 'ClassNo,StuNo', + sord: 'ASC' + }, + queryJson: JSON.stringify(empno) + }; + if (param.multipleData) { + _postParam.queryJson = JSON.stringify(multipleData); + } + if (param.begin && param.end) { + _postParam.queryJson = JSON.stringify({ StartTime: param.begin, EndTime: param.end }); + } + learun.httpget(config.webapi + 'StuInfoFresh/pagelist', _postParam, (data) => { + $page.find('.lr-badge').text('0'); + if (data) { + $page.find('.lr-badge').text(data.records); + callback(data.rows, parseInt(data.records)); + } + else { + callback([], 0); + } + }); + }, + rowRender: function (_index, _item, _$item, $page) {// 渲染列表行数据 + _$item.addClass('lr-list-item lr-list-item-multi'); + _$item.append($('

学号:

').dataFormatter({ value: _item.StuNo })); + _$item.append($('

姓名:

').dataFormatter({ value: _item.StuName })); + _$item.append($('

班级:

').dataFormatter({ + value: _item.ClassNo, + type: 'dataSource', + code: 'bjsj', + keyId: 'classno', + text: 'classname' + })); + _$item.append($('

线上缴费状态:

').dataFormatter({ + value: _item.PayFeeStatus, + type: 'dataItem', + code: 'PayStatus' + })); + _$item.append($('

线上缴费时间:

').dataFormatter({ + value: _item.PayFeeDate, + type: 'datetime', + dateformat: 'yyyy-MM-dd hh:mm:ss' + })); + _$item.append($('

贷款回执码:

').dataFormatter({ value: _item.StudentLoan })); + _$item.append($('

助学贷款状态:

').dataFormatter({ value: _item.StudentLoanStatus == "1" ? "已审核" : "未审核" })); + _$item.append($('

现场缴费状态:

').dataFormatter({ + value: _item.OnsitePayFeeStatus, + type: 'dataItem', + code: 'OnsitePayStatus' + })); + + return ''; + }, + rowClick: function (item, $item, $page) {// 列表行点击触发方法 + learun.nav.go({ path: 'EducationalAdministration/StuInfoFresh/PayFee/form', title: '缴费详情', type: 'right', param: { keyValue: item.ID } }); + }, + //btnClick: function (item, $item, $page) {// 左滑按钮点击事件 + // learun.layer.confirm('确定要删除该笔数据吗?', function (_index) { + // if (_index === '1') { + // learun.layer.loading(true, '正在删除该笔数据'); + // learun.httppost(config.webapi + 'learun/PersonnelManagement/ClassWork/delete', item.Id, (data) => { + // if (data) {// 删除数据成功 + // page.grid.reload(); + // } + // learun.layer.loading(false); + // }); + // } + // }, '智慧校园提示', ['取消', '确定']); + //}, + //rowBtns: ['删除'] // 列表行左滑按钮 + }; + return page; +})(); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/PayFee/form/form.css b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/PayFee/form/form.css new file mode 100644 index 000000000..8d07c01f1 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/PayFee/form/form.css @@ -0,0 +1,10 @@ +.lr-form-container .lr-form-row { + padding-left: 100px; +} + +.lr-form-row label { + width: 100px; +} +#StudentLoan[readonly='readonly']{ + background-color:#eee; +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/PayFee/form/form.html b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/PayFee/form/form.html new file mode 100644 index 000000000..1780cdb40 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/PayFee/form/form.html @@ -0,0 +1,14 @@ +
+
+ +
+
+
+ + +
+
+ +
+
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/PayFee/form/form.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/PayFee/form/form.js new file mode 100644 index 000000000..05c2b3162 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/PayFee/form/form.js @@ -0,0 +1,156 @@ +/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) + * Copyright (c) 2013-2018 北京泉江科技有限公司 + * 创建人:超级管理员 + * 日 期:2019-12-26 14:43 + * 描 述:新生缴费管理 + */ +(function () { + var keyValue = ''; + var $header = null; + var titleText = ''; + var page = { + isScroll: true, + init: function ($page, param) { + keyValue = param.keyValue; + // 添加头部按钮列表 + var _html = '\ +
取消
\ +
\ +
\ +
\ +
提交
'; + $header = $page.parents('.f-page').find('.f-page-header'); + $header.append(_html); + // 取消 + $header.find('.lr-form-header-cancel').on('tap', function () { + learun.layer.confirm('确定要退出当前编辑?', function (_index) { + if (_index === '1') { + if (keyValue) {// 如果是编辑状态 + learun.formblur(); + $header.find('.lr-form-header-cancel').hide(); + $header.find('.lr-form-header-submit').hide(); + $header.find('.lr-form-header-btnlist').show(); + $header.find('.f-page-title').text(titleText); + $page.find('.lr-form-container').setFormRead(); + } + else {// 如果是新增状态 关闭当前页面 + learun.nav.closeCurrent(); + } + } + }, '智慧校园提示', ['取消', '确定']); + }); + // 编辑 + $header.find('.lr-form-header-edit').on('tap', function () { + $header.find('.lr-form-header-btnlist').hide(); + $header.find('.lr-form-header-cancel').show(); + $header.find('.lr-form-header-submit').show(); + titleText = $header.find('.f-page-title').text(); + $header.find('.f-page-title').text('编辑'); + $page.find('.lr-form-container').setFormWrite(); + }); + // 更多 + //$header.find('.lr-form-header-more').on('tap', function () { + // learun.actionsheet({ + // id: 'more', + // data: [ + // { + // text: '删除', + // mark: true, + // event: function () {// 删除当前条信息 + // learun.layer.confirm('确定要删除该笔数据吗?', function (_index) { + // if (_index === '1') { + // learun.layer.loading(true, '正在删除该笔数据'); + // learun.httppost(config.webapi + 'learun/PersonnelManagement/ClassWork/delete', keyValue, (data) => { + // learun.layer.loading(false); + // if (data) {// 删除数据成功 + // learun.nav.closeCurrent(); + // var prepage = learun.nav.getpage('PersonnelManagement/ClassWork'); + // prepage.grid.reload(); + // } + // }); + // } + // }, '智慧校园提示', ['取消', '确定']); + // } + // } + // ], + // cancel: function () { + // } + // }); + //}); + // 提交 + $header.find('.lr-form-header-submit').on('tap', function () { + // 获取表单数据 + if (!$page.find('.lr-form-container').lrformValid()) { + return false; + } + var _postData = {} + _postData.keyValue = keyValue; + _postData.strEntity = JSON.stringify($page.find('.lr-form-container').lrformGet()); + learun.layer.loading(true, '正在提交数据'); + learun.httppost(config.webapi + 'StuInfoFresh/save', _postData, (data) => { + learun.layer.loading(false); + if (data) {// 表单数据保存成功 + if (keyValue) { + learun.layer.toast('保存数据成功!'); + learun.formblur(); + $header.find('.lr-form-header-cancel').hide(); + $header.find('.lr-form-header-submit').hide(); + $header.find('.lr-form-header-btnlist').show(); + $header.find('.f-page-title').text(titleText); + $page.find('.lr-form-container').setFormRead(); + } + else {// 如果是 + learun.nav.closeCurrent(); + } + var prepage = learun.nav.getpage('/EducationalAdministration/StuInfoFresh/PayFee'); + prepage.grid.reload(); + } + }); + }); + page.bind($page, param); + if (keyValue) { + // 添加编辑按钮 + $page.find('.lr-form-container').setFormRead(); + $header.find('.lr-form-header-btnlist').show(); + // 获取表单数据 + learun.layer.loading(true, '获取表单数据'); + learun.httpget(config.webapi + 'StuInfoFresh/form', keyValue, (data) => { + if (data) { + for (var id in data) { + if (data[id].length) { + $page.find('#' + id).lrgridSet(data[id]); + } + else { + $page.find('[data-table="' + id + '"]').lrformSet(data[id]); + } + if (data[id].StudentLoanStatus == "1") { + $page.find("#StudentLoan").attr("readonly", "readonly"); + } else { + $page.find("#StudentLoan").removeAttr("readonly"); + } + } + } + learun.layer.loading(false); + }); + } + else { + $header.find('.lr-form-header-cancel').show(); + $header.find('.lr-form-header-submit').show(); + } + }, + bind: function ($page, param) { + $page.find('#PayFeeStatus').lrpickerex({ + type: 'dataItem', + code: 'PayStatus' + }).lrpickerSet(0); + $page.find('#OnsitePayFeeStatus').lrpickerex({ + type: 'dataItem', + code: 'OnsitePayStatus' + }).lrpickerSet(0); + }, destroy: function (pageinfo) { + $header = null; + keyValue = ''; + } + }; + return page; +})(); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/RegisterQRCode/RegisterQRCode.css b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/RegisterQRCode/RegisterQRCode.css index bf6cf92f1..1a369d668 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/RegisterQRCode/RegisterQRCode.css +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/RegisterQRCode/RegisterQRCode.css @@ -114,13 +114,13 @@ cursor: pointer; } -#PhotoImg { +#Img { width: 200px; height: 200px; margin: 30px auto; } - #PhotoImg img { + #Img img { width: 100%; height: 100%; } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/RegisterQRCode/RegisterQRCode.html b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/RegisterQRCode/RegisterQRCode.html index 576e9d212..e84887552 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/RegisterQRCode/RegisterQRCode.html +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/RegisterQRCode/RegisterQRCode.html @@ -2,7 +2,7 @@
报到二维码
-
+
@@ -40,6 +40,10 @@ 班级 +
+ 默认教室 + +
班主任编号 diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/RegisterQRCode/RegisterQRCode.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/RegisterQRCode/RegisterQRCode.js index 0b1c85f4e..143c62d77 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/RegisterQRCode/RegisterQRCode.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/RegisterQRCode/RegisterQRCode.js @@ -10,7 +10,7 @@ //数据绑定 learun.layer.loading(true, '获取数据中'); - learun.httpget(config.webapi + "StuInfoFresh/stuInfoFreshEntity", {}, (data) => { + learun.httpget(config.webapi + "StuInfoFresh/stuInfoFreshEntity", userinfo.baseinfo.account, (data) => { if (data) { //判断是否显示报到二维码:未确认报到,且已完善信息,且缴费三有一; var entity = data["StuInfoFreshEntity"]; @@ -28,7 +28,7 @@ }, '智慧校园提示', ['确定']); return false; } - if (entity.PayFeeStatus == "未缴费" && (entity.StudentLoan == null || entity.StudentLoan == "" || entity.StudentLoan == undefined) && entity.OnsitePayFeeStatus != "1") { + if (entity.PayFeeStatus != "1" && entity.StudentLoanStatus != "1" && entity.OnsitePayFeeStatus != "1") { learun.layer.loading(false); learun.layer.confirm('新生未缴费,无法报到!', function (_index) { learun.nav.closeCurrent(); @@ -59,7 +59,7 @@ } } //二维码 - learun.code.encode({ id: 'PhotoImg', text: userinfo.baseinfo.account }); + learun.code.encode({ id: 'Img', text: userinfo.baseinfo.account }); page.bind($page); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/StudentLoan/StudentLoan.html b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/StudentLoan/StudentLoan.html index aca76c48f..48b742e7c 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/StudentLoan/StudentLoan.html +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/StudentLoan/StudentLoan.html @@ -4,7 +4,7 @@
贷款回执码 - +
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/StudentLoan/StudentLoan.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/StudentLoan/StudentLoan.js index 83083cbff..ac2289a21 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/StudentLoan/StudentLoan.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/StudentLoan/StudentLoan.js @@ -8,8 +8,15 @@ if (data) { for (var id in data) { if (id == "StuInfoFreshEntity") { - $("#ID").val(data[id].ID); - $("#StudentLoan").val(data[id].StudentLoan); + $page.find("#ID").val(data[id].ID); + $page.find("#StudentLoan").val(data[id].StudentLoan); + if (data[id].StudentLoanStatus == "1") { + learun.layer.loading(false); + learun.layer.confirm('新生助学贷款已审核!', function (_index) { + learun.nav.closeCurrent(); + }, '智慧校园提示', ['确定']); + return false; + } } } page.bind($page); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuMail/StuMail.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuMail/StuMail.js index c4f160fa9..6b2941a7e 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuMail/StuMail.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuMail/StuMail.js @@ -97,7 +97,7 @@ learun.layer.loading(false); }); } - }, 'Learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }, rowBtns: ['删除'] // 列表行左滑按钮 }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuMail/form/form.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuMail/form/form.js index 406eaa7d3..7d1f51924 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuMail/form/form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuMail/form/form.js @@ -38,7 +38,7 @@ learun.nav.closeCurrent(); } } - }, 'learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }); // 编辑 $header.find('.lr-form-header-edit').on('tap', function () { @@ -70,7 +70,7 @@ } }); } - }, 'Learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); } } ], diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_ReceiveFile/Sys_ReceiveFile.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_ReceiveFile/Sys_ReceiveFile.js index e83a92f8e..e0b7e9362 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_ReceiveFile/Sys_ReceiveFile.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_ReceiveFile/Sys_ReceiveFile.js @@ -124,7 +124,7 @@ learun.layer.loading(false); }); } - }, 'Learun敏捷框架提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }, rowBtns: ['删除'] // 列表行左滑按钮 }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_ReceiveFile/form/form.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_ReceiveFile/form/form.js index ef840c958..640d5ff90 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_ReceiveFile/form/form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Sys_ReceiveFile/form/form.js @@ -38,7 +38,7 @@ learun.nav.closeCurrent(); } } - }, 'learun敏捷框架提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }); // 编辑 $header.find('.lr-form-header-edit').on('tap', function () { @@ -70,7 +70,7 @@ } }); } - }, 'Learun敏捷框架提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); } } ], diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/TeachPlan/TeachPlan.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/TeachPlan/TeachPlan.js index 91c25b906..27b3cb734 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/TeachPlan/TeachPlan.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/TeachPlan/TeachPlan.js @@ -118,7 +118,7 @@ learun.layer.loading(false); }); } - }, 'Learun敏捷框架提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }, rowBtns: ['删除'] // 列表行左滑按钮 }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/TeachPlan/form/form.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/TeachPlan/form/form.js index 26c07eb55..e79e4a50f 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/TeachPlan/form/form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/TeachPlan/form/form.js @@ -38,7 +38,7 @@ learun.nav.closeCurrent(); } } - }, 'learun敏捷框架提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }); // 编辑 $header.find('.lr-form-header-edit').on('tap', function () { @@ -70,7 +70,7 @@ } }); } - }, 'Learun敏捷框架提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); } } ], diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Thermography/Thermography.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Thermography/Thermography.js index 6b52f0ad0..69ae0b102 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Thermography/Thermography.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Thermography/Thermography.js @@ -167,7 +167,7 @@ learun.layer.loading(false); }); } - }, 'Learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }, //rowBtns: ['删除'] // 列表行左滑按钮 }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Thermography/form/form.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Thermography/form/form.js index 6e85361fc..deca14bea 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Thermography/form/form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/Thermography/form/form.js @@ -38,7 +38,7 @@ learun.nav.closeCurrent(); } } - }, 'learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }); // 编辑 $header.find('.lr-form-header-edit').on('tap', function () { @@ -70,7 +70,7 @@ // } // }); // } - // }, 'Learun智慧校园提示', ['取消', '确定']); + // }, '智慧校园提示', ['取消', '确定']); // } //} ], diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/LR_OAModule/Notice/Notice.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/LR_OAModule/Notice/Notice.js index a2332a14d..6877efcfe 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/LR_OAModule/Notice/Notice.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/LR_OAModule/Notice/Notice.js @@ -94,7 +94,7 @@ learun.layer.loading(false); }); } - }, 'Learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }, rowBtns: ['删除'] // 列表行左滑按钮 }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/LogisticsManagement/ListenClassRecord/ListenClassRecord.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/LogisticsManagement/ListenClassRecord/ListenClassRecord.js index 11a505948..4dea69815 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/LogisticsManagement/ListenClassRecord/ListenClassRecord.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/LogisticsManagement/ListenClassRecord/ListenClassRecord.js @@ -113,7 +113,7 @@ learun.layer.loading(false); }); } - }, 'Learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }, rowBtns: ['删除'] // 列表行左滑按钮 }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/LogisticsManagement/ListenClassRecord/form/form.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/LogisticsManagement/ListenClassRecord/form/form.js index 7b36829ee..7a055801e 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/LogisticsManagement/ListenClassRecord/form/form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/LogisticsManagement/ListenClassRecord/form/form.js @@ -38,7 +38,7 @@ learun.nav.closeCurrent(); } } - }, 'learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }); // 编辑 $header.find('.lr-form-header-edit').on('tap', function () { @@ -70,7 +70,7 @@ } }); } - }, 'Learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); } } ], diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/ActivitySchedule/ActivitySchedule.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/ActivitySchedule/ActivitySchedule.js index 9589ccf2b..7e09b2b2c 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/ActivitySchedule/ActivitySchedule.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/ActivitySchedule/ActivitySchedule.js @@ -100,7 +100,7 @@ learun.layer.loading(false); }); } - }, 'Learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }, rowBtns: ['删除'] // 列表行左滑按钮 }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/ActivitySchedule/form/form.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/ActivitySchedule/form/form.js index 52a4b4c2f..156c4c914 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/ActivitySchedule/form/form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/ActivitySchedule/form/form.js @@ -38,7 +38,7 @@ learun.nav.closeCurrent(); } } - }, 'learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }); // 编辑 $header.find('.lr-form-header-edit').on('tap', function () { @@ -70,7 +70,7 @@ } }); } - }, 'Learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); } } ], diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/ClassWork/ClassWork.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/ClassWork/ClassWork.js index 3f3863594..352775ba2 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/ClassWork/ClassWork.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/ClassWork/ClassWork.js @@ -109,7 +109,7 @@ learun.layer.loading(false); }); } - }, 'Learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }, rowBtns: ['删除'] // 列表行左滑按钮 }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/ClassWork/form/form.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/ClassWork/form/form.js index 650886ca4..9ae066af6 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/ClassWork/form/form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/ClassWork/form/form.js @@ -38,7 +38,7 @@ learun.nav.closeCurrent(); } } - }, 'learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }); // 编辑 $header.find('.lr-form-header-edit').on('tap', function () { @@ -70,7 +70,7 @@ } }); } - }, 'Learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); } } ], @@ -119,7 +119,7 @@ if (data) { for (var id in data) { if (data[id].length) { - $page.find('#' + id ).lrgridSet(data[id]); + $page.find('#' + id).lrgridSet(data[id]); } else { $page.find('[data-table="' + id + '"]').lrformSet(data[id]); @@ -142,8 +142,9 @@ itext: 'classname' }); $page.find('#Date').lrdate({ + type: 'date' }); - }, destroy: function (pageinfo) { + }, destroy: function (pageinfo) { $header = null; keyValue = ''; } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/CommunityInfo/CommunityInfo.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/CommunityInfo/CommunityInfo.js index c7a4e21f6..3db47122f 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/CommunityInfo/CommunityInfo.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/CommunityInfo/CommunityInfo.js @@ -99,7 +99,7 @@ // learun.layer.loading(false); // }); // } - // }, 'Learun智慧校园提示', ['取消', '确定']); + // }, '智慧校园提示', ['取消', '确定']); //}, btnJoinClick: function (item, $item, $page) {// 左滑按钮点击事件 learun.layer.confirm('确定要申请加入该社团吗?', function (_index) { @@ -112,7 +112,7 @@ learun.layer.loading(false); }); } - }, 'Learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }, //rowBtns: ['删除'] // 列表行左滑按钮 rowBtns: ['申请加入'] // 列表行左滑按钮 diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/CommunityInfo/form/form.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/CommunityInfo/form/form.js index 9580f3e3f..29107c4eb 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/CommunityInfo/form/form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/CommunityInfo/form/form.js @@ -38,7 +38,7 @@ learun.nav.closeCurrent(); } } - }, 'learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }); // 编辑 $header.find('.lr-form-header-edit').on('tap', function () { @@ -70,7 +70,7 @@ } }); } - }, 'Learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); } } ], diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/CommunityMember/CommunityMember.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/CommunityMember/CommunityMember.js index 4e0bd1bb7..379737943 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/CommunityMember/CommunityMember.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/CommunityMember/CommunityMember.js @@ -105,7 +105,7 @@ // learun.layer.loading(false); // }); // } - // }, 'Learun智慧校园提示', ['取消', '确定']); + // }, '智慧校园提示', ['取消', '确定']); //}, //rowBtns: ['删除'] // 列表行左滑按钮 }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/ContactsDetails/ContactsDetails.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/ContactsDetails/ContactsDetails.js index 631031605..40aa385bf 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/ContactsDetails/ContactsDetails.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/ContactsDetails/ContactsDetails.js @@ -119,7 +119,7 @@ learun.layer.loading(false); }); } - }, 'Learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }, rowBtns: ['删除'] // 列表行左滑按钮 }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/ContactsDetails/form/form.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/ContactsDetails/form/form.js index cc4eb9e4e..a8e2c165a 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/ContactsDetails/form/form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/ContactsDetails/form/form.js @@ -39,7 +39,7 @@ learun.nav.closeCurrent(); } } - }, 'learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }); // 编辑 $header.find('.lr-form-header-edit').on('tap', function () { @@ -71,7 +71,7 @@ } }); } - }, 'Learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); } } ], diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/EmpRepair/EmpRepair.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/EmpRepair/EmpRepair.js index 21402073f..f916387ac 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/EmpRepair/EmpRepair.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/EmpRepair/EmpRepair.js @@ -102,7 +102,7 @@ learun.layer.loading(false); }); } - }, 'Learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }, rowBtns: ['删除'] // 列表行左滑按钮 }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/EmpRepair/form/form.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/EmpRepair/form/form.js index 30baeba77..f4383d197 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/EmpRepair/form/form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/EmpRepair/form/form.js @@ -38,7 +38,7 @@ learun.nav.closeCurrent(); } } - }, 'learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }); // 编辑 $header.find('.lr-form-header-edit').on('tap', function () { @@ -70,7 +70,7 @@ } }); } - }, 'Learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); } } ], diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/EpidemicSituation/EpidemicSituation.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/EpidemicSituation/EpidemicSituation.js index e2f6a4f7d..c0c48c724 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/EpidemicSituation/EpidemicSituation.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/EpidemicSituation/EpidemicSituation.js @@ -141,7 +141,7 @@ learun.layer.loading(false); }); } - }, 'Learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }, rowBtns: ['删除'] // 列表行左滑按钮 }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/EpidemicSituationCopy/EpidemicSituationCopy.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/EpidemicSituationCopy/EpidemicSituationCopy.js index f631dcd30..0b8e53ed1 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/EpidemicSituationCopy/EpidemicSituationCopy.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/EpidemicSituationCopy/EpidemicSituationCopy.js @@ -155,7 +155,7 @@ learun.layer.loading(false); }); } - }, 'Learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }, rowBtns: ['删除'] // 列表行左滑按钮 }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/Schedule/Schedule.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/Schedule/Schedule.js index 703df31b3..5fd07821e 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/Schedule/Schedule.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/Schedule/Schedule.js @@ -105,7 +105,7 @@ learun.layer.loading(false); }); } - }, 'Learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }, rowBtns: ['删除'] // 列表行左滑按钮 }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/Schedule/form/form.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/Schedule/form/form.js index 4a523eac6..e2750f6c1 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/Schedule/form/form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/PersonnelManagement/Schedule/form/form.js @@ -38,7 +38,7 @@ learun.nav.closeCurrent(); } } - }, 'learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); }); // 编辑 $header.find('.lr-form-header-edit').on('tap', function () { @@ -70,7 +70,7 @@ } }); } - }, 'Learun智慧校园提示', ['取消', '确定']); + }, '智慧校园提示', ['取消', '确定']); } } ], diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/WelcomNewStudents/ConfirmStudentsCheckIn/form/form.css b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/WelcomNewStudents/ConfirmStudentsCheckIn/form/form.css index 8e54c11de..d74094d1c 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/WelcomNewStudents/ConfirmStudentsCheckIn/form/form.css +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/WelcomNewStudents/ConfirmStudentsCheckIn/form/form.css @@ -63,6 +63,22 @@ margin-bottom: 0; } + .welInput div { + margin-left: 28%; + width: 72%; + height: 30px; + line-height: 28px; + } + +#WaitInfo .welInput span { + width: 30%; +} + +#WaitInfo .welInput div { + margin-left: 32%; + width: 68%; +} + .welCon { padding: 10px; border: 1px solid #efefef; @@ -114,8 +130,17 @@ cursor: pointer; } +.welBoxPhoto { + height: 110px; +} + + .welBoxPhoto .welImgAdd { + height: 100%; + } + #PhotoImg { width: 110px; + height: 100%; } .btnBox { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/WelcomNewStudents/ConfirmStudentsCheckIn/form/form.html b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/WelcomNewStudents/ConfirmStudentsCheckIn/form/form.html index 8852bd30e..8c5fee00d 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/WelcomNewStudents/ConfirmStudentsCheckIn/form/form.html +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/WelcomNewStudents/ConfirmStudentsCheckIn/form/form.html @@ -52,9 +52,9 @@
采集照片信息
-
+
- +
@@ -64,7 +64,7 @@
籍贯 - +
@@ -72,11 +72,11 @@
家庭住址 - +
联系电话 - +
@@ -133,8 +133,37 @@
+
+ + +
待认定信息
+
+
+ 是否精准贫困户 +
+
+
+ 钥匙发放 +
+
+
+ 校园卡发放 +
+
+
+ 其他费用收取 +
+
+
+ 档案收取 +
+
+
+
+ +
- +
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/WelcomNewStudents/ConfirmStudentsCheckIn/form/form.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/WelcomNewStudents/ConfirmStudentsCheckIn/form/form.js index baa7dceab..4922a73d0 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/WelcomNewStudents/ConfirmStudentsCheckIn/form/form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/WelcomNewStudents/ConfirmStudentsCheckIn/form/form.js @@ -1,12 +1,14 @@ (function () { - var colDataItemArr = ['GenderNo', 'PartyFaceNo']; - var colDataItemCode = ['usersex', 'PolityStatus']; + var colDataItemArr = ['GenderNo', 'PartyFaceNo', 'IsPoor', 'GetKeyStatus', 'GetCardStatus', 'OtherPayFeeStatus', 'CollectFileStatus']; + var colDataItemCode = ['usersex', 'PolityStatus', 'YesOrNoInt', 'YesOrNoInt', 'YesOrNoInt', 'YesOrNoInt', 'YesOrNoInt']; var page = { isScroll: false, - init: function ($page,param) { + init: function ($page, param) { + page.bind2($page); //数据绑定 - learun.httpget(config.webapi + "StuInfoFresh/stuInfoFreshEntityByStuNo", '\''+param.StuNo+'\'', (data) => { + learun.layer.loading(true, '获取数据中'); + learun.httpget(config.webapi + "StuInfoFresh/stuInfoFreshEntity", param.StuNo, (data) => { if (data) { //基本信息 for (var id in data['StuInfoFreshEntity']) { @@ -27,6 +29,8 @@ } else if (dom.tagName.toLowerCase() == "input") { $('#' + id).val(data['StuInfoFreshEntity']['' + id + '']); + } else if (dom.tagName.toLowerCase() == "div") { + $('#' + id).lrpickerSet(data['StuInfoFreshEntity']['' + id + '']); } } } @@ -38,32 +42,32 @@ var html = '
' + '
' + '姓名' + - '' + + '' + '
' + '
' + '与本人关系' + - //'' + - '
' + + '' + + //'
' + '
' + '
' + '性别' + - //'' + - '
' + + '' + + //'
' + '
' + '
' + '年龄' + - '' + + '' + '
' + '
' + '政治面貌' + - //'' + - '
' + + '' + + //'
' + '
' + '
' + '身份证号' + - '' + + '' + '
' + - '
' + + //'
' + '
'; $('#StuInfoFreshFamily').append(html); @@ -75,32 +79,32 @@ var html = '
' + '
' + '姓名' + - '' + + '' + '
' + '
' + '与本人关系' + - '' + + '' + '
' + '
' + '手机号码' + - '' + + '' + '
' + '
' + '座机号码' + - '' + + '' + '
' + '
' + '联系地址' + - '' + + '' + '
' + - '
' + + //'
' + '
'; $('#StuInfoFreshEmergePeople').append(html); }); page.bind($page); - + learun.layer.loading(false); } @@ -108,16 +112,25 @@ //保存 $page.find('#saveBtn').on('tap', function () { - var postdata = { - ID: $('#ID').val() - }; - learun.httpget(config.webapi + "/保存地址/", postdata, (data) => { - if (data) { + // 获取表单数据 + if (!$page.find('#WaitInfo').lrformValid()) { + return false; + } + var _postData = {} + _postData.keyValue = $('#ID').val(); + var data = $page.find('#WaitInfo').lrformGet(); + data.RegisterStatus = "1"; + data.ArriveDate = getTime(); + console.log(data); + _postData.strEntity = JSON.stringify(data); + learun.layer.loading(true, '正在提交数据'); + learun.httppost(config.webapi + 'StuInfoFresh/save', _postData, (data) => { + learun.layer.loading(false); + if (data) {// 表单数据保存成功 learun.layer.toast('保存成功'); - location.reload(); + learun.nav.closeCurrent(); } }); - }); @@ -125,81 +138,55 @@ bind: function ($page) { //性别 $.each($page.find('[name="Sex"]'), function (i, item) { - $page.find(item).lrpickerex({ + learun.clientdata.get('dataItem', { code: 'usersex', - type: 'dataItem' + key: $(item).attr('value'), + callback: function (data, op) { + $(item).val(data.text); + } }); - //赋值 - $(item).lrpickerSet($(item).attr('value')); }); //政治面貌 $.each($page.find('[name="Politicy"]'), function (i, item) { - $page.find(item).lrpickerex({ + learun.clientdata.get('dataItem', { code: 'PolityStatus', - type: 'dataItem' + key: $(item).attr('value'), + callback: function (data, op) { + $(item).val(data.text); + } }); - //赋值 - $(item).lrpickerSet($(item).attr('value')); }); //与本人关系 $.each($page.find('#StuInfoFreshFamily').find('[name="Relation"]'), function (i, item) { - $page.find(item).lrpickerex({ + learun.clientdata.get('dataItem', { code: 'FamilyRelation', - type: 'dataItem' + key: $(item).attr('value'), + callback: function (data, op) { + $(item).val(data.text); + } }); - //赋值 - $(item).lrpickerSet($(item).attr('value')); }); - } - }; - //数据处理 - function family() { - var list = new Array(); - $.each($('#StuInfoFreshFamily').children('.welCon'), function (i, item) { - var o = $(item).children(".welConForm").serializeObject(); - o.Sex = $(item).find('[name="Sex"]').lrpickerGet(); - o.Politicy = $(item).find('[name="Politicy"]').lrpickerGet(); - o.Relation = $(item).find('[name="Relation"]').lrpickerGet(); - list.push(o); - }); - return list; - } - function emergePeople() { - var list = new Array(); - $.each($('#StuInfoFreshEmergePeople').children('.welCon'), function (i, item) { - var o = $(item).children(".welConForm").serializeObject(); - list.push(o); - }); - return list; - } - - $.fn.serializeObject = function () { - var o = {}; - var a = this.serializeArray(); - $.each(a, function () { - if (o[this.name]) { - if (!o[this.name].push) { - o[this.name] = [o[this.name]]; - } - o[this.name].push(this.value || ''); - } else { - o[this.name] = this.value || ''; - } - }); - return o; - } - + }, + //待认定信息 + bind2: function ($page) { + $.each($page.find('#WaitInfo .YesOrNo'), function (i, item) { + $(item).lrpickerex({ + type: 'dataItem', + code: 'YesOrNoInt' + }).lrpickerSet(0); + }); - //产生随机数 - function GenerateRandom() { - var retstr = ""; - var date = new Date(); - retstr = date.getFullYear().toString() + "-" + date.getMonth().toString() + "-" + date.getDate().toString() + "-" + date.getUTCHours().toString() + "-" + date.getUTCMinutes() + "-" + date.getUTCSeconds().toString(); - var Num = ""; - for (var i = 0; i < 6; i++) { - Num += Math.floor(Math.random() * 10); } - return retstr + Num; + }; + function getTime() { + var nowDate = new Date(); + var year = nowDate.getFullYear(); + var month = nowDate.getMonth() + 1 < 10 ? "0" + (nowDate.getMonth() + 1) : nowDate.getMonth() + 1; + var date = nowDate.getDate() < 10 ? "0" + nowDate.getDate() : nowDate.getDate(); + var hour = nowDate.getHours() < 10 ? "0" + nowDate.getHours() : nowDate.getHours(); + var minute = nowDate.getMinutes() < 10 ? "0" + nowDate.getMinutes() : nowDate.getMinutes(); + var second = nowDate.getSeconds() < 10 ? "0" + nowDate.getSeconds() : nowDate.getSeconds(); + return year + "-" + month + "-" + date + " " + hour + ":" + minute + ":" + second; } return page; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/login/login.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/login/login.js index 4f6377ffc..1e2b59d9d 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/login/login.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/login/login.js @@ -5,7 +5,6 @@ var path = config.webapi; learun.http.get(path + "Learun/EducationalAdministration/EmpRegister/registerbutton", {}, (res) => { - console.log(res); if (res.info == "True") { var button = $page.find('#RegisterBtn'); button.show(); @@ -22,15 +21,20 @@ $page.find('#loginBtn').on('tap', function () { var account = $('#account').val(); var password = $('#password').val(); - + var up = true; if (account === "") { learun.layer.warning('用户名不能为空!', function () { }, '提示', '关闭'); } else if (password === "") { learun.layer.warning('密码不能为空!', function () { }, '提示', '关闭'); } else { + var reg = /^(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#$%^&*,\.])[0-9a-zA-Z!@#$%^&*,\.]{8,20}$/; + if (!reg.test(password)) { + up = false; + } var data = { username: account, - password: $.md5(password) + password: $.md5(password), + up: up }; var postdata = { token: '', @@ -56,6 +60,11 @@ learun.storage.set('userinfo', res.data); $('#account').val(''); $('#password').val(''); + if (res.data.pwd === true) { + learun.storage.set('pwd', true); + } else { + learun.storage.set('pwd', false); + } learun.tab.go('workspace'); if (learun.storage.get("Ip") != null && learun.storage.get("ACIp") != "") { //Ip上网 diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/my/modifypassword/modifypassword.html b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/my/modifypassword/modifypassword.html index 99203ffda..8d46e259d 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/my/modifypassword/modifypassword.html +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/my/modifypassword/modifypassword.html @@ -13,8 +13,19 @@
-
-
+
+ +
+ 新密码必须8-20位同时包含1.[大小写字母]、2[数字]、3[特殊符号!@@#$%^&*] +
+
保存
+
+ \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/my/modifypassword/modifypassword.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/my/modifypassword/modifypassword.js index 0552f9444..9cd0eff9e 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/my/modifypassword/modifypassword.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/my/modifypassword/modifypassword.js @@ -1,12 +1,24 @@ (function () { + var userinfo = null; var page = { isScroll: true, init: function ($page) { + userinfo = learun.storage.get('userinfo'); + //主被动修改密码判断 + if (learun.storage.get('pwd')===true) { + $page.find('#strongpwd').css("display", "block"); + $page.find('#strongpwdout').css("display", "block"); + } $page.find('#savepassword').on('tap', function () { if (!$('#modifypasswordform').lrformValid()) { return false; } var formdata = $('#modifypasswordform').lrformGet(); + var reg = /^(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#$%^&*,\.])[0-9a-zA-Z!@#$%^&*,\.]{8,20}$/; + if (!reg.test(formdata.newpassword)) { + learun.layer.toast('密码不满足强度要求'); + return false; + } if (formdata.newpassword1 === formdata.newpassword) { var req = { @@ -20,6 +32,7 @@ if (data) {// 表单数据保存成功,发起流程 learun.layer.toast(info); learun.storage.set('logininfo', null); + learun.storage.set('pwd', false); learun.nav.go({ path: 'login', isBack: false, isHead: false }); } return false; @@ -29,6 +42,25 @@ learun.layer.toast('二次输入密码不同'); } }); + $page.find('#outloginbtn').on('tap', function () { + learun.layer.confirm('确定要退出账号?', function (_index) { + if (_index === '1') { + learun.isOutLogin = true; + if (learun.storage.get("Ip") != null && learun.storage.get("ACIp") != "") { + //Ip上网 + sendToAc(learun.storage.get("ACIp"), 'logout', learun.storage.get("Ip"), userinfo.baseinfo.account, ''); + } + if (learun.storage.get("Ip") != null && learun.storage.get("ACIp2") != "") { + //Ip上网 + sendToAc(learun.storage.get("ACIp2"), 'logout', learun.storage.get("Ip"), userinfo.baseinfo.account, ''); + } + learun.storage.set('logininfo', null); + learun.nav.go({ path: 'login', isBack: false, isHead: false }); + + } + + }, '', ['取消', '退出']); + }); } }; return page; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/notice/notice.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/notice/notice.js index 31c1e6f5d..c989d93cd 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/notice/notice.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/notice/notice.js @@ -3,9 +3,11 @@ var page = { isScroll: false, init: function ($page) { + // 获取登录者信息 + var userinfo = learun.storage.get('userinfo'); - //ݰ - learun.httpget(config.webapi + "StuInfoFresh/stuInfoFreshEntity", {}, (data) => { + //数据绑定 + learun.httpget(config.webapi + "StuInfoFresh/stuInfoFreshEntity", userinfo.baseinfo.account, (data) => { if (data) { var entity = data['StuInfoFreshEntity']; if (entity != null) { @@ -16,16 +18,16 @@ $('#ClassNo').html(entity.ClassNo); $('#ClassTutorName').html(entity.ClassTutorName); $('#ClassTutorMobile').html(entity.ClassTutorMobile); - $('#PayFeeStatus').html(entity.PayFeeStatus); - $('#CollectFileStatus').html(entity.CollectFileStatus); - $('#GetKeyStatus').html(entity.GetKeyStatus); + $('#PayFeeStatus').html(entity.PayFeeStatus == "1" ? "已缴费" : "未缴费"); + $('#CollectFileStatus').html(entity.CollectFileStatus == "1" ? "已提交" : "未提交"); + $('#GetKeyStatus').html(entity.GetKeyStatus == "1" ? "已领取" : "未领取"); $('#IsCompleteInfo').html(entity.IsCompleteInfo); $('#Dormitory').html(entity.DormitoryName); } } }); - + }, bind: function ($page) { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/notice2/notice2.html b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/notice2/notice2.html index 0e901d528..a4bfb785e 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/notice2/notice2.html +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/notice2/notice2.html @@ -1,61 +1,61 @@
- - - -
-
2020
-
新生入校流程
-
-
-
-
step1
-
- -
- 完善学生信息 -
-
已完成
-
-
-
- -
step2
-
- -
- 线上缴费 - ( 已缴费、未缴费 ) -
-
未完成
-
-
- -
- 助学贷款 - ( 填写贷款回执码 ) -
-
已完成
-
-
- -
- 现场缴费 - ( 已缴费、缓交、部分缴费、未缴费 ) -
-
未完成
-
-
-
- -
step3
-
- -
- 报到注册 - ( 生成报到二维码,并显示报到教室 ) -
-
未完成
-
-
-
+ + + +
+
2020
+
新生入校流程
+
+
+
+
step1
+
+ +
+ 完善学生信息 +
+
未完成
+
+
+
+ +
step2
+
+ +
+ 线上缴费 + ( 已缴费、未缴费 ) +
+
未完成
+
+
+ +
+ 助学贷款 + ( 填写贷款回执码 ) +
+
未完成
+
+
+ +
+ 现场缴费 + ( 已缴费、缓交、部分缴费、未缴费 ) +
+
未完成
+
+
+
+ +
step3
+
+ +
+ 报到注册 + ( 生成报到二维码,并显示报到教室 ) +
+
未完成
+
+
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/notice2/notice2.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/notice2/notice2.js index 8aadd1a53..ec11bc7c0 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/notice2/notice2.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/notice2/notice2.js @@ -7,57 +7,53 @@ var page = { isScroll: false, init: function ($page) { - //ݰ - learun.layer.loading(true, 'ȡ'); - learun.httpget(config.webapi + "StuInfoFresh/stuInfoFreshEntity", {}, (data) => { - if (data) { - for (var id in data) { - if (id == "StuInfoFreshEntity") { - //todo: - console.log(data[id].IsCompleteInfo == "");//false - - if (data[id].IsCompleteInfo == "") { - completeStyle("#IsCompleteInfo", "images/enter1-1.png"); - } else { - notCompleteStyle("#IsCompleteInfo", "images/enter2-1.png"); - } - if (data[id].PayFeeStatus == "ѽɷ") { - completeStyle("#PayFeeStatus", "images/enter1-2.png"); - } else { - notCompleteStyle("#PayFeeStatus", "images/enter2-2.png"); - } - if (data[id].StudentLoan == null || data[id].StudentLoan == "" || data[id].StudentLoan == undefined) { - notCompleteStyle("#StudentLoan", "images/enter2-3.png"); - } else { - completeStyle("#StudentLoan", "images/enter1-3.png"); - } - if (data[id].OnsitePayFeeStatus == "1") { - completeStyle("#OnsitePayFeeStatus", "images/enter1-4.png"); - } else { - notCompleteStyle("#OnsitePayFeeStatus", "images/enter2-4.png"); - } - if (data[id].RegisterStatus == "1") { - completeStyle("#RegisterStatus", "images/enter1-5.png"); - } else { - notCompleteStyle("#RegisterStatus", "images/enter2-5.png"); - } + // 获取登录者信息 + var userinfo = learun.storage.get('userinfo'); - } + //数据绑定 + learun.layer.loading(true, '获取数据中'); + learun.httpget(config.webapi + "StuInfoFresh/stuInfoFreshEntity", userinfo.baseinfo.account, (data) => { + if (data) { + if (data["StuInfoFreshFamilyList"].length && data["StuInfoFreshFamilyList"].length > 0) { + completeStyle("#IsCompleteInfo", "images/enter1-1.png"); + } else { + notCompleteStyle("#IsCompleteInfo", "images/enter2-1.png"); + } + if (data["StuInfoFreshEntity"].PayFeeStatus == "1") { + completeStyle("#PayFeeStatus", "images/enter1-2.png"); + } else { + notCompleteStyle("#PayFeeStatus", "images/enter2-2.png"); } + if (data["StuInfoFreshEntity"].StudentLoanStatus == "1") { + completeStyle("#StudentLoan", "images/enter1-3.png"); + } else { + notCompleteStyle("#StudentLoan", "images/enter2-3.png"); + } + if (data["StuInfoFreshEntity"].OnsitePayFeeStatus == "1") { + completeStyle("#OnsitePayFeeStatus", "images/enter1-4.png"); + } else { + notCompleteStyle("#OnsitePayFeeStatus", "images/enter2-4.png"); + } + if (data["StuInfoFreshEntity"].RegisterStatus == "1") { + completeStyle("#RegisterStatus", "images/enter1-5.png"); + } else { + notCompleteStyle("#RegisterStatus", "images/enter2-5.png"); + } + page.bind($page); learun.layer.loading(false); } }); - // + //点击步骤 $page.on('tap', '#IsCompleteInfo', function () { - learun.nav.go({ path: 'welcome', title: 'Ϣ', isBack: true, isHead: true, param: {}, type: 'right' }); + learun.nav.go({ path: 'welcome', title: '完善新生信息', isBack: true, isHead: true, param: {}, type: 'right' }); }); $page.on('tap', '#RegisterStatus', function () { - learun.nav.go({ path: '/EducationalAdministration/StuInfoFresh/RegisterQRCode', title: 'ɱά', isBack: true, isHead: true, param: {}, type: 'right' }); + learun.nav.go({ path: '/EducationalAdministration/StuInfoFresh/RegisterQRCode', title: '生成报到二维码', isBack: true, isHead: true, param: {}, type: 'right' }); }); $page.on('tap', '#StudentLoan', function () { - learun.nav.go({ path: '/EducationalAdministration/StuInfoFresh/StudentLoan', title: 'дִ', isBack: true, isHead: true, param: {}, type: 'right' }); + learun.nav.go({ path: '/EducationalAdministration/StuInfoFresh/StudentLoan', title: '填写贷款回执码', isBack: true, isHead: true, param: {}, type: 'right' }); }); }, @@ -65,16 +61,16 @@ } }; - //ʽ + //已完成样式 var completeStyle = function (box, img) { $(box).removeClass("sSec1Type2").addClass("sSec1Type1"); - $(box).find(".sSec1State").html(""); + $(box).find(".sSec1State").html('已完成'); $(box).find('img').attr("src", img); }; - //ʽ + //未完成样式 var notCompleteStyle = function (box, img) { $(box).removeClass("sSec1Type1").addClass("sSec1Type2"); - $(box).find(".sSec1State").html("δ"); + $(box).find(".sSec1State").html('未完成'); $(box).find('img').attr("src", img); }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/studentSee/studentSee.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/studentSee/studentSee.js index 063f7e75a..8d9290718 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/studentSee/studentSee.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/studentSee/studentSee.js @@ -23,6 +23,7 @@ isScroll: false, init: function ($page) { //获取学年学期列表 + learun.layer.loading(true, '获取数据中'); learun.httpget(config.webapi + "scoreSearch/academicAndSemesterList", {}, (data) => { if (data == null || data.length <= 0) { $('.studSeeSec2 .studSeeSec2Top').hide(); @@ -41,6 +42,8 @@ studentSeeAjax(res.value) } }); + + learun.layer.loading(false); }); } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/timeTable/form/form.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/timeTable/form/form.js index d364dc515..f25753c3b 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/timeTable/form/form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/timeTable/form/form.js @@ -71,7 +71,7 @@ // } // }); // } - // }, 'Learun敏捷框架提示', ['取消', '确定']); + // }, '智慧校园提示', ['取消', '确定']); // } // } // ], diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/welcome/welcome.css b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/welcome/welcome.css index 77c7b1d75..e457854ed 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/welcome/welcome.css +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/welcome/welcome.css @@ -113,9 +113,12 @@ margin: 10px auto; cursor: pointer; } - +.welImgAdd{ + min-height:110px; +} #PhotoImg { width: 110px; + height:110px; } .btnBox{ diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/welcome/welcome.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/welcome/welcome.js index 2ae8eeea3..02242c932 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/welcome/welcome.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/welcome/welcome.js @@ -5,6 +5,8 @@ var page = { isScroll: false, init: function ($page) { + // 获取登录者信息 + var userinfo = learun.storage.get('userinfo'); //增加联系人 $page.find('.welT i').on('tap', function () { @@ -90,8 +92,10 @@ inputNode.on('change', function () { previewFile(); }); + //数据绑定 - learun.httpget(config.webapi + "StuInfoFresh/stuInfoFreshEntity", {}, (data) => { + learun.layer.loading(true, '获取数据中'); + learun.httpget(config.webapi + "StuInfoFresh/stuInfoFreshEntity", userinfo.baseinfo.account, (data) => { if (data) { //基本信息 for (var id in data['StuInfoFreshEntity']) { @@ -185,7 +189,7 @@ }); page.bind($page); - + learun.layer.loading(false); } @@ -202,7 +206,9 @@ StuInfoFreshFamilyEntities: family(), StuInfoFreshEmergePeopleEntities: emergePeople() }; + learun.layer.loading(true, '正在提交数据'); learun.httpget(config.webapi + "StuInfoFresh/saveStuInfoFresh", postdata, (data) => { + learun.layer.loading(false); if (data) { learun.layer.toast('保存成功'); location.reload(); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/workspace/_sgbak/workspace.html.26696.2.2019-09-23.15-42-49.7910 b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/workspace/_sgbak/workspace.html.26696.2.2019-09-23.15-42-49.7910 deleted file mode 100644 index 1b96ccbcc..000000000 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/workspace/_sgbak/workspace.html.26696.2.2019-09-23.15-42-49.7910 +++ /dev/null @@ -1,414 +0,0 @@ - -
-
- - -
-
-
-
- 更多 -
-
-
-
-
-
-
\ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/workspace/_sgbak/workspace.html.49721.13.2020-01-09.14-19-29.6038 b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/workspace/_sgbak/workspace.html.49721.13.2020-01-09.14-19-29.6038 deleted file mode 100644 index 295aab975..000000000 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/workspace/_sgbak/workspace.html.49721.13.2020-01-09.14-19-29.6038 +++ /dev/null @@ -1,465 +0,0 @@ - -
-
- - -
-
-
-
- 更多 -
-
-
-
-
-
-
\ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/workspace/_sgbak/workspace.html.49721.13.2020-01-15.16-31-23.1336 b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/workspace/_sgbak/workspace.html.49721.13.2020-01-15.16-31-23.1336 deleted file mode 100644 index 295aab975..000000000 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/workspace/_sgbak/workspace.html.49721.13.2020-01-15.16-31-23.1336 +++ /dev/null @@ -1,465 +0,0 @@ - -
-
- - -
-
-
-
- 更多 -
-
-
-
-
-
-
\ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/workspace/workspace.html b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/workspace/workspace.html index eaa8a1390..f7d954142 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/workspace/workspace.html +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/workspace/workspace.html @@ -217,6 +217,10 @@ var page = { init: function ($page) { + //主被动修改密码判断 + if (learun.storage.get('pwd') === true) { + learun.nav.go({ path: 'my/modifypassword', isBack: false, isHead: true, title:'修改密码' }); + } var _html = ''; // _html += '
'; // _html += ''; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/workspace/workspace.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/workspace/workspace.js index 530662f21..5431f8df3 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/workspace/workspace.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/workspace/workspace.js @@ -6,6 +6,7 @@ var page = { init: function ($page) { + var _html = ''; _html += '
'; _html += ''; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/scripts/_sgbak/learun-custmerform.js.26692.2.2020-08-04.14-24-39.5824 b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/scripts/_sgbak/learun-custmerform.js.26692.2.2020-08-04.14-24-39.5824 deleted file mode 100644 index e92414898..000000000 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/scripts/_sgbak/learun-custmerform.js.26692.2.2020-08-04.14-24-39.5824 +++ /dev/null @@ -1,838 +0,0 @@ -/* - * 版 本 Learun-ADMS V7.0.0 数字化智慧校园(http://www.learun.cn) - * Copyright (c) 2013-2017 北京泉江科技有限公司 - * 创建人:数字化智慧校园-前端开发组 - * 日 期:2018.7.12 - * 描 述:数字化智慧校园移动端框架(ADMS) 自定义表单 - */ - -(function ($, learun, window) { - // 加载自定义表单模板 - learun.custmerform = { - loadScheme: function (schemeIds, callback) {// formIds表单主键集合,callback回调函数 - if (learun.type(schemeIds) === 'string') { - schemeIds = [schemeIds]; - } - - var req = []; - var scheme = {}; - $.each(schemeIds, function (_index, _item) { - var formId = 'lrform' + _item; - var formScheme = learun.storage.get(formId);// 从缓存中获取表单模板数据 - if (!formScheme) { - req.push({ id: _item, ver: "" }); - } - else { - scheme[_item] = JSON.parse(formScheme.content); - req.push({ id: _item, ver: formScheme.ver }); - } - }); - // 加载自定义表单模板 - learun.httpget(config.webapi + "learun/adms/form/scheme", req, (data) => { - if (data) { - $.each(data, function (_index, _item) { - scheme[_index] = JSON.parse(_item.F_Scheme); - var formScheme = { ver: _item.F_Id, content: _item.F_Scheme }; - learun.storage.set('lrform' + _index,formScheme); - }); - } - callback(scheme); - }); - } - }; - // 自定义表单初始化 - $.fn.custmerform = function (formScheme) { - var $this = $(this); - $this.scroll(); - var $container = $this.find('.f-scroll'); - - $.each(formScheme, function (_id, _scheme) { - custmerformRender($container, _scheme.data, _id); - }); - $this = null; - $container = null; - }; - // 获取自定义表单数据 - $.fn.custmerformGet = function () { - var res = {}; - var validateflag = true; - $(this).find('.lrcomponts').each(function () { - var $this = $(this); - var schemeInfoId = $this.attr('data-id'); - var _componts = $this[0].componts; - res[schemeInfoId] = res[schemeInfoId] || {}; - // 遍历自定义表单控件 - $.each(_componts, function (_index, _item) { - var _fn = componts[_item.type].get; - if (_fn) { - var compontData = _fn(_item, $this); - if (compontData.isHad) { - if (_item.verify) { - var checkfn = window.fui.validator['is' + _item.verify]; - var r = checkfn(compontData.value); - if (!r.code) { - validateflag = false; - window.fui.dialog({ msg: r.msg }); - return false; - } - } - res[schemeInfoId][_item.id] = compontData.value; - } - } - }); - $this = null; - if (!validateflag) { - return false; - } - }); - if (!validateflag) { - return null; - } - return res; - }; - // 设置自定义表单数据 - $.fn.custmerformSet = function (data) { - var $this = $(this); - function set($this, data) { - if ($this.find('.lrcomponts').length > 0) { - $this.find('.lrcomponts').each(function () { - var $this = $(this); - var schemeInfoId = $this.attr('data-id'); - var _componts = $this[0].componts; - var _data = {}; - $.each(data[schemeInfoId] || [], function (_index, _item) { - $.each(_item[0] || [], function (_id, _jitem) { - _data[_index.toLowerCase() + _id] = _jitem; - }); - }); - // 遍历自定义表单控件 - $.each(_componts, function (_index, _item) { - var _fn = componts[_item.type].set; - if (_fn) { - if (_item.table && _item.field) { - _fn(_item, _data[(_item.table + _item.field).toLowerCase()], $this); - } - else if (_item.table){// 表格 - _fn(_item, data[schemeInfoId][_item.table], $this); - } - } - }); - $this = null; - }); - } - else { - setTimeout(function () { - set($this, data); - }, 100); - } - } - set($this, data); - }; - - function getFontHtml(verify) { - var res = ""; - switch (verify) { - case "NotNull": - case "Num": - case "Email": - case "EnglishStr": - case "Phone": - case "Fax": - case "Mobile": - case "MobileOrPhone": - case "Uri": - res = '*'; - break; - } - return res; - } - function loadCheck(data, text, value, compontId) { - var $row = $('#' + compontId); - if ($row.length === 0) { - setTimeout(function () { - loadCheck(data, text, value, compontId); - }, 100); - } - else { - var $Last = $row; - $.each(data, function (_index, _item) { - $div = $('
'); - $Last.after($div); - $div.find('.checkbox').lrswitch(); - $Last = $div; - $div = null; - }); - if ($Last) { - $Last.after('
'); - $Last = null; - } - } - $row = null; - } - function organizeRegister1(_compont) { - if ($('#' + _compont.relation).length > 0) { - $('#' + _compont.relation).on('change', { myId: _compont.id }, function (e) { - e = e || window.event; - var myId = e.data.myId; - var value = $(this).lrselectGet(); - $('#' + myId).lrselectUpdate({ - companyId: value, - needPre: value === '' ? true : false - }); - }); - } - else { - setTimeout(function () { organizeRegister1(_compont); }, 100); - } - } - function organizeRegister2(_compont) { - if ($('#' + _compont.relation).length > 0) { - $('#' + _compont.relation).on('change', { myId: _compont.id }, function (e) { - e = e || window.event; - var myId = e.data.myId; - var value = $(this).lrselectGet(); - $('#' + myId).lrselectUpdate({ - departmentId: value, - needPre: value === '' ? true : false - }); - }); - } - else { - setTimeout(function () { organizeRegister2(_compont); }, 100); - } - } - - function loadGridComponts(compont) { - } - function loadGridButton(compont) {// 编辑表格增加按钮 - var $row = $('#' + compont.id); - if ($row.length === 0) { - setTimeout(function () { - loadGridButton(compont); - }, 100); - } - else { - var $btn = $('
增加' + (compont.title || '') + '
'); - $btn[0].compont = compont; - - $btn.on('tap', { compont: compont }, function (e) { - e = e || window.event; - }); - - $row.after($btn); - } - $row = null; - } - - // 渲染自定义表单 - function custmerformRender($container, scheme, schemeInfoId) { - var loaddataComponts = []; - $.each(scheme, function (_index, _item) { - var $list = $('
'); - $list[0].componts = _item.componts; - $.each(_item.componts, function (_jindex, _jitem) { - var $row = $('
'); - if (componts[_jitem.type].render($row, _jitem)) { - $list.append($row); - $row.prepend(getFontHtml(_jitem.verify)); - } - }); - $container.append($list); - }); - - $container = null; - } - - var componts = { - label: { - render: function ($row, compont) { - $row.addClass('lr-form-row-title'); - return true; - } - }, - html: { - render: function ($row, compont) { - return false; - } - }, - text: { - render: function ($row, compont) { - var $compont = $(''); - $row.append($compont); - $compont.val(compont.dfvalue || ''); - - $compont = null; - $row = null; - if (compont.isHide === '1') { - return false; - } - - return true; - }, - get: function (compont, $container) { - var res = {}; - var $compont = $container.find('#' + compont.id); - res.isHad = $compont.length > 0 ? true : false; - if (res.isHad) { - res.value = $compont.val(); - } - $compont = null; - return res; - }, - set: function (compont, value, $container) { - $container.find('#' + compont.id).val(value || ''); - } - }, - textarea: { - render: function ($row, compont) { - $row.addClass('lr-form-row-multi'); - var $compont = $(''); - $compont.text(compont.dfvalue || ''); - $row.append($compont); - $compont = null; - $row = null; - return true; - }, - get: function (compont, $container) { - var res = {}; - var $compont = $container.find('#' + compont.id); - res.isHad = $compont.length > 0 ? true : false; - if (res.isHad) { - res.value = $compont.val(); - } - $compont = null; - return res; - }, - set: function (compont, value, $container) { - $container.find('#' + compont.id).val(value || ''); - } - }, - texteditor: { - render: function ($row, compont) { - $row.addClass('lr-form-row-multi'); - var $compont = $(''); - $compont.text(compont.dfvalue || ''); - $row.append($compont); - $compont = null; - $row = null; - return true; - }, - get: function (compont, $container) { - var res = {}; - var $compont = $container.find('#' + compont.id); - res.isHad = $compont.length > 0 ? true : false; - if (res.isHad) { - res.value = $compont.val(); - } - $compont = null; - return res; - }, - set: function (compont, value, $container) { - $container.find('#' + compont.id).val(value || ''); - } - }, - radio: { - render: function ($row, compont) {// 单选改用和下拉一致 - var $compont = $('
'); - $row.append($compont); - if (compont.dataSource === '0') { - $compont.lrpickerex({ - code: compont.itemCode, - type: 'dataItem' - }); - } else { - var vlist = compont.dataSourceId.split(','); - $compont.lrpickerex({ - code: vlist[0], - type: 'sourceData', - ivalue: vlist[2], - itext: vlist[1] - }); - } - - $compont = null; - $row = null; - return true; - }, - get: function (compont, $container) { - var res = {}; - var $compont = $container.find('#' + compont.id); - res.isHad = $compont.length > 0 ? true : false; - if (res.isHad) { - res.value = $compont.lrpickerGet(); - } - $compont = null; - return res; - }, - set: function (compont, value, $container) { - $container.find('#' + compont.id).lrpickerSet(value); - } - }, - checkbox: { - render: function ($row, compont) { - var $compont = $('
'); - $row.append($compont); - if (compont.dataSource === '0') { - $compont.lrcheckboxex({ - code: compont.itemCode, - type: 'dataItem' - }); - } else { - var vlist = compont.dataSourceId.split(','); - $compont.lrcheckboxex({ - code: vlist[0], - type: 'sourceData', - ivalue: vlist[2], - itext: vlist[1] - }); - } - - $compont = null; - $row = null; - return true; - }, - get: function (compont, $container) { - var res = {}; - var $compont = $container.find('#' + compont.id); - res.isHad = $compont.length > 0 ? true : false; - if (res.isHad) { - res.value = $compont.lrcheckboxGet(); - } - $compont = null; - return res; - }, - set: function (compont, value, $container) { - $container.find('#' + compont.id).lrcheckboxSet(value); - } - }, - select: { - render: function ($row, compont) {// - var $compont = $('
'); - $row.append($compont); - if (compont.dataSource === '0') { - $compont.lrpickerex({ - code: compont.itemCode, - type: 'dataItem' - }); - } else { - var vlist = compont.dataSourceId.split(','); - $compont.lrpickerex({ - code: vlist[0], - type: 'sourceData', - ivalue: vlist[2], - itext: vlist[1] - }); - } - - $compont = null; - $row = null; - return true; - }, - get: function (compont, $container) { - var res = {}; - var $compont = $container.find('#' + compont.id); - res.isHad = $compont.length > 0 ? true : false; - if (res.isHad) { - res.value = $compont.lrpickerGet(); - } - $compont = null; - return res; - }, - set: function (compont, value, $container) { - $container.find('#' + compont.id).lrpickerSet(value); - } - }, - datetime: { - render: function ($row, compont) {// - var $compont = $('
'); - $row.append($compont); - if (compont.dateformat === '0') { - $compont.lrdate({ - type: 'date' - }); - } - else { - $compont.lrdate(); - } - $compont = null; - $row = null; - return true; - }, - get: function (compont, $container) { - var res = {}; - var $compont = $container.find('#' + compont.id); - res.isHad = $compont.length > 0 ? true : false; - if (res.isHad) { - res.value = $compont.lrdateGet(); - } - $compont = null; - return res; - }, - set: function (compont, value, $container) { - if (compont.dateformat === '0') { - value = learun.date.format(value, 'yyyy-MM-dd'); - } - else { - value = learun.date.format(value, 'yyyy-MM-dd hh:mm'); - } - - $container.find('#' + compont.id).lrdateSet(value); - } - }, - datetimerange: { - render: function ($row, compont) {// - var $compont = $(''); - function register(_compont) { - if ($('#' + _compont.startTime).length > 0 && $('#' + _compont.endTime).length > 0) { - $('#' + _compont.startTime).on('change', { myId: _compont.id, end: _compont.endTime }, function (e) { - e = e || window.event; - var end = e.data.end; - var myId = e.data.myId; - var st = $(this).lrdateGet(); - var et = $('#' + end).lrdateGet(); - if (!!st && !!et) { - var diff = learun.date.parse(st).DateDiff('d', et) + 1; - $('#' + myId).val(diff); - } - }); - $('#' + _compont.endTime).on('change', { myId: _compont.id, begin: _compont.startTime }, function (e) { - e = e || window.event; - var begin = e.data.begin; - var myId = e.data.myId; - - var st = $('#' + begin).lrdateGet(); - var et = $(this).lrdateGet(); - if (!!st && !!et) { - var diff = learun.date.parse(st).DateDiff('d', et) + 1; - $('#' + myId).val(diff); - } - }); - } - else { - setTimeout(function () { - register(_compont); - }, 100); - } - } - if (!!compont.startTime && compont.endTime) { - register(compont); - } - $row.append($compont); - $compont = null; - $row = null; - return true; - }, - get: function (compont, $container) { - var res = {}; - var $compont = $container.find('#' + compont.id); - res.isHad = $compont.length > 0 ? true : false; - if (res.isHad) { - res.value = $compont.val(); - } - $compont = null; - return res; - }, - set: function (compont, value, $container) { - $container.find('#' + compont.id).val(value); - } - }, - encode: { - render: function ($row, compont) { - var $compont = $(''); - compont.isInit = false; - learun.getRuleCode(compont.rulecode, function (data) { - if (!compont.isInit) { - compont.isInit = true; - $('#' + compont.id).val(data); - } - }); - $row.append($compont); - $compont = null; - $row = null; - return true; - }, - get: function (compont, $container) { - var res = {}; - var $compont = $container.find('#' + compont.id); - res.isHad = $compont.length > 0 ? true : false; - if (res.isHad) { - res.value = $compont.val(); - } - $compont = null; - return res; - }, - set: function (compont, value, $container) { - compont.isInit = true; - $container.find('#' + compont.id).val(value); - } - }, - organize: { - render: function ($row, compont) { - var $compont = $('
'); - $row.append($compont); - switch (compont.dataType) { - case "company"://公司 - $compont.lrselect(); - break; - case "department"://部门 - $compont.lrselect({ - type: 'department', - needPre: compont.relation === '' ? false : true - }); - - organizeRegister1(compont); - break; - case "user"://用户 - $compont.lrselect({ - type: 'user', - needPre: compont.relation === '' ? false : true - }); - organizeRegister2(compont); - break; - } - $compont = null; - $row = null; - return true; - }, - get: function (compont, $container) { - var res = {}; - var $compont = $container.find('#' + compont.id); - res.isHad = $compont.length > 0 ? true : false; - if (res.isHad) { - res.value = $compont.lrselectGet(); - } - $compont = null; - return res; - }, - set: function (compont, value, $container) { - $container.find('#' + compont.id).lrselectSet(value); - } - }, - currentInfo: { - render: function ($row, compont) { - var $compont = $(''); - var userinfo = learun.storage.get('userinfo'); - switch (compont.dataType) { - case 'company': - compont.value = userinfo.baseinfo.companyId; - if (compont.isHide !== '1') { - learun.clientdata.get('company', { - key: compont.value, - compont: compont, - callback: function (item, _op) { - if (!_op.compont.isEdit) { - $(_op.compont.id).val(item.name); - } - } - }); - } - break; - case 'department': - compont.value = userinfo.baseinfo.departmentId; - if (compont.isHide !== '1') { - learun.clientdata.get('department', { - key: compont.value, - compont: compont, - callback: function (item, _op) { - if (!_op.compont.isEdit) { - $(_op.compont.id).val(item.name); - } - } - }); - } - break; - case 'user': - $compont.val(userinfo.baseinfo.realName); - compont.value = userinfo.baseinfo.userId; - break; - case 'time': - compont.value = learun.date.format(new Date(), 'yyyy-MM-dd hh:mm:ss'); - $compont.val(compont.value); - break; - case 'guid': - compont.value = learun.guid(); - $compont.val(compont.value); - break; - } - if (compont.isHide === '1') { - $compont = null; - $row = null; - return false; - } - else { - $row.append($compont); - $compont = null; - $row = null; - } - return true; - }, - get: function (compont, $container) { - var res = {}; - var $compont = $container.find('#' + compont.id); - res.isHad = $compont.length > 0 ? true : false; - if (res.isHad) { - res.value = compont.value; - } - $compont = null; - return res; - }, - set: function (compont, value, $container) { - if (value) { - var organization = learun.storage.get('organization'); - compont.isEdit = true; - switch (compont.dataType) { - case 'company': - compont.value = value; - if (compont.isHide !== '1') { - learun.clientdata.get('company', { - key: compont.value, - compont: compont, - callback: function (item, _op) { - $container.find('#' + _op.compont.id).val(item.name || ''); - } - }); - } - break; - case 'department': - compont.value = value; - if (compont.isHide !== '1') { - learun.clientdata.get('department', { - key: compont.value, - compont: compont, - callback: function (item, _op) { - $container.find('#' + _op.compont.id).val(item.name || ''); - } - }); - } - break; - case 'user': - compont.value = value; - if (compont.isHide !== '1') { - learun.clientdata.get('user', { - key: compont.value, - compont: compont, - callback: function (item, _op) { - $container.find('#' + _op.compont.id).val(item.name || ''); - } - }); - } - break; - case 'time': - compont.value = value; - if (compont.isHide !== '1') { - $container.find('#' + compont.id).val(value); - } - break; - case 'guid': - compont.value = value; - if (compont.isHide !== '1') { - $container.find('#' + compont.id).val(value); - } - break; - } - } - } - }, - guid: { - render: function ($row, compont) { - compont.value = learun.guid(); - $row.remove(); - return false; - }, - get: function (compont) { - var res = {}; - res.isHad = true; - res.value = compont.value; - return res; - }, - set: function (compont, value) { - compont.value = value; - } - }, - upload: { - render: function ($row, compont) { - $row.addClass('lr-form-row-multi'); - var $compont = $('
'); - $row.append($compont); - $compont.lrImagepicker(); - $compont = null; - $row = null; - return true; - }, - get: function (compont, $container) { - var res = {}; - var $compont = $container.find('#' + compont.id); - res.isHad = $compont.length > 0 ? true : false; - if (res.isHad) { - res.value = $compont.imagepickerGet(); - } - $compont = null; - return res; - }, - set: function (compont, value, $container) { - $container.find('#' + compont.id).imagepickerSet(value); - } - }, - girdtable: { - render: function ($row, compont) { - var gridCompont = []; - $.each(compont.fieldsData, function (_index, _item) { - if (_item.field) { - switch (_item.type) { - case 'radio': - case 'select': - case 'checkbox': - if (_item.dataSource === '0') { - _item.code = _item.itemCode; - _item.datatype = 'dataItem'; - } - else { - _item.code = _item.dataSourceId; - _item.ivalue = _item.saveField; - _item.itext = _item.showField; - _item.datatype = 'sourceData'; - } - break; - case 'layer': - if (_item.dataSource === '0') { - _item.code = _item.itemCode; - _item.datatype = 'dataItem'; - } - else { - _item.code = _item.dataSourceId; - _item.datatype = 'sourceData'; - } - break; - } - - - gridCompont.push(_item); - } - }); - $row.attr('id', compont.id); - $row.lrgrid({ - title: compont.title, - componts: gridCompont, - isToLowerCase: true - }); - $row = null; - return true; - }, - get: function (compont, $container) { - var res = {}; - var $compont = $container.find('#' + compont.id); - res.isHad = $compont.length > 0 ? true : false; - if (res.isHad) { - res.value = $compont.lrgridGet(); - } - $compont = null; - return res; - }, - set: function (compont, value, $container) { - $container.find('#' + compont.id).lrgridSet(value); - } - } - }; - -})(window.jQuery, window.lrmui, window); - diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/scripts/weixinlogin.js b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/scripts/weixinlogin.js index 3a453d948..25040bdd0 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/scripts/weixinlogin.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/scripts/weixinlogin.js @@ -29,6 +29,7 @@ $(".login-content").show(); $("#accountopenid").val(res.data.openid); $("#loginBtn").on("click", function () { + var up = true; var account = $('#account').val(); var password = $('#password').val(); if (account === "") { @@ -36,10 +37,15 @@ } else if (password === "") { learun.layer.warning('密码不能为空!', function () { }, '提示', '关闭'); } else { + var reg = /^(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#$%^&*,\.])[0-9a-zA-Z!@#$%^&*,\.]{8,20}$/; + if (!reg.test(password)) { + up = false; + } var data = { username: account, password: $.md5(password), - openid: $("#accountopenid").val() + openid: $("#accountopenid").val(), + up: up }; var postdata = { token: '', @@ -55,7 +61,6 @@ return; } if (res.code === 200) { - console.log(res); var logininfo = { account: account, token: res.data.baseinfo.token, @@ -65,6 +70,12 @@ learun.storage.set('userinfo', res.data); $('#account').val(''); $('#password').val(''); + if (res.data.pwd === true) { + learun.storage.set('pwd', true); + learun.layer.warning("绑定失败!您的密码不满足强度要求,请您先修改密码后再执行系统其他操作"); + } else { + learun.storage.set('pwd', false); + } location.href = "http://" + window.location.host; } else { learun.layer.warning(res.info, function () { }, '提示', '关闭'); @@ -74,7 +85,6 @@ }); } } else { - console.log(res.info); learun.layer.warning(res.info); location.href = "http://" + window.location.host; } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuInfoFreshController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuInfoFreshController.cs index 2593a693c..a798f7167 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuInfoFreshController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuInfoFreshController.cs @@ -566,6 +566,19 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers stuInfoFreshIBLL.IsOtherPayFee(keyValue, status); return Success("操作成功"); } + + /// + ///审核助学贷款 + /// + /// + [HttpPost] + [AjaxOnly] + public ActionResult DoCheckLoan(string keyValue, string status) + { + stuInfoFreshIBLL.DoCheckLoan(keyValue, status); + return Success("操作成功"); + } + /// /// 获取新生缴费明细 /// diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuScoreController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuScoreController.cs index 079358e44..da79f58f3 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuScoreController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuScoreController.cs @@ -163,7 +163,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers return View(); } - + /// /// 学生成绩录入可去审核页面 @@ -640,9 +640,9 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers StuId = x.Key.StuId, StuNo = x.Key.StuNo, StuName = x.Key.StuName, - FinishSchoolMark=stuData.FirstOrDefault(a=>a.StuNo==x.Key.StuNo)?.FinishSchoolMark, + FinishSchoolMark = stuData.FirstOrDefault(a => a.StuNo == x.Key.StuNo)?.FinishSchoolMark, TotalScore = x.Select(y => y.Score).Sum(), - LessonInfo = x.Select(y => new { y.LessonNo, y.LessonName, y.Score }).OrderBy(y => y.LessonNo) + LessonInfo = x.Select(y => new { y.LessonNo, y.LessonName, y.Score, y.ScoreFormat }).OrderBy(y => y.LessonNo) }).OrderByDescending(x => x.TotalScore); var result = new List>(); @@ -656,7 +656,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers aaa.Add("TotalScore", item.TotalScore.ToString()); foreach (var lessonInfoItem in item.LessonInfo) { - aaa.Add(lessonInfoItem.LessonNo, lessonInfoItem.Score.ToString()); + aaa.Add(lessonInfoItem.LessonNo, lessonInfoItem.ScoreFormat); } result.Add(aaa); @@ -678,8 +678,8 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers StuNo = x.Key.StuNo, StuName = x.Key.StuName, FinishSchoolMark = stuData.FirstOrDefault(a => a.StuNo == x.Key.StuNo)?.FinishSchoolMark, - TotalScore = x.Where(m=>m.LessonSortNo=="1").Select(y => y.Score).Sum(), - LessonInfo = x.Select(y => new { y.LessonNo, y.LessonName, y.Score }).OrderBy(y => y.LessonNo) + TotalScore = x.Where(m => m.LessonSortNo == "1").Select(y => y.Score).Sum(), + LessonInfo = x.Select(y => new { y.LessonNo, y.LessonName, y.Score, y.ScoreFormat }).OrderBy(y => y.LessonNo) }).OrderByDescending(x => x.TotalScore); var result = new List>(); @@ -693,7 +693,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers aaa.Add("TotalScore", item.TotalScore.ToString()); foreach (var lessonInfoItem in item.LessonInfo) { - aaa.Add(lessonInfoItem.LessonNo, lessonInfoItem.Score.ToString()); + aaa.Add(lessonInfoItem.LessonNo, lessonInfoItem.ScoreFormat); } result.Add(aaa); @@ -739,7 +739,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers StuNo = x.Key.StuNo, StuName = x.Key.StuName, TotalScore = x.Select(y => y.Score).Sum(), - LessonInfo = x.Select(y => new { y.LessonNo, y.LessonName, y.Score }).OrderBy(y => y.LessonNo) + LessonInfo = x.Select(y => new { y.LessonNo, y.LessonName, y.Score, y.ScoreFormat }).OrderBy(y => y.LessonNo) }).OrderByDescending(x => x.TotalScore); var result = new List>(); foreach (var item in aa) @@ -750,7 +750,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers aaa.Add("TotalScore", item.TotalScore.ToString()); foreach (var lessonInfoItem in item.LessonInfo) { - aaa.Add(lessonInfoItem.LessonNo, lessonInfoItem.Score.ToString()); + aaa.Add(lessonInfoItem.LessonNo, lessonInfoItem.ScoreFormat); } result.Add(aaa); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/Sys_ReceiveDocumentController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/Sys_ReceiveDocumentController.cs index dfccbb604..d0c5e2dbd 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/Sys_ReceiveDocumentController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/Sys_ReceiveDocumentController.cs @@ -47,6 +47,25 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers { return View(); } + /// + /// 指派人列表 + /// + /// + [HttpGet] + public ActionResult IssueForm() + { + return View(); + } + + /// + /// 阅读详情 + /// + /// + [HttpGet] + public ActionResult ReadList() + { + return View(); + } #endregion #region 获取数据 @@ -118,6 +137,23 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers return Success("删除成功!"); } /// + /// 结束下发 + /// 主键 + /// + /// + [HttpPost] + [AjaxOnly] + public ActionResult OverIssue(string keyValue) + { + var entity = sYS_ReceiveDocumentIBLL.GetSys_ReceiveDocumentEntity(keyValue); + if (null != entity) + { + entity.RSendFlag = "4"; + sYS_ReceiveDocumentIBLL.SaveEntity(keyValue, entity); + } + return Success("操作成功!"); + } + /// /// 保存实体数据(新增、修改) /// 主键 /// diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/Sys_ReceiveFileController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/Sys_ReceiveFileController.cs index 5c4796165..84f5a5c1d 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/Sys_ReceiveFileController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/Sys_ReceiveFileController.cs @@ -62,6 +62,15 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers return View(); } /// + /// 主页面【党政公文查阅】 + /// + /// + [HttpGet] + public ActionResult IndexGWJS() + { + return View(); + } + /// /// 表单页 /// /// @@ -100,38 +109,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers public ActionResult GetPageList(string pagination, string queryJson) { Pagination paginationobj = pagination.ToObject(); - var data = sys_ReceiveFileIBLL.GetPageList(paginationobj, queryJson).Where(m => m.STypeId == 1); - var jsonData = new - { - rows = data, - total = paginationobj.total, - page = paginationobj.page, - records = paginationobj.records - }; - return Success(jsonData); - } - - [HttpGet] - [AjaxOnly] - public ActionResult GetPageListDocument(string pagination, string queryJson) - { - Pagination paginationobj = pagination.ToObject(); - var data = sys_ReceiveFileIBLL.GetPageList(paginationobj, queryJson).Where(m => m.STypeId == 2); - var jsonData = new - { - rows = data, - total = paginationobj.total, - page = paginationobj.page, - records = paginationobj.records - }; - return Success(jsonData); - } - [HttpGet] - [AjaxOnly] - public ActionResult GetPageListParty(string pagination, string queryJson) - { - Pagination paginationobj = pagination.ToObject(); - var data = sys_ReceiveFileIBLL.GetPageList(paginationobj, queryJson).Where(m => m.STypeId == 3); + var data = sys_ReceiveFileIBLL.GetPageList(paginationobj, queryJson); var jsonData = new { rows = data, @@ -236,6 +214,22 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers sys_ReceiveFileIBLL.Issue(entity); return Success("保存成功!"); } + + + /// + /// 公文接收 下发指定接收人 + /// 主键 + /// + /// + [HttpPost] + [ValidateAntiForgeryToken] + [AjaxOnly] + public ActionResult ReceiveDocumentIssue(string strEntity) + { + Sys_IssueEntity entity = strEntity.ToObject(); + sys_ReceiveFileIBLL.ReceiveDocumentIssue(entity); + return Success("保存成功!"); + } /// /// 查看实体数据 /// 主键 diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/Index.cshtml index 9827a3d2f..ae9fa5fa9 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/Index.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/Index.cshtml @@ -9,6 +9,7 @@
+
 查询 diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/Index.js index cf5a19ef2..296d47d15 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/Index.js @@ -17,7 +17,8 @@ var bootstrap = function ($, learun) { // 查询 $('#btn_Search').on('click', function () { var keyword = $('#txt_Keyword').val(); - page.search({ keyword: keyword }); + var Grade = $('#Grade').val(); + page.search({ keyword: keyword, Grade: Grade }); }); // 刷新 $('#lr_refresh').on('click', function () { @@ -172,6 +173,7 @@ var bootstrap = function ($, learun) { { label: '考生号', name: 'ksh', width: 150, align: "left" }, { label: '准考证号', name: 'zkzh', width: 150, align: "left" }, { label: '学号', name: 'StuNo', width: 100, align: "left" }, + { label: '年级', name: 'Grade', width: 100, align: "left" }, { label: '姓名', name: 'StuName', width: 100, align: "left" }, { label: '是否完善信息', name: 'ID', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/PayFeeIndex.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/PayFeeIndex.cshtml index ee697bc2a..c0c4fb108 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/PayFeeIndex.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/PayFeeIndex.cshtml @@ -26,6 +26,8 @@  线上缴费  取消线上缴费  填写贷款回执码 +  审核助学贷款 +  去审核助学贷款  现场缴费  其他费用缴费  取消其他费用缴费 diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/PayFeeIndex.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/PayFeeIndex.js index afd6ed3c0..5f61b0722 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/PayFeeIndex.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/PayFeeIndex.js @@ -89,11 +89,15 @@ var bootstrap = function ($, learun) { }); } }); - // 助学贷款 + // 填写贷款回执码 $('#lr_loan').on('click', function () { var keyValue = $('#gridtable').jfGridValue('ID'); selectedRow = $('#gridtable').jfGridGet('rowdata'); if (learun.checkrow(keyValue)) { + if (selectedRow.StudentLoanStatus == "1") { + learun.alert.warning("当前新生助学贷款已审核!"); + return; + } learun.layerForm({ id: 'loanForm', title: '助学贷款', @@ -106,6 +110,47 @@ var bootstrap = function ($, learun) { }); } }); + // 审核助学贷款 + $('#lr_checkLoan').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('ID'); + selectedRow = $('#gridtable').jfGridGet('rowdata'); + if (learun.checkrow(keyValue)) { + if (selectedRow.StudentLoanStatus == "1") { + learun.alert.warning("当前新生助学贷款已审核!"); + return; + } + if (selectedRow.StudentLoan == null || selectedRow.StudentLoan == "" || selectedRow.StudentLoan == undefined) { + learun.alert.warning("贷款回执码为空!"); + return; + } + + learun.layerConfirm('是否确认审核助学贷款!', function (res) { + if (res) { + learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/DoCheckLoan', { keyValue: keyValue, status: 1 }, function () { + refreshGirdData(); + }); + } + }); + } + }); + // 去审核助学贷款 + $('#lr_uncheckLoan').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('ID'); + selectedRow = $('#gridtable').jfGridGet('rowdata'); + if (learun.checkrow(keyValue)) { + if (selectedRow.StudentLoanStatus != "1") { + learun.alert.warning("当前新生助学贷款未审核!"); + return; + } + learun.layerConfirm('是否确认去审核助学贷款!', function (res) { + if (res) { + learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/DoCheckLoan', { keyValue: keyValue, status: 0 }, function () { + refreshGirdData(); + }); + } + }); + } + }); // 现场缴费 $('#lr_onsitePay').on('click', function () { var keyValue = $('#gridtable').jfGridValue('ID'); @@ -176,6 +221,11 @@ var bootstrap = function ($, learun) { }, { label: '线上缴费时间', name: 'PayFeeDate', width: 130, align: "left" }, { label: '贷款回执码', name: 'StudentLoan', width: 130, align: "left" }, + { + label: '助学贷款状态', name: 'StudentLoanStatus', width: 100, align: "left", formatter: function (value) { + return value == 1 ? "已审核" : "未审核"; + } + }, { label: '现场缴费状态', name: 'OnsitePayFeeStatus', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { learun.clientdata.getAsync('dataItem', { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/Form.cshtml index d46c7c1ee..7b23cf9a0 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/Form.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/Form.cshtml @@ -19,6 +19,11 @@
文件标题
+
+
文件
+
+
+
内容
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/Form.js index ea694e655..8c9c0a3fa 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/Form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/Form.js @@ -26,6 +26,7 @@ var bootstrap = function ($, learun) { page.initData(); }, bind: function () { + $('#RFile').lrUploader(); $('#RReceiveUnit').lrselect({ type: 'tree', allowSearch: true, diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/FormView.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/FormView.cshtml index f4d1d3ca1..3e54c1652 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/FormView.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/FormView.cshtml @@ -19,6 +19,10 @@
文件标题
+
+
文件
+
+
内容
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/FormView.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/FormView.js index bae07a307..0c9471c06 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/FormView.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/FormView.js @@ -32,6 +32,7 @@ var bootstrap = function ($, learun) { url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTree', param: {} }); + $('#RFile').lrUploader(); $('#RUrgencyDegree').lrDataItemSelect({ code: 'UrgencyDegree' }); var RContentUE = UE.getEditor('RContent'); $('#RContent')[0].ue = RContentUE; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/Index.cshtml index 575948b9e..7a8e6875b 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/Index.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/Index.cshtml @@ -37,6 +37,12 @@  删除  提交
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/Index.js index dedd439d4..4bfa68923 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/Index.js @@ -77,6 +77,31 @@ var bootstrap = function ($, learun) { }); } }); + // 查看 + $('#lr_view').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('RID'); + if (learun.checkrow(keyValue)) { + learun.layerForm({ + id: 'form', + title: '查看', + url: top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveDocument/FormView?keyValue=' + keyValue, + width: 800, + height: 600, + callBack: function (id) { + var res = false; + // 验证数据 + res = top[id].validForm(); + // 保存数据 + if (res) { + res = top[id].save('', function () { + page.search(); + }); + } + return res; + } + }); + } + }); // 删除 $('#lr_delete').on('click', function () { var keyValue = $('#gridtable').jfGridValue('RID'); @@ -115,6 +140,64 @@ var bootstrap = function ($, learun) { }); } }); + // 下发审批指定接收人 + $('#lr_IssueSpecifyReceiver').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('RID'); + if (learun.checkrow(keyValue)) { + learun.layerForm({ + id: 'form', + title: '下发审批指定接收人', + url: top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveDocument/IssueForm?keyValue=' + keyValue, + width: 800, + height: 200, + callBack: function (id) { + var res = false; + // 验证数据 + res = top[id].validForm(); + // 保存数据 + if (res) { + res = top[id].save('', function () { + page.search(); + }); + } + return res; + } + }); + } + }); + // 结束下发 + $('#lr_OverIssue').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('RID'); + if (learun.checkrow(keyValue)) { + var SendFlag = $('#gridtable').jfGridValue('RSendFlag'); + if (SendFlag !== 2) { + learun.alert.warning("当前公文未审批通过,请耐心等待审批!"); + return; + } + learun.layerConfirm('是否结束下发!', function (res) { + if (res) { + processId = learun.newGuid(); + learun.postForm(top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveDocument/OverIssue', { keyValue: keyValue, }, function (res) { + refreshGirdData(res, {}); + }); + } + }); + } + }); + // 查阅情况 + $('#lr_read').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('RID'); + if (learun.checkrow(keyValue)) { + learun.layerForm({ + id: 'form', + title: '查阅情况', + url: top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveDocument/ReadList?keyValue=' + keyValue, + width: 850, + height: 400, + btn: null + }); + } + }); }, // 初始化列表 initGird: function () { @@ -146,13 +229,42 @@ var bootstrap = function ($, learun) { } }, { label: "文件标题", name: "RTitle", width: 100, align: "left" }, + { + label: "已接收", name: "ReceiverId", width: 300, align: "left", formatterAsync: + function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('user', + { + key: value, + callback: function (_data) { + if (_data.length > 0) { + var text = ''; + $.each(_data, + function (i, item) { + if (item) { + text += item.name + ','; + } + }); + text = text.substring(0, text.lastIndexOf(',')); + callback(text); + } else { + callback(_data.name); + } + } + }); + } + }, + { label: "审批意见", name: "SpecifyReceiver", width: 300, align: "left" }, { label: "状态", name: "RSendFlag", width: 100, align: "left", formatter: function (cellvalue, row) { - if (cellvalue == 1) { + if (cellvalue === "1") { return '审批中'; - } else if (cellvalue == 2) { - return '已下发'; + } else if (cellvalue === "2") { + return '审批通过'; + } else if (cellvalue === "3") { + return '审批失败'; + } else if (cellvalue === "4") { + return '下发完毕'; } else { return '草稿'; } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/IssueForm.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/IssueForm.cshtml new file mode 100644 index 000000000..9377585a4 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/IssueForm.cshtml @@ -0,0 +1,11 @@ +@{ + ViewBag.Title = "公文发送"; + Layout = "~/Views/Shared/_Form.cshtml"; +} +
+
+
接收人*
+
+
+
+@Html.AppendJsFile("/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/IssueForm.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/IssueForm.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/IssueForm.js new file mode 100644 index 000000000..d57fc59cb --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/IssueForm.js @@ -0,0 +1,62 @@ +/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) + * Copyright (c) 2013-2018 北京泉江科技有限公司 + * 创建人:超级管理员 + * 日 期:2019-04-11 10:31 + * 描 述:公文发送 + */ +var acceptClick; +var keyValue = request('keyValue'); +var rFileId = request('rFileId'); +var specifyReceiver = request('specifyReceiver'); +// 设置权限 +var setAuthorize; +// 设置表单数据 +var setFormData; +// 验证数据是否填写完整 +var validForm; +// 保存数据 +var save; +var bootstrap = function ($, learun) { + "use strict"; + // 设置权限 + setAuthorize = function (data) { + }; + var page = { + init: function () { + $('.lr-form-wrap').lrscroll(); + page.bind(); + page.initData(); + }, + bind: function () { + $('#SpecifyReceiver').lrUserSelect({ type: '1' }); + }, + initData: function () { + if (rFileId) { + $('#SpecifyReceiver').lrformselectSet(specifyReceiver); + } + } + }; + // 验证数据是否填写完整 + validForm = function () { + if (!$('#form').lrValidform()) { + return false; + } + return true; + }; + // 保存数据 + save = function (processId, callBack, i) { + var formData = $('body').lrGetFormData(); + formData.RFileId = rFileId; + formData.SFileId = keyValue; + var postData = { + strEntity: JSON.stringify(formData) + }; + $.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveFile/ReceiveDocumentIssue', postData, function (res) { + // 保存成功后才回调 + if (!!callBack) { + callBack(res, formData, i); + } + }); + }; + page.init(); +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/ReadList.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/ReadList.cshtml new file mode 100644 index 000000000..65b9df404 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/ReadList.cshtml @@ -0,0 +1,29 @@ +@{ + ViewBag.Title = "公文发送"; + Layout = "~/Views/Shared/_Index.cshtml"; +} +
+
+
+
+
+
+ +
+
+  查询 +
+
+
+
+ +  下发 +
+ +
+
+
+
+
+
+@Html.AppendJsFile("/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/ReadList.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/ReadList.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/ReadList.js new file mode 100644 index 000000000..e33eb9d0f --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/ReadList.js @@ -0,0 +1,136 @@ +/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) + * Copyright (c) 2013-2018 北京泉江科技有限公司 + * 创建人:超级管理员 + * 日 期:2019-04-11 10:31 + * 描 述:公文发送 + */ +var refreshGirdData; +var keyValue = request('keyValue'); +var bootstrap = function ($, learun) { + "use strict"; + var processId = ''; + var page = { + init: function () { + page.initGird(); + page.bind(); + }, + bind: function () { + // 查询 + $('#btn_Search').on('click', function () { + var keyword = $('#Receiver').val(); + page.search({ Receiver: keyword }); + }); + // 刷新 + $('#lr_refresh').on('click', function () { + location.reload(); + }); + + $('#lr_Issue').on('click', + function () { + var keyValue = $('#gridtable').jfGridValue('SFileId'); + var rFileId = $('#gridtable').jfGridValue('RFileId'); + var specifyReceiver = $('#gridtable').jfGridValue('SpecifyReceiver'); + if (learun.checkrow(rFileId)) { + var SendStatus = $('#gridtable').jfGridValue('SendStatus'); + if (SendStatus) { + learun.alert.warning("已下发!"); + return; + } + learun.layerForm({ + id: 'formIssue', + title: '下发', + url: top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveDocument/IssueForm?keyValue=' + keyValue + '&rFileId=' + rFileId + '&specifyReceiver=' + specifyReceiver, + width: 500, + height: 500, + callBack: function (id) { + var res = false; + // 验证数据 + res = top[id].validForm(); + // 保存数据 + if (res) { + res = top[id].save('', function () { + page.search(); + }); + } + return res; + } + }); + } + + }); + }, + // 初始化列表 + initGird: function () { + $('#gridtable').jfGrid({ + url: top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveFile/GetPageList', + headData: [ + { + label: "接收人", name: "Receiver", width: 150, align: "left" + }, + { + label: "查阅时间", name: "ReadTime", width: 150, align: "left" + }, + { + label: "指定接收人", name: "SpecifyReceiver", width: 150, align: "left", formatterAsync: + function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('user', + { + key: value, + callback: function (_data) { + if (_data.length > 0) { + var text = ''; + $.each(_data, + function (i, item) { + if (item) { + text += item.name + ','; + } + }); + text = text.substring(0, text.lastIndexOf(',')); + callback(text); + } else { + callback(_data.name); + } + } + }); + } + }, + { + label: "状态", name: "ReadFlag", width: 100, align: "left", + formatter: function (cellvalue, row) { + if (cellvalue === true) { + return '已读'; + } else { + return '未读'; + } + } + }, + { + label: "下发状态", name: "SendStatus", width: 100, align: "left", + formatter: function (cellvalue, row) { + if (cellvalue === true) { + return '已下发'; + } else { + return '未下发'; + } + } + } + ], + mainId: 'RFileId', + isPage: true, + sidx: 'ReadFlag,ReadTime', + sord: 'ASC' + }); + page.search(); + }, + search: function (param) { + param = param || {}; + param.SFileId = keyValue; + param.STypeId = 4; + $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); + } + }; + refreshGirdData = function () { + page.search(); + }; + page.init(); +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/_sgbak/Form.cshtml.30961.1.2019-10-25.09-36-12.0372 b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/_sgbak/Form.cshtml.30961.1.2019-10-25.09-36-12.0372 deleted file mode 100644 index 79f2cb5e8..000000000 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/_sgbak/Form.cshtml.30961.1.2019-10-25.09-36-12.0372 +++ /dev/null @@ -1,31 +0,0 @@ -@{ - ViewBag.Title = "公文收发"; - Layout = "~/Views/Shared/_Form.cshtml"; -} -
-
-
发送人
- -
-
-
主题
- -
-
-
接收对象
-
-
-
-
发送时间
- -
-
-
附件
-
-
-
-
内容
-
-
-
-@Html.AppendJsFile("/Areas/EducationalAdministration/Views/Sys_ReceiveFile/Form.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/_sgbak/Form.js.30962.1.2019-10-25.09-36-12.0442 b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/_sgbak/Form.js.30962.1.2019-10-25.09-36-12.0442 deleted file mode 100644 index 22b6ce1ae..000000000 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/_sgbak/Form.js.30962.1.2019-10-25.09-36-12.0442 +++ /dev/null @@ -1,59 +0,0 @@ -/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) - * Copyright (c) 2013-2018 北京泉江科技有限公司 - * 创建人:超级管理员 - * 日 期:2019-04-11 10:08 - * 描 述:公文收发 - */ -var acceptClick; -var keyValue = request('keyValue'); -var bootstrap = function ($, learun) { - "use strict"; - var selectedRow = learun.frameTab.currentIframe().selectedRow; - var page = { - init: function () { - $('.lr-form-wrap').lrscroll(); - page.bind(); - page.initData(); - }, - bind: function () { - $('#SendType').lrDataItemSelect({ code: 'FileSendType' }); - if (selectedRow.ReadFlag == true) {//已读 - $('#Url').lrUploader(); - } else {//未读 - $('#Url').lrUploader({ RFileId: selectedRow.RFileId }); - } - }, - initData: function () { - if (!!keyValue) { - $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveFile/GetFormData?keyValue=' + keyValue, function (data) { - for (var id in data) { - if (!!data[id].length && data[id].length > 0) { - $('#' + id).jfGridSet('refreshdata', data[id]); - } - else { - $('[data-table="' + id + '"]').lrSetFormData(data[id]); - $('#Contents').html(data[id].Contents); - } - } - $("#lrUploader_uploadBtn_Url").hide(); - }); - } - } - }; - // 保存数据 - acceptClick = function (callBack) { - if (!$('body').lrValidform()) { - return false; - } - var postData = { - strEntity: JSON.stringify($('body').lrGetFormData()) - }; - $.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveFile/SaveForm?keyValue=' + keyValue, postData, function (res) { - // 保存成功后才回调 - if (!!callBack) { - callBack(); - } - }); - }; - page.init(); -} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveFile/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveFile/Index.js index 369dd4cdc..d7e830102 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveFile/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveFile/Index.js @@ -215,6 +215,7 @@ var bootstrap = function ($, learun) { param.StartTime = startTime; param.EndTime = endTime; param.ReceiverId = learun.clientdata.get(['userinfo']).userId; + param.STypeId = 1; $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); } }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveFile/IndexDocument.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveFile/IndexDocument.js index fca840687..c7a3c952a 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveFile/IndexDocument.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveFile/IndexDocument.js @@ -142,7 +142,7 @@ var bootstrap = function ($, learun) { // 初始化列表 initGird: function () { $('#gridtable').lrAuthorizeJfGrid({ - url: top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveFile/GetPageListDocument', + url: top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveFile/GetPageList', headData: [ { label: "发送人", name: "Sender", width: 100, align: "left" }, { label: "主题", name: "Title", width: 300, align: "left" }, @@ -193,6 +193,7 @@ var bootstrap = function ($, learun) { param.StartTime = startTime; param.EndTime = endTime; param.ReceiverId = learun.clientdata.get(['userinfo']).userId; + param.STypeId = 2; $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); } }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/_sgbak/Index.cshtml.30963.1.2019-10-25.09-36-12.0482 b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveFile/IndexGWJS.cshtml similarity index 87% rename from Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/_sgbak/Index.cshtml.30963.1.2019-10-25.09-36-12.0482 rename to Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveFile/IndexGWJS.cshtml index 1a88e3984..7d0c09a4a 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/_sgbak/Index.cshtml.30963.1.2019-10-25.09-36-12.0482 +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveFile/IndexGWJS.cshtml @@ -2,7 +2,7 @@ ViewBag.Title = "公文收发"; Layout = "~/Views/Shared/_Index.cshtml"; } -
+
@@ -25,8 +25,9 @@
- @@ -35,4 +36,4 @@
-@Html.AppendJsFile("/Areas/EducationalAdministration/Views/Sys_ReceiveFile/Index.js") +@Html.AppendJsFile("/Areas/EducationalAdministration/Views/Sys_ReceiveFile/IndexGWJS.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/_sgbak/Index.js.30964.1.2019-10-25.09-36-12.0522 b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveFile/IndexGWJS.js similarity index 72% rename from Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/_sgbak/Index.js.30964.1.2019-10-25.09-36-12.0522 rename to Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveFile/IndexGWJS.js index 9b69ce514..d85c98cff 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveDocument/_sgbak/Index.js.30964.1.2019-10-25.09-36-12.0522 +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveFile/IndexGWJS.js @@ -79,6 +79,22 @@ var bootstrap = function ($, learun) { }); } }); + // 指定接收人 + $('#lr_SpecifyReceiver').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('RFileId'); + if (learun.checkrow(keyValue)) { + learun.layerForm({ + id: 'formSys_ReceiveFile', + title: '指定接收人', + url: top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveFile/SpecifyReceiverForm?keyValue=' + keyValue, + width: 600, + height: 400, + callBack: function (id) { + return top[id].acceptClick(refreshGirdData); + } + }); + } + }); // 删除 $('#lr_delete').on('click', function () { var keyValue = $('#gridtable').jfGridValue('RFileId'); @@ -117,10 +133,10 @@ var bootstrap = function ($, learun) { if (selectedRow.ReadFlag == false) { //判断附件 //if (selectedRow.Url == null || selectedRow.Url == "") { - //自动已读 - learun.postFormSilence(top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveFile/Read', { keyValue: keyValue }, function () { - refreshGirdData(); - }); + //自动已读 + learun.postFormSilence(top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveFile/Read', { keyValue: keyValue }, function () { + refreshGirdData(); + }); //} } }, @@ -135,10 +151,18 @@ var bootstrap = function ($, learun) { }, // 初始化列表 initGird: function () { - $('#gridtable').lrAuthorizeJfGrid({ + $('#gridtable').jfGrid({ url: top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveFile/GetPageList', headData: [ - { label: "发送人", name: "Sender", width: 100, align: "left" }, + { + label: "发送人", name: "SenderId", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('user', { + key: value, + callback: function (_data) { + callback(_data.name); + } + }); + }}, { label: "主题", name: "Title", width: 300, align: "left" }, { label: "发送时间", name: "SendTime", width: 130, align: "left" }, { @@ -152,6 +176,30 @@ var bootstrap = function ($, learun) { }); } }, + { + label: "指定接收人", name: "SpecifyReceiver", width: 150, align: "left", formatterAsync: + function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('user', + { + key: value, + callback: function (_data) { + if (_data.length > 0) { + var text = ''; + $.each(_data, + function (i, item) { + if (item) { + text += item.name + ','; + } + }); + text = text.substring(0, text.lastIndexOf(',')); + callback(text); + } else { + callback(_data.name); + } + } + }); + } + }, { label: "状态", name: "ReadFlag", width: 100, align: "left", formatter: function (cellvalue, row) { @@ -175,6 +223,7 @@ var bootstrap = function ($, learun) { param.StartTime = startTime; param.EndTime = endTime; param.ReceiverId = learun.clientdata.get(['userinfo']).userId; + param.STypeId = 4; $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); } }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveFile/IndexParty.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveFile/IndexParty.js index d95840123..1e4a6f349 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveFile/IndexParty.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_ReceiveFile/IndexParty.js @@ -136,7 +136,7 @@ var bootstrap = function ($, learun) { // 初始化列表 initGird: function () { $('#gridtable').lrAuthorizeJfGrid({ - url: top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveFile/GetPageListParty', + url: top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveFile/GetPageList', headData: [ { label: "发送人", name: "Sender", width: 100, align: "left" }, { label: "主题", name: "Title", width: 300, align: "left" }, @@ -175,6 +175,7 @@ var bootstrap = function ($, learun) { param.StartTime = startTime; param.EndTime = endTime; param.ReceiverId = learun.clientdata.get(['userinfo']).userId; + param.STypeId=3 $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); } }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_SendFile/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_SendFile/Index.cshtml index 18adff4de..f97bd71d4 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_SendFile/Index.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_SendFile/Index.cshtml @@ -29,10 +29,10 @@
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_SendFile/ReadList.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_SendFile/ReadList.js index 4f2f9e528..65148062e 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_SendFile/ReadList.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_SendFile/ReadList.js @@ -125,6 +125,7 @@ var bootstrap = function ($, learun) { search: function (param) { param = param || {}; param.SFileId = keyValue; + param.STypeId = 1; $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); } }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_SendFile/ReadListDocument.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_SendFile/ReadListDocument.js index c4524153b..32bf1e7c0 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_SendFile/ReadListDocument.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_SendFile/ReadListDocument.js @@ -47,7 +47,7 @@ var bootstrap = function ($, learun) { // 初始化列表 initGird: function () { $('#gridtable').lrAuthorizeJfGrid({ - url: top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveFile/GetPageListDocument', + url: top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveFile/GetPageList', headData: [ { label: "接收人", name: "Receiver", width: 150, align: "left" @@ -89,6 +89,8 @@ var bootstrap = function ($, learun) { search: function (param) { param = param || {}; param.SFileId = keyValue; + param.STypeId = 2; + $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); } }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_SendFile/ReadListParty.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_SendFile/ReadListParty.js index 21a9e3a25..64f49ecd1 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_SendFile/ReadListParty.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Sys_SendFile/ReadListParty.js @@ -28,7 +28,7 @@ var bootstrap = function ($, learun) { // 初始化列表 initGird: function () { $('#gridtable').lrAuthorizeJfGrid({ - url: top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveFile/GetPageListParty', + url: top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveFile/GetPageList', headData: [ { label: "接收人", name: "Receiver", width: 150, align: "left" @@ -57,6 +57,8 @@ var bootstrap = function ($, learun) { search: function (param) { param = param || {}; param.SFileId = keyValue; + param.STypeId = 3; + $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); } }; 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 5f39f2e32..39523b40d 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 @@ -977,13 +977,17 @@ + + + + @@ -6808,6 +6812,10 @@ + + + + diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/script/lr-clientdata.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/script/lr-clientdata.js index dd05d41fb..0e1a5ee34 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/script/lr-clientdata.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/script/lr-clientdata.js @@ -299,7 +299,7 @@ var data = storage.get("userData").data || {}; var keys = op.key.split(','); var array=new Array(); - if (keys.length > 0) { + if (keys.length > 1) { $.each(keys, function (i, item) { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/StuInfoFreshApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/StuInfoFreshApi.cs index b469337c9..6b1d55c5b 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/StuInfoFreshApi.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/StuInfoFreshApi.cs @@ -19,11 +19,13 @@ namespace Learun.Application.WebApi.Modules { Get["/stuInfoFreshEntity"] = GetStuInfoFreshEntity; Get["/stuInfoFresh"] = GetStuInfoFresh; - Get["/stuInfoFreshEntityByStuNo"] = GetStuInfoFreshEntityByStuNo; Get["/saveStuInfoFresh"] = GetSaveStuInfoFresh; Get["/saveLoan"] = GetSaveLoan; Post["/savePhoto"] = GetSavePhoto; Get["/payFeeDetail"] = GetPayFeeDetail; + Get["/pageList"] = GetPageList; + Get["/form"] = GetForm; + Post["/save"] = SaveForm; } @@ -35,6 +37,7 @@ namespace Learun.Application.WebApi.Modules private EmpInfoIBLL empInfoIBLL = new EmpInfoBLL(); private AccommodationIBLL accdormitoryIBLL = new AccommodationBLL(); private FinaChargesStandardIBLL finaChargesStandardIBLL = new FinaChargesStandardBLL(); + private ClassroomInfoIBLL classroomInfoIBLL = new ClassroomInfoBLL(); /// /// 获取个人信息 @@ -47,7 +50,7 @@ namespace Learun.Application.WebApi.Modules var StuInfoFreshFamilyList = new List(); var StuInfoFreshEmergePeopleList = new List(); - var StuInfoFreshEntity = stuInfoFreshIBLL.GetStuInfoFreshEntityByStuNo(userInfo.account); + var StuInfoFreshEntity = stuInfoFreshIBLL.GetStuInfoFreshEntityByStuNo(GetReqData()); if (StuInfoFreshEntity != null) { //处理数据源 @@ -58,56 +61,68 @@ namespace Learun.Application.WebApi.Modules if (classInfoEntity != null) { StuInfoFreshEntity.ClassNo = classInfoEntity.ClassName; - StuInfoFreshEntity.ClassTutorNo = classInfoEntity.ClassTutorNo; - StuInfoFreshEntity.ClassDiredctorNo = classInfoEntity.ClassDiredctorNo; - var empInfoEntity = empInfoIBLL.GetEmpInfoEntityByEmpNo(classInfoEntity.ClassTutorNo); - if (empInfoEntity != null) + if (classInfoEntity.ClassTutorNo != null) + { + StuInfoFreshEntity.ClassTutorNo = classInfoEntity.ClassTutorNo; + var empInfoEntity = empInfoIBLL.GetEmpInfoEntityByEmpNo(classInfoEntity.ClassTutorNo); + if (empInfoEntity != null) + { + StuInfoFreshEntity.ClassTutorName = empInfoEntity.EmpName; + StuInfoFreshEntity.ClassTutorMobile = empInfoEntity.mobile; + } + } + if (classInfoEntity.ClassDiredctorNo != null) { - StuInfoFreshEntity.ClassTutorName = empInfoEntity.EmpName; - StuInfoFreshEntity.ClassTutorMobile = empInfoEntity.mobile; + StuInfoFreshEntity.ClassDiredctorNo = classInfoEntity.ClassDiredctorNo; + var empInfoEntity2 = empInfoIBLL.GetEmpInfoEntityByEmpNo(classInfoEntity.ClassDiredctorNo); + if (empInfoEntity2 != null) + { + StuInfoFreshEntity.ClassDiredctorName = empInfoEntity2.EmpName; + StuInfoFreshEntity.ClassDiredctorMobile = empInfoEntity2.mobile; + } } - var empInfoEntity2 = empInfoIBLL.GetEmpInfoEntityByEmpNo(classInfoEntity.ClassTutorNo); - if (empInfoEntity2 != null) + if (classInfoEntity.SerialNum != null) { - StuInfoFreshEntity.ClassDiredctorName = empInfoEntity2.EmpName; - StuInfoFreshEntity.ClassDiredctorMobile = empInfoEntity2.mobile; + StuInfoFreshEntity.DefaultClassRoomNo = classInfoEntity.SerialNum; + var classroomEntity = classroomInfoIBLL.GetClassroomInfoEntityByNo(classInfoEntity.SerialNum); + if (classroomEntity != null) + { + StuInfoFreshEntity.DefaultClassRoomName = classroomEntity.ClassroomName; + } } } - if (StuInfoFreshEntity.PayFeeStatus == "1") + + //获取头像地址 + if (StuInfoFreshEntity.IsPhoto == true && !string.IsNullOrEmpty(StuInfoFreshEntity.Photo)) { - StuInfoFreshEntity.PayFeeStatus = "已缴费"; + var annexesFileEntity = annexesFileIBLL.GetEntity(StuInfoFreshEntity.Photo); + if (annexesFileEntity != null) + { + url = annexesFileEntity.F_FilePath.Substring(annexesFileEntity.F_FilePath.IndexOf("Resource")); + } } - else + StuInfoFreshEntity.DormitoryName = accdormitoryIBLL.GetDormitoryInfoByPlanStuNo(StuInfoFreshEntity.ID); + if (StuInfoFreshEntity.IsPoor != "1") { - StuInfoFreshEntity.PayFeeStatus = "未缴费"; + StuInfoFreshEntity.IsPoor = "0"; } - if (StuInfoFreshEntity.CollectFileStatus == "1") + if (StuInfoFreshEntity.GetKeyStatus != "1") { - StuInfoFreshEntity.CollectFileStatus = "已提交"; + StuInfoFreshEntity.GetKeyStatus = "0"; } - else + if (StuInfoFreshEntity.GetCardStatus != "1") { - StuInfoFreshEntity.CollectFileStatus = "未提交"; + StuInfoFreshEntity.GetCardStatus = "0"; } - if (StuInfoFreshEntity.GetKeyStatus == "1") + if (StuInfoFreshEntity.OtherPayFeeStatus != "1") { - StuInfoFreshEntity.GetKeyStatus = "已领取"; + StuInfoFreshEntity.OtherPayFeeStatus = "0"; } - else + if (StuInfoFreshEntity.CollectFileStatus != "1") { - StuInfoFreshEntity.GetKeyStatus = "未领取"; + StuInfoFreshEntity.CollectFileStatus = "0"; } - //获取头像地址 - if (StuInfoFreshEntity.IsPhoto == true && !string.IsNullOrEmpty(StuInfoFreshEntity.Photo)) - { - var annexesFileEntity = annexesFileIBLL.GetEntity(StuInfoFreshEntity.Photo); - if (annexesFileEntity != null) - { - url = annexesFileEntity.F_FilePath.Substring(annexesFileEntity.F_FilePath.IndexOf("Resource")); - } - } - StuInfoFreshEntity.DormitoryName = accdormitoryIBLL.GetDormitoryInfoByPlanStuNo(StuInfoFreshEntity.ID); //是否完善信息 StuInfoFreshFamilyList = stuInfoFreshIBLL.GetStuInfoFreshFamilyList(StuInfoFreshEntity.ID).ToList(); @@ -144,86 +159,8 @@ namespace Learun.Application.WebApi.Modules return Success(result); } - private Response GetStuInfoFreshEntityByStuNo(dynamic _) - { - var url = Config.GetValue("defaultheadimg"); - var StuInfoFreshFamilyList = new List(); - var StuInfoFreshEmergePeopleList = new List(); - - var StuInfoFreshEntity = stuInfoFreshIBLL.GetStuInfoFreshEntityByStuNo(GetReqData()); - if (StuInfoFreshEntity != null) - { - //处理数据源 - StuInfoFreshEntity.MajorNo = cdMajorIBLL.GetCdMajorEntityByMajorNo(StuInfoFreshEntity.MajorNo).MajorName; - StuInfoFreshEntity.DeptNo = cdDeptIBLL.GetCdDeptEntityByNo(StuInfoFreshEntity.DeptNo).DeptName; - - var classInfoEntity = classInfoIBLL.GetClassInfoEntityByClassNo(StuInfoFreshEntity.ClassNo); - if (classInfoEntity != null) - { - StuInfoFreshEntity.ClassNo = classInfoEntity.ClassName; - StuInfoFreshEntity.ClassTutorNo = classInfoEntity.ClassTutorNo; - var empInfoEntity = empInfoIBLL.GetEmpInfoEntityByEmpNo(classInfoEntity.ClassTutorNo); - if (empInfoEntity != null) - { - StuInfoFreshEntity.ClassTutorName = empInfoEntity.EmpName; - StuInfoFreshEntity.ClassTutorMobile = empInfoEntity.mobile; - } - } - if (StuInfoFreshEntity.PayFeeStatus == "1") - { - StuInfoFreshEntity.PayFeeStatus = "已缴费"; - } - else - { - StuInfoFreshEntity.PayFeeStatus = "未缴费"; - } - if (StuInfoFreshEntity.CollectFileStatus == "1") - { - StuInfoFreshEntity.CollectFileStatus = "已提交"; - } - else - { - StuInfoFreshEntity.CollectFileStatus = "未提交"; - } - if (StuInfoFreshEntity.GetKeyStatus == "1") - { - StuInfoFreshEntity.GetKeyStatus = "已领取"; - } - else - { - StuInfoFreshEntity.GetKeyStatus = "未领取"; - } - - //获取头像地址 - if (StuInfoFreshEntity.IsPhoto == true && !string.IsNullOrEmpty(StuInfoFreshEntity.Photo)) - { - var annexesFileEntity = annexesFileIBLL.GetEntity(StuInfoFreshEntity.Photo); - if (annexesFileEntity != null) - { - url = annexesFileEntity.F_FilePath.Substring(annexesFileEntity.F_FilePath.IndexOf("Resource")); - } - } - StuInfoFreshEntity.DormitoryName = accdormitoryIBLL.GetDormitoryInfoByPlanStuNo(StuInfoFreshEntity.ID); - - //是否完善信息 - StuInfoFreshFamilyList = stuInfoFreshIBLL.GetStuInfoFreshFamilyList(StuInfoFreshEntity.ID).ToList(); - StuInfoFreshEmergePeopleList = stuInfoFreshIBLL.GetStuInfoFreshEmergePeopleList(StuInfoFreshEntity.ID).ToList(); - StuInfoFreshEntity.ClassTutorNo = StuInfoFreshFamilyList.Any() ? "已完善" : "未完善"; - - } - - var result = new - { - StuInfoFreshEntity = StuInfoFreshEntity, - StuInfoFreshFamilyList = StuInfoFreshFamilyList, - StuInfoFreshEmergePeopleList = StuInfoFreshEmergePeopleList, - Url = url - }; - - return Success(result); - } /// - /// 保存个人信息 + /// 保存完善个人信息 /// /// /// @@ -251,7 +188,7 @@ namespace Learun.Application.WebApi.Modules return Success("保存成功"); } /// - /// 保存个人信息 + /// 保存贷款回执码 /// /// /// @@ -350,6 +287,65 @@ namespace Learun.Application.WebApi.Modules return Success(result); } + /// + /// 根据班级查询新生列表 + /// + /// + /// + public Response GetPageList(dynamic _) + { + ReqPageParam parameter = this.GetReqData(); + var data = stuInfoFreshIBLL.GetPageList(parameter.pagination, parameter.queryJson); + var jsonData = new + { + rows = data, + total = parameter.pagination.total, + page = parameter.pagination.page, + records = parameter.pagination.records + }; + return Success(jsonData); + } + + /// + /// 获取表单数据 + /// + /// + /// + public Response GetForm(dynamic _) + { + string keyValue = this.GetReqData(); + var StuInfoFreshData = stuInfoFreshIBLL.GetStuInfoFreshEntity(keyValue); + var jsonData = new + { + StuInfoFresh = StuInfoFreshData, + }; + return Success(jsonData); + } + /// + /// 保存实体数据(新增、修改) + /// + /// + /// + public Response SaveForm(dynamic _) + { + ReqFormEntity parameter = this.GetReqData(); + StuInfoFreshEntity entity = parameter.strEntity.ToObject(); + + stuInfoFreshIBLL.SaveEntity(parameter.keyValue, entity); + return Success("保存成功!"); + } + + #region 私有类 + + /// + /// 表单实体类 + /// + private class ReqFormEntity + { + public string keyValue { get; set; } + public string strEntity { get; set; } + } + #endregion /// /// 个人信息 diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/UserApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/UserApi.cs index e4367664b..3ede02163 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/UserApi.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/UserApi.cs @@ -5,6 +5,7 @@ using Learun.Util; using Learun.Util.Operat; using Nancy; using System.Collections.Generic; +using System.Configuration; using System.Linq; namespace Learun.Application.WebApi @@ -33,7 +34,7 @@ namespace Learun.Application.WebApi Get["/img"] = GetImg; Get["/imgfordc"] = GetImgForDC; Get["/saveMap"] = GetSaveClassMap; - + } private UserIBLL userIBLL = new UserBLL(); private PostIBLL postIBLL = new PostBLL(); @@ -41,7 +42,7 @@ namespace Learun.Application.WebApi private StuInfoBasicIBLL stuInfoBasicIBLL = new StuInfoBasicBLL(); CdMajorIBLL majorIbll = new CdMajorBLL(); - + /// /// 登录接口 @@ -100,13 +101,18 @@ namespace Learun.Application.WebApi res.userInfo.majorno = majorinfo.ID ?? ""; } } - - + //是否强密码验证 + bool pwd = false; + if (!string.IsNullOrEmpty(ConfigurationManager.AppSettings["verifypwd"]) && ConfigurationManager.AppSettings["verifypwd"] == "true" && loginModel.up == false) + { + pwd = true; + } var jsonData = new { baseinfo = res.userInfo, post = postIBLL.GetListByPostIds(res.userInfo.postIds), - role = roleIBLL.GetListByRoleIds(res.userInfo.roleIds) + role = roleIBLL.GetListByRoleIds(res.userInfo.roleIds), + pwd= pwd }; return Success(jsonData); } @@ -365,6 +371,11 @@ namespace Learun.Application.WebApi /// 密码 /// public string password { get; set; } + /// + /// 是否强密码 + /// + public bool up { get; set; } + /// /// 设备号 /// diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/WeixinApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/WeixinApi.cs index 831876e87..ee3d82139 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/WeixinApi.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/WeixinApi.cs @@ -204,10 +204,6 @@ namespace Learun.Application.WebApi.Modules logEntity.F_ExecuteResult = 1; logEntity.F_ExecuteResultJson = "登录成功"; logEntity.WriteLog(); - - //保存用户设备号 - userIbll.UpdateWeixinOpenId(userEntity.F_UserId, loginModel.openid); - OperatorResult res = OperatorHelper.Instance.IsOnLine(token, req.loginMark); res.userInfo.password = null; res.userInfo.secretkey = null; @@ -222,13 +218,23 @@ namespace Learun.Application.WebApi.Modules } } - - + //是否强密码验证 + bool pwd = false; + if (!string.IsNullOrEmpty(ConfigurationManager.AppSettings["verifypwd"]) && ConfigurationManager.AppSettings["verifypwd"] == "true" && loginModel.up == false) + { + pwd = true; + } + else + { + //保存用户设备号 + userIbll.UpdateWeixinOpenId(userEntity.F_UserId, loginModel.openid); + } var jsonData = new { baseinfo = res.userInfo, post = postIBLL.GetListByPostIds(res.userInfo.postIds), - role = roleIBLL.GetListByRoleIds(res.userInfo.roleIds) + role = roleIBLL.GetListByRoleIds(res.userInfo.roleIds), + pwd = pwd }; return Success(jsonData); } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/XmlConfig/system.config b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/XmlConfig/system.config index 82bb88321..c5d6754f8 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/XmlConfig/system.config +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/XmlConfig/system.config @@ -96,6 +96,8 @@ + + \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoFresh/StuInfoFreshBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoFresh/StuInfoFreshBLL.cs index ff3406b37..44e2c1b3a 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoFresh/StuInfoFreshBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoFresh/StuInfoFreshBLL.cs @@ -580,6 +580,30 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration } } + /// + /// 审核助学贷款 + /// 主键 + /// + /// + public void DoCheckLoan(string keyValue, string status) + { + try + { + stuInfoFreshService.DoCheckLoan(keyValue, status); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + /// /// 分配班级 /// 主键 diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoFresh/StuInfoFreshEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoFresh/StuInfoFreshEntity.cs index 0721aae25..67bb71c37 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoFresh/StuInfoFreshEntity.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoFresh/StuInfoFreshEntity.cs @@ -507,6 +507,12 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration [Column("STUDENTLOAN")] public string StudentLoan { get; set; } /// + /// 助学贷款状态:1已审核0未审核 + /// + /// + [Column("STUDENTLOANSTATUS")] + public string StudentLoanStatus { get; set; } + /// /// 现场缴费状态 /// /// @@ -663,6 +669,16 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration [NotMapped] public string ClassDiredctorMobile { get; set; } /// + /// 默认教室 + /// + [NotMapped] + public string DefaultClassRoomNo { get; set; } + /// + /// 默认教室 + /// + [NotMapped] + public string DefaultClassRoomName { get; set; } + /// /// 是否完善信息 /// [NotMapped] diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoFresh/StuInfoFreshIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoFresh/StuInfoFreshIBLL.cs index b8b582b8d..8c61dddef 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoFresh/StuInfoFreshIBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoFresh/StuInfoFreshIBLL.cs @@ -162,6 +162,13 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration /// void IsOtherPayFee(string keyValue, string status); + /// + /// 审核助学贷款 + /// 主键 + /// + /// + void DoCheckLoan(string keyValue, string status); + /// /// 分配班级 /// 主键 diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoFresh/StuInfoFreshService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoFresh/StuInfoFreshService.cs index b3c3a554f..bdee91610 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoFresh/StuInfoFreshService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoFresh/StuInfoFreshService.cs @@ -219,6 +219,16 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration strSql.Append(" and t.StuNo = @StuNo "); dp.Add("StuNo", queryParam["StuNo"].ToString(), DbType.String); } + if (!queryParam["StuName"].IsEmpty()) + { + strSql.Append(" and t.StuName like @StuName "); + dp.Add("StuName", '%' + queryParam["StuName"].ToString() + '%', DbType.String); + } + if (!queryParam["Grade"].IsEmpty()) + { + strSql.Append(" and t.Grade like @Grade "); + dp.Add("Grade", '%' + queryParam["Grade"].ToString() + '%', DbType.String); + } //分配班级 if (!queryParam["MajorNo"].IsEmpty()) { @@ -328,6 +338,12 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration strSql.Append(" AND (t.DormitoryNo IS NOT NULL AND t.DormitoryNo<>'')"); } } + //班主任/辅导员 + if (!queryParam["EmpNo"].IsEmpty()) + { + strSql.Append(" and (c.ClassDiredctorNo = @EmpNo or c.ClassTutorNo = @EmpNo) "); + dp.Add("EmpNo", queryParam["EmpNo"].ToString(), DbType.String); + } return this.BaseRepository("CollegeMIS").FindList(strSql.ToString(), dp, pagination); } @@ -1063,6 +1079,37 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration } } + /// + /// 审核助学贷款 + /// 主键 + /// + /// + public void DoCheckLoan(string keyValue, string status) + { + try + { + if (status == "1")//通过 + { + this.BaseRepository("CollegeMIS").ExecuteBySql("update StuInfoFresh set StudentLoanStatus='1' where ID='" + keyValue + "' "); + } + else + { + this.BaseRepository("CollegeMIS").ExecuteBySql("update StuInfoFresh set StudentLoanStatus='0' where ID='" + keyValue + "' "); + } + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } + /// /// 分配班级 /// 主键 diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScore/StuScoreEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScore/StuScoreEntity.cs index 2f64c218f..5b3681e63 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScore/StuScoreEntity.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScore/StuScoreEntity.cs @@ -386,6 +386,13 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration [NotMapped] public string TempId { get; set; } + + /// + /// 成绩格式化(补)(重) + /// + [NotMapped] + public string ScoreFormat { get; set; } + } } diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScore/StuScoreService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScore/StuScoreService.cs index b40cb0234..ca55f8fe3 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScore/StuScoreService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScore/StuScoreService.cs @@ -425,7 +425,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration { this.BaseRepository("CollegeMIS").ExecuteBySql( @"update StuScore set IsEditable=1,EditUserId='',BeginModifyDate=null - where AcademicYearNo='" + AcademicYearNo + "' and Semester='" + Semester + "' and LessonNo='"+LessonNo+"' and EmpNo='" + EmpNo + "'"+(!string.IsNullOrEmpty(TeachClassNo)? " and TeachClassNo='" + TeachClassNo + "'" : "")); + where AcademicYearNo='" + AcademicYearNo + "' and Semester='" + Semester + "' and LessonNo='" + LessonNo + "' and EmpNo='" + EmpNo + "'" + (!string.IsNullOrEmpty(TeachClassNo) ? " and TeachClassNo='" + TeachClassNo + "'" : "")); } catch (Exception ex) { @@ -709,7 +709,35 @@ where AcademicYearNo='" + strAcademicYear + "' and Semester='" + strSemester + " var stuScoreList = this.BaseRepository("CollegeMIS").FindList(x => x.AcademicYearNo == academic && x.Semester == semester && x.StuNo == stuNo && x.CheckMark == "1"); foreach (var scoreEntity in stuScoreList) { - scoreEntity.LessonName = scoreEntity.LessonName + (!string.IsNullOrEmpty(scoreEntity.LessonSortNo)&&scoreEntity.LessonSortNo == "2"?"(选修)":""); + if (scoreEntity.LessonSortNo == "2") + { + scoreEntity.LessonName = scoreEntity.LessonName + "(选修)"; + } + else + { + if (scoreEntity.Score < 60) + { + var notpass = this.BaseRepository("CollegeMIS").FindEntity(x => x.AcademicYearNo == scoreEntity.AcademicYearNo && x.Semester == scoreEntity.Semester && x.StuNo == scoreEntity.StuNo && x.LessonNo == scoreEntity.LessonNo && x.CheckMark == "1"); + if (notpass != null) + { + if (notpass.Score >= 60) + { + scoreEntity.Score = notpass.Score; + } + else + { + var notpasstwo = this.BaseRepository("CollegeMIS").FindEntity(x => x.AcademicYearNo == scoreEntity.AcademicYearNo && x.Semester == scoreEntity.Semester && x.StuNo == scoreEntity.StuNo && x.LessonNo == scoreEntity.LessonNo && x.CheckMark == "1"); + if (notpasstwo != null) + { + if (notpasstwo.Score >= 60) + { + scoreEntity.Score = notpasstwo.Score; + } + } + } + } + } + } } result.ScoreList = stuScoreList.ToList(); //获取排名、综合成绩 @@ -1228,7 +1256,11 @@ where StuNo not in(Select StuNo from stuscore s where s.Academicyearno = sl.Acad tableName = queryParam["TableName"].ToString(); } var strSql = new StringBuilder(); - strSql.Append($"select s.LessonNo,s.LessonName,s.StuNo,sb.StuName,Max(s.Score) as Score from {tableName} s left join StuInfoBasic sb on s.StuNo=sb.StuNo "); + strSql.Append(" select bb.AcademicYearNo,bb.Semester,bb.ClassNo,bb.LessonNo,bb.LessonName,bb.StuNo,bb.StuName "); + strSql.Append(" ,case when bb.Score >=60 then bb.Score else (case when sp.Score>= 60 then sp.Score else (case when spt.Score>=60 then spt.Score else bb.Score end) end) end as Score "); + strSql.Append(" ,case when bb.Score >=60 then convert(nvarchar(50),bb.Score) else (case when sp.Score>= 60 then convert(nvarchar(50),sp.Score)+'(补)' else (case when spt.Score>=60 then convert(nvarchar(50),spt.Score)+'(重)' else convert(nvarchar(50),bb.Score) end) end) end as ScoreFormat "); + strSql.Append(" from ( "); + strSql.Append($" select s.AcademicYearNo,s.Semester,s.ClassNo,s.LessonNo,s.LessonName,s.StuNo,sb.StuName,Max(s.Score) as Score from {tableName} s left join StuInfoBasic sb on s.StuNo=sb.StuNo "); strSql.Append(" where 1=1 and s.LessonSortNo='1' "); if (!queryParam["AcademicYearNo"].IsEmpty()) { @@ -1250,7 +1282,10 @@ where StuNo not in(Select StuNo from stuscore s where s.Academicyearno = sl.Acad dp.Add("StuNo", queryParam["StuNo"].ToString(), DbType.String); strSql.Append(" and s.StuNo=@StuNo "); } - strSql.Append(" group by s.LessonNo,s.LessonName,s.StuNo,sb.StuName "); + strSql.Append(" group by s.AcademicYearNo,s.Semester,s.ClassNo,s.LessonNo,s.LessonName,s.StuNo,sb.StuName ) as bb "); + strSql.Append(" left join StuScoreNotPass sp on bb.AcademicYearNo=sp.AcademicYearNo and bb.Semester=sp.Semester and bb.ClassNo=sp.ClassNo and bb.LessonNo=sp.LessonNo and bb.LessonName=sp.LessonName and bb.StuNo=sp.StuNo "); + strSql.Append(" left join StuScoreNotPassTwo spt on bb.AcademicYearNo=spt.AcademicYearNo and bb.Semester=spt.Semester and bb.ClassNo=spt.ClassNo and bb.LessonNo=spt.LessonNo and bb.LessonName=spt.LessonName and bb.StuNo=spt.StuNo "); + return this.BaseRepository("CollegeMIS").FindList(strSql.ToString(), dp); } catch (Exception ex) @@ -1802,7 +1837,11 @@ where StuNo not in(Select StuNo from stuscore s where s.Academicyearno = sl.Acad tableName = queryParam["TableName"].ToString(); } var strSql = new StringBuilder(); - strSql.Append($"select s.LessonSortNo,s.LessonNo,s.LessonName,s.StuNo,sb.StuName,Max(s.Score) as Score from {tableName} s left join StuInfoBasic sb on s.StuNo=sb.StuNo "); + strSql.Append(" select bb.AcademicYearNo,bb.Semester,bb.LessonSortNo,bb.LessonNo,bb.LessonName,bb.StuNo,bb.StuName "); + strSql.Append(" ,case when bb.LessonSortNo='2' then bb.Score else (case when bb.Score >=60 then bb.Score else (case when sp.Score>= 60 then sp.Score else (case when spt.Score>=60 then spt.Score else bb.Score end) end) end) end as Score "); + strSql.Append(" ,case when bb.LessonSortNo='2' then convert(nvarchar(50),bb.Score) else (case when bb.Score >=60 then convert(nvarchar(50),bb.Score) else (case when sp.Score>= 60 then convert(nvarchar(50),sp.Score)+'(补)' else (case when spt.Score>=60 then convert(nvarchar(50),spt.Score)+'(重)' else convert(nvarchar(50),bb.Score) end) end) end) end as ScoreFormat "); + strSql.Append(" from ( "); + strSql.Append($"select s.AcademicYearNo,s.Semester,s.LessonSortNo,s.LessonNo,s.LessonName,s.StuNo,sb.StuName,Max(s.Score) as Score from {tableName} s left join StuInfoBasic sb on s.StuNo=sb.StuNo "); strSql.Append(" where 1=1 and s.CheckMark='1' "); if (!queryParam["AcademicYearNo"].IsEmpty()) { @@ -1819,7 +1858,10 @@ where StuNo not in(Select StuNo from stuscore s where s.Academicyearno = sl.Acad dp.Add("StuNo", queryParam["StuNo"].ToString(), DbType.String); strSql.Append(" and s.StuNo=@StuNo "); } - strSql.Append(" group by s.LessonSortNo,s.LessonNo,s.LessonName,s.StuNo,sb.StuName "); + strSql.Append(" group by s.AcademicYearNo,s.Semester,s.LessonSortNo,s.LessonNo,s.LessonName,s.StuNo,sb.StuName ) as bb "); + strSql.Append(" left join StuScoreNotPass sp on bb.AcademicYearNo=sp.AcademicYearNo and bb.Semester=sp.Semester and bb.LessonSortNo=sp.LessonSortNo and bb.LessonNo=sp.LessonNo and bb.LessonName=sp.LessonName and bb.StuNo=sp.StuNo and sp.CheckMark = '1' "); + strSql.Append(" left join StuScoreNotPassTwo spt on bb.AcademicYearNo=spt.AcademicYearNo and bb.Semester=spt.Semester and bb.LessonSortNo=spt.LessonSortNo and bb.LessonNo=spt.LessonNo and bb.LessonName=spt.LessonName and bb.StuNo=spt.StuNo and spt.CheckMark = '1' "); + return this.BaseRepository("CollegeMIS").FindList(strSql.ToString(), dp); } catch (Exception ex) diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Sys_ReceiveDocument/Sys_ReceiveDocumentEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Sys_ReceiveDocument/Sys_ReceiveDocumentEntity.cs index b36918279..1f6d968f5 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Sys_ReceiveDocument/Sys_ReceiveDocumentEntity.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Sys_ReceiveDocument/Sys_ReceiveDocumentEntity.cs @@ -59,6 +59,26 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration /// [Column("RSENDFLAG")] public string RSendFlag { get; set; } + /// + /// 已接收 + /// + [Column("RECEIVERID")] + public string ReceiverId { get; set; } + /// + /// 指定接收人(校长审批意见) + /// + [Column("SPECIFYRECEIVER")] + public string SpecifyReceiver { get; set; } + /// + /// 上传文件 + /// + [Column("RFile")] + public string RFile { get; set; } + /// + /// 发送人 + /// + [Column("SENDERID")] + public string SenderId { get; set; } #endregion #region 扩展操作 @@ -67,7 +87,10 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration /// public void Create() { + var loginUser = LoginUserInfo.Get(); this.RID = Guid.NewGuid().ToString(); + this.RFile = Guid.NewGuid().ToString(); + this.SenderId = loginUser.userId; this.RSendFlag = "0"; } /// diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Sys_ReceiveDocument/Sys_ReceiveDocumentService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Sys_ReceiveDocument/Sys_ReceiveDocumentService.cs index 5cfd9a06f..e6ca855a5 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Sys_ReceiveDocument/Sys_ReceiveDocumentService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Sys_ReceiveDocument/Sys_ReceiveDocumentService.cs @@ -36,6 +36,10 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration t.RReceiveUnit, t.RUrgencyDegree, t.RTitle, + t.RFile, + t.ReceiverId, + t.SenderId, + t.SpecifyReceiver, t.RContent, t.RSendFlag, t.RProcessId diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Sys_ReceiveFile/Sys_ReceiveFileBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Sys_ReceiveFile/Sys_ReceiveFileBLL.cs index d38abd850..a30082a12 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Sys_ReceiveFile/Sys_ReceiveFileBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Sys_ReceiveFile/Sys_ReceiveFileBLL.cs @@ -257,6 +257,24 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration } } } + public void ReceiveDocumentIssue(Sys_IssueEntity entity) + { + try + { + sys_ReceiveFileService.ReceiveDocumentIssue(entity); + } + 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/EducationalAdministration/Sys_ReceiveFile/Sys_ReceiveFileIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Sys_ReceiveFile/Sys_ReceiveFileIBLL.cs index d06af81ca..66ab79f86 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Sys_ReceiveFile/Sys_ReceiveFileIBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Sys_ReceiveFile/Sys_ReceiveFileIBLL.cs @@ -78,5 +78,6 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration #endregion void Issue(Sys_IssueEntity entity); + void ReceiveDocumentIssue(Sys_IssueEntity entity); } } diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Sys_ReceiveFile/Sys_ReceiveFileService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Sys_ReceiveFile/Sys_ReceiveFileService.cs index 5c934a264..94ff24eab 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Sys_ReceiveFile/Sys_ReceiveFileService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Sys_ReceiveFile/Sys_ReceiveFileService.cs @@ -55,6 +55,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration dp.Add("Title", "%" + queryParam["Title"].ToString() + "%", DbType.String); strSql.Append(" AND t.Title Like @Title "); } + if (!queryParam["STypeId"].IsEmpty()) + { + dp.Add("STypeId", queryParam["STypeId"].ToString(), DbType.Int32); + strSql.Append(" AND t.STypeId = @STypeId "); + } if (!queryParam["ReceiverId"].IsEmpty()) { dp.Add("ReceiverId", queryParam["ReceiverId"].ToString(), DbType.String); @@ -384,9 +389,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration } foreach (var item in teacherlist) { - if (listReceive?.Contains(item.F_Account) != true) + if (listReceive?.Contains(item.F_UserId) != true) { - listReceive.Add(item.F_Account); + listReceive.Add(item.F_UserId); Sys_SendFile.Receiver += "," + item.F_RealName; } @@ -435,6 +440,101 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration } } + /// + /// 公文接收 下发指定接收人 + /// + /// + public void ReceiveDocumentIssue(Sys_IssueEntity entity) + { + var db = this.BaseRepository().BeginTrans(); + try + { + //从‘查阅情况’ 列表中跳转 将发送情况改变 + if (!string.IsNullOrEmpty(entity.RFileId)) + { + var rEntity = db.FindEntity(a => a.RFileId == entity.RFileId); + rEntity.SendStatus = true; + db.Update(rEntity); + } + var Sys_ReceiveDocument = db.FindEntity(a => a.RID == entity.SFileId); + var teacherlist = db.FindList(a => entity.SpecifyReceiver.Contains(a.F_UserId)).ToList(); + + foreach (var tEntity in teacherlist) + { + Sys_ReceiveFileEntity receiveFile = new Sys_ReceiveFileEntity(); + receiveFile.Create(); + receiveFile.SFileId = Sys_ReceiveDocument.RID; + receiveFile.SenderId = Sys_ReceiveDocument.SenderId; + receiveFile.ReceiverId = tEntity.F_UserId; + receiveFile.Receiver = tEntity.F_RealName; + receiveFile.Title = Sys_ReceiveDocument.RTitle; + receiveFile.Contents = Sys_ReceiveDocument.RContent; + receiveFile.Url = Sys_ReceiveDocument.RFile; + receiveFile.ReadFlag = false; + receiveFile.SendTime = DateTime.Now; + receiveFile.SendType = ""; + receiveFile.DelFlag = false; + receiveFile.STypeId = 4;//公文接收 下发 + receiveFile.ReplyFlag = false; + receiveFile.RUrl = Guid.NewGuid().ToString(); + db.Insert(receiveFile); + } + var listReceive = Sys_ReceiveDocument.ReceiverId?.Split(',').ToList(); + if (listReceive == null) + { + listReceive = new List(); + } + foreach (var item in teacherlist) + { + if (listReceive?.Contains(item.F_UserId) != true) + { + listReceive.Add(item.F_UserId); + } + + } + + + StringBuilder stringBuilder = new StringBuilder(); + foreach (var item in listReceive) + { + stringBuilder.Append(item + ","); + } + + Sys_ReceiveDocument.ReceiverId = stringBuilder.ToString().TrimEnd(','); + db.Update(Sys_ReceiveDocument); + db.Commit(); + //微信推送 + try + { + PushWeixin(teacherlist, Sys_ReceiveDocument.RTitle); + } + catch (Exception e) + { + } + //飞星推送 + Task.Run(async () => + { + using (var hubConnection = new HubConnection(ConfigurationManager.AppSettings["CommunicationServeraddress"])) + { + var hubProxy = hubConnection.CreateHubProxy("SignalRHub"); + await hubConnection.Start(); + await hubProxy.Invoke("PushAnnouncement", Sys_ReceiveDocument.SenderId, Sys_ReceiveDocument.RTitle, Util.Str.ReplaceHtml(HttpUtility.HtmlDecode(Sys_ReceiveDocument.RContent)).Length < 20 ? Util.Str.ReplaceHtml(HttpUtility.HtmlDecode(Sys_ReceiveDocument.RContent)) : Util.Str.ReplaceHtml(HttpUtility.HtmlDecode(Sys_ReceiveDocument.RContent)).Substring(0, 20), "sendfile", string.Join(",", teacherlist.Select(m => m.F_UserId)), ""); + } + }); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } + public void PushWeixin(List needpostuserlist, string title) { var WeChatConfigentity = BaseRepository().FindEntity(m => m.IsEnable == true); diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/NodeMethod/Sys_ReceiveDocumentMethod.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/NodeMethod/Sys_ReceiveDocumentMethod.cs index 83edffe99..6b38c1f2a 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/NodeMethod/Sys_ReceiveDocumentMethod.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/NodeMethod/Sys_ReceiveDocumentMethod.cs @@ -10,13 +10,24 @@ namespace Learun.Application.WorkFlow public class Sys_ReceiveDocumentMethod : IWorkFlowMethod { SYS_ReceiveDocumentIBLL asset = new SYS_ReceiveDocumentBLL(); - + NWFTaskIBLL nWFTaskIBLL = new NWFTaskBLL(); + public void Execute(WfMethodParameter parameter) { if (parameter.code == "agree") { asset.ChangeStatusByProcessId(parameter.processId, 2); + + //审批同意的话需要 获取校长审批意见 + var list = nWFTaskIBLL.GetLogList(parameter.processId); + var logEntity = list.FirstOrDefault(a => a.F_TaskUserName == "超级管理员" || a.F_TaskUserName=="关亮"); + var entity = asset.GetEntityByProcessId(parameter.processId); + if (null != entity && null != logEntity) + { + entity.SpecifyReceiver = logEntity.F_Des; + asset.SaveEntity(entity.RID, entity); + } } else { diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/NodeMethod/Sys_SendFileMethod.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/NodeMethod/Sys_SendFileMethod.cs index 9ed676d9b..8dbc4f560 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/NodeMethod/Sys_SendFileMethod.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/NodeMethod/Sys_SendFileMethod.cs @@ -27,17 +27,13 @@ namespace Learun.Application.WorkFlow { asset.ChangeStatusByProcessId(parameter.processId, 2); var list = nWFTaskIBLL.GetLogList(parameter.processId); - var nwfTaskLogEntity = list.FirstOrDefault(a => a.F_TaskUserName == "关亮"); + var nwfTaskLogEntity = list.FirstOrDefault(a => a.F_TaskUserName == "关亮" || a.F_TaskUserName=="超级管理员"); Sys_SendFileEntity entity = asset.GetEntityByProcessId(parameter.processId); if (nwfTaskLogEntity != null) { entity.SpecifyReceiver = nwfTaskLogEntity.F_Des; + asset.SaveEntity(entity.SFileId, entity); } - else - { - entity.SpecifyReceiver = "测试信息"; - } - asset.SaveEntity(entity.SFileId, entity); } else { diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessBLL.cs index a6f232671..130cb7ab3 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessBLL.cs @@ -779,12 +779,17 @@ namespace Learun.Application.WorkFlow if (!string.IsNullOrEmpty(schoolMasterId)) { var userEntity7 = userIBLL.GetEntityByUserId(schoolMasterId); - list.Add(new NWFUserInfo() + + if (null != userEntity7) { - Id = userEntity7.F_UserId, - Account = userEntity7.F_Account, - Name = userEntity7.F_RealName - }); + list.Add(new NWFUserInfo() + { + Id = userEntity7.F_UserId, + Account = userEntity7.F_Account, + Name = userEntity7.F_RealName + }); + } + } break; } diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util/Common/TimeOutCheckTool.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util/Common/TimeOutCheckTool.cs new file mode 100644 index 000000000..c8e563332 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util/Common/TimeOutCheckTool.cs @@ -0,0 +1,56 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading; +using System.Threading.Tasks; + +namespace Learun.Util.Common +{ + public class TimeOutCheckTool + { + public T TimeoutCheck(int ms, Func func) + { + var wait = new ManualResetEvent(false); + bool RunOK = false; + var task = Task.Run(() => + { + var result = func.Invoke(); + RunOK = true; + wait.Set(); + return result; + }); + wait.WaitOne(ms); + if (RunOK) + { + return task.Result; + } + else + { + return default(T); + } + } + + public bool TimeoutCheckTwo(int ms, Func func) + { + var wait = new ManualResetEvent(false); + bool RunOK = false; + var task = Task.Run(() => + { + var result = func.Invoke(); + RunOK = true; + wait.Set(); + return result; + }); + wait.WaitOne(ms); + if (RunOK) + { + return task.Result.ToBool(); + } + else + { + return true; + } + } + } +} diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util/Common/Timeout.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util/Common/Timeout.cs index bbcda7fcb..cd59870d0 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util/Common/Timeout.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util/Common/Timeout.cs @@ -19,7 +19,6 @@ namespace Learun.Util.Common public Timeout() { - // 初始状态为 停止 this.mTimeoutObject = new ManualResetEvent(true); } /// @@ -33,7 +32,7 @@ namespace Learun.Util.Common return false; } this.mTimeoutObject.Reset(); - this.mBoTimeout = true; //标记 + this.mBoTimeout = true; this.Do.BeginInvoke(DoAsyncCallBack, null); // 等待 信号Set if (!this.mTimeoutObject.WaitOne(timeSpan, false)) diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util/Learun.Util.csproj b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util/Learun.Util.csproj index 46817a3c1..6153a1661 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util/Learun.Util.csproj +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util/Learun.Util.csproj @@ -89,6 +89,7 @@ + diff --git a/Learun.Framework.Ultimate V7/Quanjiang.DigitalScholl.WebLicense/LicenseChecker.cs b/Learun.Framework.Ultimate V7/Quanjiang.DigitalScholl.WebLicense/LicenseChecker.cs index b1be01c7b..71fc770d0 100644 --- a/Learun.Framework.Ultimate V7/Quanjiang.DigitalScholl.WebLicense/LicenseChecker.cs +++ b/Learun.Framework.Ultimate V7/Quanjiang.DigitalScholl.WebLicense/LicenseChecker.cs @@ -52,23 +52,15 @@ namespace Quanjiang.DigitalScholl.WebLicense try { - - - Timeout timeout = new Timeout(); - timeout.Do = GetMAManagementInfo; - bool bo = timeout.DoWithTimeout(new TimeSpan(0, 0, 0, 2)); - - - + TimeOutCheckTool tool = new TimeOutCheckTool(); + var checkResult = tool.TimeoutCheckTwo(4000, () => GetMAManagementInfo()); //var maResult = GetMAManagementInfo(); - if (!bo) + if (!checkResult) { ls.Message = "未授权"; return ls; } - - machineid = GenerateMachineId(); //判断有无授权 string binpath = AppDomain.CurrentDomain.BaseDirectory; @@ -135,6 +127,10 @@ namespace Quanjiang.DigitalScholl.WebLicense } } + /// + /// 网络授权判断 + /// + /// public static bool GetMAManagementInfo() { try