From 6e8a55b4a96fd6bdc220285745f84a7202306c0a Mon Sep 17 00:00:00 2001 From: ndbs Date: Thu, 5 Jan 2023 11:35:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E7=B1=8D=E5=BC=82=E5=AE=9E=E4=BD=93?= =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E6=90=AD=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/StuTransferInfoController.cs | 166 +++++ .../Views/StuTransferInfo/Form.cshtml | 175 ++++++ .../Views/StuTransferInfo/Form.js | 38 ++ .../Views/StuTransferInfo/Index.cshtml | 60 ++ .../Views/StuTransferInfo/Index.js | 299 +++++++++ .../Views/StuTransferInfo/MajorIndex.cshtml | 59 ++ .../Views/StuTransferInfo/MajorIndex.js | 566 ++++++++++++++++++ .../Learun.Application.Web.csproj | 5 + .../StuTransferInfoMap.cs | 29 + .../Learun.Application.Mapping.csproj | 1 + .../StuTransferInfo/StuTransferInfoBLL.cs | 148 +++++ .../StuTransferInfo/StuTransferInfoEntity.cs | 290 +++++++++ .../StuTransferInfo/StuTransferInfoIBLL.cs | 55 ++ .../StuTransferInfo/StuTransferInfoService.cs | 202 +++++++ .../Learun.Application.TwoDevelopment.csproj | 4 + 15 files changed, 2097 insertions(+) create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuTransferInfoController.cs create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/Form.cshtml create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/Form.js create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/Index.cshtml create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/Index.js create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/MajorIndex.cshtml create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/MajorIndex.js create mode 100644 Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/StuTransferInfoMap.cs create mode 100644 Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoBLL.cs create mode 100644 Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoEntity.cs create mode 100644 Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoIBLL.cs create mode 100644 Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoService.cs diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuTransferInfoController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuTransferInfoController.cs new file mode 100644 index 000000000..6a3b0ad30 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuTransferInfoController.cs @@ -0,0 +1,166 @@ +using Learun.Application.TwoDevelopment.EducationalAdministration; +using Learun.Util; +using System.Data; +using System.Web.Mvc; + +namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers +{ + /// + /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 + /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2023-01-04 15:03 + /// 描 述:学籍异动列表 + /// + public class StuTransferInfoController : MvcControllerBase + { + private StuTransferInfoIBLL stuTransferInfoIBLL = new StuTransferInfoBLL(); + + #region 视图功能 + + /// + /// 主页面 + /// + /// + [HttpGet] + public ActionResult Index() + { + return View(); + } + /// + /// 表单页 + /// + /// + [HttpGet] + public ActionResult Form() + { + return View(); + } + /// + /// 表单页 + /// + /// + [HttpGet] + public ActionResult MajorIndex() + { + return View(); + } + /// + /// 休学复学 + /// + /// + [HttpGet] + public ActionResult RestAgainIndex() + { + return View(); + } + /// + /// 退学页 + /// + /// + [HttpGet] + public ActionResult DropOutIndex() + { + return View(); + } + /// + /// 转入转出页 + /// + /// + [HttpGet] + public ActionResult InAndOutIndex() + { + return View(); + } + /// + /// 审核页 + /// + /// + [HttpGet] + public ActionResult CheckIndex() + { + return View(); + } + #endregion + + #region 获取数据 + + /// + /// 获取列表数据 + /// + /// 查询参数 + /// + [HttpGet] + [AjaxOnly] + public ActionResult GetList(string queryJson) + { + var data = stuTransferInfoIBLL.GetList(queryJson); + return Success(data); + } + /// + /// 获取列表分页数据 + /// + /// 分页参数 + /// 查询参数 + /// + [HttpGet] + [AjaxOnly] + public ActionResult GetPageList(string pagination, string queryJson) + { + Pagination paginationobj = pagination.ToObject(); + var data = stuTransferInfoIBLL.GetPageList(paginationobj, queryJson); + var jsonData = new + { + rows = data, + total = paginationobj.total, + page = paginationobj.page, + records = paginationobj.records + }; + return Success(jsonData); + } + /// + /// 获取表单数据 + /// + /// 主键 + /// + [HttpGet] + [AjaxOnly] + public ActionResult GetFormData(string keyValue) + { + var data = stuTransferInfoIBLL.GetEntity(keyValue); + return Success(data); + } + #endregion + + #region 提交数据 + + /// + /// 删除实体数据 + /// + /// 主键 + /// + [HttpPost] + [AjaxOnly] + public ActionResult DeleteForm(string keyValue) + { + stuTransferInfoIBLL.DeleteEntity(keyValue); + return Success("删除成功!"); + } + /// + /// 保存实体数据(新增、修改) + /// + /// 主键 + /// 实体 + /// + [HttpPost] + [ValidateAntiForgeryToken] + [AjaxOnly] + public ActionResult SaveForm(string keyValue, StuTransferInfoEntity entity) + { + stuTransferInfoIBLL.SaveEntity(keyValue, entity); + return Success("保存成功!"); + } + #endregion + + } +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/Form.cshtml new file mode 100644 index 000000000..53866b00a --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/Form.cshtml @@ -0,0 +1,175 @@ +@{ + ViewBag.Title = "学籍异动列表"; + Layout = "~/Views/Shared/_Form.cshtml"; +} +
+
+
ID*
+ +
+
+
学号*
+ +
+
+
姓名*
+ +
+
+
性别*
+ +
+
+
身份证号*
+ +
+
+
异动类型*
+ +
+
+
异动原因*
+ +
+
+
原班级*
+ +
+
+
原专业*
+ +
+
+
原系部*
+ +
+
+
年级*
+ +
+
+
学制*
+ +
+
+
入班日期*
+ +
+
+
离班日期*
+ +
+
+
现班级*
+ +
+
+
现专业*
+ +
+
+
现系部*
+ +
+
+
现年级*
+ +
+
+
现学制*
+ +
+
+
创建时间*
+ +
+
+
创建用户*
+ +
+
+
审核时间*
+ +
+
+
审核用户*
+ +
+
+
审核状态0否1是*
+ +
+
+
是否保留学籍 0是 1否*
+ +
+
+
是否注销账号 0否 1是*
+ +
+
+
是否恢复学籍 0是 1否*
+ +
+
+
是否恢复账号 0否 1是*
+ +
+
+
修学年限*
+ +
+
+
休学开始时间*
+ +
+
+
休学结束时间*
+ +
+
+
转学前学校*
+ +
+
+
转学前学号*
+ +
+
+
出身日期*
+ +
+
+
民族*
+ +
+
+
*
+ +
+
+
*
+ +
+
+
县/区*
+ +
+
+
联系电话*
+ +
+
+
家庭地址*
+ +
+
+
转出学校*
+ +
+
+
备注*
+ +
+
+@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuTransferInfo/Form.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/Form.js new file mode 100644 index 000000000..5d4842160 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/Form.js @@ -0,0 +1,38 @@ +/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) + * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + * 创建人:超级管理员 + * 日 期:2023-01-04 15:03 + * 描 述:学籍异动列表 + */ +var acceptClick; +var keyValue = request('keyValue'); +var bootstrap = function ($, learun) { + "use strict"; + var selectedRow = learun.frameTab.currentIframe().selectedRow; + var page = { + init: function () { + page.initData(); + }, + bind: function () { + }, + initData: function () { + if (!!selectedRow) { + $('#form').lrSetFormData(selectedRow); + } + } + }; + // 保存数据 + acceptClick = function (callBack) { + if (!$('#form').lrValidform()) { + return false; + } + var postData = $('#form').lrGetFormData(); + $.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/SaveForm?keyValue=' + keyValue, postData, function (res) { + // 保存成功后才回调 + if (!!callBack) { + callBack(); + } + }); + }; + page.init(); +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/Index.cshtml new file mode 100644 index 000000000..18728ca9b --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/Index.cshtml @@ -0,0 +1,60 @@ +@{ + ViewBag.Title = "学籍异动列表"; + Layout = "~/Views/Shared/_Index.cshtml"; +} +
+
+
+
+
+
+
+
+
+
异动类型
+
+
+
+
姓名
+ +
+
+
班级
+
+
+
+
申请人
+
+
+
+
审核人
+
+
+ @*
+
审核状态
+
+
*@ +
+
保留学籍
+
+
+
+
+
+
+
+
+ +
+ +
+
+
+
+
+
+@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuTransferInfo/Index.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/Index.js new file mode 100644 index 000000000..e7ce89881 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/Index.js @@ -0,0 +1,299 @@ +/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) + * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + * 创建人:超级管理员 + * 日 期:2023-01-04 15:03 + * 描 述:学籍异动列表 + */ +var selectedRow; +var refreshGirdData; +var bootstrap = function ($, learun) { + "use strict"; + var page = { + init: function () { + page.initGird(); + page.bind(); + }, + bind: function () { + // 查询 + $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { + page.search(queryJson); + }, 290, 400); + $('#AnomalousType').lrDataItemSelect({ code: 'StuChangeType' }); + $('#ClassNo').lrselect({ + allowSearch: true, + url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', + param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" }, + value: "classno", + text: "classname" + }); + $('#CheckUserId').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_encode', text: 'f_realname' }); + $('#CreateUserId').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_encode', text: 'f_realname' }); + $('#StuStatus').lrDataItemSelect({ code: 'YesOrNoInt' }); + // 刷新 + $('#lr_refresh').on('click', function () { + location.reload(); + }); + }, + initGird: function () { + $('#gridtable').lrAuthorizeJfGrid({ + url: top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/GetPageList', + headData: [ + { label: '姓名', name: 'StuName', width: 100, align: "left" }, + { label: '学号', name: 'StuNo', width: 140, align: "left" }, + //{ label: '性别', name: 'Gender', width: 200, align: "left" }, + { label: '身份证号', name: 'IdentityCardNo', width: 160, align: "left" }, + { + label: '异动类型', name: 'AnomalousType', width: 100, align: "left", + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('dataItem', { + key: value, + code: 'StuChangeType', + callback: function (_data) { + callback(_data.text); + } + }); + } + }, + { label: '异动原因', name: 'ChangeReason', width: 300, align: "left" }, + { + label: '原班级', name: 'ClassNo', width: 100, align: "left", + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj', + key: value, + keyId: 'classno', + callback: function (_data) { + callback(_data['classname']); + } + }); + } + }, + { + label: '原专业', name: 'MajorNo', width: 100, align: "left", + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo', + key: value, + keyId: 'majorno', + callback: function (_data) { + callback(_data['majorname']); + } + }); + } + }, + { + label: '原系部', name: 'DeptNo', width: 100, align: "left", + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo', + key: value, + keyId: 'deptno', + callback: function (_data) { + callback(_data['deptname']); + } + }); + } + }, + { label: '年级', name: 'Grade', width: 60, align: "left" }, + { + label: '学制', name: 'EduSystem', width: 100, align: "left", + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('dataItem', { + key: value, + code: 'EduSystem', + callback: function (_data) { + callback(_data.text); + } + }); + } + }, + { + label: '入班日期', name: 'LeaveDate', width: 100, align: "left", + formatter: function (cellvalue) { + return learun.formatDate(cellvalue, 'yyyy-MM-dd'); + } + }, + { + label: '离班日期', name: 'EnteDate', width: 100, align: "left", + formatter: function (cellvalue) { + return learun.formatDate(cellvalue, 'yyyy-MM-dd'); + } + }, + { + label: '现班级', name: 'NewClassNo', width: 100, align: "left", + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj', + key: value, + keyId: 'classno', + callback: function (_data) { + callback(_data['classname']); + } + }); + } + }, + { + label: '现专业', name: 'NewMajorNo', width: 100, align: "left", + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo', + key: value, + keyId: 'majorno', + callback: function (_data) { + callback(_data['majorname']); + } + }); + } + }, + { + label: '现系部', name: 'NewDeptNo', width: 100, align: "left", + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo', + key: value, + keyId: 'deptno', + callback: function (_data) { + callback(_data['deptname']); + } + }); + } + }, + { label: '现年级', name: 'NewGrade', width: 60, align: "left" }, + { + label: '创建时间', name: 'CreateTime', width: 100, align: "left", + formatter: function (cellvalue) { + return learun.formatDate(cellvalue, 'yyyy-MM-dd'); + } + }, + { + label: '创建用户', name: 'CreateUserId', width: 200, align: "left", + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser', + key: value, + keyId: 'f_userid', + callback: function (_data) { + callback(_data['f_realname']); + } + }); + } + }, + { + label: '审核时间', name: 'CheckTime', width: 200, align: "left", + formatter: function (cellvalue) { + return learun.formatDate(cellvalue, 'yyyy-MM-dd'); + } + }, + { + label: '审核用户', name: 'CheckUserId', width: 200, align: "left", + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser', + key: value, + keyId: 'f_userid', + callback: function (_data) { + callback(_data['f_realname']); + } + }); + } + }, + { + label: '审核状态', name: 'F_EnabledMark', width: 80, align: "left", + formatter: function (cellvalue) { + return cellvalue == "1" ? "已审核" : "未审核"; + } + }, + { + label: '是否保留学籍', name: 'StuStatus', width: 80, align: "left", + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('dataItem', { + key: value, + code: 'YesOrNoInt', + callback: function (_data) { + callback(_data.text); + } + }); + } + }, + { + label: '是否注销账号', name: 'F_WriteMark', width: 80, align: "left", + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('dataItem', { + key: value, + code: 'YesOrNoInt', + callback: function (_data) { + callback(_data.text); + } + }); + } + }, + { + label: '是否恢复学籍', name: 'RecoverStuStatus', width: 80, align: "left", + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('dataItem', { + key: value, + code: 'YesOrNoInt', + callback: function (_data) { + callback(_data.text); + } + }); + } + }, + { + label: '是否恢复账号', name: 'RecoverWriteMark', width: 80, align: "left", + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('dataItem', { + key: value, + code: 'YesOrNoInt', + callback: function (_data) { + callback(_data.text); + } + }); + } + }, + { label: '修学年限', name: 'SuspensionPeriod', width: 200, align: "left" }, + { + label: '休学开始时间', name: 'SuspensionBeginTime', width: 100, align: "left", + formatter: function (cellvalue) { + return learun.formatDate(cellvalue, 'yyyy-MM-dd'); + } + }, + { + label: '休学结束时间', name: 'SuspensionEndTime', width: 100, align: "left", + formatter: function (cellvalue) { + return learun.formatDate(cellvalue, 'yyyy-MM-dd'); + } + }, + { label: '转学前学校', name: 'TransferSchool', width: 150, align: "left" }, + { label: '转学前学号', name: 'TransferStuNo', width: 100, align: "left" }, + { + label: '出身日期', name: 'Birthday', width: 100, align: "left", + formatter: function (cellvalue) { + return learun.formatDate(cellvalue, 'yyyy-MM-dd'); + } + }, + { label: '民族', name: 'NationalityNo', width: 80, align: "left" }, + { label: '省', name: 'Province', width: 100, align: "left" }, + { label: '市', name: 'City', width: 100, align: "left" }, + { label: '县/区', name: 'County', width: 100, align: "left" }, + { label: '联系电话', name: 'Mobile', width: 100, align: "left" }, + { label: '家庭地址', name: 'MailAddress', width: 200, align: "left" }, + { label: '转出学校', name: 'OutSchool', width: 100, align: "left" }, + { label: '备注', name: 'Remark', width: 500, align: "left" }, + ], + mainId: 'ID', + isPage: true, + rows: 100, + }); + page.search(); + }, + search: function (param) { + param = param || {}; + $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); + } + }; + refreshGirdData = function () { + $('#gridtable').jfGridSet('reload'); + }; + page.init(); +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/MajorIndex.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/MajorIndex.cshtml new file mode 100644 index 000000000..12293e5ff --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/MajorIndex.cshtml @@ -0,0 +1,59 @@ +@{ + ViewBag.Title = "学籍异动列表"; + Layout = "~/Views/Shared/_Index.cshtml"; +} +
+
+
+
+
+
+
+
+
+
系部
+
+
+
+
专业
+
+
+
+
年级
+
+
+
+
班级
+
+
+
+
姓名
+ +
+
+
身份证号
+ +
+
+
学生编号
+ +
+
+
学籍号
+ +
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuTransferInfo/MajorIndex.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/MajorIndex.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/MajorIndex.js new file mode 100644 index 000000000..9f5f0a867 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/MajorIndex.js @@ -0,0 +1,566 @@ +var refreshGirdData; +var StuId; +var bootstrap = function ($, learun) { + "use strict"; + var page = { + init: function () { + page.initGird(); + page.bind(); + }, + bind: function () { + $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { + page.search(queryJson); + }, 450, 400); + $('#DeptNo').lrselect({ + allowSearch: true, + value: "deptno", + text: "deptname", + url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo', + select: function (item) { + if (item) { + $('#MajorNo').lrselectRefresh({ + allowSearch: true, + url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', + param: { strWhere: "DeptNo='" + item.deptno + "' AND CheckMark=1" } + }); + } else { + $('#MajorNo').lrselectRefresh({ + allowSearch: true, + url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', + param: { strWhere: "1=1 AND CheckMark=1" } + }); + } + + } + }); + $('#MajorNo').lrselect({ + allowSearch: true, + url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', + value: "majorno", + text: "majorname", + param: { strWhere: "1=1 AND CheckMark=1" }, + select: function (item) { + var Grades = $("#Grade").lrselectGet(); + if (Grades != null && Grades != "" && Grades != "undefined") { + if (item) { + $('#ClassNo').lrselectRefresh({ + allowSearch: true, + url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', + param: { strWhere: "majorno='" + item.majorno + "' AND CheckMark=1 AND Grade='" + Grades + "' order by classno desc" } + }); + } else { + $('#ClassNo').lrselectRefresh({ + allowSearch: true, + url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', + param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" } + }); + } + } else { + if (item) { + $('#ClassNo').lrselectRefresh({ + allowSearch: true, + url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', + param: { strWhere: "majorno='" + item.majorno + "' AND CheckMark=1 order by classno desc" } + }); + } else { + $('#ClassNo').lrselectRefresh({ + allowSearch: true, + url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', + param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" } + }); + } + } + } + }); + $('#Grade').lrselect({ + url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GenerateNearByYear', + value: "value", + text: "text", + select: function (item) { + var MajorNos = $("#MajorNo").lrselectGet(); + if (MajorNos != null && MajorNos != "" && MajorNos != "undefined") { + if (item) { + $('#ClassNo').lrselectRefresh({ + allowSearch: true, + url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', + param: { + strWhere: "majorno='" + MajorNos + "' AND CheckMark=1 AND Grade='" + item.text + "' order by classno desc" + } + }); + } else { + $('#ClassNo').lrselectRefresh({ + allowSearch: true, + url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', + param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" } + }); + } + } else { + if (item) { + $('#ClassNo').lrselectRefresh({ + allowSearch: true, + url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', + param: { + strWhere: "CheckMark=1 AND Grade='" + item.text + "' order by classno desc" + } + }); + } else { + $('#ClassNo').lrselectRefresh({ + allowSearch: true, + url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', + param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" } + }); + } + } + + } + }); + $('#ClassNo').lrselect({ + allowSearch: true, + url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', + param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" }, + value: "classno", + text: "classname" + }); + // 刷新 + $('#lr_refresh').on('click', function () { + location.reload(); + }); + //查看 + $('#lr_view').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('StuId'); + if (learun.checkrow(keyValue)) { + if (keyValue.indexOf(',') != -1) { + learun.alert.warning("只能选择一条记录进行查看!"); + return; + } + learun.layerForm({ + id: 'form', + title: '查看', + url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/FormView?keyValue=' + keyValue, + width: 1162, + height: 600, + btn: null + }); + } + }); + + }, + // 初始化列表 + initGird: function () { + $('#gridtable').lrAuthorizeJfGridLei({ + url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/GetPageList', + headData: [ + //{ + // label: "审核状态", name: "CheckMark", width: 80, align: "center", + // formatter: function (cellvalue) { + // return cellvalue == "1" ? "已审核" : "未审核"; + // } + //}, + { label: "学生编号", name: "StuNo", width: 100, align: "left", ishide: true, }, + { label: "学籍号", name: "StuCode", width: 100, align: "left", ishide: true, }, + { label: "学号", name: "ProvinceCode", width: 100, align: "left" }, + { label: "姓名", name: "StuName", width: 100, align: "left" }, + { + label: "性别", name: "GenderNo", width: 80, align: "left", + formatter: function (cellvalue) { + return cellvalue == true ? "男" : "女"; + } + }, + { + label: "出生日期", name: "Birthday", width: 100, align: "left", ishide: true, + formatter: function (value) { + return learun.formatDate(value, 'yyyy-MM-dd'); + } + }, + { label: "身份证号", name: "IdentityCardNo", width: 100, align: "left" }, + { + label: "民族", name: "NationalityNo", width: 100, align: "left", + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('dataItem', { + key: value, + code: 'National', + callback: function (_data) { + callback(_data.text); + } + }); + } + }, + //{ + // label: "政治面貌", name: "PartyFaceNo", width: 100, align: "left", + // formatterAsync: function (callback, value, row, op, $cell) { + // learun.clientdata.getAsync('dataItem', { + // key: value, + // code: 'PolityStatus', + // callback: function (_data) { + // callback(_data.text); + // } + // }); + // } + //}, + { label: "年级", name: "Grade", width: 100, align: "left" }, + { + label: "系所", name: "DeptNo", width: 100, align: "left", + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo', + key: value, + keyId: 'deptno', + callback: function (_data) { + callback(_data['deptname']); + } + }); + } + }, + { + label: "专业", name: "MajorNo", width: 100, align: "left", + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo', + key: value, + keyId: 'majorno', + callback: function (_data) { + callback(_data['majorname']); + } + }); + } + }, + { + label: "班级", name: "ClassNo", width: 100, align: "left", + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj', + key: value, + keyId: 'classno', + callback: function (_data) { + callback(_data['classname']); + } + }); + } + }, + { + label: "学制", name: "EduSystem", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('dataItem', { + key: value, + code: 'EduSystem', + callback: function (_data) { + callback(_data.text); + } + }); + } + }, + //{ + // label: "身体状态", name: "HealthStatus", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { + // learun.clientdata.getAsync('dataItem', { + // key: value, + // code: 'QRCodeHealthStatus', + // callback: function (_data) { + // callback(_data.text); + // } + // }); + // } + //}, + //{ + // label: "学习形式", name: "StudyModality", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { + // learun.clientdata.getAsync('dataItem', { + // key: value, + // code: 'StudyModality', + // callback: function (_data) { + // callback(_data.text); + // } + // }); + // } + //}, + //{ label: "报到日期", name: "RegisterDate", width: 100, align: "left" }, + //{ label: "入学方式", name: "EntranceWay", width: 100, align: "left" }, + //{ label: "入学年月", name: "EntranceDate", width: 100, align: "left" }, + //{ label: "余额", name: "Balance", width: 100, align: "left" }, + { label: "家庭地址", name: "MailAddress", width: 100, align: "left" }, + { label: "联系电话", name: "mobile", width: 100, align: "left" }, + { label: "户口所在地", name: "FatherUnit", width: 100, align: "left" }, + { label: "档案所在地", name: "MatherUnit", width: 100, align: "left" }, + //{ + // label: "五年一贯制", name: "FiveYear", width: 100, align: "left" + // , formatterAsync: function (callback, value, row, op, $cell) { + // learun.clientdata.getAsync('dataItem', { + // key: value, + // code: 'PieceCultivateWay', + // callback: function (_data) { + // callback(_data.text); + // } + // }); + // } + //}, + //{ + // label: "异动状态", name: "AbmormityMoveMark", width: 80, align: "center", + // formatter: function (cellvalue) { + // return cellvalue == "1" ? "" : ""; + // } + //}, + //{ + // label: "是否上传头像", name: "Photo", width: 80, align: "center", + // formatter: function (cellvalue) { + // if (cellvalue != null && cellvalue != "" && cellvalue != undefined) { + // return cellvalue = ""; + // } else { + // return cellvalue = ""; + // } + // } + //}, + //{ label: "拼音", name: "SpellFull", width: 100, align: "left", ishide: true }, + //{ label: "就读方式", name: "StudyingWay", width: 100, align: "left", ishide: true }, + //{ + // label: "国籍", name: "CountryNo", width: 100, align: "left", ishide: true, + // formatterAsync: function (callback, value, row, op, $cell) { + // learun.clientdata.getAsync('dataItem', { + // key: value, + // code: 'BCdCountry', + // callback: function (_data) { + // callback(_data.text); + // } + // }); + // } + //}, + //{ + // label: "港澳台侨外", name: "OverseasChineseNo", width: 100, align: "left", ishide: true, + // formatterAsync: function (callback, value, row, op, $cell) { + // learun.clientdata.getAsync('dataItem', { + // key: value, + // code: 'BCdOverseasChinese', + // callback: function (_data) { + // callback(_data.text); + // } + // }); + // } + //}, + //{ + // label: "婚姻状况", name: "MarriageStatus", width: 100, align: "left", ishide: true, + // formatterAsync: function (callback, value, row, op, $cell) { + // learun.clientdata.getAsync('dataItem', { + // key: value, + // code: 'BCdOverseasChinese', + // callback: function (_data) { + // callback(_data.text); + // } + // }); + // } + //}, + //{ label: "乘火车区间", name: "TrainInterval", width: 100, align: "left", ishide: true, }, + //{ label: "是否随迁子女", name: "IsTrailChildren", width: 100, align: "left", ishide: true, }, + //{ label: "生源地行政区划码", name: "StuPlaceCode", width: 100, align: "left", ishide: true, }, + //{ label: "出生地行政区划码", name: "BirthPlaceCode", width: 100, align: "left", ishide: true, }, + //{ label: "籍贯地行政区划码", name: "NativePlaceCode", width: 100, align: "left", ishide: true, }, + //{ label: "所属派出所", name: "BelongPolice", width: 100, align: "left", ishide: true, }, + //{ label: "户口所在地行政区划码", name: "ResidencePlaceCode", width: 100, align: "left", ishide: true, }, + //{ label: "是否农户", name: "ResidenceNo", width: 100, align: "left", ishide: true, }, + //{ + // label: "学生居住地类型", name: "StuLivePlaceType", width: 100, align: "left", ishide: true, + // formatterAsync: function (callback, value, row, op, $cell) { + // learun.clientdata.getAsync('dataItem', { + // key: value, + // code: 'StuLivePlaceType', + // callback: function (_data) { + // callback(_data.text); + // } + // }); + // } + //}, + //{ + // label: "健康状况", name: "HealthStatusNo", width: 100, align: "left", ishide: true, + // formatterAsync: function (callback, value, row, op, $cell) { + // learun.clientdata.getAsync('dataItem', { + // key: value, + // code: 'StuHealthType', + // callback: function (_data) { + // callback(_data.text); + // } + // }); + // } + //}, + //{ label: "学生来源", name: "StuOrigin", width: 100, align: "left", ishide: true, }, + //{ label: "招生对象", name: "RecruitObject", width: 100, align: "left", ishide: true, }, + //{ label: "贫困户否建档立卡贫困户", name: "PoorIsRecord", width: 100, align: "left", ishide: true, }, + //{ + // label: "招生方式", name: "RecruitWay", width: 100, align: "left", ishide: true, + // formatterAsync: function (callback, value, row, op, $cell) { + // learun.clientdata.getAsync('dataItem', { + // key: value, + // code: 'RecruitWay', + // callback: function (_data) { + // callback(_data.text); + // } + // }); + // } + //}, + //{ + // label: "联招合作类型", name: "RecruitCooperateType", width: 100, align: "left", ishide: true, + // formatterAsync: function (callback, value, row, op, $cell) { + // learun.clientdata.getAsync('dataItem', { + // key: value, + // code: 'RecruitCooperateType', + // callback: function (_data) { + // callback(_data.text); + // } + // }); + // } + //}, + //{ label: "准考证号", name: "AdmissionNo", width: 100, align: "left", ishide: true, }, + //{ label: "考生号", name: "ksh", width: 100, align: "left", ishide: true, }, + //{ label: "考试总分", name: "ExamScore", width: 100, align: "left", ishide: true, }, + //{ label: "联招合作办学形式", name: "RecruitCooperateForm", width: 100, align: "left", ishide: true, }, + //{ label: "联招合作学校代码", name: "RecruitCooperateSchoolNo", width: 100, align: "left", ishide: true, }, + //{ label: "校外教学点", name: "SchoolOutsidePlace", width: 100, align: "left", ishide: true, }, + //{ label: "英文姓名", name: "EnglishName", width: 100, align: "left", ishide: true, }, + //{ label: "家庭邮政编码", name: "PostalCode", width: 100, align: "left", ishide: true, }, + //{ label: "其他联系方式", name: "OtherContact", width: 100, align: "left", ishide: true, }, + //{ label: "成员1姓名", name: "OneName", width: 100, align: "left", ishide: true, }, + //{ label: "成员1联系电话", name: "OneMobile", width: 100, align: "left", ishide: true }, + //{ + // label: "成员1关系", name: "OneMembership", width: 100, align: "left", ishide: true, + // formatterAsync: function (callback, value, row, op, $cell) { + // learun.clientdata.getAsync('dataItem', { + // key: value, + // code: 'GuardianType', + // callback: function (_data) { + // callback(_data.text); + // } + // }); + // } + //}, + //{ label: "成员1是否监护人", name: "OneIsGuardian", width: 100, align: "left", ishide: true, }, + //{ + // label: "成员1出生年月", name: "OneBirthday", width: 100, align: "left", ishide: true, + // formatter: function (value) { + // return learun.formatDate(value, 'yyyy-MM-dd'); + // } + //}, + //{ + // label: "成员1身份证件类型", name: "OneIdCardType", width: 100, align: "left", ishide: true, + // formatterAsync: function (callback, value, row, op, $cell) { + // learun.clientdata.getAsync('dataItem', { + // key: value, + // code: 'IdCardType', + // callback: function (_data) { + // callback(_data.text); + // } + // }); + // } + //}, + //{ label: "成员1身份证件号", name: "OneIdCardNo", width: 100, align: "left", ishide: true, }, + //{ + // label: "成员1民族", name: "OneNationalityNo", width: 100, align: "left", ishide: true, + // formatterAsync: function (callback, value, row, op, $cell) { + // learun.clientdata.getAsync('dataItem', { + // key: value, + // code: 'National', + // callback: function (_data) { + // callback(_data.text); + // } + // }); + // } + //}, + //{ + // label: "成员1健康状况", name: "OneHealthStatus", width: 100, align: "left", ishide: true, + // formatterAsync: function (callback, value, row, op, $cell) { + // learun.clientdata.getAsync('dataItem', { + // key: value, + // code: 'EpiHealth', + // callback: function (_data) { + // callback(_data.text); + // } + // }); + // } + //}, + //{ label: "成员1工作或学习单位", name: "OneJob", width: 100, align: "left", ishide: true, }, + //{ label: "成员2姓名", name: "TwoName", width: 100, align: "left", ishide: true, }, + //{ label: "成员2联系电话", name: "TwoMobile", width: 100, align: "left", ishide: true }, + //{ + // label: "成员2关系", name: "TwoMembership", width: 100, align: "left", ishide: true, + // formatterAsync: function (callback, value, row, op, $cell) { + // learun.clientdata.getAsync('dataItem', { + // key: value, + // code: 'GuardianType', + // callback: function (_data) { + // callback(_data.text); + // } + // }); + // } + //}, + //{ label: "成员2是否监护人", name: "TwoIsGuardian", width: 100, align: "left", ishide: true, }, + //{ + // label: "成员2出生年月", name: "TwoBirthday", width: 100, align: "left", ishide: true, + // formatter: function (value) { + // return learun.formatDate(value, 'yyyy-MM-dd'); + // } + //}, + //{ + // label: "成员2身份证件类型", name: "TwoIdCardType", width: 100, align: "left", ishide: true, + // formatterAsync: function (callback, value, row, op, $cell) { + // learun.clientdata.getAsync('dataItem', { + // key: value, + // code: 'IdCardType', + // callback: function (_data) { + // callback(_data.text); + // } + // }); + // } + //}, + //{ label: "成员2身份证件号", name: "TwoIdCardNo", width: 100, align: "left", ishide: true, }, + //{ + // label: "成员2民族", name: "TwoNationalityNo", width: 100, align: "left", ishide: true, + // formatterAsync: function (callback, value, row, op, $cell) { + // learun.clientdata.getAsync('dataItem', { + // key: value, + // code: 'National', + // callback: function (_data) { + // callback(_data.text); + // } + // }); + // } + //}, + //{ + // label: "成员2健康状况", name: "TwoHealthStatus", width: 100, align: "left", ishide: true, + // formatterAsync: function (callback, value, row, op, $cell) { + // learun.clientdata.getAsync('dataItem', { + // key: value, + // code: 'EpiHealth', + // callback: function (_data) { + // callback(_data.text); + // } + // }); + // } + //}, + //{ label: "成员2工作或学习单位", name: "TwoJob", width: 100, align: "left", ishide: true, }, + //{ label: "成员2职务", name: "TwoPosition", width: 100, align: "left", ishide: true, }, + + ], + mainId: 'StuId', + isPage: true, + rows: 100, + isMultiselect: true, + //onSelectRow: function (rowdata) { + // if (rowdata.CheckMark == "1") { + // $("#check").hide(); + // $("#uncheck").show(); + // $("#lr_edit").hide(); + // $("#lr_delete").hide(); + // } else { + // $("#uncheck").hide(); + // $("#check").show(); + // $("#lr_edit").show(); + // $("#lr_delete").show(); + // } + //} + + }); + page.search(); + }, + search: function (param) { + param = param || {}; + $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); + } + }; + refreshGirdData = function () { + page.search(); + }; + page.init(); +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj index ea3d283fd..db18cf822 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 @@ -892,6 +892,7 @@ + @@ -1359,6 +1360,7 @@ + @@ -7037,6 +7039,8 @@ + + @@ -8025,6 +8029,7 @@ + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/StuTransferInfoMap.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/StuTransferInfoMap.cs new file mode 100644 index 000000000..c27185fce --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/StuTransferInfoMap.cs @@ -0,0 +1,29 @@ +using Learun.Application.TwoDevelopment.EducationalAdministration; +using System.Data.Entity.ModelConfiguration; + +namespace Learun.Application.Mapping +{ + /// + /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 + /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2023-01-04 15:03 + /// 描 述:学籍异动列表 + /// + public class StuTransferInfoMap : EntityTypeConfiguration + { + public StuTransferInfoMap() + { + #region 表、主键 + //表 + this.ToTable("STUTRANSFERINFO"); + //主键 + this.HasKey(t => t.ID); + #endregion + + #region 配置关系 + #endregion + } + } +} + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj index 6bc5afd74..fbce7f53c 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj @@ -650,6 +650,7 @@ + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoBLL.cs new file mode 100644 index 000000000..a4cdf7ba3 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoBLL.cs @@ -0,0 +1,148 @@ +using Learun.Util; +using System; +using System.Data; +using System.Collections.Generic; + +namespace Learun.Application.TwoDevelopment.EducationalAdministration +{ + /// + /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 + /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2023-01-04 15:03 + /// 描 述:学籍异动列表 + /// + public class StuTransferInfoBLL : StuTransferInfoIBLL + { + private StuTransferInfoService stuTransferInfoService = new StuTransferInfoService(); + + #region 获取数据 + + /// + /// 获取列表数据 + /// + /// 查询参数 + /// + public IEnumerable GetList( string queryJson ) + { + try + { + return stuTransferInfoService.GetList(queryJson); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + + /// + /// 获取列表分页数据 + /// + /// 分页参数 + /// 查询参数 + /// + public IEnumerable GetPageList(Pagination pagination, string queryJson) + { + try + { + return stuTransferInfoService.GetPageList(pagination, queryJson); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + + /// + /// 获取实体数据 + /// + /// 主键 + /// + public StuTransferInfoEntity GetEntity(string keyValue) + { + try + { + return stuTransferInfoService.GetEntity(keyValue); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + + #endregion + + #region 提交数据 + + /// + /// 删除实体数据 + /// + /// 主键 + public void DeleteEntity(string keyValue) + { + try + { + stuTransferInfoService.DeleteEntity(keyValue); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + + /// + /// 保存实体数据(新增、修改) + /// + /// 主键 + /// 实体 + public void SaveEntity(string keyValue, StuTransferInfoEntity entity) + { + try + { + stuTransferInfoService.SaveEntity(keyValue, 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/StuTransferInfo/StuTransferInfoEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoEntity.cs new file mode 100644 index 000000000..bcd8fb6a4 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoEntity.cs @@ -0,0 +1,290 @@ +using Learun.Util; +using System; +using System.ComponentModel.DataAnnotations.Schema; +namespace Learun.Application.TwoDevelopment.EducationalAdministration + +{ + /// + /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 + /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2023-01-04 15:03 + /// 描 述:学籍异动列表 + /// + public class StuTransferInfoEntity + { + #region 实体成员 + /// + /// ID + /// + /// + [Column("ID")] + public string ID { get; set; } + /// + /// 学号 + /// + /// + [Column("STUNO")] + public string StuNo { get; set; } + /// + /// 姓名 + /// + /// + [Column("STUNAME")] + public string StuName { get; set; } + /// + /// 性别 + /// + /// + [Column("GENDER")] + public bool? Gender { get; set; } + /// + /// 身份证号 + /// + /// + [Column("IDENTITYCARDNO")] + public string IdentityCardNo { get; set; } + /// + /// 异动类型 + /// + /// + [Column("ANOMALOUSTYPE")] + public string AnomalousType { get; set; } + /// + /// 异动原因 + /// + /// + [Column("CHANGEREASON")] + public string ChangeReason { get; set; } + /// + /// 原班级 + /// + /// + [Column("CLASSNO")] + public string ClassNo { get; set; } + /// + /// 原专业 + /// + /// + [Column("MAJORNO")] + public string MajorNo { get; set; } + /// + /// 原系部 + /// + /// + [Column("DEPTNO")] + public string DeptNo { get; set; } + /// + /// 年级 + /// + /// + [Column("GRADE")] + public string Grade { get; set; } + /// + /// 学制 + /// + /// + [Column("EDUSYSTEM")] + public string EduSystem { get; set; } + /// + /// 入班日期 + /// + /// + [Column("LEAVEDATE")] + public DateTime? LeaveDate { get; set; } + /// + /// 离班日期 + /// + /// + [Column("ENTEDATE")] + public string EnteDate { get; set; } + /// + /// 现班级 + /// + /// + [Column("NEWCLASSNO")] + public string NewClassNo { get; set; } + /// + /// 现专业 + /// + /// + [Column("NEWMAJORNO")] + public string NewMajorNo { get; set; } + /// + /// 现系部 + /// + /// + [Column("NEWDEPTNO")] + public string NewDeptNo { get; set; } + /// + /// 现年级 + /// + /// + [Column("NEWGRADE")] + public string NewGrade { get; set; } + /// + /// 现学制 + /// + /// + [Column("NEWEDUSYSTEM")] + public string NewEduSystem { get; set; } + /// + /// 创建时间 + /// + /// + [Column("CREATETIME")] + public DateTime? CreateTime { get; set; } + /// + /// 创建用户 + /// + /// + [Column("CREATEUSERID")] + public string CreateUserId { get; set; } + /// + /// 审核时间 + /// + /// + [Column("CHECKTIME")] + public DateTime? CheckTime { get; set; } + /// + /// 审核用户 + /// + /// + [Column("CHECKUSERID")] + public string CheckUserId { get; set; } + /// + /// 审核状态0否1是 + /// + /// + [Column("F_ENABLEDMARK")] + public int? F_EnabledMark { get; set; } + /// + /// 是否保留学籍 0是 1否 + /// + /// + [Column("STUSTATUS")] + public int? StuStatus { get; set; } + /// + /// 是否注销账号 0否 1是 + /// + /// + [Column("F_WRITEMARK")] + public int? F_WriteMark { get; set; } + /// + /// 是否恢复学籍 0是 1否 + /// + /// + [Column("RECOVERSTUSTATUS")] + public string RecoverStuStatus { get; set; } + /// + /// 是否恢复账号 0否 1是 + /// + /// + [Column("RECOVERWRITEMARK")] + public string RecoverWriteMark { get; set; } + /// + /// 修学年限 + /// + /// + [Column("SUSPENSIONPERIOD")] + public string SuspensionPeriod { get; set; } + /// + /// 休学开始时间 + /// + /// + [Column("SUSPENSIONBEGINTIME")] + public DateTime? SuspensionBeginTime { get; set; } + /// + /// 休学结束时间 + /// + /// + [Column("SUSPENSIONENDTIME")] + public DateTime? SuspensionEndTime { get; set; } + /// + /// 转学前学校 + /// + /// + [Column("TRANSFERSCHOOL")] + public string TransferSchool { get; set; } + /// + /// 转学前学号 + /// + /// + [Column("TRANSFERSTUNO")] + public string TransferStuNo { get; set; } + /// + /// 出身日期 + /// + /// + [Column("BIRTHDAY")] + public DateTime? Birthday { get; set; } + /// + /// 民族 + /// + /// + [Column("NATIONALITYNO")] + public string NationalityNo { get; set; } + /// + /// 省 + /// + /// + [Column("PROVINCE")] + public string Province { get; set; } + /// + /// 市 + /// + /// + [Column("CITY")] + public string City { get; set; } + /// + /// 县/区 + /// + /// + [Column("COUNTY")] + public string County { get; set; } + /// + /// 联系电话 + /// + /// + [Column("MOBILE")] + public string Mobile { get; set; } + /// + /// 家庭地址 + /// + /// + [Column("MAILADDRESS")] + public string MailAddress { get; set; } + /// + /// 转出学校 + /// + /// + [Column("OUTSCHOOL")] + public string OutSchool { get; set; } + /// + /// 备注 + /// + /// + [Column("REMARK")] + public string Remark { get; set; } + #endregion + + #region 扩展操作 + /// + /// 新增调用 + /// + public void Create() + { + this.ID = Guid.NewGuid().ToString(); + } + /// + /// 编辑调用 + /// + /// + public void Modify(string keyValue) + { + this.ID = keyValue; + } + #endregion + } +} + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoIBLL.cs new file mode 100644 index 000000000..38388c74d --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoIBLL.cs @@ -0,0 +1,55 @@ +using Learun.Util; +using System.Data; +using System.Collections.Generic; + +namespace Learun.Application.TwoDevelopment.EducationalAdministration +{ + /// + /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 + /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2023-01-04 15:03 + /// 描 述:学籍异动列表 + /// + public interface StuTransferInfoIBLL + { + #region 获取数据 + + /// + /// 获取列表数据 + /// + /// 查询参数 + /// + IEnumerable GetList( string queryJson ); + /// + /// 获取列表分页数据 + /// + /// 分页参数 + /// 查询参数 + /// + IEnumerable GetPageList(Pagination pagination, string queryJson); + /// + /// 获取实体数据 + /// + /// 主键 + /// + StuTransferInfoEntity GetEntity(string keyValue); + #endregion + + #region 提交数据 + + /// + /// 删除实体数据 + /// + /// 主键 + void DeleteEntity(string keyValue); + /// + /// 保存实体数据(新增、修改) + /// + /// 主键 + /// 实体 + void SaveEntity(string keyValue, StuTransferInfoEntity entity); + #endregion + + } +} diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoService.cs new file mode 100644 index 000000000..056b291e3 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoService.cs @@ -0,0 +1,202 @@ +using Dapper; +using Learun.DataBase.Repository; +using Learun.Util; +using System; +using System.Collections.Generic; +using System.Data; +using System.Text; + +namespace Learun.Application.TwoDevelopment.EducationalAdministration +{ + /// + /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 + /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + /// 创 建:超级管理员 + /// 日 期:2023-01-04 15:03 + /// 描 述:学籍异动列表 + /// + public class StuTransferInfoService : RepositoryFactory + { + #region 获取数据 + /// + /// 获取列表数据 + /// + /// 条件参数 + /// + public IEnumerable GetList(string queryJson) + { + try + { + //参考写法 + //var queryParam = queryJson.ToJObject(); + // 虚拟参数 + //var dp = new DynamicParameters(new { }); + //dp.Add("startTime", queryParam["StartTime"].ToDate(), DbType.DateTime); + var strSql = new StringBuilder(); + strSql.Append("SELECT t.* "); + strSql.Append(" FROM StuTransferInfo t "); + return this.BaseRepository("CollegeMIS").FindList(strSql.ToString()); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } + + /// + /// 获取列表分页数据 + /// + /// 分页参数 + /// 条件参数 + /// + public IEnumerable GetPageList(Pagination pagination, string queryJson) + { + try + { + var strSql = new StringBuilder(); + strSql.Append("SELECT t.* "); + strSql.Append(" FROM StuTransferInfo t "); + strSql.Append(" WHERE 1=1 "); + var queryParam = queryJson.ToJObject(); + // 虚拟参数 + var dp = new DynamicParameters(new { }); + if (!queryParam["AnomalousType"].IsEmpty()) + { + dp.Add("AnomalousType", queryParam["AnomalousType"].ToString(), DbType.String); + strSql.Append(" AND t.AnomalousType = @AnomalousType "); + } + if (!queryParam["StuName"].IsEmpty()) + { + dp.Add("StuName", "%" + queryParam["StuName"].ToString() + "%", DbType.String); + strSql.Append(" AND t.StuName like @StuName "); + } + if (!queryParam["ClassNo"].IsEmpty()) + { + dp.Add("ClassNo", queryParam["ClassNo"].ToString(), DbType.String); + strSql.Append(" AND t.ClassNo = @ClassNo "); + } + if (!queryParam["ClassNo"].IsEmpty()) + { + dp.Add("CheckUserId", queryParam["CheckUserId"].ToString(), DbType.String); + strSql.Append(" AND t.CheckUserId = @CheckUserId "); + } + if (!queryParam["CheckUserId"].IsEmpty()) + { + dp.Add("CheckUserId", queryParam["CheckUserId"].ToString(), DbType.String); + strSql.Append(" AND t.CheckUserId = @CheckUserId "); + } + if (!queryParam["StuStatus"].IsEmpty()) + { + dp.Add("StuStatus", queryParam["StuStatus"].ToString(), DbType.String); + strSql.Append(" AND t.StuStatus = @StuStatus "); + } + return this.BaseRepository("CollegeMIS").FindList(strSql.ToString(), pagination); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } + + /// + /// 获取实体数据 + /// + /// 主键 + /// + public StuTransferInfoEntity GetEntity(string keyValue) + { + try + { + return this.BaseRepository("CollegeMIS").FindEntity(keyValue); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } + + #endregion + + #region 提交数据 + + /// + /// 删除实体数据 + /// + /// 主键 + public void DeleteEntity(string keyValue) + { + try + { + this.BaseRepository("CollegeMIS").Delete(t => t.ID == keyValue); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } + + /// + /// 保存实体数据(新增、修改) + /// 主键 + /// 实体 + /// + public void SaveEntity(string keyValue, StuTransferInfoEntity entity) + { + try + { + if (!string.IsNullOrEmpty(keyValue)) + { + entity.Modify(keyValue); + this.BaseRepository("CollegeMIS").Update(entity); + } + else + { + entity.Create(); + this.BaseRepository("CollegeMIS").Insert(entity); + } + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } + + #endregion + + } +} diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj index a6667fd76..54dfc9225 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj @@ -2023,6 +2023,10 @@ + + + +