diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/ScoreCheckInfoController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/ScoreCheckInfoController.cs index 09f0aecbc..893cc89ae 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/ScoreCheckInfoController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/ScoreCheckInfoController.cs @@ -3,6 +3,9 @@ using System.Data; using Learun.Application.TwoDevelopment.EducationalAdministration; using System.Web.Mvc; using System.Collections.Generic; +using Learun.Application.Base.SystemModule; +using System; +using System.Linq; namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers { @@ -16,6 +19,12 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers public class ScoreCheckInfoController : MvcControllerBase { private ScoreCheckInfoIBLL scoreCheckInfoIBLL = new ScoreCheckInfoBLL(); + private AnnexesFileIBLL annexesFileIBLL = new AnnexesFileBLL(); + private StuEncourgementIBLL stuEncourgementIBLL = new StuEncourgementBLL(); + private StuPunishmentIBLL stuPunishmentIBLL = new StuPunishmentBLL(); + private StuScoreIBLL stuScoreIBLL = new StuScoreBLL(); + private StudentCertificateIBLL studentCertificateIBLL = new StudentCertificateBLL(); + private StuAttendanceLeaveIBLL stuAttendanceLeaveIBLL = new StuAttendanceLeaveBLL(); #region 视图功能 @@ -64,6 +73,46 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers { return View(); } + + /// + /// 学业成绩考核记载表 + /// + /// + [HttpGet] + public ActionResult RecordTablePrint(string keyValue) + { + var entity = scoreCheckInfoIBLL.GetScoreCheckInfoEntity(keyValue); + if (entity == null) + { + entity = new ScoreCheckInfoEntity(); + } + //意见盖章 + if (!string.IsNullOrEmpty(entity.FilePath)) + { + var annexesFileEntity = annexesFileIBLL.GetEntityByFolderId(entity.FilePath); + if (annexesFileEntity != null) + { + entity.FilePath = annexesFileEntity.F_FilePath.Substring(annexesFileEntity.F_FilePath.IndexOf("Resource") - 1); + } + else + { + entity.FilePath = ""; + } + } + + //职业资格证书 + entity.StudentCertificateList = studentCertificateIBLL.GetList("{\"AcademicYearNo\":\"" + entity.AcademicYearNo + "\",\"Semester\":\"" + entity.Semester + "\",\"StuNo\":\"" + entity.StuNo + "\"}").OrderByDescending(x => x.CreateTime).ToList(); + //奖罚情况 + entity.StuEncourgementList = stuEncourgementIBLL.GetEncourgementListByStuNo(entity.AcademicYearNo, entity.Semester, entity.StuNo).ToList(); + entity.StuPunishmentList = stuPunishmentIBLL.GetPunishmentListByStuNo(entity.AcademicYearNo, entity.Semester, entity.StuNo).ToList(); + //学习成绩 + entity.StuScoreList = stuScoreIBLL.GetScoreListByStuInfo("{\"AcademicYearNo\":\"" + entity.AcademicYearNo + "\",\"Semester\":\"" + entity.Semester + "\",\"StuNo\":\"" + entity.StuNo + "\"}").ToList(); + //考勤 + entity.StuAttendanceLeaveList = stuAttendanceLeaveIBLL.GetListByJson("{\"AcademicYearNo\":\"" + entity.AcademicYearNo + "\",\"Semester\":\"" + entity.Semester + "\",\"StuNo\":\"" + entity.StuNo + "\"}").ToList(); + + + return View(entity); + } #endregion #region 获取数据 @@ -165,7 +214,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers return Success("本次生成" + res + "条数据!"); } /// - /// 评教 + /// 教师评语/教务意见 /// /// /// @@ -176,33 +225,9 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers { ScoreCheckInfoEntity entity = strEntity.ToObject(); scoreCheckInfoIBLL.SaveTeachEntity(keyValue, entity); - return Success("评教成功!"); - } - /// - /// 提交 - /// - /// - /// - [HttpPost] - [AjaxOnly] - public ActionResult SubmitFrom(string keyValue) - { - scoreCheckInfoIBLL.SubmitEntity(keyValue); - return Success("提交成功!"); - } - /// - /// 审核 - /// - /// - /// - [HttpPost] - [AjaxOnly] - public ActionResult AuditFrom(string keyValue, string strEntity) - { - ScoreCheckInfoEntity entity = strEntity.ToObject(); - scoreCheckInfoIBLL.AuditEntity(keyValue, entity); - return Success("审核成功!"); + return Success("操作成功!"); } + #endregion } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuInfoBasicChangeController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuInfoBasicChangeController.cs index 70567beae..4e68b3588 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuInfoBasicChangeController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuInfoBasicChangeController.cs @@ -149,6 +149,19 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers return Success("操作成功!"); } + /// + /// 复学 + /// 主键 + /// + /// + [HttpPost] + [AjaxOnly] + public ActionResult DoGoBack(string keyValue) + { + stuInfoBasicChangeIBLL.DoGoBack(keyValue); + return Success("操作成功!"); + } + #endregion } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuInfoBasicController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuInfoBasicController.cs index d779513c5..49057d604 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuInfoBasicController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuInfoBasicController.cs @@ -256,6 +256,14 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers return View(); } + /// + /// 毕业证领取表单 + /// + /// + public ActionResult GraduateDiplomaReceiveForm() + { + return View(); + } #endregion @@ -413,9 +421,17 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers [HttpPost] [AjaxOnly] - public ActionResult GetCard(string keyValue,string status) + public ActionResult GetCard(string keyValue,string status, string strEntity) { - stuInfoBasicIBLL.GetCard(keyValue,status); + if (status == "1")//领取 + { + StuInfoBasicEntity entity = strEntity.ToObject(); + stuInfoBasicIBLL.GetCard(keyValue, status, entity); + } + else//取消领取 + { + stuInfoBasicIBLL.GetCard(keyValue,status,new StuInfoBasicEntity()); + } return Success("操作成功"); } @@ -577,6 +593,17 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers stuInfoBasicIBLL.CreateGraduateNoByMajor(CityCode, SchoolCode, MajorList); return Success("生成成功"); } + /// + /// 按学号生成毕业证号 + /// + /// + [HttpPost] + [AjaxOnly] + public ActionResult DoCreateGraduateNo() + { + stuInfoBasicIBLL.DoCreateGraduateNo(); + return Success("生成成功"); + } /// /// 审核 diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ScoreCheckInfo/FormAudit.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ScoreCheckInfo/FormAudit.cshtml index 2ceef9f8a..a98693ebb 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ScoreCheckInfo/FormAudit.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ScoreCheckInfo/FormAudit.cshtml @@ -1,15 +1,53 @@ @{ - ViewBag.Title = "学业考核成绩记载审核表单"; + ViewBag.Title = "教务意见"; Layout = "~/Views/Shared/_Form.cshtml"; } -
+
+
+
学年*
+
+
+
+
学期*
+
+
+
+
学号*
+ +
+
+
姓名*
+ +
+
+
专业部*
+
+
+
+
专业*
+
+
+
+
班级*
+
+
+ +
+
教务部门审核意见*
+ +
+
+
意见日期*
+ +
-
审核通过
-
+
意见填写人
+
-
审核意见
- +
意见盖章
+
+ @Html.AppendJsFile("/Areas/EducationalAdministration/Views/ScoreCheckInfo/FormAudit.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ScoreCheckInfo/FormAudit.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ScoreCheckInfo/FormAudit.js index 7b69b0b28..428081eb0 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ScoreCheckInfo/FormAudit.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ScoreCheckInfo/FormAudit.js @@ -2,7 +2,7 @@ * Copyright (c) 2013-2018 北京泉江科技有限公司 * 创建人:超级管理员 * 日 期:2019-05-15 10:33 - * 描 述:选修课报名审核表单 + * 描 述:教务意见 */ var acceptClick; var keyValue = request('keyValue'); @@ -15,10 +15,25 @@ var bootstrap = function ($, learun) { page.initData(); }, bind: function () { - $('#CheckStatus').lrRadioCheckbox({ - type: 'radio', - code: 'YesOrNoInt', + $('#AcademicYearNo').lrselect({ + placeholder: "请选择学年", + allowSearch: true, + url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetAcademicYearNo', + value: 'value', + text: 'text' }); + //学期 + $('#Semester').lrselect({ + placeholder: "请选择学年", + allowSearch: true, + url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetSemester', + value: 'value', + text: 'text' + }); + $('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' }); + $('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorno' }); + $('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' }); + $('#FilePath').lrUploader(); }, initData: function () { if (!!keyValue) { @@ -43,7 +58,7 @@ var bootstrap = function ($, learun) { var postData = { strEntity: JSON.stringify($('body').lrGetFormData()) }; - $.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/ScoreCheckInfo/AuditFrom?keyValue=' + keyValue, postData, function (res) { + $.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/ScoreCheckInfo/SaveTeachForm?keyValue=' + keyValue, postData, function (res) { // 保存成功后才回调 if (!!callBack) { callBack(); @@ -51,4 +66,4 @@ var bootstrap = function ($, learun) { }); }; page.init(); -} +} \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ScoreCheckInfo/FormGene.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ScoreCheckInfo/FormGene.cshtml index 5b1812e4b..478894994 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ScoreCheckInfo/FormGene.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ScoreCheckInfo/FormGene.cshtml @@ -1,5 +1,5 @@ @{ - ViewBag.Title = "学业成绩考核记录表"; + ViewBag.Title = "一键生成"; Layout = "~/Views/Shared/_Form.cshtml"; }
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ScoreCheckInfo/FormGene.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ScoreCheckInfo/FormGene.js index de595743c..e4a78e8b8 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ScoreCheckInfo/FormGene.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ScoreCheckInfo/FormGene.js @@ -2,7 +2,7 @@ * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 * 创建人:超级管理员 * 日 期:2022-09-19 14:37 - * 描 述:学业成绩考核记录表 + * 描 述:一键生成 */ var acceptClick; var keyValue = request('keyValue'); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ScoreCheckInfo/FormTeach.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ScoreCheckInfo/FormTeach.cshtml index 78f1fa403..829a73b18 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ScoreCheckInfo/FormTeach.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ScoreCheckInfo/FormTeach.cshtml @@ -1,5 +1,5 @@ @{ - ViewBag.Title = "学业成绩考核记录表"; + ViewBag.Title = "教师评语"; Layout = "~/Views/Shared/_Form.cshtml"; }
@@ -13,12 +13,12 @@
学号*
- +
姓名*
-
+
专业部*
@@ -31,12 +31,24 @@
班级*
-
+ +
操作等级*
班主任评语*
-
+ +
+
+
评语日期*
+ +
+
+
评语填写人*
+ +
+
+ @Html.AppendJsFile("/Areas/EducationalAdministration/Views/ScoreCheckInfo/FormTeach.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ScoreCheckInfo/FormTeach.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ScoreCheckInfo/FormTeach.js index ee1dcfda5..f8ffa23ff 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ScoreCheckInfo/FormTeach.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ScoreCheckInfo/FormTeach.js @@ -2,7 +2,7 @@ * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 * 创建人:超级管理员 * 日 期:2022-09-19 14:37 - * 描 述:学业成绩考核记录表 + * 描 述:  教师评语 */ var acceptClick; var keyValue = request('keyValue'); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ScoreCheckInfo/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ScoreCheckInfo/Index.cshtml index 3150c036e..f0d14467d 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ScoreCheckInfo/Index.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ScoreCheckInfo/Index.cshtml @@ -52,12 +52,10 @@  删除 diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ScoreCheckInfo/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ScoreCheckInfo/Index.js index 9a5fe66f4..2017e0539 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ScoreCheckInfo/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ScoreCheckInfo/Index.js @@ -105,15 +105,6 @@ var bootstrap = function ($, learun) { $('#lr_edit').on('click', function () { var keyValue = $('#gridtable').jfGridValue('ID'); if (learun.checkrow(keyValue)) { - if (keyValue.indexOf(',') != -1) { - learun.alert.warning("只能选择一条记录进行编辑!"); - return; - } - var CheckMark = $('#gridtable').jfGridValue('CheckStatus'); - if (CheckMark == "1" || CheckMark == "2") { - learun.alert.warning("当前项目已提交不能编辑!"); - return; - } learun.layerForm({ id: 'form', title: '编辑', @@ -130,11 +121,6 @@ var bootstrap = function ($, learun) { $('#lr_delete').on('click', function () { var keyValue = $('#gridtable').jfGridValue('ID'); if (learun.checkrow(keyValue)) { - var CheckMark = $('#gridtable').jfGridValue('CheckStatus'); - if (CheckMark.indexOf('1') > -1 || CheckMark.indexOf('2') > -1) { - learun.alert.warning("选中记录中包含已审核项目,不可删除!"); - return; - } learun.layerConfirm('是否确认删除该项!', function (res) { if (res) { learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/ScoreCheckInfo/DeleteForm', { keyValue: keyValue }, function () { @@ -144,50 +130,34 @@ var bootstrap = function ($, learun) { }); } }); - // 打印 - $('#lr_print').on('click', function () { - $('#gridtable').jqprintTable(); - }); - //  审核 - $('#lr_lock').on('click', function () { + + //教师评语 + $('#lr_Coordinator').on('click', function () { var keyValue = $('#gridtable').jfGridValue('ID'); if (learun.checkrow(keyValue)) { - var CheckMark = $('#gridtable').jfGridValue('CheckStatus'); - if (CheckMark.indexOf('1') > -1 || CheckMark.indexOf('2') > -1) { - learun.alert.warning("选中记录中包含已审核项目,请勿重复提交!"); - return; - } learun.layerForm({ id: 'formTeach', - title: '编辑', - url: top.$.rootUrl + '/EducationalAdministration/ScoreCheckInfo/FormAudit?keyValue=' + keyValue, - width: 800, - height: 600, + title: '教师评语', + url: top.$.rootUrl + '/EducationalAdministration/ScoreCheckInfo/FormTeach?keyValue=' + keyValue, + width: 1000, + height: 800, callBack: function (id) { return top[id].acceptClick(refreshGirdData); } }); } }); - //  教师评语 - $('#lr_Coordinator').on('click', function () { + + //教务意见 + $('#lr_Opinion').on('click', function () { var keyValue = $('#gridtable').jfGridValue('ID'); if (learun.checkrow(keyValue)) { - if (keyValue.indexOf(',') != -1) { - learun.alert.warning("只能选择一条记录进行编辑!"); - return; - } - var CheckMark = $('#gridtable').jfGridValue('CheckStatus'); - if (CheckMark.indexOf('1') > -1 || CheckMark.indexOf('2') > -1) { - learun.alert.warning("选中记录中包含已审核项目,请勿重复提交!"); - return; - } learun.layerForm({ - id: 'formTeach', - title: '编辑', - url: top.$.rootUrl + '/EducationalAdministration/ScoreCheckInfo/FormTeach?keyValue=' + keyValue, - width: 800, - height: 600, + id: 'formAudit', + title: '教务意见', + url: top.$.rootUrl + '/EducationalAdministration/ScoreCheckInfo/FormAudit?keyValue=' + keyValue, + width: 1000, + height: 800, callBack: function (id) { return top[id].acceptClick(refreshGirdData); } @@ -208,28 +178,28 @@ var bootstrap = function ($, learun) { } }); }); - //  提交 - $('#lr_submit').on('click', function () { + + //学业成绩考核记载表打印 + $('#lr_print').on('click', function () { var keyValue = $('#gridtable').jfGridValue('ID'); if (learun.checkrow(keyValue)) { - var CheckMark = $('#gridtable').jfGridValue('CheckStatus'); - if (CheckMark.indexOf('1') > -1 || CheckMark.indexOf('2') > -1) { - learun.alert.warning("选中记录中包含已审核项目,请勿重复提交!"); - return; - } - learun.layerConfirm('是否确认提交选择项!', function (res) { - if (res) { - learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/ScoreCheckInfo/SubmitFrom', { keyValue: keyValue }, function () { - refreshGirdData(); - }); + learun.layerForm({ + id: 'recordtableprint', + title: '学业成绩考核记载表', + url: top.$.rootUrl + '/EducationalAdministration/ScoreCheckInfo/RecordTablePrint?keyValue=' + keyValue, + width: 1200, + height: 800, + callBack: function (id) { + return top[id].acceptClick(refreshGirdData); } }); } }); + }, // 初始化列表 initGird: function () { - $('#gridtable').lrAuthorizeJfGrid({ + $('#gridtable').jfGrid({ url: top.$.rootUrl + '/EducationalAdministration/ScoreCheckInfo/GetPageList', headData: [ { label: "学年", name: "AcademicYearNo", width: 60, align: "left" }, @@ -275,6 +245,14 @@ var bootstrap = function ($, learun) { }); } }, + + { label: "班主任评语", name: "TeacherDemo", width: 100, align: "left" }, + { + label: "评语日期", name: "TDate", width: 90, align: "left" + }, + { + label: "评语填写人", name: "Signed", width: 100, align: "left" + }, { label: "操作等级", name: "OperatingLevel", width: 60, align: "left", formatterAsync: function (callback, value, row, op, $cell) { @@ -287,50 +265,19 @@ var bootstrap = function ($, learun) { }); } }, + { label: "学校教务部门审核意见", name: "CheckOpinion", width: 150, align: "left" }, { - label: "评语填写人", name: "Signed", width: 100, align: "left", - formatterAsync: function (callback, value, row, op, $cell) { - learun.clientdata.getAsync('custmerData', { - url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'EmpInfo', - key: value, - keyId: 'empno', - callback: function (_data) { - callback(_data['empname']); - } - }); - } - }, - { label: "班主任评语", name: "TeacherDemo", width: 200, align: "left" }, - { - label: "评价时间", name: "TDate", width: 100, align: "left", - formatter: function (cellvalue) { - return learun.formatDate(cellvalue, 'yyyy-MM-dd'); - } - }, - { label: "学校教务部门审核意见", name: "CheckOpinion", width: 200, align: "left" }, - { - label: "审核时间", name: "CheckTime", width: 100, align: "left", - formatter: function (cellvalue) { - return learun.formatDate(cellvalue, 'yyyy-MM-dd'); - } + label: "意见日期", name: "CheckTime", width: 90, align: "left" }, { - label: "审核状态", name: "CheckStatus", width: 100, align: "left", - formatter: function (cellvalue, row) { - if (cellvalue == 1) { - return '审核中'; - } else if (cellvalue == 2) { - return '审核通过'; - } else { - return '草稿'; - } - } + label: "意见填写人", name: "CheckUser", width: 100, align: "left" }, + ], mainId: 'ID', isPage: true, - sidx: 'CreateTime desc', - isMultiselect: true, + sidx: 'AcademicYearNo desc,Semester desc,StuNo asc', + isMultiselect: false, }); page.search(); }, diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ScoreCheckInfo/RecordTablePrint.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ScoreCheckInfo/RecordTablePrint.cshtml new file mode 100644 index 000000000..ee726a169 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ScoreCheckInfo/RecordTablePrint.cshtml @@ -0,0 +1,437 @@ +@using Learun.Application.TwoDevelopment.EducationalAdministration +@model Learun.Application.TwoDevelopment.EducationalAdministration.ScoreCheckInfoEntity +@{ + ViewBag.Title = "学业成绩考核记载表"; + Layout = null; +} + + + + + + + + + Document + + + +
+ +
+
+

学生成绩考核记载表(@Model.AcademicYearNo学年,第@Model.Semester学期)

+ + @{ + var scoreList = Model.StuScoreList as IEnumerable; + //两个为一组 + var scoreListTemp = scoreList.Select((x, i) => new { Index = i, Value = x }).GroupBy(x => x.Index / 2).Select(x => x.Select(y => y.Value).ToList()).ToList(); + //第一列占多少行 + int rowNum = 9; + if (scoreList.Count() > 14) + { + rowNum = Convert.ToInt32(Math.Ceiling(Convert.ToDecimal(scoreList.Count() / 2))) + 2; + } + + + + + + + + + + + + + + + for (int i = 0; i < rowNum - 2; i++) + { + + @if (i < scoreListTemp.Count()) + { + for (int j = 0; j < 2; j++) + { + if (j < scoreListTemp[i].Count()) + { + + + + } + else + { + + + + } + + } + } + else + { + + + + + + + } + + } + + + + + + + + + + + + @{ + var leaveList = Model.StuAttendanceLeaveList as IEnumerable; + + + + } + + + + + + + + + + + + + + + + + + + + } +
+
学业成绩
+
学科名称成 绩学科名称成 绩
正考补考正考补考
@scoreListTemp[i][j].LessonName@(scoreListTemp[i][j].Score == null ? 0 : scoreListTemp[i][j].Score)@(Convert.ToInt32(scoreListTemp[i][j].ScoreOfNotPassTwo) > 0 ? scoreListTemp[i][j].ScoreOfNotPassTwo : scoreListTemp[i][j].ScoreOfNotPass)
学校教务部门审核意见 +
@Model.CheckOpinion
+
+ (盖  章) + @if (!string.IsNullOrEmpty(Model.FilePath)) + { + + } +
+
+ @{ + if (Model.CheckTime.HasValue) + { + @Model.CheckTime.Value.Year 年 @Model.CheckTime.Value.Month 月 @Model.CheckTime.Value.Day 日 + } + else + { + 年       月       日 + } + } + +
+
考勤事假(节) + + + + + + + +
病假(节)旷课(节)迟到(次)早退(次)
+
@leaveList.Where(x=>x.LeaveType=="事假").Count() + + + + + + + +
@leaveList.Where(x => x.LeaveType == "病假").Count()@leaveList.Where(x => x.LeaveType == "旷课").Count()@leaveList.Where(x => x.LeaveType == "迟到").Count()@leaveList.Where(x => x.LeaveType == "早退").Count()
+
职业资格证书获得情况 +
+ @foreach (var item in Model.StudentCertificateList) + { + @(Model.StudentCertificateList.IndexOf(item) + 1)、@item.CreateTime.Value.ToShortDateString().Replace("/", "-") @item.SCName
+ } +
+
奖 惩 记 载 +
+ @foreach (var item in Model.StuEncourgementList) + { +
奖励 @(Model.StuEncourgementList.IndexOf(item) + 1)、@item.EncourgeDate.Value.ToShortDateString().Replace("/", "-") @item.EncourgeName @item.Fee
+ } + @foreach (var item in Model.StuPunishmentList) + { +
处分 @(Model.StuPunishmentList.IndexOf(item) + 1)、@item.PunishDate.Value.ToShortDateString().Replace("/", "-") @item.PunishName
+ } +
+
+
操行鉴定
+
操行等级@Model.OperatingLevel
班主任评估
+
@Model.TeacherDemo
+
班主任签名:@Model.Signed
+
+ @{ + if (Model.TDate.HasValue) + { + @Model.TDate.Value.Year 年 @Model.TDate.Value.Month 月 @Model.TDate.Value.Day 日 + } + else + { + 年       月       日 + } + } + +
+
+
注:操行等级分优、良、中、差四等
+ +
+ + + + + + + + \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuGraduateStatistic/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuGraduateStatistic/Form.js index 43837343e..083c5c2d3 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuGraduateStatistic/Form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuGraduateStatistic/Form.js @@ -1,63 +1,4 @@ -1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 -56 -57 -58 -59 -/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) +/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 * 创建人:超级管理员 * 日 期:2022-08-29 16:34 diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuGraduateStatistic/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuGraduateStatistic/Index.js index 0360c5e2e..8a3512528 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuGraduateStatistic/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuGraduateStatistic/Index.js @@ -1,107 +1,4 @@ -1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 -56 -57 -58 -59 -60 -61 -62 -63 -64 -65 -66 -67 -68 -69 -70 -71 -72 -73 -74 -75 -76 -77 -78 -79 -80 -81 -82 -83 -84 -85 -86 -87 -88 -89 -90 -91 -92 -93 -94 -95 -96 -97 -98 -99 -100 -101 -102 -103 -/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) +/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 * 创建人:超级管理员 * 日 期:2022-08-29 16:34 @@ -243,7 +140,7 @@ var bootstrap = function ($, learun) { formatterAsync: function (callback, value, row, op, $cell) { learun.clientdata.getAsync('dataItem', { key: value, - code: 'UniversityLevel', + code: 'GraduateLevel', callback: function (_data) { callback(_data.text); } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/CreateGraduateNo.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/CreateGraduateNo.cshtml index edfd4c6db..e4034cd02 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/CreateGraduateNo.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/CreateGraduateNo.cshtml @@ -47,7 +47,7 @@ diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/CreateGraduateNo.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/CreateGraduateNo.js index c261905c8..092c8f045 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/CreateGraduateNo.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/CreateGraduateNo.js @@ -39,7 +39,7 @@ var bootstrap = function ($, learun) { }); $('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' }); $('#FinishSchoolMark').lrselect({ - data: [{ text: "准许毕业", value: "1" }, { text: "待准许", value: "0" }], + data: [{ text: "已毕业", value: "2" }, { text: "准许毕业", value: "1" }, { text: "待准许", value: "0" }], text: "text", value: "value" }) @@ -47,26 +47,37 @@ var bootstrap = function ($, learun) { $('#lr_refresh').on('click', function () { location.reload(); }); + //生成毕业证【按专业进行排序】 + //$('#lr_create').on('click', function () { + // learun.layerForm({ + // id: 'form', + // title: '生成毕业证', + // url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/CreateGraduateNoForm', + // width: 800, + // height: 600, + // callBack: function (id) { + // return top[id].acceptClick(refreshGirdData); + // } + // }); + //}) + //生成毕业证【按学号排序】 $('#lr_create').on('click', function () { - learun.layerForm({ - id: 'form', - title: '生成毕业证', - url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/CreateGraduateNoForm', - width: 800, - height: 600, - callBack: function (id) { - return top[id].acceptClick(refreshGirdData); + learun.layerConfirm('1.毕业证号的生成规则:年份两位(22)+学校编码十位(3642000004)+顺序号四位(0001)组成;
2.此次操作仅对毕业状态为“准许毕业”和“已毕业”的学生进行操作;
3.生成毕业证号后不可撤消,请谨慎操作!
', function (res) { + if (res) { + learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/DoCreateGraduateNo', {}, function () { + refreshGirdData(); + }); } }); }) - + }, // 初始化列表 initGird: function () { $('#gridtable').jfGrid({ url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/GetPageList', headData: [ - { label: "学号", name: "StuNo", width: 100, align: "left" }, + { label: "学号", name: "StuNo", width: 150, align: "left" }, { label: "姓名", name: "StuName", width: 100, align: "left" }, { label: "性别", name: "GenderNo", width: 80, align: "left", @@ -139,12 +150,12 @@ var bootstrap = function ($, learun) { } } }, - { label: "毕业证", name: "DiplomaNo", width: 100, align: "left" }, { label: "毕业时间", name: "FinishSchoolDate", width: 100, align: "left" }, + { label: "毕业证号", name: "DiplomaNo", width: 100, align: "left" }, ], mainId: 'StuId', isPage: true, - isMultiselect: true, + isMultiselect: false, }); page.search(); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/FormTran.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/FormTran.cshtml index ac6ccb25e..e3805f7cf 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/FormTran.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/FormTran.cshtml @@ -16,8 +16,8 @@
-
考生号*
- +
考生号
+
@*
通知书号*
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateCardDeregistrate.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateCardDeregistrate.cshtml index a53a6a7b5..ebe3afece 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateCardDeregistrate.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateCardDeregistrate.cshtml @@ -20,10 +20,6 @@
姓名
-
-
年级
- -
系部
@@ -36,6 +32,10 @@
班级
+
+
年级
+
+
准许毕业
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateCardDeregistrate.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateCardDeregistrate.js index 21899f1ff..39f8aa099 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateCardDeregistrate.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateCardDeregistrate.js @@ -10,34 +10,116 @@ var bootstrap = function ($, learun) { $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { page.search(queryJson); }, 290, 400); - $('#DeptNo').lrDataSourceSelect({ - code: 'CdDeptInfo', value: 'deptno', text: 'deptname', select: function (val) { - var deptno = ""; - if (val) { - deptno = val.deptno; + $('#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').lrselectRefresh({ - url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GetListByDeptNo?DeptNo=' + deptno, - text: "MajorName", - value: "MajorNo" - }) + } }); - $('#MajorNo').lrDataSourceSelect({ - code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select: - function (val) { - var majorNo = ''; - if (val) { - majorNo = val.MajorNo; + $('#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" } + }); } - $('#ClassNo').lrselectRefresh({ - url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, - text: "ClassName", - value: "ClassNo" - }) } + } + }); + $('#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" }); - $('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' }); $('#FinishSchoolMark').lrselect({ data: [{ text: "已毕业", value: "2" }, { text: "准许毕业", value: "1" }, { text: "待准许", value: "0" }], text: "text", @@ -173,6 +255,7 @@ var bootstrap = function ($, learun) { ], mainId: 'StuId', isPage: true, + rows: 100, isMultiselect: true, }); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateCheckOut.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateCheckOut.cshtml index 187e05d2d..e1dd43e39 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateCheckOut.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateCheckOut.cshtml @@ -20,10 +20,6 @@
姓名
-
-
年级
- -
系部
@@ -36,6 +32,10 @@
班级
+
+
年级
+
+
准许毕业
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateCheckOut.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateCheckOut.js index 47c0d2308..aec500e18 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateCheckOut.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateCheckOut.js @@ -10,34 +10,116 @@ var bootstrap = function ($, learun) { $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { page.search(queryJson); }, 290, 400); - $('#DeptNo').lrDataSourceSelect({ - code: 'CdDeptInfo', value: 'deptno', text: 'deptname', select: function (val) { - var deptno = ""; - if (val) { - deptno = val.deptno; + $('#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').lrselectRefresh({ - url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GetListByDeptNo?DeptNo=' + deptno, - text: "MajorName", - value: "MajorNo" - }) + } }); - $('#MajorNo').lrDataSourceSelect({ - code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select: - function (val) { - var majorNo = ''; - if (val) { - majorNo = val.MajorNo; + $('#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" } + }); } - $('#ClassNo').lrselectRefresh({ - url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, - text: "ClassName", - value: "ClassNo" - }) } + } + }); + $('#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" }); - $('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' }); $('#FinishSchoolMark').lrselect({ data: [{ text: "已毕业", value: "2" }, { text: "准许毕业", value: "1" }, { text: "待准许", value: "0" }], text: "text", @@ -173,6 +255,7 @@ var bootstrap = function ($, learun) { ], mainId: 'StuId', isPage: true, + rows: 100, isMultiselect: true, }); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateDiplomaReceive.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateDiplomaReceive.cshtml index 096c17ab1..f284679c0 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateDiplomaReceive.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateDiplomaReceive.cshtml @@ -20,10 +20,6 @@
姓名
-
-
年级
- -
系部
@@ -37,8 +33,8 @@
-
准许毕业
-
+
年级
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateDiplomaReceive.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateDiplomaReceive.js index c40319e8f..ac1b90546 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateDiplomaReceive.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateDiplomaReceive.js @@ -10,34 +10,116 @@ var bootstrap = function ($, learun) { $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { page.search(queryJson); }, 290, 400); - $('#DeptNo').lrDataSourceSelect({ - code: 'CdDeptInfo', value: 'deptno', text: 'deptname', select: function (val) { - var deptno = ""; - if (val) { - deptno = val.deptno; + $('#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').lrselectRefresh({ - url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GetListByDeptNo?DeptNo=' + deptno, - text: "MajorName", - value: "MajorNo" - }) + } }); - $('#MajorNo').lrDataSourceSelect({ - code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select: - function (val) { - var majorNo = ''; - if (val) { - majorNo = val.MajorNo; + $('#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" } + }); } - $('#ClassNo').lrselectRefresh({ - url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, - text: "ClassName", - value: "ClassNo" - }) } + } + }); + $('#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" }); - $('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' }); $('#FinishSchoolMark').lrselect({ data: [{ text: "已毕业", value: "2" }, { text: "准许毕业", value: "1" }, { text: "待准许", value: "0" }], text: "text", @@ -52,14 +134,30 @@ var bootstrap = function ($, learun) { var keyValue = $('#gridtable').jfGridValue('StuId'); var DiplomaReceiveStatus = $('#gridtable').jfGridValue('DiplomaReceiveStatus'); if (learun.checkrow(keyValue)) { - if (DiplomaReceiveStatus.indexOf('1') != -1) { - return learun.alert.warning("选中项包括已领取数据!"); + //if (DiplomaReceiveStatus.indexOf('1') != -1) { + // return learun.alert.warning("选中项包括已领取数据!"); + //} + //learun.layerConfirm('是否确认领取毕业证!', function (res) { + // if (res) { + // learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/GetCard', { keyValue: keyValue, status: '1' }, function () { + // refreshGirdData(); + // }); + // } + //}); + if (keyValue.split(',').length > 1) { + return learun.alert.warning("只能选择一条记录进行操作!"); } - learun.layerConfirm('是否确认领取毕业证!', function (res) { - if (res) { - learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/GetCard', { keyValue: keyValue, status: '1' }, function () { - refreshGirdData(); - }); + if (DiplomaReceiveStatus == "1") { + return learun.alert.warning("当前记录毕业证已领取!"); + } + learun.layerForm({ + id: 'form', + title: '毕业证领取', + url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/GraduateDiplomaReceiveForm?keyValue=' + keyValue, + width: 600, + height: 400, + callBack: function (id) { + return top[id].acceptClick(refreshGirdData); } }); } @@ -168,10 +266,14 @@ var bootstrap = function ($, learun) { return cellvalue == "1" ? "已领取" : "未领取" } }, - { label: "毕业证领取时间", name: "DiplomaReceiveDate", width: 100, align: "left" }, + { label: "毕业证领取时间", name: "DiplomaReceiveDate", width: 120, align: "left" }, + { label: "领取人签名", name: "DiplomaReceiveSign", width: 100, align: "left" }, + { label: "代领人身份证号", name: "DiplomaReceiveIdcard", width: 130, align: "left" }, + { label: "代领备注", name: "DiplomaReceiveRemark", width: 100, align: "left" }, ], mainId: 'StuId', isPage: true, + rows: 100, isMultiselect: true, }); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateDiplomaReceiveForm.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateDiplomaReceiveForm.cshtml new file mode 100644 index 000000000..4b671c936 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateDiplomaReceiveForm.cshtml @@ -0,0 +1,19 @@ +@{ + ViewBag.Title = "毕业证领取表单"; + Layout = "~/Views/Shared/_Form.cshtml"; +} +
+
+
领取人签名*
+ +
+
+
代领人身份证号
+ +
+
+
代领备注
+ +
+
+@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateDiplomaReceiveForm.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateDiplomaReceiveForm.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateDiplomaReceiveForm.js new file mode 100644 index 000000000..63f2ce1c6 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateDiplomaReceiveForm.js @@ -0,0 +1,57 @@ +/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn) + * Copyright (c) 2013-2018 北京泉江科技有限公司 + * 创建人:超级管理员 + * 日 期:2022-09-26 16:53 + * 描 述:毕业证领取表单 + */ +var acceptClick; +var keyValue = request('keyValue'); +var bootstrap = function ($, learun) { + "use strict"; + var page = { + init: function () { + $('.lr-form-wrap').lrscroll(); + page.bind(); + page.initData(); + page.hide(); + }, + hide: function () { + + }, + bind: function () { + + }, + initData: function () { + if (!!keyValue) { + $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/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]); + } + } + }); + } + } + }; + // 保存数据 + acceptClick = function (callBack) { + if (!$('body').lrValidform()) { + return false; + } + var postData = { + status:"1", + strEntity: JSON.stringify($('body').lrGetFormData()) + }; + $.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/GetCard?keyValue=' + keyValue, postData, function (res) { + // 保存成功后才回调 + if (!!callBack) { + callBack(); + } + }); + }; + page.init(); + +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateEmployAgree.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateEmployAgree.cshtml index 3acfdea75..42b0205b3 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateEmployAgree.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateEmployAgree.cshtml @@ -20,10 +20,6 @@
姓名
-
-
年级
- -
系部
@@ -36,6 +32,10 @@
班级
+
+
年级
+
+
准许毕业
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateEmployAgree.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateEmployAgree.js index 2da57c622..cb2210ffc 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateEmployAgree.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateEmployAgree.js @@ -10,34 +10,116 @@ var bootstrap = function ($, learun) { $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { page.search(queryJson); }, 290, 400); - $('#DeptNo').lrDataSourceSelect({ - code: 'CdDeptInfo', value: 'deptno', text: 'deptname', select: function (val) { - var deptno = ""; - if (val) { - deptno = val.deptno; + $('#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').lrselectRefresh({ - url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GetListByDeptNo?DeptNo=' + deptno, - text: "MajorName", - value: "MajorNo" - }) + } }); - $('#MajorNo').lrDataSourceSelect({ - code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select: - function (val) { - var majorNo = ''; - if (val) { - majorNo = val.MajorNo; + $('#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" } + }); } - $('#ClassNo').lrselectRefresh({ - url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, - text: "ClassName", - value: "ClassNo" - }) } + } + }); + $('#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" }); - $('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' }); $('#FinishSchoolMark').lrselect({ data: [{ text: "已毕业", value: "2" }, { text: "准许毕业", value: "1" }, { text: "待准许", value: "0" }], text: "text", @@ -173,6 +255,7 @@ var bootstrap = function ($, learun) { ], mainId: 'StuId', isPage: true, + rows: 100, isMultiselect: true, }); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateFeeSettle.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateFeeSettle.cshtml index 32c74ebb1..e93609736 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateFeeSettle.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateFeeSettle.cshtml @@ -20,10 +20,6 @@
姓名
-
-
年级
- -
系部
@@ -36,6 +32,10 @@
班级
+
+
年级
+
+
准许毕业
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateFeeSettle.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateFeeSettle.js index ab806d828..68664f728 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateFeeSettle.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateFeeSettle.js @@ -10,34 +10,116 @@ var bootstrap = function ($, learun) { $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { page.search(queryJson); }, 290, 400); - $('#DeptNo').lrDataSourceSelect({ - code: 'CdDeptInfo', value: 'deptno', text: 'deptname', select: function (val) { - var deptno = ""; - if (val) { - deptno = val.deptno; + $('#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').lrselectRefresh({ - url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GetListByDeptNo?DeptNo=' + deptno, - text: "MajorName", - value: "MajorNo" - }) + } }); - $('#MajorNo').lrDataSourceSelect({ - code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select: - function (val) { - var majorNo = ''; - if (val) { - majorNo = val.MajorNo; + $('#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" } + }); } - $('#ClassNo').lrselectRefresh({ - url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, - text: "ClassName", - value: "ClassNo" - }) } + } + }); + $('#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" }); - $('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' }); $('#FinishSchoolMark').lrselect({ data: [{ text: "已毕业", value: "2" }, { text: "准许毕业", value: "1" }, { text: "待准许", value: "0" }], text: "text", @@ -173,6 +255,7 @@ var bootstrap = function ($, learun) { ], mainId: 'StuId', isPage: true, + rows: 100, isMultiselect: true, }); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateFileTransfer.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateFileTransfer.cshtml index 28b483019..e532c9d15 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateFileTransfer.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateFileTransfer.cshtml @@ -20,10 +20,6 @@
姓名
-
-
年级
- -
系部
@@ -36,6 +32,10 @@
班级
+
+
年级
+
+
准许毕业
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateFileTransfer.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateFileTransfer.js index 8405fcd53..623c8a3ff 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateFileTransfer.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateFileTransfer.js @@ -10,34 +10,116 @@ var bootstrap = function ($, learun) { $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { page.search(queryJson); }, 290, 400); - $('#DeptNo').lrDataSourceSelect({ - code: 'CdDeptInfo', value: 'deptno', text: 'deptname', select: function (val) { - var deptno = ""; - if (val) { - deptno = val.deptno; + $('#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').lrselectRefresh({ - url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GetListByDeptNo?DeptNo=' + deptno, - text: "MajorName", - value: "MajorNo" - }) + } }); - $('#MajorNo').lrDataSourceSelect({ - code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select: - function (val) { - var majorNo = ''; - if (val) { - majorNo = val.MajorNo; - } - $('#ClassNo').lrselectRefresh({ - url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, - text: "ClassName", - value: "ClassNo" - }) + $('#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" }); - $('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' }); $('#FinishSchoolMark').lrselect({ data: [{ text: "已毕业", value: "2" }, { text: "准许毕业", value: "1" }, { text: "待准许", value: "0" }], text: "text", @@ -217,6 +299,7 @@ var bootstrap = function ($, learun) { ], mainId: 'StuId', isPage: true, + rows: 100, isMultiselect: true, }); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateReturnBooks.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateReturnBooks.cshtml index b3a955fa3..b2e8e86a1 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateReturnBooks.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateReturnBooks.cshtml @@ -20,10 +20,6 @@
姓名
-
-
年级
- -
系部
@@ -36,6 +32,10 @@
班级
+
+
年级
+
+
准许毕业
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateReturnBooks.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateReturnBooks.js index bfe5f5e4d..c72ab983f 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateReturnBooks.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateReturnBooks.js @@ -10,34 +10,116 @@ var bootstrap = function ($, learun) { $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { page.search(queryJson); }, 290, 400); - $('#DeptNo').lrDataSourceSelect({ - code: 'CdDeptInfo', value: 'deptno', text: 'deptname', select: function (val) { - var deptno = ""; - if (val) { - deptno = val.deptno; + $('#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').lrselectRefresh({ - url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GetListByDeptNo?DeptNo=' + deptno, - text: "MajorName", - value: "MajorNo" - }) + } }); - $('#MajorNo').lrDataSourceSelect({ - code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select: - function (val) { - var majorNo = ''; - if (val) { - majorNo = val.MajorNo; + $('#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" } + }); } - $('#ClassNo').lrselectRefresh({ - url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, - text: "ClassName", - value: "ClassNo" - }) } + } + }); + $('#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" }); - $('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' }); $('#FinishSchoolMark').lrselect({ data: [{ text: "已毕业", value: "2" }, { text: "准许毕业", value: "1" }, { text: "待准许", value: "0" }], text: "text", @@ -173,6 +255,7 @@ var bootstrap = function ($, learun) { ], mainId: 'StuId', isPage: true, + rows: 100, isMultiselect: true, }); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasicChange/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasicChange/Form.js index 6dfe0411e..134f5d2ce 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasicChange/Form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasicChange/Form.js @@ -15,8 +15,16 @@ var bootstrap = function ($, learun) { page.initData(); }, bind: function () { - $('#StuChangeType').lrDataItemSelect({ - code: 'StuChangeType', select: function (item) { + //$('#StuChangeType').lrDataItemSelect({ + // code: 'StuChangeType', + // select: function (item) { + // console.log(item); + // } + //}); + //异动类型下拉不显示复学、学籍关键信息更改、转入/进、; + $('#StuChangeType').lrselect({ + data: [{ text: '留级', id: '01' }, { text: '转出/校', id: '02' }, { text: '退学', id: '05' }, { text: '休学', id: '06' }, { text: '转班', id: '07' }, { text: '转专业', id: '08' }], + select: function (item) { if (item != null && item != undefined) { var StuNo = $('#StuNo').val(); if (!StuNo) { @@ -59,25 +67,6 @@ var bootstrap = function ($, learun) { $('#OutSchool').attr("checkexpession", "NotNull"); $("#OutSchool").siblings('div').html($("#OutSchool").siblings('div').attr('data-title') + '*'); $(".NewSchool").show(); - } else if (item.id === "03") { //复学 - $("#NewDeptNo").lrselectSet($("#DeptNo").lrselectGet()); - var timer2 = setInterval(function () { - if ($("#NewDeptNo").lrselectGet()) { - $("#NewMajorNo").lrselectSet($("#MajorNo").lrselectGet()); - console.log("系部赋值后,在赋值专业:" + $("#NewMajorNo").lrselectGet()); - clearInterval(timer2); - } - }, 1000); - var timer3 = setInterval(function () { - if ($("#NewMajorNo").lrselectGet()) { - $("#NewClassNo").lrselectSet($("#ClassNo").lrselectGet()); - clearInterval(timer3); - } - }, 1000); - } else if (item.id === "04") { //转入/进 - learun.alert.warning("异动转进请点击学籍信息管理-异动转入按钮!"); - $("#StuNo").val(""); - $("#StuName").val(""); } else if (item.id === "05" || item.id === "06") { //退学、休学、 $(".NewContainer").find('.contentDiv').removeAttr("isvalid"); @@ -213,13 +202,8 @@ var bootstrap = function ($, learun) { $('#OutSchool').attr("checkexpession", "NotNull"); $("#OutSchool").siblings('div').html($("#OutSchool").siblings('div').attr('data-title') + '*'); $(".NewSchool").show(); - } else if (data[id].StuChangeType == "03") { //复学 - $(".NewContainer").find('.contentDiv').removeAttr('readonly'); - } else if (data[id].StuChangeType == "04") { //转入/进 - learun.alert.warning("异动转进请点击学籍信息管理-异动转入按钮!"); - $("#StuNo").val(""); - $("#StuName").val(""); - } else if (data[id].StuChangeType == "05" || data[id].StuChangeType == "06") { //退学、休学、 + } + else if (data[id].StuChangeType == "05" || data[id].StuChangeType == "06") { //退学、休学、 $(".NewContainer").find('.contentDiv').removeAttr("isvalid"); $(".NewContainer").find('.contentDiv').removeAttr("checkexpession"); $(".NewContainer").find('.contentDiv').removeAttr('readonly'); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasicChange/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasicChange/Index.cshtml index 9a9b8447c..37c2510c8 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasicChange/Index.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasicChange/Index.cshtml @@ -26,9 +26,13 @@  录入  修改  删除 -  审核 -  去审核 + @*todo:带异动开发完成,解除注释*@ + @* 审核 +  去审核*@
+ @*
+  复学 +
*@
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasicChange/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasicChange/Index.js index 76ceab8f3..823e32372 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasicChange/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasicChange/Index.js @@ -99,6 +99,11 @@ var bootstrap = function ($, learun) { learun.alert.warning("当前项目未审核无法去审!"); return; } + var GoBackStatus = $('#gridtable').jfGridValue('GoBackStatus'); + if (GoBackStatus == 1) { + learun.alert.warning("当前休学项已复学,无法去审!"); + return; + } learun.layerConfirm('是否确认去审核该项!', function (res) { if (res) { learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuInfoBasicChange/UnCheckForm', { keyValue: keyValue }, function () { @@ -108,10 +113,40 @@ var bootstrap = function ($, learun) { }); } }); + + // 复学 + $('#lr_goback').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('Id'); + if (learun.checkrow(keyValue)) { + //对已审核&休学&未复学 + var StuChangeType = $('#gridtable').jfGridValue('StuChangeType'); + if (StuChangeType != "06") { + learun.alert.warning("当前项异动类型不是休学,无法复学!"); + return; + } + var CheckStatus = $('#gridtable').jfGridValue('CheckStatus'); + if (CheckStatus != 1) { + learun.alert.warning("当前休学项未审核,无法复学!"); + return; + } + var GoBackStatus = $('#gridtable').jfGridValue('GoBackStatus'); + if (GoBackStatus == 1) { + learun.alert.warning("当前休学项已复学!"); + return; + } + learun.layerConfirm('是否确认复学该项!', function (res) { + if (res) { + learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/StuInfoBasicChange/DoGoBack', { keyValue: keyValue }, function () { + refreshGirdData(); + }); + } + }); + } + }); }, // 初始化列表 initGird: function () { - $('#gridtable').lrAuthorizeJfGrid({ + $('#gridtable').jfGrid({ url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasicChange/GetPageList', headData: [ { label: "学号", name: "StuNo", width: 100, align: "left" }, @@ -230,6 +265,14 @@ var bootstrap = function ($, learun) { return cellvalue == "1" ? "已审核" : "未审核"; } }, + { + label: "复学状态", name: "GoBackStatus", width: 100, align: "left", + formatter: function (cellvalue) { + return cellvalue == "1" ? "已复学" : "未复学"; + } + }, + { label: "复学时间", name: "GoBackTime", width: 150, align: "left" }, + ], mainId: 'Id', isPage: true, diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentCertificate/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentCertificate/Form.cshtml index 58b5233ba..2862393b1 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentCertificate/Form.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentCertificate/Form.cshtml @@ -3,49 +3,57 @@ Layout = "~/Views/Shared/_Form.cshtml"; }
-
+
+
学年*
+
+
+
+
学期*
+
+
+
学生学号*
-
+
学生姓名*
-
+
专业部*
-
+
-
+
专业*
-
+
-
+
班级*
-
+
-
+
证书名称*
-
+
证书级别*
-
+
证书种类*
-
+
分值*
-
+
获取时间*
- +
-
+
附件上传
-
+
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StudentCertificate/Form.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentCertificate/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentCertificate/Form.js index b9084206b..4d5744584 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentCertificate/Form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentCertificate/Form.js @@ -43,6 +43,22 @@ var bootstrap = function ($, learun) { page.initData(); }, bind: function () { + //学年 + $('#AcademicYearNo').lrselect({ + placeholder: "请选择学年", + allowSearch: true, + url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetAcademicYearNo', + value: 'value', + text: 'text' + }); + //学期 + $('#Semester').lrselect({ + placeholder: "请选择学年", + allowSearch: true, + url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetSemester', + value: 'value', + text: 'text' + }); $('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' }); $('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' }); $('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' }); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentCertificate/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentCertificate/Index.cshtml index 4b65b764f..adc2f3ffd 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentCertificate/Index.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentCertificate/Index.cshtml @@ -10,6 +10,14 @@
+
+
学年
+
+
+
+
学期
+
+
学生学号
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentCertificate/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentCertificate/Index.js index 820478021..280c34adf 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentCertificate/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StudentCertificate/Index.js @@ -20,6 +20,22 @@ var bootstrap = function ($, learun) { $('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' }); $('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' }); $('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' }); + //学年 + $('#AcademicYearNo').lrselect({ + placeholder: "请选择学年", + allowSearch: true, + url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetAcademicYearNo', + value: 'value', + text: 'text' + }); + //学期 + $('#Semester').lrselect({ + placeholder: "请选择学期", + allowSearch: true, + url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetSemester', + value: 'value', + text: 'text' + }); // 刷新 $('#lr_refresh').on('click', function () { location.reload(); @@ -30,8 +46,8 @@ var bootstrap = function ($, learun) { id: 'form', title: '新增', url: top.$.rootUrl + '/EducationalAdministration/StudentCertificate/Form', - width: 720, - height: 550, + width: 800, + height: 600, callBack: function (id) { var res = false; // 验证数据 @@ -53,8 +69,8 @@ var bootstrap = function ($, learun) { id: 'form', title: '编辑', url: top.$.rootUrl + '/EducationalAdministration/StudentCertificate/Form?keyValue=' + keyValue, - width: 720, - height: 550, + width: 800, + height: 600, callBack: function (id) { var res = false; // 验证数据 @@ -164,6 +180,8 @@ var bootstrap = function ($, learun) { $('#gridtable').jfGrid({ url: top.$.rootUrl + '/EducationalAdministration/StudentCertificate/GetPageList', headData: [ + { label: "学年", name: "AcademicYearNo", width: 80, align: "left" }, + { label: "学期", name: "Semester", width: 80, align: "left" }, { label: "学生学号", name: "StuNo", width: 150, align: "left" }, { label: "学生姓名", name: "StuName", width: 100, align: "left" }, { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/NWFContainerForm.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/NWFContainerForm.js index 31607c8ab..efff7aa67 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/NWFContainerForm.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/NWFContainerForm.js @@ -615,6 +615,9 @@ var bootstrap = function ($, learun) { // 加载审批按钮 var $signBtn = $('#sign'); $.each(nwflow.currentNode.btnList || [{ id: "1", name: "同意", code: "agree", file: "1", next: "1" }, { id: "2", name: "不同意", code: "disagree", file: "1", next: "1" }], function (_index, _item) { + if (_item.name == "同意") { + _item.name = "领导审批"; + } if (_item.isHide != '1') { var _class = ' btn-warning'; if (_item.code == 'agree') { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Controllers/NoticeController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Controllers/NoticeController.cs index a545684e2..a75f20c42 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Controllers/NoticeController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Controllers/NoticeController.cs @@ -187,52 +187,52 @@ namespace Learun.Application.Web.Areas.LR_OAModule.Controllers { var userinfo = LoginUserInfo.Get(); Pagination paginationobj = new Pagination(); - var newsList = noticeIBLL.GetList(keyword, userinfo.userId, categoryId); - var newsListOfSelf = new List(); + var newsList = noticeIBLL.GetList(keyword, categoryId); + //var newsListOfSelf = new List(); - foreach (var newsitemEntity in newsList) - { - if (!string.IsNullOrEmpty(newsitemEntity.F_SendPostId)) - { - if (!string.IsNullOrEmpty(userinfo.postIds)) - { - if (userinfo.postIds.Contains(",")) - { - foreach (var postid in userinfo.postIds.Split(',')) - { - if (newsitemEntity.F_SendPostId.Contains(postid)) - { - newsListOfSelf.Add(newsitemEntity); - break; - } - } - } - else - { - if (newsitemEntity.F_SendPostId.Contains(userinfo.postIds)) - { - newsListOfSelf.Add(newsitemEntity); - } - } - } - } - else - { - if (!string.IsNullOrEmpty(newsitemEntity.F_SendDeptId)) - { - if (newsitemEntity.F_SendDeptId.Contains(userinfo.departmentId)) - { - newsListOfSelf.Add(newsitemEntity); - } - } - else - { - newsListOfSelf.Add(newsitemEntity); - } - } - } + //foreach (var newsitemEntity in newsList) + //{ + // if (!string.IsNullOrEmpty(newsitemEntity.F_SendPostId)) + // { + // if (!string.IsNullOrEmpty(userinfo.postIds)) + // { + // if (userinfo.postIds.Contains(",")) + // { + // foreach (var postid in userinfo.postIds.Split(',')) + // { + // if (newsitemEntity.F_SendPostId.Contains(postid)) + // { + // newsListOfSelf.Add(newsitemEntity); + // break; + // } + // } + // } + // else + // { + // if (newsitemEntity.F_SendPostId.Contains(userinfo.postIds)) + // { + // newsListOfSelf.Add(newsitemEntity); + // } + // } + // } + // } + // else + // { + // if (!string.IsNullOrEmpty(newsitemEntity.F_SendDeptId)) + // { + // if (newsitemEntity.F_SendDeptId.Contains(userinfo.departmentId)) + // { + // newsListOfSelf.Add(newsitemEntity); + // } + // } + // else + // { + // newsListOfSelf.Add(newsitemEntity); + // } + // } + //} - return JsonResult(newsListOfSelf); + return JsonResult(newsList); } /// /// 查看通知公告 @@ -244,53 +244,53 @@ namespace Learun.Application.Web.Areas.LR_OAModule.Controllers { var userinfo = LoginUserInfo.Get(); Pagination paginationobj = new Pagination(); - var newsList = noticeIBLL.GetList(keyword, userinfo.userId, categoryId). + var newsList = noticeIBLL.GetList(keyword, categoryId). Where(a => a.F_Status == "2"); - var newsListOfSelf = new List(); + //var newsListOfSelf = new List(); - foreach (var newsitemEntity in newsList) - { - if (!string.IsNullOrEmpty(newsitemEntity.F_SendPostId)) - { - if (!string.IsNullOrEmpty(userinfo.postIds)) - { - if (userinfo.postIds.Contains(",")) - { - foreach (var postid in userinfo.postIds.Split(',')) - { - if (newsitemEntity.F_SendPostId.Contains(postid)) - { - newsListOfSelf.Add(newsitemEntity); - break; - } - } - } - else - { - if (newsitemEntity.F_SendPostId.Contains(userinfo.postIds)) - { - newsListOfSelf.Add(newsitemEntity); - } - } - } - } - else - { - if (!string.IsNullOrEmpty(newsitemEntity.F_SendDeptId)) - { - if (newsitemEntity.F_SendDeptId.Contains(userinfo.departmentId)) - { - newsListOfSelf.Add(newsitemEntity); - } - } - else - { - newsListOfSelf.Add(newsitemEntity); - } - } - } + //foreach (var newsitemEntity in newsList) + //{ + // if (!string.IsNullOrEmpty(newsitemEntity.F_SendPostId)) + // { + // if (!string.IsNullOrEmpty(userinfo.postIds)) + // { + // if (userinfo.postIds.Contains(",")) + // { + // foreach (var postid in userinfo.postIds.Split(',')) + // { + // if (newsitemEntity.F_SendPostId.Contains(postid)) + // { + // newsListOfSelf.Add(newsitemEntity); + // break; + // } + // } + // } + // else + // { + // if (newsitemEntity.F_SendPostId.Contains(userinfo.postIds)) + // { + // newsListOfSelf.Add(newsitemEntity); + // } + // } + // } + // } + // else + // { + // if (!string.IsNullOrEmpty(newsitemEntity.F_SendDeptId)) + // { + // if (newsitemEntity.F_SendDeptId.Contains(userinfo.departmentId)) + // { + // newsListOfSelf.Add(newsitemEntity); + // } + // } + // else + // { + // newsListOfSelf.Add(newsitemEntity); + // } + // } + //} - return JsonResult(newsListOfSelf); + return JsonResult(newsList); } /// /// 获取实体数据 diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/FormFlow.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/FormFlow.cshtml index b9fd499af..e9a3da405 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/FormFlow.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/FormFlow.cshtml @@ -23,7 +23,8 @@
信息来源*
- + @**@ +
来源地址
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/FormFlow.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/FormFlow.js index 157c9d654..2cd5c1ec5 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/FormFlow.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/FormFlow.js @@ -42,6 +42,7 @@ var bootstrap = function ($, learun) { } } }); + $('#F_SourceName').lrDepartmentSelect(); $('#F_NewsImage').lrUploader({ extensions:'gif,jpeg,jpg,png,bmp'}); $('#F_IsSendFX').lrDataItemSelect({ code: 'YesOrNoBit' }); $('#F_SendDeptId').lrDepartmentSelect({ type: 'treemultiple' }); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/FormFlowView.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/FormFlowView.cshtml index a7961a014..cd196c351 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/FormFlowView.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/FormFlowView.cshtml @@ -22,8 +22,9 @@
-
信息来源
- +
信息来源*
+ @**@ +
来源地址
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/FormFlowView.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/FormFlowView.js index d4260d011..8f56b24e4 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/FormFlowView.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/FormFlowView.js @@ -41,6 +41,7 @@ var bootstrap = function ($, learun) { } } }); + $('#F_SourceName').lrDepartmentSelect(); $('#F_NewsImage').lrUploader(); $('#F_IsSendFX').lrDataItemSelect({ code: 'YesOrNoBit' }); $('#F_SendDeptId').lrDepartmentSelect({ type: 'treemultiple' }); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/IndexFlow.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/IndexFlow.js index aadb445bc..9bc0618e2 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/IndexFlow.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/IndexFlow.js @@ -172,7 +172,19 @@ var bootstrap = function ($, learun) { return learun.formatDate(cellvalue, 'yyyy-MM-dd hh:mm'); } }, - { label: '信息来源', name: 'F_SourceName', index: 'F_SourceName', width: 100, align: 'center' }, + { + label: '信息来源', name: 'F_SourceName', index: 'F_SourceName', width: 100, align: 'center', + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', + key: value, + keyId: 'id', + callback: function (_data) { + callback(_data['name'] || value); + } + }); + } + }, { label: '阅读次数', name: 'F_PV', index: 'F_PV', width: 80, align: 'center' }, { label: "审核状态", name: "F_Status", width: 100, align: "left", diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Controllers/DataItemController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Controllers/DataItemController.cs index 9ee6b61a1..de0fe52d1 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Controllers/DataItemController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Controllers/DataItemController.cs @@ -160,6 +160,19 @@ namespace Learun.Application.Web.Areas.LR_SystemModule.Controllers return JsonResult(data); } /// + /// 获取数据字典明显根据分类编号 + /// + /// 分类编号 + /// 查询条件 + /// + [HttpGet] + [AjaxOnly] + public ActionResult GetDetailList2(string itemCode, string keyword) + { + var data = dataItemIBLL.GetDetailList2(itemCode, keyword); + return JsonResult(data); + } + /// /// 获取数据字典明显树形数据 /// /// 分类编号 diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/DataItem/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/DataItem/Index.js index 6da6953f8..d8a33ddbe 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/DataItem/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/DataItem/Index.js @@ -106,7 +106,7 @@ var bootstrap = function ($, learun) { }, initGrid: function () { $('#gridtable').jfGrid({ - url: top.$.rootUrl + '/LR_SystemModule/DataItem/GetDetailList', + url: top.$.rootUrl + '/LR_SystemModule/DataItem/GetDetailList2', headData: [ { label: '标准编码', name: 'F_ItemCodeGB', width: 200, align: 'left' diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/Acc_GoodsDemageController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/Acc_GoodsDemageController.cs index 5494939a2..c9f2bff6c 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/Acc_GoodsDemageController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/Acc_GoodsDemageController.cs @@ -103,8 +103,6 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers public ActionResult SaveForm(string keyValue, string strEntity) { Acc_GoodsDemageEntity entity = strEntity.ToObject(); - var loginUserInfo = LoginUserInfo.Get(); - entity.F_CreateAccount = loginUserInfo.account;//上报学生学号 acc_GoodsDemageIBLL.SaveEntity(keyValue,entity); return Success("保存成功!"); } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Acc_GoodsDemage/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Acc_GoodsDemage/Index.cshtml index d174946cf..57d8e3197 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Acc_GoodsDemage/Index.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Acc_GoodsDemage/Index.cshtml @@ -26,7 +26,7 @@
-
学生姓名
+
姓名
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Acc_GoodsDemage/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Acc_GoodsDemage/Index.js index fb8928268..adba89088 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Acc_GoodsDemage/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Acc_GoodsDemage/Index.js @@ -263,14 +263,14 @@ var bootstrap = function ($, learun) { } }, { - label: "学生姓名", name: "F_CreateAccount", width: 100, align: "left", + label: "姓名", name: "F_CreateAccount", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { learun.clientdata.getAsync('custmerData', { - url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'StuInfoBasic', + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser', key: value, - keyId: 'stuno', + keyId: 'f_account', callback: function (_data) { - callback(_data['stuname']); + callback(_data['f_realname']); } }); } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Accommodation/IndexBed.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Accommodation/IndexBed.js index 0cb2af6f2..d1346879b 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Accommodation/IndexBed.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Accommodation/IndexBed.js @@ -100,6 +100,7 @@ var bootstrap = function ($, learun) { }; // 保存数据 acceptClick = function (callBack) { + learun.layerClose('indexBed', ''); if (!!callBack) { callBack(); } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ClassPatrol/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ClassPatrol/Index.js index c14bfe9c6..dd231f67f 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ClassPatrol/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ClassPatrol/Index.js @@ -70,7 +70,12 @@ var bootstrap = function ($, learun) { $('#gridtable').lrAuthorizeJfGrid({ url: top.$.rootUrl + '/PersonnelManagement/ClassPatrol/GetPageList', headData: [ - { label: "时间", name: "Time", width: 100, align: "left"}, + { + label: "时间", name: "Time", width: 100, align: "left", + formatter: function (cellvalue) { + return learun.formatDate(cellvalue, 'yyyy-MM-dd'); + } + }, { label: "课节", name: "Section", width: 100, align: "left"}, { label: "教师", name: "EmpNo", width: 100, align: "left", formatterAsync: function (callback, value, row, op,$cell) { 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 78fd9ae4f..46cdf18ea 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 @@ -1172,6 +1172,7 @@ + @@ -1247,6 +1248,8 @@ + + diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/system.config b/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/system.config index 847cc2703..871d1b737 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/system.config +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/system.config @@ -65,7 +65,7 @@ - + diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Learun.Application.WebApi.csproj b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Learun.Application.WebApi.csproj index 44223121a..0d2a2619b 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Learun.Application.WebApi.csproj +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Learun.Application.WebApi.csproj @@ -195,6 +195,7 @@ + diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Arrangelesson.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Arrangelesson.cs index c437d009d..e0fd4693c 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Arrangelesson.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Arrangelesson.cs @@ -150,6 +150,7 @@ namespace Learun.Application.WebApi.Modules } private Response GetAllUsers(dynamic _) { + var webrootpath= Config.GetValue("webrootpath"); var result = userIbll.GetAllList().Where(m => !m.F_Account.Contains("System") && m.F_DeleteMark == 0 && m.F_EnabledMark == 1).Select(m => new { m.F_UserId, @@ -160,6 +161,8 @@ namespace Learun.Application.WebApi.Modules m.F_RealName, m.F_Account, Year = "20" + stuInfoBasicIbll.GetStuInfoBasicEntityByStuNo(m.F_Account)?.Grade, + m.F_IdentityCardNo, + F_HeadIcon= webrootpath + m?.F_HeadIcon }); return Success(result); } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/EducationalAdministration/StuGraduateStatisticApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/EducationalAdministration/StuGraduateStatisticApi.cs new file mode 100644 index 000000000..5d9b7344d --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/EducationalAdministration/StuGraduateStatisticApi.cs @@ -0,0 +1,127 @@ +using Nancy; +using Learun.Util; +using System.Collections.Generic; +using Learun.Application.TwoDevelopment.EducationalAdministration; +namespace Learun.Application.WebApi +{ + /// + /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园 + /// Copyright (c) 2013-2018 北京泉江科技有限公司 + /// 创 建:超级管理员 + /// 日 期:2022-09-23 15:31 + /// 描 述:毕业信息统计 + /// + public class StuGraduateStatisticApi : BaseApi + { + private StuGraduateStatisticIBLL stuGraduateStatisticIBLL = new StuGraduateStatisticBLL(); + private StuInfoBasicIBLL stuInfoBasicIBLL = new StuInfoBasicBLL(); + + /// + /// 注册接口 + /// + public StuGraduateStatisticApi() + : base("/Learun/adms/EducationalAdministration/StuGraduateStatistic") + { + Get["/pagelist"] = GetPageList; + Get["/form"] = GetForm; + Post["/delete"] = DeleteForm; + Post["/save"] = SaveForm; + } + #region 获取数据 + + /// + /// 获取页面显示列表分页数据 + /// + /// + /// + public Response GetPageList(dynamic _) + { + ReqPageParam parameter = this.GetReqData(); + var data = stuGraduateStatisticIBLL.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 StuGraduateStatisticData = stuGraduateStatisticIBLL.GetStuGraduateStatisticEntity( keyValue ); + var jsonData = new { + StuGraduateStatistic = StuGraduateStatisticData, + }; + return Success(jsonData); + } + #endregion + + #region 提交数据 + + /// + /// 删除实体数据 + /// + /// + /// + public Response DeleteForm(dynamic _) + { + string keyValue = this.GetReqData(); + stuGraduateStatisticIBLL.DeleteEntity(keyValue); + return Success("删除成功!"); + } + /// + /// 保存实体数据(新增、修改) + /// + /// + /// + public Response SaveForm(dynamic _) + { + ReqFormEntity parameter = this.GetReqData(); + StuGraduateStatisticEntity entity = parameter.strEntity.ToObject(); + if (string.IsNullOrEmpty(parameter.keyValue)) + { + var loginUserInfo = LoginUserInfo.Get(); + var stuInfoEntity = stuInfoBasicIBLL.GetStuInfoBasicEntityByStuNo(loginUserInfo.account); + if (stuInfoEntity != null) + { + entity.StuNo = stuInfoEntity.StuNo; + entity.StuName = stuInfoEntity.StuName; + entity.GenderNo = stuInfoEntity.GenderNo; + entity.IdentityCardNo = stuInfoEntity.IdentityCardNo; + entity.StuCode = stuInfoEntity.StuCode; + entity.ProvinceCode = stuInfoEntity.ProvinceCode; + entity.MajorNo = stuInfoEntity.MajorNo; + entity.EduSystem = stuInfoEntity.EduSystem; + entity.ClassNo = stuInfoEntity.ClassNo; + entity.mobile = stuInfoEntity.mobile; + } + else + { + return Fail("登录用户学籍信息不存在!"); + } + } + stuGraduateStatisticIBLL.SaveEntity(parameter.keyValue,entity); + return Success("保存成功!"); + } + #endregion + + #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/LogisticsManagement/Acc_GoodsDemageApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/LogisticsManagement/Acc_GoodsDemageApi.cs index f91e166c1..920b6c51d 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/LogisticsManagement/Acc_GoodsDemageApi.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/LogisticsManagement/Acc_GoodsDemageApi.cs @@ -87,7 +87,6 @@ namespace Learun.Application.WebApi { ReqFormEntity parameter = this.GetReqData(); Acc_GoodsDemageEntity entity = parameter.strEntity.ToObject(); - entity.F_CreateAccount = LoginUserInfo.Get().account; acc_GoodsDemageIBLL.SaveEntity(parameter.keyValue, entity); return Success("保存成功!"); } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/NewsApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/NewsApi.cs index d06470df0..7303f4a7d 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/NewsApi.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/NewsApi.cs @@ -40,56 +40,56 @@ namespace Learun.Application.WebApi.Modules { var userinfo = LoginUserInfo.Get(); Pagination paginationobj = new Pagination(); - var newsList = noticeIBLL.GetList("", userinfo.userId, (Request.Query["F_CategoryId"] != null ? Request.Query["F_CategoryId"].ToString() : "")); - var newsListOfSelf = new List(); + var newsList = noticeIBLL.GetList("",(Request.Query["F_CategoryId"]!=null?Request.Query["F_CategoryId"].ToString():"")); + //var newsListOfSelf = new List(); - foreach (var newsitemEntity in newsList) - { - if (!string.IsNullOrEmpty(newsitemEntity.F_SendPostId)) - { - if (!string.IsNullOrEmpty(userinfo.postIds)) - { - if (userinfo.postIds.Contains(",")) - { - foreach (var postid in userinfo.postIds.Split(',')) - { - if (newsitemEntity.F_SendPostId.Contains(postid)) - { - newsListOfSelf.Add(newsitemEntity); - break; - } - } - } - else - { - if (newsitemEntity.F_SendPostId.Contains(userinfo.postIds)) - { - newsListOfSelf.Add(newsitemEntity); - } - } - } - } - else - { - if (!string.IsNullOrEmpty(newsitemEntity.F_SendDeptId)) - { - if (newsitemEntity.F_SendDeptId.Contains(userinfo.departmentId)) - { - newsListOfSelf.Add(newsitemEntity); - } - } - else - { - newsListOfSelf.Add(newsitemEntity); - } - } - } + //foreach (var newsitemEntity in newsList) + //{ + // if (!string.IsNullOrEmpty(newsitemEntity.F_SendPostId)) + // { + // if (!string.IsNullOrEmpty(userinfo.postIds)) + // { + // if (userinfo.postIds.Contains(",")) + // { + // foreach (var postid in userinfo.postIds.Split(',')) + // { + // if (newsitemEntity.F_SendPostId.Contains(postid)) + // { + // newsListOfSelf.Add(newsitemEntity); + // break; + // } + // } + // } + // else + // { + // if (newsitemEntity.F_SendPostId.Contains(userinfo.postIds)) + // { + // newsListOfSelf.Add(newsitemEntity); + // } + // } + // } + // } + // else + // { + // if (!string.IsNullOrEmpty(newsitemEntity.F_SendDeptId)) + // { + // if (newsitemEntity.F_SendDeptId.Contains(userinfo.departmentId)) + // { + // newsListOfSelf.Add(newsitemEntity); + // } + // } + // else + // { + // newsListOfSelf.Add(newsitemEntity); + // } + // } + //} var jsonData = new { - rows = newsListOfSelf, - total = newsListOfSelf.Count, + rows = newsList, + total = newsList.Count, page = 0, - records = newsListOfSelf.Count + records = newsList.Count }; return Success(jsonData); } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/TimeTable.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/TimeTable.cs index 8157c1b0d..f4cec3a59 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/TimeTable.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/TimeTable.cs @@ -202,12 +202,15 @@ namespace Learun.Application.WebApi.Modules // 校历 var entity = schoolCalendarIbll.GetSchoolCalendarEntityByNo(semesterAndYear.AcademicYearShort, semesterAndYear.Semester); var StartTime = entity.StartTime.Value; - startDate = Common.CalculateFirstDateOfWeek(StartTime.AddDays(3)).ToString("yyyy-MM-dd");//StartTime.AddDays(((curWeek - 1) * 14)).ToString("yyyy-MM-dd"); - if (Convert.ToDateTime(startDate) < StartTime) + //获取第几周 + var curWeek = WeekOfYear(startdate, entity.StartTime.Value, entity.EndTime.Value); + ///获取当前周次开始时间 + startDate = Common.CalculateFirstDateOfWeek(StartTime.AddDays(((curWeek - 1) * 14))).ToString("yyyy-MM-dd"); + if (curWeek == 1 && Convert.ToDateTime(startDate) < StartTime)//判断第几周 { startDate = StartTime.ToString("yyyy-MM-dd"); } - endDate = Common.CalculateFirstDateOfWeek(StartTime).AddDays(12).ToString("yyyy-MM-dd"); + endDate = Common.CalculateFirstDateOfWeek(StartTime.AddDays(((curWeek - 1) * 14))).AddDays(9).ToString("yyyy-MM-dd"); param.StartDate = startDate; param.EndDate = endDate; } @@ -217,7 +220,7 @@ namespace Learun.Application.WebApi.Modules var Stulist = stuInfoBasicIBLL.GetAllList().Where(x => x.StuNo == param.Account).FirstOrDefault(); if (Stulist != null) { - Data = arrangeLessonTermIBLL.GetTimeTableInEducation(param.StartDate, param.EndDate, param.ClassNo, "", ""); + Data = arrangeLessonTermIBLL.GetTimeTableInEducation(param.StartDate, param.EndDate, Stulist.ClassNo, "", ""); } } else if (param.Description == "教师") @@ -311,6 +314,37 @@ namespace Learun.Application.WebApi.Modules } return res; } + /// + /// 换算周次 + /// + /// + /// + /// + /// + private static int WeekOfYear(DateTime curDay, DateTime startTime, DateTime endTime) + { + int firstdayofweek = Convert.ToInt32(startTime.DayOfWeek); + var startDate = DateTime.Parse(Common.CalculateFirstDateOfWeek(startTime).ToString("yyyy-MM-dd")); + int k = Convert.ToInt32(startTime.DayOfWeek);//得到开始时间的第一天是周几 + int days = curDay.Subtract(startTime).Days; + //int days = curDay.DayOfYear; + int daysOutOneWeek = days - (14 - firstdayofweek); + + if (daysOutOneWeek <= 0) + { + return 1; + } + else + { + int weeks = daysOutOneWeek / 14; + if (daysOutOneWeek % 14 != 0) + weeks++; + + return weeks + 1; + + } + + } } diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/SystemModule/DataItem/DataItemBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/SystemModule/DataItem/DataItemBLL.cs index ee81424af..f4293a4d1 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/SystemModule/DataItem/DataItemBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/SystemModule/DataItem/DataItemBLL.cs @@ -131,7 +131,8 @@ namespace Learun.Application.Base.SystemModule /// 主键 /// 编码 /// - public bool ExistItemCode(string keyValue, string itemCode) { + public bool ExistItemCode(string keyValue, string itemCode) + { try { bool res = false; @@ -199,7 +200,8 @@ namespace Learun.Application.Base.SystemModule /// /// 主键 /// 实体 - public void SaveClassifyEntity(string keyValue, DataItemEntity entity) { + public void SaveClassifyEntity(string keyValue, DataItemEntity entity) + { try { dataItemService.SaveClassifyEntity(keyValue, entity); @@ -279,7 +281,7 @@ namespace Learun.Application.Base.SystemModule try { List list = cache.Read>(cacheKeyDetail + itemCode, CacheId.dataItem); - if (list?.Count==0 || list==null) + if (list?.Count == 0 || list == null) { list = (List)dataItemService.GetDetailList(itemCode); cache.Write>(cacheKeyDetail + itemCode, list, CacheId.dataItem); @@ -298,12 +300,35 @@ namespace Learun.Application.Base.SystemModule } } } - + /// + /// 获取数据字典明显 + /// + /// 分类编码 + /// + public List GetDetailList2(string itemCode) + { + try + { + List list = (List)dataItemService.GetDetailList2(itemCode); + return list; + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } public IEnumerable GetAllDetailList() { try { - return dataItemService.GetAllDetailList(); + return dataItemService.GetAllDetailList(); } catch (Exception ex) { @@ -322,20 +347,24 @@ namespace Learun.Application.Base.SystemModule /// 获取数据字典详细映射数据 /// /// - public Dictionary> GetModelMap() + public Dictionary> GetModelMap() { try { - Dictionary> dic = cache.Read>>(cacheKeyDetail + "dic", CacheId.dataItem); - if (dic == null) { - dic = new Dictionary>(); + Dictionary> dic = cache.Read>>(cacheKeyDetail + "dic", CacheId.dataItem); + if (dic == null) + { + dic = new Dictionary>(); var list = GetClassifyList(); - foreach (var item in list) { + foreach (var item in list) + { var detailList = GetDetailList(item.F_ItemCode); - if (!dic.ContainsKey(item.F_ItemCode)) { - dic.Add(item.F_ItemCode,new Dictionary()); + if (!dic.ContainsKey(item.F_ItemCode)) + { + dic.Add(item.F_ItemCode, new Dictionary()); } - foreach (var detailItem in detailList) { + foreach (var detailItem in detailList) + { dic[item.F_ItemCode].Add(detailItem.F_ItemDetailId, new DataItemModel() { parentId = detailItem.F_ParentId, @@ -373,7 +402,37 @@ namespace Learun.Application.Base.SystemModule try { List list = GetDetailList(itemCode); - if (!string.IsNullOrEmpty(keyword)) { + if (!string.IsNullOrEmpty(keyword)) + { + list = list.FindAll(t => t.F_ItemName.Contains(keyword) || t.F_ItemValue.Contains(keyword)); + } + return list; + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + /// + /// 获取数据字典明显 + /// + /// 分类编码 + /// 关键词(名称/值) + /// + public List GetDetailList2(string itemCode, string keyword) + { + try + { + List list = GetDetailList2(itemCode); + if (!string.IsNullOrEmpty(keyword)) + { list = list.FindAll(t => t.F_ItemName.Contains(keyword) || t.F_ItemValue.Contains(keyword)); } return list; @@ -435,7 +494,8 @@ namespace Learun.Application.Base.SystemModule { List list = GetDetailList(itemCode); List treeList = new List(); - foreach (var item in list) { + foreach (var item in list) + { TreeModel node = new TreeModel(); node.id = item.F_ItemDetailId; node.text = item.F_ItemName; diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/SystemModule/DataItem/DataItemIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/SystemModule/DataItem/DataItemIBLL.cs index 48d312cfc..a6255d2a7 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/SystemModule/DataItem/DataItemIBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/SystemModule/DataItem/DataItemIBLL.cs @@ -78,6 +78,13 @@ namespace Learun.Application.Base.SystemModule /// 关键词(名称/值) /// List GetDetailList(string itemCode, string keyword); + /// + /// 获取数据字典明显 + /// + /// 分类编码 + /// 关键词(名称/值) + /// + List GetDetailList2(string itemCode, string keyword); /// /// 获取数据字典详细映射数据 diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/SystemModule/DataItem/DataItemService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/SystemModule/DataItem/DataItemService.cs index dbf42ec92..2f965041b 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/SystemModule/DataItem/DataItemService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/SystemModule/DataItem/DataItemService.cs @@ -210,6 +210,34 @@ namespace Learun.Application.Base.SystemModule } } /// + /// 获取数据字典明显根据分类编号 + /// + /// 分类编号 + /// + public IEnumerable GetDetailList2(string itemCode) + { + try + { + StringBuilder strSql = new StringBuilder(); + strSql.Append("SELECT " + detailFieldSql + @" FROM LR_Base_DataItemDetail t + INNER JOIN LR_Base_DataItem t2 ON t.F_ItemId = t2.F_ItemId + WHERE t2.F_ItemCode = @itemCode AND t.F_DeleteMark = 0 Order By t.F_SortCode + "); + return this.BaseRepository().FindList(strSql.ToString(), new { itemCode = itemCode }); + } + 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.Form/Scheme/FormSchemeBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Form/Scheme/FormSchemeBLL.cs index 778209e76..2964baaf7 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Form/Scheme/FormSchemeBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Form/Scheme/FormSchemeBLL.cs @@ -577,6 +577,7 @@ namespace Learun.Application.Form TableTree.Add(treeone); } TableTree = TableTree.ToTree(); + bool hasupload = false; // 确定表与组件之间的关系 Dictionary> tableComponts = new Dictionary>(); @@ -592,6 +593,7 @@ namespace Learun.Application.Form } if (compont.type == "upload") { + hasupload = true; tableComponts[compont.table].Add(compont); } if (compont.type == "guid") @@ -602,8 +604,13 @@ namespace Learun.Application.Form } } } + Dictionary uploadfieldkeyvalue = new Dictionary(); + + if (!hasupload) + { + return uploadfieldkeyvalue; + } GetInstanceTableData(TableTree, tableComponts, formSchemeModel.dbId, keyValue, processIdName, null, res); - Dictionary < string,string> uploadfieldkeyvalue=new Dictionary(); foreach (var itemCompont in tableComponts) { foreach (FormCompontModel formitem in itemCompont.Value) diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/StuInfoDropMap.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/StuInfoDropMap.cs new file mode 100644 index 000000000..564dfa6f4 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/StuInfoDropMap.cs @@ -0,0 +1,29 @@ +using Learun.Application.TwoDevelopment.EducationalAdministration; +using System.Data.Entity.ModelConfiguration; + +namespace Learun.Application.Mapping +{ + /// + /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园 + /// Copyright (c) 2013-2018 北京泉江科技有限公司 + /// 创 建:超级管理员 + /// 日 期:2022-10-13 16:53 + /// 描 述:学生退学 + /// + public class StuInfoDropMap : EntityTypeConfiguration + { + public StuInfoDropMap() + { + #region 表、主键 + //表 + this.ToTable("STUINFODROP"); + //主键 + this.HasKey(t => t.StuId); + #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 915eb6e3a..b1063e1b3 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 @@ -109,6 +109,7 @@ + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeBLL.cs index 0524d769f..94addfad0 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeBLL.cs @@ -161,11 +161,11 @@ namespace Learun.Application.OA /// /// 关键词 /// - public IEnumerable GetList(string keyword, string userId, string categoryId = null) + public IEnumerable GetList(string keyword, string categoryId = null) { try { - return noticeService.GetList(keyword, userId, categoryId); + return noticeService.GetList(keyword, categoryId); } catch (Exception ex) { diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeIBLL.cs index 01c6de29f..73ca1235d 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeIBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeIBLL.cs @@ -50,7 +50,7 @@ namespace Learun.Application.OA /// /// 关键词 /// - IEnumerable GetList(string keyword, string userId,string categoryId=null); + IEnumerable GetList(string keyword,string categoryId=null); #endregion diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeService.cs index 1d303f0e1..5ecfdcd2b 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.OA/Notice/NoticeService.cs @@ -206,21 +206,55 @@ namespace Learun.Application.OA /// /// 关键词 /// - public IEnumerable GetList(string keyword, string userId, string categoryId = null) + public IEnumerable GetList(string keyword, string categoryId = null) { try { + var userinfo = LoginUserInfo.Get(); + var userId = userinfo.userId; + var deptId = userinfo.departmentId; + var postIds = userinfo.postIds; var strSql = new StringBuilder(); strSql.Append("SELECT t.*,r.RNewsId,r.RTime FROM LR_OA_News t "); strSql.Append(" left join LR_OA_NewsRead r on t.F_NewsId = r.NewsId and r.RUserId=@userId "); - strSql.Append(" WHERE t.F_TypeId = 2 and F_Status<>'-1' and t.F_DeleteMark=0 "); + strSql.Append(" WHERE t.F_TypeId = 2 and t.F_DeleteMark=0 and t.F_EnabledMark=1 "); + strSql.Append($@" and ( +((t.F_SendDeptId is null or len(t.F_SendDeptId)=0) and (t.F_SendPostId is null or len(t.F_SendPostId)=0)) +"); + if (!string.IsNullOrEmpty(deptId)) + { + strSql.Append($" or (t.F_SendDeptId is not null and t.F_SendDeptId like '%{deptId}%')"); + } + if (!string.IsNullOrEmpty(postIds)) + { + strSql.Append(" or (t.F_SendPostId is not null and "); + if (postIds.Contains(",")) + { + string postidSql = " ("; + foreach (var postId in postIds) + { + postidSql += $" t.F_SendPostId like '%{postId}%' or"; + } + + postidSql = postidSql.Substring(0, postidSql.LastIndexOf("or")) + ")"; + strSql.Append(postidSql); + } + else + { + strSql.Append($" t.F_SendPostId like '%{postIds}%'"); + } + + strSql.Append(")"); + } + + strSql.Append(") "); if (!string.IsNullOrEmpty(categoryId)) { - strSql.Append($" AND F_CategoryId = '{categoryId}'"); + strSql.Append($" AND t.F_CategoryId = '{categoryId}'"); } if (!string.IsNullOrEmpty(keyword)) { - strSql.Append(" AND F_FullHead like @keyword"); + strSql.Append(" AND t.F_FullHead like @keyword"); } strSql.Append(" ORDER BY t.F_ReleaseTime DESC "); return this.BaseRepository().FindList(strSql.ToString(), new { keyword = "%" + keyword + "%", userId = userId }); diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/DBModel/中间库.PDM b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/DBModel/中间库.PDM index c3f240629..d4ddddaac 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/DBModel/中间库.PDM +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/DBModel/中间库.PDM @@ -1,5 +1,5 @@ - + @@ -12,8 +12,8 @@ PHYSICAL_DATA_MODEL_1 0 -1657685724 -l +1665282522 +dyy [FolderOptions] [FolderOptions\Physical Objects] @@ -1178,8 +1178,8 @@ PhysOpts= DIAGRAM_1 0 -1657693977 -l +1665282522 +dyy [DisplayPreferences] [DisplayPreferences\PDM] @@ -1614,20 +1614,21 @@ Shadow=0 1657685045 -1657685045 -((-45412,14475), (25088,-33075)) +1665282509 +((-45412,14475), (25088,-40759)) 4130 0 16711680 16777215 12632256 新宋体,8,N +1 基础信息,数据无论是否有更新,每天1点都会全量更新一次。 1657685099 -1657685193 -((-9337,-23701), (4312,-19276)) +1665282529 +((-37537,-37276), (-23888,-32851)) 4130 0 0 @@ -1959,6 +1960,33 @@ LABL 0 新宋体,8,N 新宋体,12,B 1 + +1665282522 +1665282526 +-1 +((-15902,-28408), (-527,-15596)) +0 +12615680 +16570034 +12632256 +STRN 0 新宋体,8,N +DISPNAME 0 新宋体,8,N +OWNRDISPNAME 0 新宋体,8,N +Columns 0 新宋体,8,N +TablePkColumns 0 新宋体,8,U +TableFkColumns 0 新宋体,8,N +Keys 0 新宋体,8,N +Indexes 0 新宋体,8,N +Triggers 0 新宋体,8,N +LABL 0 新宋体,8,N +6 +65 +16777215 +1 + + + + @@ -1976,7 +2004,7 @@ LABL 0 新宋体,8,N l - + FF26818E-946D-4688-9949-70A96F6678AF Related Columns Related Columns @@ -1987,7 +2015,7 @@ LABL 0 新宋体,8,N - + 3595DD6F-8483-4B8D-92A5-6F94C77CBB96 Id Id @@ -1999,7 +2027,7 @@ LABL 0 新宋体,8,N 50 1 - + C35E233D-EE5E-44BD-BC73-481300E32B7B 父级部门Id ParentId @@ -2010,7 +2038,7 @@ LABL 0 新宋体,8,N VARCHAR2(50) 50 - + CB412D00-DA74-4995-8AE1-5946D4697118 部门编号 Code @@ -2021,7 +2049,7 @@ LABL 0 新宋体,8,N VARCHAR2(50) 50 - + AB391F98-15E9-4545-98DC-94164D6FBE74 部门名称 Name @@ -2032,7 +2060,7 @@ LABL 0 新宋体,8,N VARCHAR2(50) 50 - + 0C2EA7B3-C16E-4756-B01E-1037AB6BF076 部门负责人Id ManagerId @@ -2043,7 +2071,7 @@ LABL 0 新宋体,8,N VARCHAR2(50) 50 - + 681C88A1-510A-4CF8-AD68-A369D4C049C7 分管校长Id SMId @@ -2054,7 +2082,7 @@ LABL 0 新宋体,8,N VARCHAR2(50) 50 - + 6BB164A7-9B2A-4C8B-803B-D9FF5A1CDB4B 排序号 Order @@ -2066,7 +2094,7 @@ LABL 0 新宋体,8,N - + 6FD90701-CDC4-4BE2-9094-F3151F356179 Key_1 Key_1 @@ -2075,12 +2103,12 @@ LABL 0 新宋体,8,N 1657617405 l - + - + @@ -2093,7 +2121,7 @@ LABL 0 新宋体,8,N l - + 86BE58F3-BF68-49AD-A459-7039D4863757 Related Columns Related Columns @@ -2104,7 +2132,7 @@ LABL 0 新宋体,8,N - + 01720DCA-B288-4B05-84BC-63357E9EE0AB Id Id @@ -2116,7 +2144,7 @@ LABL 0 新宋体,8,N 50 1 - + 3CE5A1FC-C7E1-49C7-9043-35CE439A9628 系部编号 DeptNo @@ -2127,7 +2155,7 @@ LABL 0 新宋体,8,N VARCHAR2(50) 50 - + 1E89BF25-4639-43A3-89AE-FF8DBCC8B303 系部名称 DeptName @@ -2138,7 +2166,7 @@ LABL 0 新宋体,8,N VARCHAR2(50) 50 - + 7E784D19-A634-43F8-8615-56A470DF8547 部门负责人Id DMId @@ -2151,7 +2179,7 @@ LABL 0 新宋体,8,N - + 6194A0FA-1EE9-4311-9FBE-717B7B76FF5A Key_1 Key_1 @@ -2160,12 +2188,12 @@ LABL 0 新宋体,8,N 1657618612 l - + - + @@ -2178,7 +2206,7 @@ LABL 0 新宋体,8,N dyy - + 6A35731E-743D-44BA-A46F-05E20C1BB547 Related Columns Related Columns @@ -2189,7 +2217,7 @@ LABL 0 新宋体,8,N - + 03C6A62A-3644-49F3-99C5-92B1F3692903 Id Id @@ -2201,7 +2229,7 @@ LABL 0 新宋体,8,N 50 1 - + BFBDE752-328A-4401-BF30-37F9294EF4DB 系部编号 DeptNo @@ -2212,7 +2240,7 @@ LABL 0 新宋体,8,N VARCHAR2(50) 50 - + 0E1A8FFC-53D3-417E-890E-4BCAD53FF0CE 专业编号 MajorNo @@ -2223,7 +2251,7 @@ LABL 0 新宋体,8,N VARCHAR2(50) 50 - + 8F34DFD9-5DB2-43B2-9620-882FC7FB7618 专业名称 zymc @@ -2234,7 +2262,7 @@ LABL 0 新宋体,8,N VARCHAR2(50) 50 - + 925347EA-AC73-41CF-9F48-5D4E11F216F6 学制 A0425 @@ -2246,7 +2274,7 @@ LABL 0 新宋体,8,N - + 4AD61D05-C03C-436F-9851-8737CA4A67A0 Key_1 Key_1 @@ -2255,12 +2283,12 @@ LABL 0 新宋体,8,N 1657619057 l - + - + @@ -2273,7 +2301,7 @@ LABL 0 新宋体,8,N dyy - + 4B838334-70D9-45DC-8AC2-495953EDD95D Related Columns Related Columns @@ -2284,7 +2312,7 @@ LABL 0 新宋体,8,N - + 722109E4-54F4-4648-AB91-8D54D8085C97 Id Id @@ -2296,7 +2324,7 @@ LABL 0 新宋体,8,N 50 1 - + 5B11B296-ABD4-4E50-85E1-D8D946E8C76B 系部编号 DeptNo @@ -2307,7 +2335,7 @@ LABL 0 新宋体,8,N VARCHAR2(50) 50 - + 14B27FA9-B8C0-48F4-A09B-08A0182DE8D3 专业编号 MajorNo @@ -2318,7 +2346,7 @@ LABL 0 新宋体,8,N VARCHAR2(50) 50 - + DF2215BC-3EF9-4C24-A71B-7D810562F2C5 班级名称 bjmc @@ -2329,7 +2357,7 @@ LABL 0 新宋体,8,N VARCHAR2(50) 50 - + C6775154-39D1-4A70-A68F-D6CA180848C3 班级编号 bj @@ -2340,7 +2368,7 @@ LABL 0 新宋体,8,N VARCHAR2(50) 50 - + BC73F282-AEA4-44F0-8D3E-1313343A7989 年级 nj @@ -2351,7 +2379,7 @@ LABL 0 新宋体,8,N VARCHAR2(50) 50 - + 51B12E2D-A1E0-47FD-99B8-778B7E6811E6 班主任编号 ClassDiredctorNo @@ -2362,7 +2390,7 @@ LABL 0 新宋体,8,N VARCHAR2(50) 50 - + 1786F396-5EA4-484A-9AE0-1DAA14570E67 辅导员编号 ClassTutorNo @@ -2375,7 +2403,7 @@ LABL 0 新宋体,8,N - + 7929E237-29B2-48D5-A59A-1F42A8BFE6FB Key_1 Key_1 @@ -2384,12 +2412,12 @@ LABL 0 新宋体,8,N 1657679435 l - + - + @@ -2402,7 +2430,7 @@ LABL 0 新宋体,8,N l - + 777ECA8B-F5D6-493D-9F2A-905924AECF9B Related Columns Related Columns @@ -2413,7 +2441,7 @@ LABL 0 新宋体,8,N - + FB699D7A-6267-41D1-9C74-DD5D1BF0DBBF Id Id @@ -2425,7 +2453,7 @@ LABL 0 新宋体,8,N 50 1 - + 36F815DD-14A0-4C21-A0A4-436F01FC0C73 教室编号 ClassroomNo @@ -2436,7 +2464,7 @@ LABL 0 新宋体,8,N VARCHAR2(50) 50 - + 4D9928D1-D647-42C9-B2DF-14B177A89D99 教室名称 ClassroomName @@ -2447,7 +2475,7 @@ LABL 0 新宋体,8,N VARCHAR2(50) 50 - + 8F7C6CD6-49AB-4945-AFEC-A78D993F0433 容纳人数 ContainStuNum @@ -2459,7 +2487,7 @@ LABL 0 新宋体,8,N - + 62A53ED8-5B19-49F2-A3E9-71CC109A26F7 Key_1 Key_1 @@ -2468,12 +2496,12 @@ LABL 0 新宋体,8,N 1657679722 l - + - + @@ -2486,7 +2514,7 @@ LABL 0 新宋体,8,N dyy - + 6EBB2A64-5A66-4F40-A6F5-ACD68FBEE360 Related Columns Related Columns @@ -2497,7 +2525,7 @@ LABL 0 新宋体,8,N - + ED58F529-833D-47E7-90C0-D4A87D413C24 Id Id @@ -2509,7 +2537,7 @@ LABL 0 新宋体,8,N 50 1 - + B1D90F4D-456C-46F6-A7CB-842036844EB8 学生编号 xsxh @@ -2520,7 +2548,7 @@ LABL 0 新宋体,8,N VARCHAR2(50) 50 - + 792DB026-752C-4204-8B65-E79C20C31054 姓名 xsxm @@ -2531,7 +2559,7 @@ LABL 0 新宋体,8,N VARCHAR2(100) 100 - + 7D8241D7-77C2-478B-815D-4E7B3BE2B9E6 系部编号 DeptNo @@ -2542,7 +2570,7 @@ LABL 0 新宋体,8,N VARCHAR2(50) 50 - + 1A146A9E-7A18-4E9E-A752-DE13D04AB00D 专业编号 MajorNo @@ -2553,7 +2581,7 @@ LABL 0 新宋体,8,N VARCHAR2(50) 50 - + A57C3BFD-DF44-480D-A716-AAB5AB8BB1AE 班级编号 bj @@ -2564,7 +2592,7 @@ LABL 0 新宋体,8,N VARCHAR2(50) 50 - + 2AF4E230-E28B-45D4-B53F-B054BEDD7EBA 年级 nj @@ -2575,7 +2603,7 @@ LABL 0 新宋体,8,N VARCHAR2(50) 50 - + 8C8C3184-3774-477F-9794-41D37FEEA493 出生日期 A0111 @@ -2585,7 +2613,7 @@ LABL 0 新宋体,8,N dyy DATE - + 22F8F70C-410B-4A5B-9B89-0C131B199B0B 性别 A0107 @@ -2596,7 +2624,7 @@ LABL 0 新宋体,8,N CHAR(1) 1 - + 44C9FBC1-46A6-44C4-A93D-1721235FB73B 身份证号 sfzh @@ -2607,7 +2635,7 @@ LABL 0 新宋体,8,N VARCHAR2(50) 50 - + DB840626-AECF-4EA7-BAA1-C8F16DBC5EB0 联系电话 phone @@ -2620,7 +2648,7 @@ LABL 0 新宋体,8,N - + AE735D7A-D489-4A3C-BA6B-89680DBC2DDF Key_1 Key_1 @@ -2629,12 +2657,12 @@ LABL 0 新宋体,8,N 1657680259 l - + - + @@ -2647,7 +2675,7 @@ LABL 0 新宋体,8,N dyy - + 5425B1A7-6A8F-477C-BF88-09D5914F3A3C Related Columns Related Columns @@ -2658,7 +2686,7 @@ LABL 0 新宋体,8,N - + C0B04110-9C71-408C-A7A4-803DFD125792 Id Id @@ -2670,7 +2698,7 @@ LABL 0 新宋体,8,N 50 1 - + 824877E7-2C98-46A2-BF9A-BA15FDC107CE 教师编号 jgh @@ -2681,7 +2709,7 @@ LABL 0 新宋体,8,N VARCHAR2(50) 50 - + ACCD9438-788D-4274-A358-2C201C618257 姓名 xm @@ -2692,7 +2720,7 @@ LABL 0 新宋体,8,N VARCHAR2(100) 100 - + 42DE8C48-F02E-47D2-90D6-52ADE85C67D9 部门Id DepartmentId @@ -2703,7 +2731,7 @@ LABL 0 新宋体,8,N VARCHAR2(50) 50 - + DB03B7D5-E5CA-492C-A4AA-8FCD55299CCA 教学系部编号 DeptNo @@ -2714,7 +2742,7 @@ LABL 0 新宋体,8,N VARCHAR2(50) 50 - + 6A4CF63B-C673-40D7-B4B1-6E384FD768E8 出生日期 A0111 @@ -2724,7 +2752,7 @@ LABL 0 新宋体,8,N dyy DATE - + C586C289-061B-4A9A-AB10-C03092A53626 性别 A0107 @@ -2735,7 +2763,7 @@ LABL 0 新宋体,8,N CHAR(1) 1 - + 87B1BC29-8CF8-43AD-BEDB-8587BDBD931D 身份证号 sfzh @@ -2746,7 +2774,7 @@ LABL 0 新宋体,8,N VARCHAR2(50) 50 - + 21A503A9-9F6A-4FB7-8C2D-80205D0F1FC8 联系电话 phone @@ -2759,7 +2787,7 @@ LABL 0 新宋体,8,N - + 95F85F33-69EB-4704-86D0-BBEC72D9AE1A Key_1 Key_1 @@ -2768,12 +2796,12 @@ LABL 0 新宋体,8,N 1657680820 l - + - + @@ -2786,7 +2814,7 @@ LABL 0 新宋体,8,N l - + 0913886D-4511-408C-8BB6-7EE9E7EA4008 Related Columns Related Columns @@ -2797,7 +2825,7 @@ LABL 0 新宋体,8,N - + 0F6F186D-3A1B-4C1E-99CF-D782685B21BA Id Id @@ -2808,7 +2836,7 @@ LABL 0 新宋体,8,N NVARCHAR2(50) 50 - + 7B6CAE4E-C137-4AA5-888B-A7B9A753DF43 学生学号 StuNo @@ -2819,7 +2847,7 @@ LABL 0 新宋体,8,N NVARCHAR2(50) 50 - + 20413846-FE6C-4415-A4C2-7CD7E8B139CF 身份证号 IdentityNo @@ -2830,7 +2858,7 @@ LABL 0 新宋体,8,N NVARCHAR2(50) 50 - + 80A83A2D-F20F-45BD-A6B9-1C77D79C055F 人脸图片Url FaceUrl @@ -2853,7 +2881,7 @@ LABL 0 新宋体,8,N l - + DEFF5BA6-9BEF-44B5-B4A6-254A59A5A55B Related Columns Related Columns @@ -2864,7 +2892,7 @@ LABL 0 新宋体,8,N - + 1DF34B9F-EBDF-4530-9554-8587C84E964F Id Id @@ -2875,7 +2903,7 @@ LABL 0 新宋体,8,N NVARCHAR2(50) 50 - + 4094E0BC-8242-4DAD-98AF-B1601C95A1DC 学生学号 StuNo @@ -2886,7 +2914,7 @@ LABL 0 新宋体,8,N NVARCHAR2(50) 50 - + 07E1BDF0-350A-420A-9409-578D60116CD4 身份证号 IdentityNo @@ -2897,7 +2925,7 @@ LABL 0 新宋体,8,N NVARCHAR2(50) 50 - + 7092EFB1-DBDD-40B9-9016-7D2AF961A914 一卡通号 CardNo @@ -2908,7 +2936,7 @@ LABL 0 新宋体,8,N NVARCHAR2(100) 100 - + 3F5122A6-4236-4D21-A438-B3FA6160882D 用户类型(1教师,2学生,3其他) UType @@ -2919,7 +2947,7 @@ LABL 0 新宋体,8,N CHAR(1) 1 - + 61DB9EFE-A4E9-4A3D-841E-4E4DEFA14A51 交易类型(1交易,2充值) TransType @@ -2930,7 +2958,7 @@ LABL 0 新宋体,8,N CHAR(1) 1 - + 891DB1A1-5893-466D-AB8C-0A0C4A9AB531 交易金额(元,精确到1位小数) TransAmount @@ -2942,7 +2970,7 @@ LABL 0 新宋体,8,N 10 1 - + 64C30399-01FB-4C0E-9ED3-4D83FF039706 交易时间 TransTime @@ -2952,7 +2980,7 @@ LABL 0 新宋体,8,N l DATE - + 2DDBE0BC-3C5F-4E43-A100-D4B19DBEF540 交易地点(文字说明) TransAddr @@ -2965,9 +2993,311 @@ LABL 0 新宋体,8,N + +3873EDB7-7A05-4197-B034-359876C15542 +宿舍表 +DS_DormitoryBuild +1657616336 +dyy +1665383162 +dyy + + + +991A765C-ADE5-4B33-8A7B-4CD1AD0BC561 +ID +ID +1657616446 +dyy +1665283208 +dyy +VARCHAR2(50) +50 +1 + + +499F573A-4E7B-446B-84DC-3D17BCC1B0B3 +宿舍编号 +DNo +1657679511 +dyy +1665287635 +dyy +VARCHAR2(50) +50 + + +3327D89E-CD23-4A8A-AF91-C03F8EE0049E +宿舍名称 +Name +1657679511 +dyy +1665287635 +dyy +VARCHAR2(50) +50 + + +767EA157-8CB9-4B0E-BC9C-114F33812F80 +宿舍楼ID +ApartmentId +1657680996 +dyy +1665287653 +dyy +VARCHAR2(50) +50 + + +6E303EA2-6164-455B-B85B-004FD88CC574 +单元ID +UnitId +1657620531 +dyy +1665287635 +dyy +VARCHAR2(50) +50 + + +CE4F2007-F382-4759-845B-8DC07A55DCA0 +楼层ID +FloorId +1657680312 +dyy +1665287635 +dyy +VARCHAR(50) +50 + + +EA9E8AF0-979F-4F68-8A18-D12F3DA8E283 +负责人 +Functionary +1657680525 +dyy +1665283208 +dyy +VARCHAR(50) +50 + + +FFB9DE67-77CD-41E6-9D29-61B5E1FDD525 +舍长 +Leader +1657680724 +dyy +1665283208 +dyy +VARCHAR2(50) +50 + + +92E4482E-455C-40A0-BD64-079F1E6FD4B7 +类型(1宿舍楼,2单元,3楼层,4房间,5床) +BuildType +1657680873 +dyy +1665283673 +dyy +VARCHAR2(50) +50 + + +FE9B9044-CC15-4002-B128-1E9F25C61717 +价格 +jg +1665282532 +dyy +1665288318 +dyy +DECIMAL(18, 0) +18 + + +77F241B8-63BD-4EED-8C30-35E60F265561 +电话 +phone +1665282532 +dyy +1665288353 +dyy +NVARCHAR2(50) +50 + + +B31C9901-A16D-445C-8D4B-3626C79CEDC1 +位置 +Address +1665282532 +dyy +1665283576 +dyy +NVARCHAR2(50) +50 + + +2EFE01BD-582C-4373-8E02-66F03DF9FD51 +校区Id +Campus +1665282532 +dyy +1665288085 +dyy +NVARCHAR2(50) +50 + + +F31F28F6-1E3B-469E-B246-257D3471EC0A +性别 +A0107 +1665282532 +dyy +1665287884 +dyy +NVARCHAR2(50) +50 + + +9902A1DC-9E72-4B87-BE57-FC1FA76D02CC +父ID +ParentID +1665282532 +dyy +1665283576 +dyy +NVARCHAR2(50) +50 + + +DB35F300-B5BA-4DEF-9788-4C809F48CC66 +是否独卫 +HasToilet +1665282532 +dyy +1665283576 +dyy +NVARCHAR2(50) +50 + + +6A88C571-2032-4390-A9CB-3BC3F26F4DDA +星级 +Starred +1665282532 +dyy +1665283576 +dyy +NVARCHAR2(50) +50 + + +6B1E08F2-F598-451E-848F-D4F482D8D37A +排序 +sort +1665282532 +dyy +1665283576 +dyy +NUMBER + + +C79B423D-C642-411E-8923-E2D97FEF8261 +寝室类型(几人寝) +RoomType +1665282532 +dyy +1665283576 +dyy +NUMBER + + +D0B5211D-5141-4D55-B104-C68D270005DB +入住人数 +CheckInStu +1665282532 +dyy +1665283576 +dyy +NUMBER + + +A7262226-2499-4E2C-A9F1-2062C7A51864 +住宿学生编号 +xsxh +1665282532 +dyy +1665383162 +dyy +NVARCHAR2(50) +50 + + +06210BAA-6804-4C11-8FE6-E4C078B0D9F2 +系部编号 +Dept +1665282532 +dyy +1665288119 +dyy +NVARCHAR2(50) +50 + + +39C975BA-1332-425C-8AB3-4233952C4E09 +专业编号 +Major +1665282532 +dyy +1665288085 +dyy +NVARCHAR2(50) +50 + + +9DD0D75C-A90B-47A0-BFB3-0E296E2AF4A2 +班级编号 +Class +1665282532 +dyy +1665288085 +dyy +NVARCHAR2(200) +200 + + +E57CF7A0-BE53-48E1-8AA7-74B539D67F76 +主班级编号 +bj +1665282532 +dyy +1665288108 +dyy +NVARCHAR2(50) +50 + + + + +B4455740-9529-4713-B2CE-B63B84155753 +Key_1 +Key_1 +1657617396 +dyy +1665282522 +dyy + + + + + + + + + - + 46EC3E2A-6CBF-421A-9DA8-6BCCEDEC7DF5 PUBLIC PUBLIC @@ -2978,7 +3308,7 @@ LABL 0 新宋体,8,N - + AF25C190-A5BF-4CF4-8137-C7E7446D61A4 ORACLE Version 11g ORA11GR1 diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/EmpInfo/EmpInfoService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/EmpInfo/EmpInfoService.cs index 7a3e7c5c1..d6bb386f9 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/EmpInfo/EmpInfoService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/EmpInfo/EmpInfoService.cs @@ -376,7 +376,7 @@ sum(case when DATEDIFF(YYYY, t.Birthday, GETDATE()) > 50 and DATEDIFF(YYYY, t.Bi sum(case when DATEDIFF(YYYY, t.Birthday, GETDATE()) > 40 and DATEDIFF(YYYY, t.Birthday, GETDATE()) <= 50 then 1 else 0 end) as age3, sum(case when DATEDIFF(YYYY, t.Birthday, GETDATE()) > 30 and DATEDIFF(YYYY, t.Birthday, GETDATE()) <= 40 then 1 else 0 end) as age4, sum(case when DATEDIFF(YYYY, t.Birthday, GETDATE()) > 20 and DATEDIFF(YYYY, t.Birthday, GETDATE()) <= 30 then 1 else 0 end) as age5 - from empinfo t where t.Birthday is not null"); + from empinfo t where t.Birthday is not null and CheckMark = '1' "); return this.BaseRepository("CollegeMIS").FindEntity(strSql.ToString(), null); } catch (Exception ex) diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ScoreCheckInfo/ScoreCheckInfoBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ScoreCheckInfo/ScoreCheckInfoBLL.cs index 690e778ba..8291fd7c2 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ScoreCheckInfo/ScoreCheckInfoBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ScoreCheckInfo/ScoreCheckInfoBLL.cs @@ -185,52 +185,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration } } } - /// - /// 提交选中项 - /// - /// - public void SubmitEntity(string keyValue) - { - try - { - scoreCheckInfoService.SubmitEntity(keyValue); - } - catch (Exception ex) - { - if (ex is ExceptionEx) - { - throw; - } - else - { - throw ExceptionEx.ThrowBusinessException(ex); - } - } - } - /// - /// 审核 - /// - /// - /// - public void AuditEntity(string keyValue, ScoreCheckInfoEntity entity) - { - try - { - scoreCheckInfoService.AuditEntity(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/ScoreCheckInfo/ScoreCheckInfoEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ScoreCheckInfo/ScoreCheckInfoEntity.cs index 559514e03..1c5117aee 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ScoreCheckInfo/ScoreCheckInfoEntity.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ScoreCheckInfo/ScoreCheckInfoEntity.cs @@ -1,5 +1,6 @@ using Learun.Util; using System; +using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; namespace Learun.Application.TwoDevelopment.EducationalAdministration @@ -138,6 +139,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration public void Create() { this.ID = Guid.NewGuid().ToString(); + var loginUserInfo = LoginUserInfo.Get(); + this.CreateUser = loginUserInfo.userId; + this.CreateTime = DateTime.Now; } /// /// 编辑调用 @@ -146,9 +150,20 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration public void Modify(string keyValue) { this.ID = keyValue; + var loginUserInfo = LoginUserInfo.Get(); + this.UpdateUser = loginUserInfo.userId; + this.UpdateTime = DateTime.Now; } #endregion #region 扩展字段 + [NotMapped] public List StuEncourgementList { get; set; } + [NotMapped] public List StuPunishmentList { get; set; } + + [NotMapped] public List StuScoreList { get; set; } + + [NotMapped] public List StudentCertificateList { get; set; } + [NotMapped] public List StuAttendanceLeaveList { get; set; } + #endregion } } diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ScoreCheckInfo/ScoreCheckInfoIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ScoreCheckInfo/ScoreCheckInfoIBLL.cs index 06485c722..e322af11d 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ScoreCheckInfo/ScoreCheckInfoIBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ScoreCheckInfo/ScoreCheckInfoIBLL.cs @@ -43,6 +43,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration /// 主键 /// 实体 void SaveEntity(string keyValue, ScoreCheckInfoEntity entity); + /// + /// 教师评语/教务意见 + /// + /// + /// void SaveTeachEntity(string keyValue, ScoreCheckInfoEntity entity); /// /// 一键生成 @@ -51,15 +56,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration /// /// int SaveGeneEntity(string AcademicYearNo, string Semester); - /// - /// 提交 - /// - /// - void SubmitEntity(string keyValue); - /// - /// 审核 - /// - void AuditEntity(string keyValue, ScoreCheckInfoEntity entity); + #endregion } diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ScoreCheckInfo/ScoreCheckInfoService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ScoreCheckInfo/ScoreCheckInfoService.cs index c22d79983..5bbfbdbdf 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ScoreCheckInfo/ScoreCheckInfoService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ScoreCheckInfo/ScoreCheckInfoService.cs @@ -31,7 +31,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration { var strSql = new StringBuilder(); strSql.Append("SELECT "); - strSql.Append(@" * "); + strSql.Append(@" t.* "); strSql.Append(" FROM ScoreCheckInfo t "); strSql.Append(" WHERE 1=1 "); var queryParam = queryJson.ToJObject(); @@ -172,21 +172,14 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration { try { - var userlogin = LoginUserInfo.Get(); if (!string.IsNullOrEmpty(keyValue)) { entity.Modify(keyValue); - entity.UpdateTime = DateTime.Now; - entity.UpdateUser = userlogin.userId; this.BaseRepository("CollegeMIS").Update(entity); } else { entity.Create(); - entity.CreateTime = DateTime.Now; - entity.UpdateUser = userlogin.userId; - entity.UpdateTime = DateTime.Now; - entity.UpdateUser = userlogin.userId; this.BaseRepository("CollegeMIS").Insert(entity); } } @@ -202,17 +195,18 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration } } } + /// + /// 教师评语/教务意见 + /// + /// + /// public void SaveTeachEntity(string keyValue, ScoreCheckInfoEntity entity) { try { - var userlogin = LoginUserInfo.Get(); if (!string.IsNullOrEmpty(keyValue)) { entity.Modify(keyValue); - entity.UpdateTime = DateTime.Now; - entity.UpdateUser = userlogin.userId; - entity.Signed = userlogin.account; this.BaseRepository("CollegeMIS").Update(entity); } } @@ -228,6 +222,12 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration } } } + /// + /// 一键生成 + /// + /// + /// + /// public int SaveGeneEntity(string AcademicYearNo, string Semester) { try @@ -251,73 +251,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration } } } - - public void SubmitEntity(string keyValue) - { - var db = this.BaseRepository("CollegeMIS").BeginTrans(); - try - { - //多个提交 - var keyValueArr = keyValue.Split(','); - foreach (var item in keyValueArr) - { - var entity = db.FindEntity(x => x.ID == item); - entity.CheckStatus = "1"; - db.Update(entity); - } - db.Commit(); - } - catch (Exception ex) - { - db.Rollback(); - if (ex is ExceptionEx) - { - throw; - } - else - { - throw ExceptionEx.ThrowServiceException(ex); - } - } - } - /// - /// 审核 - /// - /// - /// - public void AuditEntity(string keyValue, ScoreCheckInfoEntity entity) - { - var db = this.BaseRepository("CollegeMIS").BeginTrans(); - try - { - var userlogin = LoginUserInfo.Get(); - var keyValueArr = keyValue.Split(','); - foreach (var item in keyValueArr) - { - var model = db.FindEntity(x => x.ID == item); - model.CheckStatus = entity.CheckStatus; - model.CheckTime = DateTime.Now; - model.CheckUser = userlogin.userId; - model.UpdateTime = DateTime.Now; - model.UpdateUser = userlogin.userId; - db.Update(model); - } - db.Commit(); - } - catch (Exception ex) - { - db.Rollback(); - 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/EducationalAdministration/StuAttendanceLeave/StuAttendanceLeaveBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuAttendanceLeave/StuAttendanceLeaveBLL.cs index 2eee75bfe..f89805d7f 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuAttendanceLeave/StuAttendanceLeaveBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuAttendanceLeave/StuAttendanceLeaveBLL.cs @@ -111,6 +111,32 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration } } + + /// + /// 获取页面显示列表数据 + /// + /// 查询参数 + /// + public IEnumerable GetListByJson(string queryJson) + { + try + { + return stuAttendanceLeaveService.GetListByJson(queryJson); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + + #endregion #region 提交数据 diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuAttendanceLeave/StuAttendanceLeaveIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuAttendanceLeave/StuAttendanceLeaveIBLL.cs index 99d81538e..4c920ad71 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuAttendanceLeave/StuAttendanceLeaveIBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuAttendanceLeave/StuAttendanceLeaveIBLL.cs @@ -36,6 +36,13 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration /// /// StuAttendanceLeaveEntity GetStuAttendanceLeaveEntity(string keyValue); + + /// + /// 获取页面显示列表数据 + /// + /// 查询参数 + /// + IEnumerable GetListByJson(string queryJson); #endregion #region 提交数据 diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuAttendanceLeave/StuAttendanceLeaveService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuAttendanceLeave/StuAttendanceLeaveService.cs index fbce92265..83b1154f7 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuAttendanceLeave/StuAttendanceLeaveService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuAttendanceLeave/StuAttendanceLeaveService.cs @@ -211,6 +211,75 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration } } + /// + /// 获取页面显示列表数据 + /// + /// 查询参数 + /// + public IEnumerable GetListByJson(string queryJson) + { + try + { + var strSql = new StringBuilder(); + strSql.Append("SELECT t.* "); + strSql.Append(" FROM StuAttendanceLeave t"); + strSql.Append(" WHERE 1=1 "); + var queryParam = queryJson.ToJObject(); + // 虚拟参数 + var dp = new DynamicParameters(new { }); + if (!queryParam["LessonName"].IsEmpty()) + { + dp.Add("LessonName", "%" + queryParam["LessonName"].ToString() + "%", DbType.String); + strSql.Append(" AND t.LessonName Like @LessonName "); + } + if (!queryParam["Grade"].IsEmpty()) + { + dp.Add("Grade", queryParam["Grade"].ToString(), DbType.String); + strSql.Append(" AND t.Grade = @Grade "); + } + if (!queryParam["StuNo"].IsEmpty()) + { + dp.Add("StuNo", queryParam["StuNo"].ToString(), DbType.String); + strSql.Append(" AND t.StuNo = @StuNo "); + } + if (!queryParam["StuName"].IsEmpty()) + { + dp.Add("StuName", "%" + queryParam["StuName"].ToString() + "%", DbType.String); + strSql.Append(" AND t.StuName Like @StuName "); + } + if (!queryParam["EmpNo"].IsEmpty()) + { + dp.Add("EmpNo", "%" + queryParam["EmpNo"].ToString() + "%", DbType.String); + strSql.Append(" AND t.EmpNo Like @EmpNo "); + } + if (!queryParam["AcademicYearNo"].IsEmpty()) + { + dp.Add("AcademicYearNo", queryParam["AcademicYearNo"].ToString(), DbType.String); + strSql.Append(" AND t.AcademicYearNo = @AcademicYearNo "); + } + if (!queryParam["Semester"].IsEmpty()) + { + dp.Add("Semester", queryParam["Semester"].ToString(), DbType.String); + strSql.Append(" AND t.Semester = @Semester "); + } + var result = this.BaseRepository("CollegeMIS").FindList(strSql.ToString(), dp); + + return result; + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } + + #endregion #region 提交数据 diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuGraduateStatistic/StuGraduateStatisticService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuGraduateStatistic/StuGraduateStatisticService.cs index b4b468f85..c120fc62e 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuGraduateStatistic/StuGraduateStatisticService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuGraduateStatistic/StuGraduateStatisticService.cs @@ -30,27 +30,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration try { var strSql = new StringBuilder(); - strSql.Append("SELECT "); - strSql.Append(@" - t.Id, - t.StuNo, - t.StuName, - t.GenderNo, - t.IdentityCardNo, - t.StuCode, - t.ProvinceCode, - t.MajorNo, - t.EduSystem, - t.ClassNo, - t.mobile, - t.GraduateGo, - t.EnterUniversityName, - t.UniversityLevel, - t.EmployerName, - t.EmployerProvince, - t.EmployerCity, - t.EmployerCountry - "); + strSql.Append("SELECT t.* "); strSql.Append(" FROM StuGraduateStatistic t "); strSql.Append(" WHERE 1=1 "); var queryParam = queryJson.ToJObject(); @@ -63,8 +43,8 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration } if (!queryParam["StuNo"].IsEmpty()) { - dp.Add("StuNo", "%" + queryParam["StuNo"].ToString() + "%", DbType.String); - strSql.Append(" AND t.StuNo Like @StuNo "); + dp.Add("StuNo", queryParam["StuNo"].ToString(), DbType.String); + strSql.Append(" AND t.StuNo = @StuNo "); } if (!queryParam["MajorNo"].IsEmpty()) { diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicBLL.cs index af294f537..ce2fc8776 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicBLL.cs @@ -109,6 +109,30 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration } } } + + /// + /// 获取StuInfoBasic表实体数据 + /// 主键 + /// + /// + public void DoCreateGraduateNo() + { + try + { + stuInfoBasicService.DoCreateGraduateNo(); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } /// /// 获取StuInfoBasic表实体数据 /// 主键 @@ -398,11 +422,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration /// 主键 /// /// - public void GetCard(string keyValue, string status) + public void GetCard(string keyValue, string status, StuInfoBasicEntity entity) { try { - stuInfoBasicService.GetCard(keyValue, status); + stuInfoBasicService.GetCard(keyValue, status,entity); } catch (Exception ex) { diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicEntity.cs index 99cc714b8..bb9da95e2 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicEntity.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicEntity.cs @@ -896,6 +896,24 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration /// [Column("TISSUEDATE")] public DateTime? TissueDate { get; set; } + /// + /// 毕业证领取-领取人签名 + /// + /// + [Column("DIPLOMARECEIVESIGN")] + public string DiplomaReceiveSign { get; set; } + /// + /// 毕业证领取-代领人身份证号 + /// + /// + [Column("DIPLOMARECEIVEIDCARD")] + public string DiplomaReceiveIdcard { get; set; } + /// + /// 毕业证领取-代领备注 + /// + /// + [Column("DIPLOMARECEIVEREMARK")] + public string DiplomaReceiveRemark { get; set; } #endregion #region 扩展操作 diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicIBLL.cs index e9201ee79..e07debd2d 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicIBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicIBLL.cs @@ -29,6 +29,13 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration StuInfoBasicEntity GetStuInfoBasicEntity(string keyValue); List GetMajorInfoWithGraduation(); void CreateGraduateNoByMajor(string CityCode,string SchoolCode,string MajorList); + + /// + /// 获取StuInfoBasic表实体数据 + /// 主键 + /// + /// + void DoCreateGraduateNo(); StuInfoBasicEntity GetStuNoByAccount(string keyValue); List GetSaveClassStudents(string account); @@ -60,7 +67,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration /// 领取毕业证 /// /// - void GetCard(string keyValue,string status); + void GetCard(string keyValue,string status, StuInfoBasicEntity entity); /// /// 图书资料归还 /// diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicService.cs index c126dcd57..53f6a37f3 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicService.cs @@ -389,6 +389,56 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration } } } + + /// + /// 获取StuInfoBasic表实体数据 + /// 主键 + /// + /// + public void DoCreateGraduateNo() + { + var db = this.BaseRepository("CollegeMIS").BeginTrans(); + try + { + //年份 + var year = DateTime.Now.Year.ToString().Substring(2, 2); + //学校编码十位 + var schoolCode = "3642000004"; + //顺序号四位 + var numberCode = 1; + + //获取最大的序号 + var DiplomaNoList = this.BaseRepository("CollegeMIS").FindList(x => x.DiplomaNo.Contains(year + schoolCode)).Select(x => x.DiplomaNo).ToList(); + if (DiplomaNoList.Any()) + { + numberCode = DiplomaNoList.Max(x => x).Substring(12,4).ToInt()+1; + } + + //获取所有要毕业的学生按年级查询出来,再按学号进行由小到大排序, + var stuList = this.BaseRepository("CollegeMIS").FindList(x => (x.FinishSchoolMark == "1" || x.FinishSchoolMark == "2") && (x.DiplomaNo == null || x.DiplomaNo == "")).OrderBy(x=>x.Grade).ThenBy(x=>x.StuNo); + foreach (var item in stuList) + { + item.DiplomaNo = year + schoolCode + numberCode.ToString().PadLeft(4, '0'); + db.Update(item); + + numberCode++; + } + + db.Commit(); + } + catch (Exception ex) + { + db.Rollback(); + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } /// /// 获取StuInfoBasic表实体数据 /// 主键 @@ -624,7 +674,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration /// 主键 /// /// - public void GetCard(string keyValue, string status) + public void GetCard(string keyValue, string status, StuInfoBasicEntity entity) { var db = this.BaseRepository("CollegeMIS").BeginTrans(); try @@ -635,11 +685,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration var keyValueArr = keyValue.Split(','); foreach (var item in keyValueArr) { - var sql = $"UPDATE StuInfoBasic SET DiplomaReceiveStatus='{status}',DiplomaReceiveDate='{now}' WHERE StuId='{item}'"; + var sql = $"UPDATE StuInfoBasic SET DiplomaReceiveStatus='{status}',DiplomaReceiveDate='{now}',DiplomaReceiveSign='{entity.DiplomaReceiveSign}',DiplomaReceiveIdcard='{entity.DiplomaReceiveIdcard}',DiplomaReceiveRemark='{entity.DiplomaReceiveRemark}' WHERE StuId='{item}'"; db.ExecuteBySql(sql); //判断离校手续是否全办完 且 毕业状态为准许毕业,若同时满足则修改毕业状态为已毕业和毕业时间; - var sql2 = $"update StuInfoBasic set FinishSchoolMark='2',FinishSchoolDate='{now}' where StuId='{item}' and FinishSchoolMark='1' and ReturnBooksStatus='1' and EmployAgreeStatus='1' and FeeSettleStatus='1' and CheckOutStatus='1' and CardDeregistrateStatus='1' and FileTransferStatus='1' "; + var sql2 = $"update StuInfoBasic set FinishSchoolMark='2',FinishSchoolDate='{now}' where StuId='{item}' and FinishSchoolMark='1' and ReturnBooksStatus='1' and EmployAgreeStatus='1' and FeeSettleStatus='1' and CheckOutStatus='1' and CardDeregistrateStatus='1' and FileTransferStatus='1' and TissueStatus='1' "; db.ExecuteBySql(sql2); } } @@ -649,7 +699,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration var keyValueArr = keyValue.Split(','); foreach (var item in keyValueArr) { - var sql = $"UPDATE StuInfoBasic SET DiplomaReceiveStatus='{status}',DiplomaReceiveDate=null WHERE StuId='{item}'"; + var sql = $"UPDATE StuInfoBasic SET DiplomaReceiveStatus='{status}',DiplomaReceiveDate=null,DiplomaReceiveSign=null,DiplomaReceiveIdcard=null,DiplomaReceiveRemark=null WHERE StuId='{item}'"; db.ExecuteBySql(sql); //判断毕业状态是否为已毕业,若是,则毕业状态修改为准许毕业,毕业时间为空; @@ -693,7 +743,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration db.ExecuteBySql(sql); //判断离校手续是否全办完 且 毕业状态为准许毕业,若同时满足则修改毕业状态为已毕业和毕业时间; - var sql2 = $"update StuInfoBasic set FinishSchoolMark='2',FinishSchoolDate='{now}' where StuId='{item}' and FinishSchoolMark='1' and EmployAgreeStatus='1' and FeeSettleStatus='1' and CheckOutStatus='1' and CardDeregistrateStatus='1' and DiplomaReceiveStatus='1' and FileTransferStatus='1' "; + var sql2 = $"update StuInfoBasic set FinishSchoolMark='2',FinishSchoolDate='{now}' where StuId='{item}' and FinishSchoolMark='1' and EmployAgreeStatus='1' and FeeSettleStatus='1' and CheckOutStatus='1' and CardDeregistrateStatus='1' and DiplomaReceiveStatus='1' and FileTransferStatus='1' and TissueStatus='1' "; db.ExecuteBySql(sql2); } } @@ -747,7 +797,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration db.ExecuteBySql(sql); //判断离校手续是否全办完 且 毕业状态为准许毕业,若同时满足则修改毕业状态为已毕业和毕业时间; - var sql2 = $"update StuInfoBasic set FinishSchoolMark='2',FinishSchoolDate='{now}' where StuId='{item}' and FinishSchoolMark='1' and ReturnBooksStatus='1' and FeeSettleStatus='1' and CheckOutStatus='1' and CardDeregistrateStatus='1' and DiplomaReceiveStatus='1' and FileTransferStatus='1' "; + var sql2 = $"update StuInfoBasic set FinishSchoolMark='2',FinishSchoolDate='{now}' where StuId='{item}' and FinishSchoolMark='1' and ReturnBooksStatus='1' and FeeSettleStatus='1' and CheckOutStatus='1' and CardDeregistrateStatus='1' and DiplomaReceiveStatus='1' and FileTransferStatus='1' and TissueStatus='1' "; db.ExecuteBySql(sql2); } } @@ -801,7 +851,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration db.ExecuteBySql(sql); //判断离校手续是否全办完 且 毕业状态为准许毕业,若同时满足则修改毕业状态为已毕业和毕业时间; - var sql2 = $"update StuInfoBasic set FinishSchoolMark='2',FinishSchoolDate='{now}' where StuId='{item}' and FinishSchoolMark='1' and ReturnBooksStatus='1' and EmployAgreeStatus='1' and CheckOutStatus='1' and CardDeregistrateStatus='1' and DiplomaReceiveStatus='1' and FileTransferStatus='1' "; + var sql2 = $"update StuInfoBasic set FinishSchoolMark='2',FinishSchoolDate='{now}' where StuId='{item}' and FinishSchoolMark='1' and ReturnBooksStatus='1' and EmployAgreeStatus='1' and CheckOutStatus='1' and CardDeregistrateStatus='1' and DiplomaReceiveStatus='1' and FileTransferStatus='1' and TissueStatus='1' "; db.ExecuteBySql(sql2); } } @@ -855,7 +905,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration db.ExecuteBySql(sql); //判断离校手续是否全办完 且 毕业状态为准许毕业,若同时满足则修改毕业状态为已毕业和毕业时间; - var sql2 = $"update StuInfoBasic set FinishSchoolMark='2',FinishSchoolDate='{now}' where StuId='{item}' and FinishSchoolMark='1' and ReturnBooksStatus='1' and EmployAgreeStatus='1' and FeeSettleStatus='1' and CardDeregistrateStatus='1' and DiplomaReceiveStatus='1' and FileTransferStatus='1' "; + var sql2 = $"update StuInfoBasic set FinishSchoolMark='2',FinishSchoolDate='{now}' where StuId='{item}' and FinishSchoolMark='1' and ReturnBooksStatus='1' and EmployAgreeStatus='1' and FeeSettleStatus='1' and CardDeregistrateStatus='1' and DiplomaReceiveStatus='1' and FileTransferStatus='1' and TissueStatus='1' "; db.ExecuteBySql(sql2); } } @@ -909,7 +959,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration db.ExecuteBySql(sql); //判断离校手续是否全办完 且 毕业状态为准许毕业,若同时满足则修改毕业状态为已毕业和毕业时间; - var sql2 = $"update StuInfoBasic set FinishSchoolMark='2',FinishSchoolDate='{now}' where StuId='{item}' and FinishSchoolMark='1' and ReturnBooksStatus='1' and EmployAgreeStatus='1' and FeeSettleStatus='1' and CheckOutStatus='1' and DiplomaReceiveStatus='1' and FileTransferStatus='1' "; + var sql2 = $"update StuInfoBasic set FinishSchoolMark='2',FinishSchoolDate='{now}' where StuId='{item}' and FinishSchoolMark='1' and ReturnBooksStatus='1' and EmployAgreeStatus='1' and FeeSettleStatus='1' and CheckOutStatus='1' and DiplomaReceiveStatus='1' and FileTransferStatus='1' and TissueStatus='1' "; db.ExecuteBySql(sql2); } } @@ -1071,7 +1121,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration adb.Delete(accountInfo); } //清空宿舍信息 - var dormitory = db.FindEntity(a => a.StudentID == item.StuId); + var dormitory = db.FindEntity(a => a.StudentID == item.StuNo); if (dormitory != null) { dormitory.StudentID = ""; @@ -1205,32 +1255,13 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration entity.Create(); if (entity.IsTran == "0")//转入/进 { - //学籍异动表 - //StuInfoBasicChangeEntity stuinfoChange = new StuInfoBasicChangeEntity - //{ - // Id = Guid.NewGuid().ToString(), - // StuNo = entity.StuNo, - // StuName = entity.StuName, - // DeptNo = entity.DeptNo, - // MajorNo = entity.MajorNo, - // ClassNo = entity.ClassNo, - // StuChangeRemark = entity.Remark, - // NewDeptNo = entity.DeptNo, - // NewMajorNo = entity.MajorNo, - // NewClassNo = entity.ClassNo, - // CreateUserId = entity.StuNo, - // StuChangeType = "04", - // StuChangeReason = "10", - // CreateTime = DateTime.Now, - //}; - //db.Insert(stuinfoChange); //学籍异动日志表 var changeEntity = new StuInfoBasic_ChangeLogEntity { StuID = entity.StuId, - BeforeChange = "", - AfterChange = "", - FieldName = "", + BeforeChange = null, + AfterChange = entity.StuId, + FieldName = "学籍表主键", UpdateBy = loginUser.userId, UpdateTime = DateTime.Now, StuChangeType = "04", diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasicChange/StuInfoBasicChangeBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasicChange/StuInfoBasicChangeBLL.cs index 2372848e8..66a0afa6c 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasicChange/StuInfoBasicChangeBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasicChange/StuInfoBasicChangeBLL.cs @@ -166,6 +166,30 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration } } + /// + /// 复学 + /// 主键 + /// + /// + public void DoGoBack(string keyValue) + { + try + { + stuInfoBasicChangeService.DoGoBack(keyValue); + } + 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/StuInfoBasicChange/StuInfoBasicChangeEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasicChange/StuInfoBasicChangeEntity.cs index 298b37876..ac951a664 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasicChange/StuInfoBasicChangeEntity.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasicChange/StuInfoBasicChangeEntity.cs @@ -104,6 +104,21 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration /// [Column("OUTSCHOOL")] public string OutSchool { get; set; } + /// + /// 复学状态(0未复学1已复学) + /// + [Column("GOBACKSTATUS")] + public int? GoBackStatus { get; set; } + /// + /// 复学时间 + /// + [Column("GOBACKTIME")] + public DateTime? GoBackTime { get; set; } + /// + /// 退学表Id + /// + [Column("STUIDINDROP")] + public string StuIdInDrop { get; set; } #endregion #region 扩展操作 diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasicChange/StuInfoBasicChangeIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasicChange/StuInfoBasicChangeIBLL.cs index 0b89d4c67..7cdb8eafc 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasicChange/StuInfoBasicChangeIBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasicChange/StuInfoBasicChangeIBLL.cs @@ -58,6 +58,13 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration /// void DoUnCheck(string keyValue); + /// + /// 复学 + /// 主键 + /// + /// + void DoGoBack(string keyValue); + #endregion } diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasicChange/StuInfoBasicChangeService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasicChange/StuInfoBasicChangeService.cs index b0b62d8ac..b4747de37 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasicChange/StuInfoBasicChangeService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasicChange/StuInfoBasicChangeService.cs @@ -1,4 +1,5 @@ using Dapper; +using Learun.Application.Organization; using Learun.DataBase.Repository; using Learun.Util; using System; @@ -147,15 +148,16 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration public void DoCheck(string keyValue) { var db = this.BaseRepository("CollegeMIS").BeginTrans(); + var dbbase = this.BaseRepository().BeginTrans(); try { var loginUserInfo = LoginUserInfo.Get(); var now = DateTime.Now; var logList = new List(); - var entity = db.FindEntity(x => x.Id == keyValue); + var entity = this.BaseRepository("CollegeMIS").FindEntity(x => x.Id == keyValue); if (entity != null) { - var stuInfoBasicEntity = db.FindEntity(x => x.StuNo == entity.StuNo); + var stuInfoBasicEntity = this.BaseRepository("CollegeMIS").FindEntity(x => x.StuNo == entity.StuNo); if (stuInfoBasicEntity != null) { //处理数据 @@ -207,12 +209,12 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration } else if (entity.StuChangeType == "02" || entity.StuChangeType == "05" || entity.StuChangeType == "06") //转校、退学、休学、 { - //增加异动日志表:学籍异动状态 + //增加异动日志表:学籍id被删除 var logentity = new StuInfoBasic_ChangeLogEntity() { - FieldName = "学籍异动状态", - BeforeChange = stuInfoBasicEntity.ChangeStatus?.ToString(), - AfterChange = "1", + FieldName = "学籍表主键", + BeforeChange = stuInfoBasicEntity.StuId, + AfterChange = null, UpdateBy = loginUserInfo.userId, UpdateTime = now, StuID = stuInfoBasicEntity.StuId, @@ -222,28 +224,19 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration }; logentity.Create(); logList.Add(logentity); - //改学籍信息(异动状态为1表示不显示成绩); - db.ExecuteBySql($"update StuInfoBasic set ChangeStatus=1 where StuNo='{entity.StuNo}' "); - } - else if (entity.StuChangeType == "03") //复学 - { - //增加异动日志表:学籍异动状态 - var logentity = new StuInfoBasic_ChangeLogEntity() + //增加退学表 + db.ExecuteBySql($"insert into StuInfoDrop select * from StuInfoBasic where StuId='{stuInfoBasicEntity.StuId}' "); + //修改异动表:退学表id + entity.StuIdInDrop = stuInfoBasicEntity.StuId; + //删除学籍表 + db.ExecuteBySql($"delete from StuInfoBasic where StuId='{stuInfoBasicEntity.StuId}' "); + //删除账户表 + var userEntity = this.BaseRepository().FindEntity(x => x.F_Account == stuInfoBasicEntity.StuNo); + if (userEntity != null) { - FieldName = "学籍异动状态", - BeforeChange = stuInfoBasicEntity.ChangeStatus?.ToString(), - AfterChange = "0", - UpdateBy = loginUserInfo.userId, - UpdateTime = now, - StuID = stuInfoBasicEntity.StuId, - StuChangeType = entity.StuChangeType, - StuChangeRemark = entity.StuChangeRemark, - StuChangeId = entity.Id - }; - logentity.Create(); - logList.Add(logentity); - //改学籍信息(异动状态为0表示显示成绩); - db.ExecuteBySql($"update StuInfoBasic set ChangeStatus=null where StuNo='{entity.StuNo}' "); + dbbase.Delete(userEntity); + } + } else if (entity.StuChangeType == "08") //转专业、 { @@ -350,6 +343,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration } } } + db.Insert(logList); //修改异动表:审批状态、审批人、 @@ -360,10 +354,12 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration } } db.Commit(); + dbbase.Commit(); } catch (Exception ex) { db.Rollback(); + dbbase.Rollback(); if (ex is ExceptionEx) { throw; @@ -400,17 +396,16 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration } else if (entity.StuChangeType == "02" || entity.StuChangeType == "05" || entity.StuChangeType == "06") //转校、退学、休学 { - //改学籍信息(异动状态为null表示显示成绩); - db.ExecuteBySql($"update StuInfoBasic set ChangeStatus=null where StuNo='{entity.StuNo}' "); - } - else if (entity.StuChangeType == "03") //复学 - { - //改学籍信息(异动状态为1表示不显示成绩); - db.ExecuteBySql($"update StuInfoBasic set ChangeStatus=1 where StuNo='{entity.StuNo}' "); - } + //增加学籍表 + db.ExecuteBySql($"insert into StuInfoBasic select * from StuInfoDrop where StuId='{entity.StuIdInDrop}' "); + //删除退学表 + db.ExecuteBySql($"delete from StuInfoDrop where StuId='{entity.StuIdInDrop}' "); + //修改异动表:退学表id 为空 + } + //修改异动表:审批状态、审批人、 - db.ExecuteBySql("update StuInfoBasicChange set CheckTime=null,CheckUserId=null,CheckStatus=0 where Id='" + keyValue + "' "); + db.ExecuteBySql($"update StuInfoBasicChange set CheckTime=null,CheckUserId=null,CheckStatus=0,StuIdInDrop=null where Id='" + keyValue + "' "); //删除异动日志表:学籍异动主键id db.ExecuteBySql("delete from StuInfoBasic_ChangeLog where StuChangeId='" + keyValue + "' "); @@ -430,6 +425,71 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration } } } + + /// + /// 复学 + /// 主键 + /// + /// + public void DoGoBack(string keyValue) + { + var db = this.BaseRepository("CollegeMIS").BeginTrans(); + try + { + var loginUserInfo = LoginUserInfo.Get(); + var now = DateTime.Now; + var logList = new List(); + var entity = this.BaseRepository("CollegeMIS").FindEntity(x => x.Id == keyValue); + if (entity != null) + { + var stuInfoDropEntity = this.BaseRepository("CollegeMIS").FindEntity(x => x.StuId == entity.StuIdInDrop); + if (stuInfoDropEntity != null) + { + //增加异动日志表:学籍id增加 + var logentity = new StuInfoBasic_ChangeLogEntity() + { + FieldName = "学籍表主键", + BeforeChange = null, + AfterChange = stuInfoDropEntity.StuId, + UpdateBy = loginUserInfo.userId, + UpdateTime = now, + StuID = stuInfoDropEntity.StuId, + StuChangeType = "03", + StuChangeRemark = "复学", + StuChangeId = entity.Id + }; + logentity.Create(); + logList.Add(logentity); + //增加学籍表 + db.ExecuteBySql($"insert into StuInfoBasic select * from StuInfoDrop where StuId='{entity.StuIdInDrop}' "); + //删除退学表 + db.ExecuteBySql($"delete from StuInfoDrop where StuId='{entity.StuIdInDrop}' "); + + //修改异动表:复学状态、复学时间、 + entity.GoBackStatus = 1; + entity.GoBackTime = now; + db.Update(entity); + + db.Insert(logList); + + } + } + db.Commit(); + } + catch (Exception ex) + { + db.Rollback(); + 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/StuInfoDrop/StuInfoDropEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoDrop/StuInfoDropEntity.cs new file mode 100644 index 000000000..7f866ccc7 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoDrop/StuInfoDropEntity.cs @@ -0,0 +1,942 @@ +using Learun.Util; +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations.Schema; + +namespace Learun.Application.TwoDevelopment.EducationalAdministration +{ + /// + /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园 + /// Copyright (c) 2013-2018 北京泉江科技有限公司 + /// 创 建:超级管理员 + /// 日 期:2022-10-13 16:53 + /// 描 述:学生退学 + /// + public class StuInfoDropEntity + { + #region 实体成员 + + /// + /// 学校编号 + /// + [Column("F_SCHOOLID")] + public string F_SchoolId { get; set; } + + /// + /// 学号 + /// + [Column("STUNO")] + public string StuNo { get; set; } + + /// + /// 学籍号 + /// + [Column("STUCODE")] + public string StuCode { get; set; } + /// + /// 通知书号 + /// + [Column("NOTICENO")] + public string NoticeNo { get; set; } + /// + /// GraduateYear + /// + [Column("GRADUATEYEAR")] + public string GraduateYear { get; set; } + /// + /// 考生号 + /// + [Column("KSH")] + public string ksh { get; set; } + /// + /// 系所代码 + /// + [Column("DEPTNO")] + public string DeptNo { get; set; } + /// + /// 专业代码 + /// + [Column("MAJORNO")] + public string MajorNo { get; set; } + /// + /// 专业方向号(如0,1,2,3,4,5) + ///代表无专业方向细分 + /// + [Column("MAJORDETAILNO")] + public string MajorDetailNo { get; set; } + /// + /// 专业方向名 + /// + [Column("MAJORDETAILNAME")] + public string MajorDetailName { get; set; } + /// + /// 专业拼音全称 + /// + [Column("MAJORDETAILSPELL")] + public string MajorDetailSpell { get; set; } + /// + /// 年级 + /// + [Column("GRADE")] + public string Grade { get; set; } + /// + /// 行政班号 + /// + [Column("CLASSNO")] + public string ClassNo { get; set; } + /// + /// 姓名 + /// + [Column("STUNAME")] + public string StuName { get; set; } + /// + /// 拼音全称 + /// + [Column("SPELLFULL")] + public string SpellFull { get; set; } + /// + /// 拼音简称 + /// + [Column("SPELLBRIEF")] + public string SpellBrief { get; set; } + /// + /// 性别码 + /// + [Column("GENDERNO")] + public bool? GenderNo { get; set; } + /// + /// 出生日期 + /// + [Column("BIRTHDAY")] + public DateTime? Birthday { get; set; } + /// + /// 政治面貌码 + /// + [Column("PARTYFACENO")] + public string PartyFaceNo { get; set; } + /// + /// 家庭出身份 + /// + [Column("FAMILYORIGINNO")] + public string FamilyOriginNo { get; set; } + /// + /// 民族码 + /// + [Column("NATIONALITYNO")] + public string NationalityNo { get; set; } + /// + /// 籍贯省代码 废除 + /// + [Column("PROVINCENO")] + public string ProvinceNo { get; set; } + /// + /// 籍贯省代码代码 + /// + [Column("F_PROVINCEID")] + public string F_ProvinceId { get; set; } + /// + /// 籍贯市代码 + /// + [Column("F_CITYID")] + public string F_CityId { get; set; } + + /// + /// 籍贯县代码 + /// + [Column("F_COUNTYID")] + public string F_CountyId { get; set; } + /// + /// 籍贯 + /// + [Column("REGIONNO")] + public string RegionNo { get; set; } + /// + /// 农业户口(是否农户) + /// + [Column("RESIDENCENO")] + public string ResidenceNo { get; set; } + /// + /// 考生类别 + /// + [Column("TESTSTUSORTNO")] + public string TestStuSortNo { get; set; } + /// + /// 健康状况 + /// + [Column("HEALTHSTATUSNO")] + public string HealthStatusNo { get; set; } + /// + /// 第几志愿 + /// + [Column("WILLNO")] + public string WillNo { get; set; } + /// + /// TestStuSubjectNo + /// + [Column("TESTSTUSUBJECTNO")] + public string TestStuSubjectNo { get; set; } + /// + /// 本专科 + /// + [Column("GRADUATENO")] + public string GraduateNo { get; set; } + /// + /// 计划形式 + /// + [Column("PLANFORMNO")] + public string PlanFormNo { get; set; } + /// + /// 三好 + /// + [Column("ISTHREEGOOD")] + public string IsThreeGood { get; set; } + /// + /// 优干 + /// + [Column("ISEXCELLENT")] + public string IsExcellent { get; set; } + /// + /// 一般学生干部 + /// + [Column("ISNORMALCADRE")] + public string IsNormalCadre { get; set; } + /// + /// 省市前三 + /// + [Column("ISPROVINCEFIRSTTHREE")] + public string IsProvinceFirstThree { get; set; } + /// + /// 港澳台侨 + /// + [Column("OVERSEASCHINESENO")] + public string OverseasChineseNo { get; set; } + /// + /// 录取类别 + /// + [Column("MATRICULATESORT")] + public string MatriculateSort { get; set; } + /// + /// 来源地区码 + /// + [Column("COMEPROVINCENO")] + public string ComeProvinceNo { get; set; } + /// + /// 原单位码 + /// + [Column("HIGHSCHOOLNO")] + public string HighSchoolNo { get; set; } + /// + /// 原单位 + /// + [Column("HIGHSCHOOLNAME")] + public string HighSchoolName { get; set; } + /// + /// 入学年月 + /// + [Column("ENTRANCEDATE")] + public DateTime? EntranceDate { get; set; } + /// + /// 宗教 + /// + [Column("RELIGION")] + public string Religion { get; set; } + /// + /// 特长 + /// + [Column("GOODAT")] + public string GoodAt { get; set; } + /// + /// 身份证号 + /// + [Column("IDENTITYCARDNO")] + public string IdentityCardNo { get; set; } + /// + /// 入党时间 + /// + [Column("JOINPARTYDATE")] + public DateTime? JoinPartyDate { get; set; } + /// + /// 入团时间 + ///团员league + /// + [Column("JOINLEAGUEDATE")] + public DateTime? JoinLeagueDate { get; set; } + /// + /// 校内地址 + /// + [Column("INSCHOOLADDRESS")] + public string InSchoolAddress { get; set; } + /// + /// 校内电话 + /// + [Column("INSCHOOLTELEPHONE")] + public string InSchoolTelephone { get; set; } + /// + /// 当前异动类别 + /// + [Column("ABMORMITYMOVEMARK")] + public string AbmormityMoveMark { get; set; } + /// + /// 奖励标志 + /// + [Column("AWARDMARK")] + public string AwardMark { get; set; } + /// + /// 处分标志 + /// + [Column("PUNISHMARK")] + public string PunishMark { get; set; } + /// + /// 联系人标志 + /// + [Column("LINKMANMARK")] + public string LinkmanMark { get; set; } + /// + /// 学号异动标志 + /// + [Column("STUNOCHANGEMARK")] + public string StuNoChangeMark { get; set; } + /// + /// 毕业标志(0待准许,1准许毕业,2已毕业,) + /// + [Column("FINISHSCHOOLMARK")] + public string FinishSchoolMark { get; set; } + /// + /// 当前注册标志 + /// + [Column("CURRENTREGISTERMARK")] + public string CurrentRegisterMark { get; set; } + /// + /// 毕业年月 + /// + [Column("FINISHSCHOOLDATE")] + public DateTime? FinishSchoolDate { get; set; } + /// + /// 毕业证书号 + /// + [Column("DIPLOMANO")] + public string DiplomaNo { get; set; } + /// + /// 毕业证书备注 + /// + [Column("DIPLOMAREMARK")] + public string DiplomaRemark { get; set; } + /// + /// 备注 + /// + [Column("REMARK")] + public string Remark { get; set; } + /// + /// 报到日期 + /// + [Column("REGISTERDATE")] + public DateTime? RegisterDate { get; set; } + /// + /// Photo + /// + [Column("PHOTO")] + public string Photo { get; set; } + /// + /// TeachPlanNo + /// + [Column("TEACHPLANNO")] + public string TeachPlanNo { get; set; } + /// + /// 审查标志 + /// + [Column("CHECKMARK")] + public string CheckMark { get; set; } + /// + /// 联系电话(手机) + /// + [Column("MOBILE")] + public string mobile { get; set; } + /// + /// 电子邮件地址 + /// + [Column("EMAIL")] + public string EMail { get; set; } + /// + ///QQ + /// + [Column("QQ")] + public string QQ { get; set; } + /// + /// 户口所在地 + /// + [Column("FATHERUNIT")] + public string FatherUnit { get; set; } + /// + /// 父亲姓名 + /// + [Column("FATHERNAME")] + public string FatherName { get; set; } + /// + /// 父亲电话 + /// + [Column("FATHERPHONE")] + public string FatherPhone { get; set; } + /// + /// 母亲姓名 + /// + [Column("MATHERNAME")] + public string MatherName { get; set; } + /// + /// 档案所在地 + /// + [Column("MATHERUNIT")] + public string MatherUnit { get; set; } + /// + /// 母亲电话 + /// + [Column("MATHERPHONE")] + public string MatherPhone { get; set; } + /// + /// 用户名 + /// + [Column("USERNAME")] + public string username { get; set; } + /// + /// 密码 + /// + [Column("PASSWORD")] + public string password { get; set; } + /// + /// MailAddress收件人名址(收件人地址+ 姓名,可置默认值为家庭地址) + /// + [Column("MAILADDRESS")] + public string MailAddress { get; set; } + /// + /// PostalCode邮政编码 + /// + [Column("POSTALCODE")] + public string PostalCode { get; set; } + /// + /// InSchoolStatus + /// + [Column("INSCHOOLSTATUS")] + public string InSchoolStatus { get; set; } + /// + /// TransMark + /// + [Column("TRANSMARK")] + public string TransMark { get; set; } + /// + /// ClassTutorNo + /// + [Column("CLASSTUTORNO")] + public string ClassTutorNo { get; set; } + /// + /// 学籍卡审核 + /// + [Column("RESUMECHECK")] + public string ResumeCheck { get; set; } + /// + /// PracStatus + /// + [Column("PRACSTATUS")] + public string PracStatus { get; set; } + /// + /// RegisterStatus + /// + [Column("REGISTERSTATUS")] + public int? RegisterStatus { get; set; } + /// + /// PunishmentDate + /// + [Column("PUNISHMENTDATE")] + public DateTime? PunishmentDate { get; set; } + /// + /// StuId + /// + [Column("STUID")] + public string StuId { get; set; } + + /// + /// 学制 + /// + [Column("EDUSYSTEM")] + public string EduSystem { get; set; } + + /// + /// 学习形式 + /// + [Column("STUDYMODALITY")] + public string StudyModality { get; set; } + /// + /// 学籍异动状态(1表示不显示成绩) + /// + /// + [Column("CHANGESTATUS")] + public int? ChangeStatus { get; set; } + /// + /// SyncFlag + /// + [Column("SYNCFLAG")] + public bool? SyncFlag { get; set; } + + /// + /// 余额 + /// + [Column("BALANCE")] + public string Balance { get; set; } + + /// + /// 身体健康状况 + /// + [Column("HEALTHSTATUS")] + public string HealthStatus { get; set; } + + + /// + /// 身份证件类型 + /// + [Column("IDCARDTYPE")] + public string IdCardType { get; set; } + /// + /// 入学方式 + /// + [Column("ENTRANCEWAY")] + public string EntranceWay { get; set; } + /// + /// 就读方式 + /// + [Column("STUDYINGWAY")] + public string StudyingWay { get; set; } + /// + /// 国籍/地区 + /// + [Column("COUNTRYNO")] + public string CountryNo { get; set; } + /// + /// 婚姻状况 + /// + [Column("MARRIAGESTATUS")] + public string MarriageStatus { get; set; } + /// + /// 乘火车区间 + /// + [Column("TRAININTERVAL")] + public string TrainInterval { get; set; } + /// + /// 是否随迁子女 + /// + [Column("ISTRAILCHILDREN")] + public string IsTrailChildren { get; set; } + /// + /// 生源地行政区划码 + /// + [Column("STUPLACECODE")] + public string StuPlaceCode { get; set; } + /// + /// 出生地行政区划码 + /// + [Column("BIRTHPLACECODE")] + public string BirthPlaceCode { get; set; } + /// + /// 籍贯地行政区划码 + /// + [Column("NATIVEPLACECODE")] + public string NativePlaceCode { get; set; } + /// + /// 户口所在地行政区划码 + /// + [Column("RESIDENCEPLACECODE")] + public string ResidencePlaceCode { get; set; } + /// + /// 所属派出所 + /// + [Column("BELONGPOLICE")] + public string BelongPolice { get; set; } + /// + /// 学生居住地类型 + /// + [Column("STULIVEPLACETYPE")] + public string StuLivePlaceType { get; set; } + /// + /// 学生来源 + /// + [Column("STUORIGIN")] + public string StuOrigin { get; set; } + /// + /// 招生对象 + /// + [Column("RECRUITOBJECT")] + public string RecruitObject { get; set; } + /// + /// 贫困户否建档立卡贫困户 + /// + [Column("POORISRECORD")] + public string PoorIsRecord { get; set; } + /// + /// 招生方式 + /// + [Column("RECRUITWAY")] + public string RecruitWay { get; set; } + /// + /// 联招合作类型 + /// + [Column("RECRUITCOOPERATETYPE")] + public string RecruitCooperateType { get; set; } + /// + /// 准考证号 + /// + [Column("ADMISSIONNO")] + public string AdmissionNo { get; set; } + /// + /// 考试总分 + /// + [Column("EXAMSCORE")] + public decimal? ExamScore { get; set; } + /// + /// 联招合作办学形式 + /// + [Column("RECRUITCOOPERATEFORM")] + public string RecruitCooperateForm { get; set; } + /// + /// 联招合作学校代码 + /// + [Column("RECRUITCOOPERATESCHOOLNO")] + public string RecruitCooperateSchoolNo { get; set; } + /// + /// 校外教学点 + /// + [Column("SCHOOLOUTSIDEPLACE")] + public string SchoolOutsidePlace { get; set; } + /// + /// 分段培养方式 + /// + [Column("PIECECULTIVATEWAY")] + public string PieceCultivateWay { get; set; } + /// + /// 英文姓名 + /// + [Column("ENGLISHNAME")] + public string EnglishName { get; set; } + /// + /// 成员1关系 + /// + [Column("ONEMEMBERSHIP")] + public string OneMembership { get; set; } + /// + /// 成员1是否监护人 + /// + [Column("ONEISGUARDIAN")] + public string OneIsGuardian { get; set; } + /// + /// 成员1出生年月 + /// + [Column("ONEBIRTHDAY")] + public string OneBirthday { get; set; } + /// + /// 成员1身份证件类型 + /// + [Column("ONEIDCARDTYPE")] + public string OneIdCardType { get; set; } + /// + /// 成员1身份证件号 + /// + [Column("ONEIDCARDNO")] + public string OneIdCardNo { get; set; } + /// + /// 成员1民族 + /// + [Column("ONENATIONALITYNO")] + public string OneNationalityNo { get; set; } + /// + /// 成员1政治面貌 + /// + [Column("ONEPARTYFACENO")] + public string OnePartyFaceNo { get; set; } + /// + /// 成员1健康状况 + /// + [Column("ONEHEALTHSTATUS")] + public string OneHealthStatus { get; set; } + /// + /// 成员1工作或学习单位 + /// + [Column("ONEJOB")] + public string OneJob { get; set; } + /// + /// 成员1职务 + /// + [Column("ONEPOSITION")] + public string OnePosition { get; set; } + /// + /// 成员2关系 + /// + [Column("TWOMEMBERSHIP")] + public string TwoMembership { get; set; } + /// + /// 成员2是否监护人 + /// + [Column("TWOISGUARDIAN")] + public string TwoIsGuardian { get; set; } + /// + /// 成员2出生年月 + /// + [Column("TWOBIRTHDAY")] + public string TwoBirthday { get; set; } + /// + /// 成员2身份证件类型 + /// + [Column("TWOIDCARDTYPE")] + public string TwoIdCardType { get; set; } + /// + /// 成员2身份证件号 + /// + [Column("TWOIDCARDNO")] + public string TwoIdCardNo { get; set; } + /// + /// 成员2民族 + /// + [Column("TWONATIONALITYNO")] + public string TwoNationalityNo { get; set; } + /// + /// 成员2政治面貌 + /// + [Column("TWOPARTYFACENO")] + public string TwoPartyFaceNo { get; set; } + /// + /// 成员2健康状况 + /// + [Column("TWOHEALTHSTATUS")] + public string TwoHealthStatus { get; set; } + /// + /// 成员2工作或学习单位 + /// + [Column("TWOJOB")] + public string TwoJob { get; set; } + /// + /// 成员2职务 + /// + [Column("TWOPOSITION")] + public string TwoPosition { get; set; } + /// + /// 学号 + /// + [Column("PROVINCECODE")] + public string ProvinceCode { get; set; } + /// + /// 监护人 + /// + [Column("GUARDIAN")] + public string Guardian { get; set; } + /// + /// 监护人电话 + /// + [Column("GUARDIANPHONE")] + public string GuardianPhone { get; set; } + /// + /// 监护人与被监护人的关系 + /// + [Column("GUARDIANTYPE")] + public string GuardianType { get; set; } + /// + /// 单亲 + /// + [Column("ISSINGLE")] + public bool? IsSingle { get; set; } + /// + /// 留守 + /// + [Column("ISLEFT")] + public bool? IsLeft { get; set; } + /// + /// 残疾 + /// + [Column("ISDISABILITY")] + public bool? IsDisability { get; set; } + /// + /// 走读 + /// + [Column("ISRUNSCHOOL")] + public bool? IsRunSchool { get; set; } + /// + /// 困难 + /// + [Column("ISDDIFFICULTY")] + public bool? IsDdifficulty { get; set; } + /// + /// 五年一贯制 + /// + [Column("FiveYear")] + public string FiveYear { get; set; } + /// + /// 实习状态 + /// + [Column("INTERNSHIPSTATUS")] + public string InternshipStatus { get; set; } + /// + /// 是否复读 + /// + [Column("ISRESTUDY")] + public string IsRestudy { get; set; } + + /// + /// 成员1名称 + /// + [Column("OneName")] + public string OneName { get; set; } + /// + /// 成员2名称 + /// + [Column("TWONAME")] + public string TwoName { get; set; } + /// + /// 其他联系方式 + /// + [Column("OTHERCONTACT")] + public string OtherContact { get; set; } + /// + /// 成员1联系方式 + /// + [Column("ONEMOBILE")] + public string OneMobile { get; set; } + /// + /// 成员2联系方式 + /// + [Column("TWOMOBILE")] + public string TwoMobile { get; set; } + + /// + /// 图书资料归还状态 + /// + /// + [Column("RETURNBOOKSSTATUS")] + public string ReturnBooksStatus { get; set; } + /// + /// 图书资料归还时间 + /// + /// + [Column("RETURNBOOKSDATE")] + public DateTime? ReturnBooksDate { get; set; } + /// + /// 就业协议备案状态 + /// + /// + [Column("EMPLOYAGREESTATUS")] + public string EmployAgreeStatus { get; set; } + /// + /// 就业协议备案时间 + /// + /// + [Column("EMPLOYAGREEDATE")] + public DateTime? EmployAgreeDate { get; set; } + /// + /// 学杂费结算状态 + /// + /// + [Column("FEESETTLESTATUS")] + public string FeeSettleStatus { get; set; } + /// + /// 学杂费结算时间 + /// + /// + [Column("FEESETTLEDATE")] + public DateTime? FeeSettleDate { get; set; } + /// + /// 办理退住手续状态 + /// + /// + [Column("CHECKOUTSTATUS")] + public string CheckOutStatus { get; set; } + /// + /// 办理退住手续时间 + /// + /// + [Column("CHECKOUTDATE")] + public DateTime? CheckOutDate { get; set; } + /// + /// 校园卡注销状态 + /// + /// + [Column("CARDDEREGISTRATESTATUS")] + public string CardDeregistrateStatus { get; set; } + /// + /// 校园卡注销时间 + /// + /// + [Column("CARDDEREGISTRATEDATE")] + public DateTime? CardDeregistrateDate { get; set; } + /// + /// 毕业证领取状态 + /// + /// + [Column("DIPLOMARECEIVESTATUS")] + public string DiplomaReceiveStatus { get; set; } + /// + /// 毕业证领取时间 + /// + /// + [Column("DIPLOMARECEIVEDATE")] + public DateTime? DiplomaReceiveDate { get; set; } + /// + /// 档案关系转出状态 + /// + /// + [Column("FILETRANSFERSTATUS")] + public string FileTransferStatus { get; set; } + /// + /// 档案关系转出状态时间 + /// + /// + [Column("FILETRANSFERDATE")] + public DateTime? FileTransferDate { get; set; } + /// + /// 组织关系转出状态 + /// + /// + [Column("TISSUESTATUS")] + public string TissueStatus { get; set; } + /// + /// 组织关系转出状态时间 + /// + /// + [Column("TISSUEDATE")] + public DateTime? TissueDate { get; set; } + /// + /// 毕业证领取-领取人签名 + /// + /// + [Column("DIPLOMARECEIVESIGN")] + public string DiplomaReceiveSign { get; set; } + /// + /// 毕业证领取-代领人身份证号 + /// + /// + [Column("DIPLOMARECEIVEIDCARD")] + public string DiplomaReceiveIdcard { get; set; } + /// + /// 毕业证领取-代领备注 + /// + /// + [Column("DIPLOMARECEIVEREMARK")] + public string DiplomaReceiveRemark { get; set; } + #endregion + + #region 扩展操作 + /// + /// 新增调用 + /// + public void Create() + { + this.StuId = Guid.NewGuid().ToString(); + } + /// + /// 编辑调用 + /// + /// + public void Modify(string keyValue) + { + this.StuId = keyValue; + } + #endregion + #region 扩展字段 + + #endregion + + } +} + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoGraduate/StuInfoGraduateEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoGraduate/StuInfoGraduateEntity.cs index b74538d33..b9d87cd96 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoGraduate/StuInfoGraduateEntity.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoGraduate/StuInfoGraduateEntity.cs @@ -873,17 +873,47 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration [Column("DIPLOMARECEIVEDATE")] public DateTime? DiplomaReceiveDate { get; set; } /// - /// 档案与组织关系转出状态 + /// 档案关系转出状态 /// /// [Column("FILETRANSFERSTATUS")] public string FileTransferStatus { get; set; } /// - /// 档案与组织关系转出状态时间 + /// 档案关系转出状态时间 /// /// [Column("FILETRANSFERDATE")] public DateTime? FileTransferDate { get; set; } + /// + /// 组织关系转出状态 + /// + /// + [Column("TISSUESTATUS")] + public string TissueStatus { get; set; } + /// + /// 组织关系转出状态时间 + /// + /// + [Column("TISSUEDATE")] + public DateTime? TissueDate { get; set; } + /// + /// 毕业证领取-领取人签名 + /// + /// + [Column("DIPLOMARECEIVESIGN")] + public string DiplomaReceiveSign { get; set; } + /// + /// 毕业证领取-代领人身份证号 + /// + /// + [Column("DIPLOMARECEIVEIDCARD")] + public string DiplomaReceiveIdcard { get; set; } + /// + /// 毕业证领取-代领备注 + /// + /// + [Column("DIPLOMARECEIVEREMARK")] + public string DiplomaReceiveRemark { get; set; } #endregion #region 扩展操作 diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StudentCertificate/StudentCertificateBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StudentCertificate/StudentCertificateBLL.cs index ccebd9597..751dd057f 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StudentCertificate/StudentCertificateBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StudentCertificate/StudentCertificateBLL.cs @@ -67,6 +67,30 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration } } + /// + /// 获取页面显示列表数据 + /// + /// + public IEnumerable GetList(string queryJson) + { + try + { + return studentCertificateService.GetList(queryJson); + + } + 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/StudentCertificate/StudentCertificateEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StudentCertificate/StudentCertificateEntity.cs index 0ccdc6e68..59a33a8a3 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StudentCertificate/StudentCertificateEntity.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StudentCertificate/StudentCertificateEntity.cs @@ -94,6 +94,16 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration /// [Column("STATUS")] public int? Status { get; set; } + /// + /// 学年 + /// + [Column("ACADEMICYEARNO")] + public string AcademicYearNo { get; set; } + /// + /// 学期 + /// + [Column("SEMESTER")] + public string Semester { get; set; } #endregion #region 扩展操作 diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StudentCertificate/StudentCertificateIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StudentCertificate/StudentCertificateIBLL.cs index df0f17d7e..72e2ce42c 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StudentCertificate/StudentCertificateIBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StudentCertificate/StudentCertificateIBLL.cs @@ -28,6 +28,12 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration /// 主键 /// StudentCertificateEntity GetStudentCertificateEntity(string keyValue); + + /// + /// 获取页面显示列表数据 + /// + /// + IEnumerable GetList(string queryJson); /// /// 获取主表实体数据 /// diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StudentCertificate/StudentCertificateService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StudentCertificate/StudentCertificateService.cs index 6c39ee105..a534979ca 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StudentCertificate/StudentCertificateService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StudentCertificate/StudentCertificateService.cs @@ -142,6 +142,58 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration } } + /// + /// 获取页面显示列表数据 + /// + /// + public IEnumerable GetList(string queryJson) + { + try + { + var strSql = new StringBuilder(); + strSql.Append("SELECT t.* "); + strSql.Append(" FROM StudentCertificate t "); + strSql.Append(" WHERE 1=1 and t.Status=2 "); + var queryParam = queryJson.ToJObject(); + // 虚拟参数 + var dp = new DynamicParameters(new { }); + if (!queryParam["StuNo"].IsEmpty()) + { + dp.Add("StuNo", queryParam["StuNo"].ToString(), DbType.String); + strSql.Append(" AND t.StuNo = @StuNo "); + } + if (!queryParam["StuName"].IsEmpty()) + { + dp.Add("StuName", "%" + queryParam["StuName"].ToString() + "%", DbType.String); + strSql.Append(" AND t.StuName Like @StuName "); + } + if (!queryParam["AcademicYearNo"].IsEmpty()) + { + dp.Add("AcademicYearNo", queryParam["AcademicYearNo"].ToString(), DbType.String); + strSql.Append(" AND t.AcademicYearNo = @AcademicYearNo "); + } + if (!queryParam["Semester"].IsEmpty()) + { + dp.Add("Semester", queryParam["Semester"].ToString(), DbType.String); + strSql.Append(" AND t.Semester = @Semester "); + } + + return this.BaseRepository("CollegeMIS").FindList(strSql.ToString(), dp); + + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } + #endregion #region 提交数据 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 38123e9b6..685fa64e5 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 @@ -273,6 +273,7 @@ + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Acc_GoodsDemage/Acc_GoodsDemageEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Acc_GoodsDemage/Acc_GoodsDemageEntity.cs index 1257cb8a5..0c4b463f2 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Acc_GoodsDemage/Acc_GoodsDemageEntity.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Acc_GoodsDemage/Acc_GoodsDemageEntity.cs @@ -91,6 +91,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement this.F_CreateDate = DateTime.Now; UserInfo userInfo = LoginUserInfo.Get(); this.F_CreateUserId = userInfo.userId; + this.F_CreateAccount = userInfo.account; } /// /// 编辑调用 diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Acc_GoodsDemage/Acc_GoodsDemageService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Acc_GoodsDemage/Acc_GoodsDemageService.cs index 9741d3de3..b86af0663 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Acc_GoodsDemage/Acc_GoodsDemageService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Acc_GoodsDemage/Acc_GoodsDemageService.cs @@ -26,12 +26,13 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement /// public IEnumerable GetPageList(Pagination pagination, string queryJson) { + var dbbase = this.BaseRepository().getDbConnection().Database; try { var strSql = new StringBuilder(); strSql.Append("SELECT t.* "); strSql.Append(" FROM Acc_GoodsDemage t "); - strSql.Append(" left join StuInfoBasic s on t.F_CreateAccount=s.StuNo "); + strSql.Append(" left join " + dbbase + ".dbo.LR_Base_User u on t.F_CreateAccount=u.F_Account"); strSql.Append(" WHERE 1=1 "); var queryParam = queryJson.ToJObject(); // 虚拟参数 @@ -60,7 +61,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement if (!queryParam["StuName"].IsEmpty()) { dp.Add("StuName", "%"+queryParam["StuName"].ToString()+"%", DbType.String); - strSql.Append(" AND s.StuName like @StuName "); + strSql.Append(" AND u.F_RealName like @StuName "); } return this.BaseRepository("CollegeMIS").FindList(strSql.ToString(),dp, pagination); } diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Accommodation/Acc_DormitoryBuildEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Accommodation/Acc_DormitoryBuildEntity.cs index a98290d30..d3d5f70a3 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Accommodation/Acc_DormitoryBuildEntity.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Accommodation/Acc_DormitoryBuildEntity.cs @@ -131,7 +131,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement [Column("SEX")] public string Sex { get; set; } /// - /// 住宿学生id + /// 住宿学生编号(存值为StuNo) /// [Column("STUDENTID")] public string StudentID { get; set; } diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/components/learun-app/workflow-action.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/components/learun-app/workflow-action.vue index 7b8c68d9e..138efabbe 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/components/learun-app/workflow-action.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/components/learun-app/workflow-action.vue @@ -32,7 +32,7 @@ size="lg" block > - {{ button.name }} + {{ button.name=="同意"?"领导审批":button.name }} diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js index f3f6ba6fe..185c5d9b1 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js @@ -21,13 +21,13 @@ export default { // "http://192.168.2.98:8088/" // ], "apiHost": [ - "http://cyzjzx.gnway.cc:30626/"//测试地址 + // "http://cyzjzx.gnway.cc:30626/"//测试地址 // "http://cyzjzx.gnway.cc:29615/"//正式地址 - // "http://192.168.10.31:8088/" + "http://192.168.10.58:8012/" ], - "webHost":"http://cyzjzx.gnway.cc:29618/",//测试地址 + // "webHost":"http://cyzjzx.gnway.cc:29618/",//测试地址 //"webHost":"http://wxd3f.cyzjzx.com/",//正式地址 - // "webHost":"http://192.168.10.31:8087/", + "webHost":"http://192.168.10.31:8087/", // 开发环境下自动填充登录账号密码,与接口地址一一对应,只在开发环境下显示 "devAccount": [ // 20201130230 21364200000400266 老师 420528196310072253 学生 420528200606205026 420528200507261428 diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages.json b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages.json index 1654e0fba..38c9cbe18 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages.json +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages.json @@ -1077,6 +1077,19 @@ "style": { "navigationBarTitleText": "详情" } + }, + //毕业信息统计 + { + "path": "pages/EducationalAdministration/StuGraduateStatistic/list", + "style": { + "navigationBarTitleText": "毕业信息统计" + } + }, + { + "path": "pages/EducationalAdministration/StuGraduateStatistic/single", + "style": { + "navigationBarTitleText": "详情" + } } diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuGraduateStatistic/list.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuGraduateStatistic/list.vue new file mode 100644 index 000000000..5380d72e6 --- /dev/null +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuGraduateStatistic/list.vue @@ -0,0 +1,404 @@ + + + + + + + + \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuGraduateStatistic/single.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuGraduateStatistic/single.vue new file mode 100644 index 000000000..ba1e4526d --- /dev/null +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuGraduateStatistic/single.vue @@ -0,0 +1,284 @@ + + + + \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_DailyAssess/list.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_DailyAssess/list.vue index c7b5a363c..791842034 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_DailyAssess/list.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_DailyAssess/list.vue @@ -264,25 +264,25 @@ export default { // 拉取加载列表和数据源 await Promise.all([ this.FETCH_DATASOURCE('CdDeptInfo').then(result => { - this.dataSource.DeptNo = result.data.map(t => ({ text: t.deptname, value: t.deptno })) + this.dataSource.DeptNo = result.data.sort((a,b)=>{return a.deptsort-b.deptsort}).map(t => ({ text: t.deptname, value: t.deptno })) }), this.FETCH_DATASOURCE('CdMajorInfo').then(result => { - this.dataSource.MajorNo = result.data.map(t => ({ text: t.majorname, value: t.majorno })) + this.dataSource.MajorNo = result.data.sort((a,b)=>{return a.majorno-b.majorno}).map(t => ({ text: t.majorname, value: t.majorno })) }), this.FETCH_DATASOURCE('bjsj').then(result => { - this.dataSource.ClassNo = result.data.map(t => ({ text: t.classname, value: t.classno })) + this.dataSource.ClassNo = result.data.sort((a,b)=>{return a.classno-b.classno}).map(t => ({ text: t.classname, value: t.classno })) }), this.FETCH_DATASOURCE('Acc_DormitoryData').then(result => { - this.dataSource.Dormitory = result.data.map(t => ({ text: t.name, value: t.id })) + this.dataSource.Dormitory = result.data.sort((a,b)=>{return a.parentid-b.parentid}).map(t => ({ text: t.name, value: t.id })) }), this.FETCH_DATASOURCE('Acc_UnitData').then(result => { - this.dataSource.Unit = result.data.map(t => ({ text: t.name, value: t.id })) + this.dataSource.Unit = result.data.sort((a,b)=>{return a.parentid-b.parentid}).map(t => ({ text: t.name, value: t.id })) }), this.FETCH_DATASOURCE('Acc_FloorData').then(result => { - this.dataSource.Floor = result.data.map(t => ({ text: t.name, value: t.id })) + this.dataSource.Floor = result.data.sort((a,b)=>{return a.parentid-b.parentid}).map(t => ({ text: t.name, value: t.id })) }), this.FETCH_DATASOURCE('Acc_RoomData').then(result => { - this.dataSource.RId = result.data.map(t => ({ text: t.name, value: t.id })) + this.dataSource.RId = result.data.sort((a,b)=>{return a.parentid-b.parentid}).map(t => ({ text: t.name, value: t.id })) }), this.FETCH_DATASOURCE('StuInfoBasic').then(result => { this.dataSource.StuNo = result.data.map(t => ({ text: t.stuname, value: t.stuno })) @@ -426,65 +426,74 @@ export default { async DeptNoChange(){ if (this.queryData.DeptNo != null && this.queryData.DeptNo!=undefined && this.queryData.DeptNo != "") { this.FETCH_DATASOURCE('CdMajorInfo').then(result => { - this.dataSource.MajorNo = result.data.filter(t=>t.deptno===this.queryData.DeptNo).map(t => ({ text: t.majorname, value: t.majorno })) + this.dataSource.MajorNo = result.data.sort((a,b)=>{return a.majorno-b.majorno}).filter(t=>t.deptno===this.queryData.DeptNo).map(t => ({ text: t.majorname, value: t.majorno })) }) }else{ this.FETCH_DATASOURCE('CdMajorInfo').then(result => { - this.dataSource.MajorNo = result.data.map(t => ({ text: t.majorname, value: t.majorno })) + this.dataSource.MajorNo = result.data.sort((a,b)=>{return a.majorno-b.majorno}).map(t => ({ text: t.majorname, value: t.majorno })) }) } + this.queryData.MajorNo=''; + this.queryData.ClassNo=''; this.searchChange() }, //多条件查询:专业改变事件 async MajorNoChange(){ if (this.queryData.MajorNo != null && this.queryData.MajorNo!=undefined && this.queryData.MajorNo != "") { this.FETCH_DATASOURCE('bjsj').then(result => { - this.dataSource.ClassNo = result.data.filter(t=>t.majorno===this.queryData.MajorNo).map(t => ({ text: t.classname, value: t.classno })) + this.dataSource.ClassNo = result.data.sort((a,b)=>{return a.classno-b.classno}).filter(t=>t.majorno===this.queryData.MajorNo).map(t => ({ text: t.classname, value: t.classno })) }) }else{ this.FETCH_DATASOURCE('bjsj').then(result => { - this.dataSource.ClassNo = result.data.map(t => ({ text: t.classname, value: t.classno })) + this.dataSource.ClassNo = result.data.sort((a,b)=>{return a.classno-b.classno}).map(t => ({ text: t.classname, value: t.classno })) }) } + this.queryData.ClassNo=''; this.searchChange() }, //多条件查询:宿舍楼改变事件 async DormitoryChange(){ if (this.queryData.Dormitory != null && this.queryData.Dormitory!=undefined && this.queryData.Dormitory != "") { this.FETCH_DATASOURCE('Acc_UnitData').then(result => { - this.dataSource.Unit = result.data.filter(t=>t.parentid===this.queryData.Dormitory).map(t => ({ text: t.name, value: t.id })) + this.dataSource.Unit = result.data.sort((a,b)=>{return a.dno-b.dno}).filter(t=>t.parentid===this.queryData.Dormitory).map(t => ({ text: t.name, value: t.id })) }) }else{ this.FETCH_DATASOURCE('Acc_UnitData').then(result => { - this.dataSource.Unit = result.data.map(t => ({ text: t.name, value: t.id })) + this.dataSource.Unit = result.data.sort((a,b)=>{return a.parentid-b.parentid}).map(t => ({ text: t.name, value: t.id })) }) } + this.queryData.Unit=''; + this.queryData.Floor=''; + this.queryData.RId=''; this.searchChange() }, //多条件查询:单元改变事件 async UnitChange(){ if (this.queryData.Unit != null && this.queryData.Unit!=undefined && this.queryData.Unit != "") { this.FETCH_DATASOURCE('Acc_FloorData').then(result => { - this.dataSource.Floor = result.data.filter(t=>t.parentid===this.queryData.Unit).map(t => ({ text: t.name, value: t.id })) + this.dataSource.Floor = result.data.sort((a,b)=>{return a.dno-b.dno}).filter(t=>t.parentid===this.queryData.Unit).map(t => ({ text: t.name, value: t.id })) }) }else{ this.FETCH_DATASOURCE('Acc_FloorData').then(result => { - this.dataSource.Floor = result.data.map(t => ({ text: t.name, value: t.id })) + this.dataSource.Floor = result.data.sort((a,b)=>{return a.parentid-b.parentid}).map(t => ({ text: t.name, value: t.id })) }) } + this.queryData.Floor=''; + this.queryData.RId=''; this.searchChange() }, //多条件查询:楼层改变事件 async FloorChange(){ if (this.queryData.Floor != null && this.queryData.Floor!=undefined && this.queryData.Floor != "") { this.FETCH_DATASOURCE('Acc_RoomData').then(result => { - this.dataSource.RId = result.data.filter(t=>t.parentid===this.queryData.Floor).map(t => ({ text: t.name, value: t.id })) + this.dataSource.RId = result.data.sort((a,b)=>{return a.dno-b.dno}).filter(t=>t.parentid===this.queryData.Floor).map(t => ({ text: t.name, value: t.id })) }) }else{ this.FETCH_DATASOURCE('Acc_RoomData').then(result => { - this.dataSource.RId = result.data.map(t => ({ text: t.name, value: t.id })) + this.dataSource.RId = result.data.sort((a,b)=>{return a.parentid-b.parentid}).map(t => ({ text: t.name, value: t.id })) }) } + this.queryData.RId=''; this.searchChange() }, diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_DailyAssess/single.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_DailyAssess/single.vue index d5ad922cc..3b7afe0f2 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_DailyAssess/single.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_DailyAssess/single.vue @@ -59,7 +59,8 @@ @input="setValue('Acc_DailyAssess.ClassNo', $event)" :value="getValue('Acc_DailyAssess.ClassNo')" :disabled="!edit" - :range="dataSource.Acc_DailyAssess.ClassNo" + :range="dataSource.Acc_DailyAssess.ClassNo" + @change="ClassNoChange" title="班级" required /> @@ -237,25 +238,25 @@ export default { // 拉取表单数据,同时拉取所有来自数据源的选单数据 await Promise.all([ this.FETCH_DATASOURCE('CdDeptInfo').then(result => { - this.dataSource.Acc_DailyAssess.DeptNo = result.data.map(t => ({ text: t.deptname, value: t.deptno })) + this.dataSource.Acc_DailyAssess.DeptNo = result.data.sort((a,b)=>{return a.deptsort-b.deptsort}).map(t => ({ text: t.deptname, value: t.deptno })) }), this.FETCH_DATASOURCE('CdMajorInfo').then(result => { - this.dataSource.Acc_DailyAssess.MajorNo = result.data.map(t => ({ text: t.majorname, value: t.majorno })) + this.dataSource.Acc_DailyAssess.MajorNo = result.data.sort((a,b)=>{return a.majorno-b.majorno}).map(t => ({ text: t.majorname, value: t.majorno })) }), this.FETCH_DATASOURCE('bjsj').then(result => { - this.dataSource.Acc_DailyAssess.ClassNo = result.data.map(t => ({ text: t.classname, value: t.classno })) + this.dataSource.Acc_DailyAssess.ClassNo = result.data.sort((a,b)=>{return a.classno-b.classno}).map(t => ({ text: t.classname, value: t.classno })) }), this.FETCH_DATASOURCE('Acc_DormitoryData').then(result => { - this.dataSource.Acc_DailyAssess.Dormitory = result.data.map(t => ({ text: t.name, value: t.id })) + this.dataSource.Acc_DailyAssess.Dormitory = result.data.sort((a,b)=>{return a.parentid-b.parentid}).map(t => ({ text: t.name, value: t.id })) }), this.FETCH_DATASOURCE('Acc_UnitData').then(result => { - this.dataSource.Acc_DailyAssess.Unit = result.data.map(t => ({ text: t.name, value: t.id })) + this.dataSource.Acc_DailyAssess.Unit = result.data.sort((a,b)=>{return a.parentid-b.parentid}).map(t => ({ text: t.name, value: t.id })) }), this.FETCH_DATASOURCE('Acc_FloorData').then(result => { - this.dataSource.Acc_DailyAssess.Floor = result.data.map(t => ({ text: t.name, value: t.id })) + this.dataSource.Acc_DailyAssess.Floor = result.data.sort((a,b)=>{return a.parentid-b.parentid}).map(t => ({ text: t.name, value: t.id })) }), this.FETCH_DATASOURCE('Acc_RoomData').then(result => { - this.dataSource.Acc_DailyAssess.RId = result.data.map(t => ({ text: t.name, value: t.id })) + this.dataSource.Acc_DailyAssess.RId = result.data.sort((a,b)=>{return a.parentid-b.parentid}).map(t => ({ text: t.name, value: t.id })) }), this.FETCH_DATASOURCE('StuInfoBasic').then(result => { this.dataSource.Acc_DailyAssess.StuNo = result.data.map(t => ({ text: t.stuname, value: t.stuno })) @@ -373,60 +374,84 @@ export default { async DormitoryChange(){ if (this.getValue('Acc_DailyAssess.Dormitory') != null && this.getValue('Acc_DailyAssess.Dormitory') !=undefined && this.getValue('Acc_DailyAssess.Dormitory') != "") { this.FETCH_DATASOURCE('Acc_UnitData').then(result => { - this.dataSource.Acc_DailyAssess.Unit = result.data.filter(t=>t.parentid===this.getValue('Acc_DailyAssess.Dormitory') ).map(t => ({ text: t.name, value: t.id })) + this.dataSource.Acc_DailyAssess.Unit = result.data.sort((a,b)=>{return a.dno-b.dno}).filter(t=>t.parentid===this.getValue('Acc_DailyAssess.Dormitory') ).map(t => ({ text: t.name, value: t.id })) }) }else{ this.FETCH_DATASOURCE('Acc_UnitData').then(result => { - this.dataSource.Acc_DailyAssess.Unit = result.data.map(t => ({ text: t.name, value: t.id })) + this.dataSource.Acc_DailyAssess.Unit = result.data.sort((a,b)=>{return a.parentid-b.parentid}).map(t => ({ text: t.name, value: t.id })) }) } + this.setValue('Acc_DailyAssess.Unit',''); + this.setValue('Acc_DailyAssess.Floor',''); + this.setValue('Acc_DailyAssess.RId',''); },//多条件查询:单元改变事件 async UnitChange(){ if (this.getValue('Acc_DailyAssess.Unit') != null && this.getValue('Acc_DailyAssess.Unit')!=undefined && this.getValue('Acc_DailyAssess.Unit')!= "") { this.FETCH_DATASOURCE('Acc_FloorData').then(result => { - this.dataSource.Acc_DailyAssess.Floor = result.data.filter(t=>t.parentid===this.getValue('Acc_DailyAssess.Unit')).map(t => ({ text: t.name, value: t.id })) + this.dataSource.Acc_DailyAssess.Floor = result.data.sort((a,b)=>{return a.dno-b.dno}).filter(t=>t.parentid===this.getValue('Acc_DailyAssess.Unit')).map(t => ({ text: t.name, value: t.id })) }) }else{ this.FETCH_DATASOURCE('Acc_FloorData').then(result => { - this.dataSource.Acc_DailyAssess.Floor = result.data.map(t => ({ text: t.name, value: t.id })) + this.dataSource.Acc_DailyAssess.Floor = result.data.sort((a,b)=>{return a.parentid-b.parentid}).map(t => ({ text: t.name, value: t.id })) }) } + this.setValue('Acc_DailyAssess.Floor',''); + this.setValue('Acc_DailyAssess.RId',''); }, //多条件查询:楼层改变事件 async FloorChange(){ if (this.getValue('Acc_DailyAssess.Floor') != null && this.getValue('Acc_DailyAssess.Floor')!=undefined && this.getValue('Acc_DailyAssess.Floor') != "") { this.FETCH_DATASOURCE('Acc_RoomData').then(result => { - this.dataSource.Acc_DailyAssess.RId = result.data.filter(t=>t.parentid===this.getValue('Acc_DailyAssess.Floor')).map(t => ({ text: t.name, value: t.id })) + this.dataSource.Acc_DailyAssess.RId = result.data.sort((a,b)=>{return a.dno-b.dno}).filter(t=>t.parentid===this.getValue('Acc_DailyAssess.Floor')).map(t => ({ text: t.name, value: t.id })) }) }else{ this.FETCH_DATASOURCE('Acc_RoomData').then(result => { - this.dataSource.Acc_DailyAssess.RId = result.data.map(t => ({ text: t.name, value: t.id })) + this.dataSource.Acc_DailyAssess.RId = result.data.sort((a,b)=>{return a.parentid-b.parentid}).map(t => ({ text: t.name, value: t.id })) }) } + this.setValue('Acc_DailyAssess.RId',''); }, //多条件查询:专业部改变事件 async DeptNoChange(){ if (this.getValue('Acc_DailyAssess.DeptNo') != null && this.getValue('Acc_DailyAssess.DeptNo')!=undefined && this.getValue('Acc_DailyAssess.DeptNo') != "") { this.FETCH_DATASOURCE('CdMajorInfo').then(result => { - this.dataSource.Acc_DailyAssess.MajorNo = result.data.filter(t=>t.deptno===this.getValue('Acc_DailyAssess.DeptNo')).map(t => ({ text: t.majorname, value: t.majorno })) + this.dataSource.Acc_DailyAssess.MajorNo = result.data.sort((a,b)=>{return a.majorno-b.majorno}).filter(t=>t.deptno===this.getValue('Acc_DailyAssess.DeptNo')).map(t => ({ text: t.majorname, value: t.majorno })) }) }else{ this.FETCH_DATASOURCE('CdMajorInfo').then(result => { - this.dataSource.Acc_DailyAssess.MajorNo = result.data.map(t => ({ text: t.majorname, value: t.majorno })) + this.dataSource.Acc_DailyAssess.MajorNo = result.data.sort((a,b)=>{return a.majorno-b.majorno}).map(t => ({ text: t.majorname, value: t.majorno })) }) } + this.setValue('Acc_DailyAssess.MajorNo',''); + this.setValue('Acc_DailyAssess.ClassNo',''); + this.setValue('Acc_DailyAssess.StuNo',''); }, //多条件查询:专业改变事件 async MajorNoChange(){ if (this.getValue('Acc_DailyAssess.MajorNo') != null && this.getValue('Acc_DailyAssess.MajorNo')!=undefined && this.getValue('Acc_DailyAssess.MajorNo') != "") { this.FETCH_DATASOURCE('bjsj').then(result => { - this.dataSource.Acc_DailyAssess.ClassNo = result.data.filter(t=>t.majorno===this.getValue('Acc_DailyAssess.MajorNo')).map(t => ({ text: t.classname, value: t.classno })) + this.dataSource.Acc_DailyAssess.ClassNo = result.data.sort((a,b)=>{return a.classno-b.classno}).filter(t=>t.majorno===this.getValue('Acc_DailyAssess.MajorNo')).map(t => ({ text: t.classname, value: t.classno })) }) }else{ this.FETCH_DATASOURCE('bjsj').then(result => { - this.dataSource.Acc_DailyAssess.ClassNo = result.data.map(t => ({ text: t.classname, value: t.classno })) + this.dataSource.Acc_DailyAssess.ClassNo = result.data.sort((a,b)=>{return a.classno-b.classno}).map(t => ({ text: t.classname, value: t.classno })) }) } + this.setValue('Acc_DailyAssess.ClassNo',''); + this.setValue('Acc_DailyAssess.StuNo',''); + }, + //多条件查询:班级改变事件 + async ClassNoChange(){ + if (this.getValue('Acc_DailyAssess.ClassNo') != null && this.getValue('Acc_DailyAssess.ClassNo')!=undefined && this.getValue('Acc_DailyAssess.ClassNo') != "") { + this.FETCH_DATASOURCE('StuInfoBasic').then(result => { + this.dataSource.Acc_DailyAssess.StuNo = result.data.filter(t=>t.classno===this.getValue('Acc_DailyAssess.ClassNo')).map(t => ({ text: t.stuname, value: t.stuno })) + }) + }else{ + this.FETCH_DATASOURCE('StuInfoBasic').then(result => { + this.dataSource.Acc_DailyAssess.StuNo = result.data.map(t => ({ text: t.stuname, value: t.stuno })) + }) + } + this.setValue('Acc_DailyAssess.StuNo',''); }, diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_GoodsDemage/list.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_GoodsDemage/list.vue index 1b9237e75..160e5fa6a 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_GoodsDemage/list.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_GoodsDemage/list.vue @@ -40,7 +40,7 @@ {{ displayListItem(item, 'RId') }} - 学生姓名: + 姓名: {{ displayListItem(item, 'F_CreateAccount') }} @@ -102,7 +102,7 @@ @@ -153,7 +153,7 @@ export default { Unit: { type: 'select', dataSource: '1', dataSourceId: 'Acc_UnitData,name,id' }, Floor: { type: 'select', dataSource: '1', dataSourceId: 'Acc_FloorData,name,id' }, RId: { type: 'select', dataSource: '1', dataSourceId: 'Acc_RoomData,name,id' }, - F_CreateAccount: { type: 'select', dataSource: '1', dataSourceId: 'StuInfoBasic,stuname,stuno' }, + F_CreateAccount: { type: 'select', dataSource: '1', dataSourceId: 'BaseUser,f_realname,f_account' }, F_CreateDate: { type: 'datetime', dateformat: '0' }, DamageDescribe: { type: 'textarea' }, }, @@ -211,28 +211,28 @@ export default { // 拉取加载列表和数据源 await Promise.all([ this.FETCH_DATASOURCE('CdDeptInfo').then(result => { - this.dataSource.DeptNo = result.data.map(t => ({ text: t.deptname, value: t.deptno })) + this.dataSource.DeptNo = result.data.sort((a,b)=>{return a.deptsort-b.deptsort}).map(t => ({ text: t.deptname, value: t.deptno })) }), this.FETCH_DATASOURCE('CdMajorInfo').then(result => { - this.dataSource.MajorNo = result.data.map(t => ({ text: t.majorname, value: t.majorno })) + this.dataSource.MajorNo = result.data.sort((a,b)=>{return a.majorno-b.majorno}).map(t => ({ text: t.majorname, value: t.majorno })) }), this.FETCH_DATASOURCE('bjsj').then(result => { - this.dataSource.ClassNo = result.data.map(t => ({ text: t.classname, value: t.classno })) + this.dataSource.ClassNo = result.data.sort((a,b)=>{return a.classno-b.classno}).map(t => ({ text: t.classname, value: t.classno })) }), this.FETCH_DATASOURCE('Acc_DormitoryData').then(result => { - this.dataSource.Dormitory = result.data.map(t => ({ text: t.name, value: t.id })) + this.dataSource.Dormitory = result.data.sort((a,b)=>{return a.parentid-b.parentid}).map(t => ({ text: t.name, value: t.id })) }), this.FETCH_DATASOURCE('Acc_UnitData').then(result => { - this.dataSource.Unit = result.data.map(t => ({ text: t.name, value: t.id })) + this.dataSource.Unit = result.data.sort((a,b)=>{return a.parentid-b.parentid}).map(t => ({ text: t.name, value: t.id })) }), this.FETCH_DATASOURCE('Acc_FloorData').then(result => { - this.dataSource.Floor = result.data.map(t => ({ text: t.name, value: t.id })) + this.dataSource.Floor = result.data.sort((a,b)=>{return a.parentid-b.parentid}).map(t => ({ text: t.name, value: t.id })) }), this.FETCH_DATASOURCE('Acc_RoomData').then(result => { - this.dataSource.RId = result.data.map(t => ({ text: t.name, value: t.id })) + this.dataSource.RId = result.data.sort((a,b)=>{return a.parentid-b.parentid}).map(t => ({ text: t.name, value: t.id })) }), - this.FETCH_DATASOURCE('StuInfoBasic').then(result => { - this.dataSource.F_CreateAccount = result.data.map(t => ({ text: t.stuname, value: t.stuno })) + this.FETCH_DATASOURCE('BaseUser').then(result => { + this.dataSource.F_CreateAccount = result.data.map(t => ({ text: t.f_realname, value: t.f_account })) }), @@ -373,26 +373,29 @@ export default { async DeptNoChange(){ if (this.queryData.DeptNo != null && this.queryData.DeptNo!=undefined && this.queryData.DeptNo != "") { this.FETCH_DATASOURCE('CdMajorInfo').then(result => { - this.dataSource.MajorNo = result.data.filter(t=>t.deptno===this.queryData.DeptNo).map(t => ({ text: t.majorname, value: t.majorno })) + this.dataSource.MajorNo = result.data.sort((a,b)=>{return a.majorno-b.majorno}).filter(t=>t.deptno===this.queryData.DeptNo).map(t => ({ text: t.majorname, value: t.majorno })) }) }else{ this.FETCH_DATASOURCE('CdMajorInfo').then(result => { - this.dataSource.MajorNo = result.data.map(t => ({ text: t.majorname, value: t.majorno })) + this.dataSource.MajorNo = result.data.sort((a,b)=>{return a.majorno-b.majorno}).map(t => ({ text: t.majorname, value: t.majorno })) }) } + this.queryData.MajorNo=''; + this.queryData.ClassNo=''; this.searchChange() }, //多条件查询:专业改变事件 async MajorNoChange(){ if (this.queryData.MajorNo != null && this.queryData.MajorNo!=undefined && this.queryData.MajorNo != "") { this.FETCH_DATASOURCE('bjsj').then(result => { - this.dataSource.ClassNo = result.data.filter(t=>t.majorno===this.queryData.MajorNo).map(t => ({ text: t.classname, value: t.classno })) + this.dataSource.ClassNo = result.data.sort((a,b)=>{return a.classno-b.classno}).filter(t=>t.majorno===this.queryData.MajorNo).map(t => ({ text: t.classname, value: t.classno })) }) }else{ this.FETCH_DATASOURCE('bjsj').then(result => { - this.dataSource.ClassNo = result.data.map(t => ({ text: t.classname, value: t.classno })) + this.dataSource.ClassNo = result.data.sort((a,b)=>{return a.classno-b.classno}).map(t => ({ text: t.classname, value: t.classno })) }) } + this.queryData.ClassNo=''; this.searchChange() }, diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_GoodsDemage/single.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_GoodsDemage/single.vue index 388c2531d..61fcf9dee 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_GoodsDemage/single.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_GoodsDemage/single.vue @@ -191,25 +191,25 @@ export default { // 拉取表单数据,同时拉取所有来自数据源的选单数据 await Promise.all([ this.FETCH_DATASOURCE('CdDeptInfo').then(result => { - this.dataSource.Acc_GoodsDemage.DeptNo = result.data.map(t => ({ text: t.deptname, value: t.deptno })) + this.dataSource.Acc_GoodsDemage.DeptNo = result.data.sort((a,b)=>{return a.deptsort-b.deptsort}).map(t => ({ text: t.deptname, value: t.deptno })) }), this.FETCH_DATASOURCE('CdMajorInfo').then(result => { - this.dataSource.Acc_GoodsDemage.MajorNo = result.data.map(t => ({ text: t.majorname, value: t.majorno })) + this.dataSource.Acc_GoodsDemage.MajorNo = result.data.sort((a,b)=>{return a.majorno-b.majorno}).map(t => ({ text: t.majorname, value: t.majorno })) }), this.FETCH_DATASOURCE('bjsj').then(result => { - this.dataSource.Acc_GoodsDemage.ClassNo = result.data.map(t => ({ text: t.classname, value: t.classno })) + this.dataSource.Acc_GoodsDemage.ClassNo = result.data.sort((a,b)=>{return a.classno-b.classno}).map(t => ({ text: t.classname, value: t.classno })) }), this.FETCH_DATASOURCE('Acc_DormitoryData').then(result => { - this.dataSource.Acc_GoodsDemage.Dormitory = result.data.map(t => ({ text: t.name, value: t.id })) + this.dataSource.Acc_GoodsDemage.Dormitory = result.data.sort((a,b)=>{return a.parentid-b.parentid}).map(t => ({ text: t.name, value: t.id })) }), this.FETCH_DATASOURCE('Acc_UnitData').then(result => { - this.dataSource.Acc_GoodsDemage.Unit = result.data.map(t => ({ text: t.name, value: t.id })) + this.dataSource.Acc_GoodsDemage.Unit = result.data.sort((a,b)=>{return a.parentid-b.parentid}).map(t => ({ text: t.name, value: t.id })) }), this.FETCH_DATASOURCE('Acc_FloorData').then(result => { - this.dataSource.Acc_GoodsDemage.Floor = result.data.map(t => ({ text: t.name, value: t.id })) - }), + this.dataSource.Acc_GoodsDemage.Floor = result.data.sort((a,b)=>{return a.parentid-b.parentid}).map(t => ({ text: t.name, value: t.id })) + }), this.FETCH_DATASOURCE('Acc_RoomData').then(result => { - this.dataSource.Acc_GoodsDemage.RId = result.data.map(t => ({ text: t.name, value: t.id })) + this.dataSource.Acc_GoodsDemage.RId = result.data.sort((a,b)=>{return a.parentid-b.parentid}).map(t => ({ text: t.name, value: t.id })) }), @@ -324,60 +324,69 @@ export default { async DormitoryChange(){ if (this.getValue('Acc_GoodsDemage.Dormitory') != null && this.getValue('Acc_GoodsDemage.Dormitory') !=undefined && this.getValue('Acc_GoodsDemage.Dormitory') != "") { this.FETCH_DATASOURCE('Acc_UnitData').then(result => { - this.dataSource.Acc_GoodsDemage.Unit = result.data.filter(t=>t.parentid===this.getValue('Acc_GoodsDemage.Dormitory') ).map(t => ({ text: t.name, value: t.id })) + this.dataSource.Acc_GoodsDemage.Unit = result.data.sort((a,b)=>{return a.dno-b.dno}).filter(t=>t.parentid===this.getValue('Acc_GoodsDemage.Dormitory') ).map(t => ({ text: t.name, value: t.id })) }) }else{ this.FETCH_DATASOURCE('Acc_UnitData').then(result => { - this.dataSource.Acc_GoodsDemage.Unit = result.data.map(t => ({ text: t.name, value: t.id })) + this.dataSource.Acc_GoodsDemage.Unit = result.data.sort((a,b)=>{return a.parentid-b.parentid}).map(t => ({ text: t.name, value: t.id })) }) } + this.setValue('Acc_GoodsDemage.Unit',''); + this.setValue('Acc_GoodsDemage.Floor',''); + this.setValue('Acc_GoodsDemage.RId',''); },//多条件查询:单元改变事件 async UnitChange(){ if (this.getValue('Acc_GoodsDemage.Unit') != null && this.getValue('Acc_GoodsDemage.Unit')!=undefined && this.getValue('Acc_GoodsDemage.Unit')!= "") { this.FETCH_DATASOURCE('Acc_FloorData').then(result => { - this.dataSource.Acc_GoodsDemage.Floor = result.data.filter(t=>t.parentid===this.getValue('Acc_GoodsDemage.Unit')).map(t => ({ text: t.name, value: t.id })) + this.dataSource.Acc_GoodsDemage.Floor = result.data.sort((a,b)=>{return a.dno-b.dno}).filter(t=>t.parentid===this.getValue('Acc_GoodsDemage.Unit')).map(t => ({ text: t.name, value: t.id })) }) }else{ this.FETCH_DATASOURCE('Acc_FloorData').then(result => { - this.dataSource.Acc_GoodsDemage.Floor = result.data.map(t => ({ text: t.name, value: t.id })) + this.dataSource.Acc_GoodsDemage.Floor = result.data.sort((a,b)=>{return a.parentid-b.parentid}).map(t => ({ text: t.name, value: t.id })) }) } + this.setValue('Acc_GoodsDemage.Floor',''); + this.setValue('Acc_GoodsDemage.RId',''); }, //多条件查询:楼层改变事件 async FloorChange(){ if (this.getValue('Acc_GoodsDemage.Floor') != null && this.getValue('Acc_GoodsDemage.Floor')!=undefined && this.getValue('Acc_GoodsDemage.Floor') != "") { this.FETCH_DATASOURCE('Acc_RoomData').then(result => { - this.dataSource.Acc_GoodsDemage.RId = result.data.filter(t=>t.parentid===this.getValue('Acc_GoodsDemage.Floor')).map(t => ({ text: t.name, value: t.id })) + this.dataSource.Acc_GoodsDemage.RId = result.data.sort((a,b)=>{return a.dno-b.dno}).filter(t=>t.parentid===this.getValue('Acc_GoodsDemage.Floor')).map(t => ({ text: t.name, value: t.id })) }) }else{ this.FETCH_DATASOURCE('Acc_RoomData').then(result => { - this.dataSource.Acc_GoodsDemage.RId = result.data.map(t => ({ text: t.name, value: t.id })) + this.dataSource.Acc_GoodsDemage.RId = result.data.sort((a,b)=>{return a.parentid-b.parentid}).map(t => ({ text: t.name, value: t.id })) }) } + this.setValue('Acc_GoodsDemage.RId',''); }, //多条件查询:专业部改变事件 async DeptNoChange(){ if (this.getValue('Acc_GoodsDemage.DeptNo') != null && this.getValue('Acc_GoodsDemage.DeptNo')!=undefined && this.getValue('Acc_GoodsDemage.DeptNo') != "") { this.FETCH_DATASOURCE('CdMajorInfo').then(result => { - this.dataSource.Acc_GoodsDemage.MajorNo = result.data.filter(t=>t.deptno===this.getValue('Acc_GoodsDemage.DeptNo')).map(t => ({ text: t.majorname, value: t.majorno })) + this.dataSource.Acc_GoodsDemage.MajorNo = result.data.sort((a,b)=>{return a.majorno-b.majorno}).filter(t=>t.deptno===this.getValue('Acc_GoodsDemage.DeptNo')).map(t => ({ text: t.majorname, value: t.majorno })) }) }else{ this.FETCH_DATASOURCE('CdMajorInfo').then(result => { - this.dataSource.Acc_GoodsDemage.MajorNo = result.data.map(t => ({ text: t.majorname, value: t.majorno })) + this.dataSource.Acc_GoodsDemage.MajorNo = result.data.sort((a,b)=>{return a.majorno-b.majorno}).map(t => ({ text: t.majorname, value: t.majorno })) }) } + this.setValue('Acc_GoodsDemage.MajorNo',''); + this.setValue('Acc_GoodsDemage.ClassNo',''); }, //多条件查询:专业改变事件 async MajorNoChange(){ if (this.getValue('Acc_GoodsDemage.MajorNo') != null && this.getValue('Acc_GoodsDemage.MajorNo')!=undefined && this.getValue('Acc_GoodsDemage.MajorNo') != "") { this.FETCH_DATASOURCE('bjsj').then(result => { - this.dataSource.Acc_GoodsDemage.ClassNo = result.data.filter(t=>t.majorno===this.getValue('Acc_GoodsDemage.MajorNo')).map(t => ({ text: t.classname, value: t.classno })) + this.dataSource.Acc_GoodsDemage.ClassNo = result.data.sort((a,b)=>{return a.classno-b.classno}).filter(t=>t.majorno===this.getValue('Acc_GoodsDemage.MajorNo')).map(t => ({ text: t.classname, value: t.classno })) }) }else{ this.FETCH_DATASOURCE('bjsj').then(result => { - this.dataSource.Acc_GoodsDemage.ClassNo = result.data.map(t => ({ text: t.classname, value: t.classno })) + this.dataSource.Acc_GoodsDemage.ClassNo = result.data.sort((a,b)=>{return a.classno-b.classno}).map(t => ({ text: t.classname, value: t.classno })) }) } + this.setValue('Acc_GoodsDemage.ClassNo',''); }, diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_PublicAreaHealth/list.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_PublicAreaHealth/list.vue index f2743956d..7f375811d 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_PublicAreaHealth/list.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_PublicAreaHealth/list.vue @@ -199,13 +199,13 @@ export default { // 拉取加载列表和数据源 await Promise.all([ this.FETCH_DATASOURCE('CdDeptInfo').then(result => { - this.dataSource.DeptNo = result.data.map(t => ({ text: t.deptname, value: t.deptno })) + this.dataSource.DeptNo = result.data.sort((a,b)=>{return a.deptsort-b.deptsort}).map(t => ({ text: t.deptname, value: t.deptno })) }), this.FETCH_DATASOURCE('CdMajorInfo').then(result => { - this.dataSource.MajorNo = result.data.map(t => ({ text: t.majorname, value: t.majorno })) + this.dataSource.MajorNo = result.data.sort((a,b)=>{return a.majorno-b.majorno}).map(t => ({ text: t.majorname, value: t.majorno })) }), this.FETCH_DATASOURCE('bjsj').then(result => { - this.dataSource.ClassNo = result.data.map(t => ({ text: t.classname, value: t.classno })) + this.dataSource.ClassNo = result.data.sort((a,b)=>{return a.classno-b.classno}).map(t => ({ text: t.classname, value: t.classno })) }), this.FETCH_DATASOURCE('StuInfoBasic').then(result => { this.dataSource.StuNo = result.data.map(t => ({ text: t.stuname, value: t.stuno })) @@ -349,26 +349,29 @@ export default { async DeptNoChange(){ if (this.queryData.DeptNo != null && this.queryData.DeptNo!=undefined && this.queryData.DeptNo != "") { this.FETCH_DATASOURCE('CdMajorInfo').then(result => { - this.dataSource.MajorNo = result.data.filter(t=>t.deptno===this.queryData.DeptNo).map(t => ({ text: t.majorname, value: t.majorno })) + this.dataSource.MajorNo = result.data.sort((a,b)=>{return a.majorno-b.majorno}).filter(t=>t.deptno===this.queryData.DeptNo).map(t => ({ text: t.majorname, value: t.majorno })) }) }else{ this.FETCH_DATASOURCE('CdMajorInfo').then(result => { - this.dataSource.MajorNo = result.data.map(t => ({ text: t.majorname, value: t.majorno })) + this.dataSource.MajorNo = result.data.sort((a,b)=>{return a.majorno-b.majorno}).map(t => ({ text: t.majorname, value: t.majorno })) }) } + this.queryData.MajorNo=''; + this.queryData.ClassNo=''; this.searchChange() }, //多条件查询:专业改变事件 async MajorNoChange(){ if (this.queryData.MajorNo != null && this.queryData.MajorNo!=undefined && this.queryData.MajorNo != "") { this.FETCH_DATASOURCE('bjsj').then(result => { - this.dataSource.ClassNo = result.data.filter(t=>t.majorno===this.queryData.MajorNo).map(t => ({ text: t.classname, value: t.classno })) + this.dataSource.ClassNo = result.data.sort((a,b)=>{return a.classno-b.classno}).filter(t=>t.majorno===this.queryData.MajorNo).map(t => ({ text: t.classname, value: t.classno })) }) }else{ this.FETCH_DATASOURCE('bjsj').then(result => { - this.dataSource.ClassNo = result.data.map(t => ({ text: t.classname, value: t.classno })) + this.dataSource.ClassNo = result.data.sort((a,b)=>{return a.classno-b.classno}).map(t => ({ text: t.classname, value: t.classno })) }) } + this.queryData.ClassNo=''; this.searchChange() }, diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_PublicAreaHealth/single.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_PublicAreaHealth/single.vue index a5c1aa8b5..2d25b07dd 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_PublicAreaHealth/single.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_PublicAreaHealth/single.vue @@ -24,6 +24,7 @@ :value="getValue('Acc_PublicAreaHealth.ClassNo')" :disabled="!edit" :range="dataSource.Acc_PublicAreaHealth.ClassNo" + @change="ClassNoChange" title="班级" required /> @@ -179,13 +180,13 @@ export default { // 拉取表单数据,同时拉取所有来自数据源的选单数据 await Promise.all([ this.FETCH_DATASOURCE('CdDeptInfo').then(result => { - this.dataSource.Acc_PublicAreaHealth.DeptNo = result.data.map(t => ({ text: t.deptname, value: t.deptno })) + this.dataSource.Acc_PublicAreaHealth.DeptNo = result.data.sort((a,b)=>{return a.deptsort-b.deptsort}).map(t => ({ text: t.deptname, value: t.deptno })) }), this.FETCH_DATASOURCE('CdMajorInfo').then(result => { - this.dataSource.Acc_PublicAreaHealth.MajorNo = result.data.map(t => ({ text: t.majorname, value: t.majorno })) + this.dataSource.Acc_PublicAreaHealth.MajorNo = result.data.sort((a,b)=>{return a.majorno-b.majorno}).map(t => ({ text: t.majorname, value: t.majorno })) }), this.FETCH_DATASOURCE('bjsj').then(result => { - this.dataSource.Acc_PublicAreaHealth.ClassNo = result.data.map(t => ({ text: t.classname, value: t.classno })) + this.dataSource.Acc_PublicAreaHealth.ClassNo = result.data.sort((a,b)=>{return a.classno-b.classno}).map(t => ({ text: t.classname, value: t.classno })) }), this.FETCH_DATASOURCE('StuInfoBasic').then(result => { this.dataSource.Acc_PublicAreaHealth.StuNo = result.data.map(t => ({ text: t.stuname, value: t.stuno })) @@ -304,26 +305,45 @@ export default { async DeptNoChange(){ if (this.getValue('Acc_PublicAreaHealth.DeptNo') != null && this.getValue('Acc_PublicAreaHealth.DeptNo')!=undefined && this.getValue('Acc_PublicAreaHealth.DeptNo') != "") { this.FETCH_DATASOURCE('CdMajorInfo').then(result => { - this.dataSource.Acc_PublicAreaHealth.MajorNo = result.data.filter(t=>t.deptno===this.getValue('Acc_PublicAreaHealth.DeptNo')).map(t => ({ text: t.majorname, value: t.majorno })) + this.dataSource.Acc_PublicAreaHealth.MajorNo = result.data.sort((a,b)=>{return a.majorno-b.majorno}).filter(t=>t.deptno===this.getValue('Acc_PublicAreaHealth.DeptNo')).map(t => ({ text: t.majorname, value: t.majorno })) }) }else{ this.FETCH_DATASOURCE('CdMajorInfo').then(result => { - this.dataSource.Acc_PublicAreaHealth.MajorNo = result.data.map(t => ({ text: t.majorname, value: t.majorno })) + this.dataSource.Acc_PublicAreaHealth.MajorNo = result.data.sort((a,b)=>{return a.majorno-b.majorno}).map(t => ({ text: t.majorname, value: t.majorno })) }) } + this.setValue('Acc_PublicAreaHealth.MajorNo',''); + this.setValue('Acc_PublicAreaHealth.ClassNo',''); + this.setValue('Acc_PublicAreaHealth.StuNo',''); }, //多条件查询:专业改变事件 async MajorNoChange(){ if (this.getValue('Acc_PublicAreaHealth.MajorNo') != null && this.getValue('Acc_PublicAreaHealth.MajorNo')!=undefined && this.getValue('Acc_PublicAreaHealth.MajorNo') != "") { this.FETCH_DATASOURCE('bjsj').then(result => { - this.dataSource.Acc_PublicAreaHealth.ClassNo = result.data.filter(t=>t.majorno===this.getValue('Acc_PublicAreaHealth.MajorNo')).map(t => ({ text: t.classname, value: t.classno })) + this.dataSource.Acc_PublicAreaHealth.ClassNo = result.data.sort((a,b)=>{return a.classno-b.classno}).filter(t=>t.majorno===this.getValue('Acc_PublicAreaHealth.MajorNo')).map(t => ({ text: t.classname, value: t.classno })) }) }else{ this.FETCH_DATASOURCE('bjsj').then(result => { - this.dataSource.Acc_PublicAreaHealth.ClassNo = result.data.map(t => ({ text: t.classname, value: t.classno })) + this.dataSource.Acc_PublicAreaHealth.ClassNo = result.data.sort((a,b)=>{return a.classno-b.classno}).map(t => ({ text: t.classname, value: t.classno })) }) } + this.setValue('Acc_PublicAreaHealth.ClassNo',''); + this.setValue('Acc_PublicAreaHealth.StuNo',''); }, + //多条件查询:班级改变事件 + async ClassNoChange(){ + if (this.getValue('Acc_PublicAreaHealth.ClassNo') != null && this.getValue('Acc_PublicAreaHealth.ClassNo')!=undefined && this.getValue('Acc_PublicAreaHealth.ClassNo') != "") { + this.FETCH_DATASOURCE('StuInfoBasic').then(result => { + this.dataSource.Acc_PublicAreaHealth.StuNo = result.data.filter(t=>t.classno===this.getValue('Acc_PublicAreaHealth.ClassNo')).map(t => ({ text: t.stuname, value: t.stuno })) + }) + }else{ + this.FETCH_DATASOURCE('StuInfoBasic').then(result => { + this.dataSource.Acc_PublicAreaHealth.StuNo = result.data.map(t => ({ text: t.stuname, value: t.stuno })) + }) + } + this.setValue('Acc_PublicAreaHealth.StuNo',''); + }, + } diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_StuDayRoutine/list.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_StuDayRoutine/list.vue index 42cbea6bc..1d01c22da 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_StuDayRoutine/list.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_StuDayRoutine/list.vue @@ -198,18 +198,18 @@ export default { // 拉取加载列表和数据源 await Promise.all([ - this.FETCH_DATASOURCE('CdDeptInfo').then(result => { - this.dataSource.DeptNo = result.data.map(t => ({ text: t.deptname, value: t.deptno })) - }), + this.FETCH_DATASOURCE('CdDeptInfo').then(result => { + this.dataSource.DeptNo = result.data.sort((a,b)=>{return a.deptsort-b.deptsort}).map(t => ({ text: t.deptname, value: t.deptno })) + }), this.FETCH_DATASOURCE('CdMajorInfo').then(result => { - this.dataSource.MajorNo = result.data.map(t => ({ text: t.majorname, value: t.majorno })) + this.dataSource.MajorNo = result.data.sort((a,b)=>{return a.majorno-b.majorno}).map(t => ({ text: t.majorname, value: t.majorno })) }), this.FETCH_DATASOURCE('bjsj').then(result => { - this.dataSource.ClassNo = result.data.map(t => ({ text: t.classname, value: t.classno })) - }), + this.dataSource.ClassNo = result.data.sort((a,b)=>{return a.classno-b.classno}).map(t => ({ text: t.classname, value: t.classno })) + }), this.FETCH_DATASOURCE('StuInfoBasic').then(result => { - this.dataSource.StuNo = result.data.map(t => ({ text: t.stuname, value: t.stuno })) - }), + this.dataSource.StuNo = result.data.map(t => ({ text: t.stuname, value: t.stuno })) + }), () => {} @@ -349,26 +349,29 @@ export default { async DeptNoChange(){ if (this.queryData.DeptNo != null && this.queryData.DeptNo!=undefined && this.queryData.DeptNo != "") { this.FETCH_DATASOURCE('CdMajorInfo').then(result => { - this.dataSource.MajorNo = result.data.filter(t=>t.deptno===this.queryData.DeptNo).map(t => ({ text: t.majorname, value: t.majorno })) + this.dataSource.MajorNo = result.data.sort((a,b)=>{return a.majorno-b.majorno}).filter(t=>t.deptno===this.queryData.DeptNo).map(t => ({ text: t.majorname, value: t.majorno })) }) }else{ this.FETCH_DATASOURCE('CdMajorInfo').then(result => { - this.dataSource.MajorNo = result.data.map(t => ({ text: t.majorname, value: t.majorno })) + this.dataSource.MajorNo = result.data.sort((a,b)=>{return a.majorno-b.majorno}).map(t => ({ text: t.majorname, value: t.majorno })) }) } + this.queryData.MajorNo=''; + this.queryData.ClassNo=''; this.searchChange() }, //多条件查询:专业改变事件 async MajorNoChange(){ if (this.queryData.MajorNo != null && this.queryData.MajorNo!=undefined && this.queryData.MajorNo != "") { this.FETCH_DATASOURCE('bjsj').then(result => { - this.dataSource.ClassNo = result.data.filter(t=>t.majorno===this.queryData.MajorNo).map(t => ({ text: t.classname, value: t.classno })) + this.dataSource.ClassNo = result.data.sort((a,b)=>{return a.classno-b.classno}).filter(t=>t.majorno===this.queryData.MajorNo).map(t => ({ text: t.classname, value: t.classno })) }) }else{ this.FETCH_DATASOURCE('bjsj').then(result => { - this.dataSource.ClassNo = result.data.map(t => ({ text: t.classname, value: t.classno })) + this.dataSource.ClassNo = result.data.sort((a,b)=>{return a.classno-b.classno}).map(t => ({ text: t.classname, value: t.classno })) }) } + this.queryData.ClassNo=''; this.searchChange() }, diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_StuDayRoutine/single.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_StuDayRoutine/single.vue index 0b4b5d4b8..9f97d5eaa 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_StuDayRoutine/single.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_StuDayRoutine/single.vue @@ -24,6 +24,7 @@ :value="getValue('Acc_StuDayRoutine.ClassNo')" :disabled="!edit" :range="dataSource.Acc_StuDayRoutine.ClassNo" + @change="ClassNoChange" title="班级" required /> @@ -179,13 +180,13 @@ export default { // 拉取表单数据,同时拉取所有来自数据源的选单数据 await Promise.all([ this.FETCH_DATASOURCE('CdDeptInfo').then(result => { - this.dataSource.Acc_StuDayRoutine.DeptNo = result.data.map(t => ({ text: t.deptname, value: t.deptno })) + this.dataSource.Acc_StuDayRoutine.DeptNo = result.data.sort((a,b)=>{return a.deptsort-b.deptsort}).map(t => ({ text: t.deptname, value: t.deptno })) }), this.FETCH_DATASOURCE('CdMajorInfo').then(result => { - this.dataSource.Acc_StuDayRoutine.MajorNo = result.data.map(t => ({ text: t.majorname, value: t.majorno })) + this.dataSource.Acc_StuDayRoutine.MajorNo = result.data.sort((a,b)=>{return a.majorno-b.majorno}).map(t => ({ text: t.majorname, value: t.majorno })) }), this.FETCH_DATASOURCE('bjsj').then(result => { - this.dataSource.Acc_StuDayRoutine.ClassNo = result.data.map(t => ({ text: t.classname, value: t.classno })) + this.dataSource.Acc_StuDayRoutine.ClassNo = result.data.sort((a,b)=>{return a.classno-b.classno}).map(t => ({ text: t.classname, value: t.classno })) }), this.FETCH_DATASOURCE('StuInfoBasic').then(result => { this.dataSource.Acc_StuDayRoutine.StuNo = result.data.map(t => ({ text: t.stuname, value: t.stuno })) @@ -304,25 +305,43 @@ export default { async DeptNoChange(){ if (this.getValue('Acc_StuDayRoutine.DeptNo') != null && this.getValue('Acc_StuDayRoutine.DeptNo')!=undefined && this.getValue('Acc_StuDayRoutine.DeptNo') != "") { this.FETCH_DATASOURCE('CdMajorInfo').then(result => { - this.dataSource.Acc_StuDayRoutine.MajorNo = result.data.filter(t=>t.deptno===this.getValue('Acc_StuDayRoutine.DeptNo')).map(t => ({ text: t.majorname, value: t.majorno })) + this.dataSource.Acc_StuDayRoutine.MajorNo = result.data.sort((a,b)=>{return a.majorno-b.majorno}).filter(t=>t.deptno===this.getValue('Acc_StuDayRoutine.DeptNo')).map(t => ({ text: t.majorname, value: t.majorno })) }) }else{ this.FETCH_DATASOURCE('CdMajorInfo').then(result => { - this.dataSource.Acc_StuDayRoutine.MajorNo = result.data.map(t => ({ text: t.majorname, value: t.majorno })) + this.dataSource.Acc_StuDayRoutine.MajorNo = result.data.sort((a,b)=>{return a.majorno-b.majorno}).map(t => ({ text: t.majorname, value: t.majorno })) }) } + this.setValue('Acc_StuDayRoutine.MajorNo',''); + this.setValue('Acc_StuDayRoutine.ClassNo',''); + this.setValue('Acc_StuDayRoutine.StuNo',''); }, //多条件查询:专业改变事件 async MajorNoChange(){ if (this.getValue('Acc_StuDayRoutine.MajorNo') != null && this.getValue('Acc_StuDayRoutine.MajorNo')!=undefined && this.getValue('Acc_StuDayRoutine.MajorNo') != "") { this.FETCH_DATASOURCE('bjsj').then(result => { - this.dataSource.Acc_StuDayRoutine.ClassNo = result.data.filter(t=>t.majorno===this.getValue('Acc_StuDayRoutine.MajorNo')).map(t => ({ text: t.classname, value: t.classno })) + this.dataSource.Acc_StuDayRoutine.ClassNo = result.data.sort((a,b)=>{return a.classno-b.classno}).filter(t=>t.majorno===this.getValue('Acc_StuDayRoutine.MajorNo')).map(t => ({ text: t.classname, value: t.classno })) }) }else{ this.FETCH_DATASOURCE('bjsj').then(result => { - this.dataSource.Acc_StuDayRoutine.ClassNo = result.data.map(t => ({ text: t.classname, value: t.classno })) + this.dataSource.Acc_StuDayRoutine.ClassNo = result.data.sort((a,b)=>{return a.classno-b.classno}).map(t => ({ text: t.classname, value: t.classno })) }) } + this.setValue('Acc_StuDayRoutine.ClassNo',''); + this.setValue('Acc_StuDayRoutine.StuNo',''); + }, + //多条件查询:班级改变事件 + async ClassNoChange(){ + if (this.getValue('Acc_StuDayRoutine.ClassNo') != null && this.getValue('Acc_StuDayRoutine')!=undefined && this.getValue('Acc_StuDayRoutine.ClassNo') != "") { + this.FETCH_DATASOURCE('StuInfoBasic').then(result => { + this.dataSource.Acc_StuDayRoutine.StuNo = result.data.filter(t=>t.classno===this.getValue('Acc_StuDayRoutine.ClassNo')).map(t => ({ text: t.stuname, value: t.stuno })) + }) + }else{ + this.FETCH_DATASOURCE('StuInfoBasic').then(result => { + this.dataSource.Acc_StuDayRoutine.StuNo = result.data.map(t => ({ text: t.stuname, value: t.stuno })) + }) + } + this.setValue('Acc_StuDayRoutine.StuNo',''); }, diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/myflow/sign.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/myflow/sign.vue index 11d74ab92..3b9b61efb 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/myflow/sign.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/myflow/sign.vue @@ -33,7 +33,7 @@ - +