From e0c8bbe72bfe8d4077362acb2da76fa6292a8606 Mon Sep 17 00:00:00 2001 From: ndbs Date: Fri, 31 Mar 2023 09:39:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E7=B1=8D=E5=BC=82=E5=8A=A8=20?= =?UTF-8?q?=E5=A4=8D=E5=AD=A6=E6=9F=A5=E7=9C=8B=E4=BC=91=E5=AD=A6=E5=89=8D?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=20=E5=AD=A6=E7=B1=8D=E5=BC=82=E5=8A=A8=20?= =?UTF-8?q?=E7=BB=BC=E5=90=88=E6=9F=A5=E8=AF=A2=E5=BF=83=E7=90=86=E9=A2=84?= =?UTF-8?q?=E7=BA=A6=E6=9F=A5=E7=9C=8B=E5=9B=9E=E6=98=BE=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../StuEncourgementTranController.cs | 20 ++++----- .../StuTransferInfo/QueryAPStuHealthIndex.js | 43 +++++-------------- .../StuTransferInfo/StuTransferInfoService.cs | 40 ++++++++--------- 3 files changed, 40 insertions(+), 63 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuEncourgementTranController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuEncourgementTranController.cs index 09fe93e8f..7bbe54cf7 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuEncourgementTranController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuEncourgementTranController.cs @@ -16,7 +16,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers /// public class StuEncourgementTranController : MvcControllerBase { - private StuEncourgementIBLL stuEncourgementIBLL = new StuEncourgementBLL(); + private StuEncourgementTranIBLL stuEncourgementTranIBLL = new StuEncourgementTranBLL(); #region 视图功能 @@ -88,7 +88,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers public ActionResult GetPageList(string pagination, string queryJson) { Pagination paginationobj = pagination.ToObject(); - var data = stuEncourgementIBLL.GetPageList(paginationobj, queryJson); + var data = stuEncourgementTranIBLL.GetPageList(paginationobj, queryJson); var jsonData = new { rows = data, @@ -107,7 +107,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers [AjaxOnly] public ActionResult GetPageListOne(string queryJson) { - var data = stuEncourgementIBLL.GetPageList(queryJson); + var data = stuEncourgementTranIBLL.GetPageList(queryJson); var data1 = data.GroupBy(x => new { x.AcademicYearNo, x.Semester, x.DeptNo, x.Num }).Select(x => new { AcademicYearNo = x.Key.AcademicYearNo, @@ -126,7 +126,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers [AjaxOnly] public ActionResult GetPageListTwo(string queryJson) { - var data = stuEncourgementIBLL.GetPageList(queryJson); + var data = stuEncourgementTranIBLL.GetPageList(queryJson); var data1 = data.GroupBy(x => new { x.AcademicYearNo, x.Semester, x.DeptNo, x.Grade, x.Num }).Select(x => new { AcademicYearNo = x.Key.AcademicYearNo, @@ -146,7 +146,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers [AjaxOnly] public ActionResult GetPageListThree(string queryJson) { - var data = stuEncourgementIBLL.GetPageList(queryJson); + var data = stuEncourgementTranIBLL.GetPageList(queryJson); var data1 = data.GroupBy(x => new { x.AcademicYearNo, @@ -177,7 +177,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers [AjaxOnly] public ActionResult GetPageListStu(string queryJson) { - var data = stuEncourgementIBLL.GetPageList(queryJson); + var data = stuEncourgementTranIBLL.GetPageList(queryJson); var data1 = data.GroupBy(x => new { x.AcademicYearNo, x.Semester, x.StuNo, x.StuName, x.Num }).Select(x => new { AcademicYearNo = x.Key.AcademicYearNo, @@ -197,7 +197,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers [AjaxOnly] public ActionResult GetFormData(string keyValue) { - var StuEncourgementData = stuEncourgementIBLL.GetStuEncourgementEntity(keyValue); + var StuEncourgementData = stuEncourgementTranIBLL.GetStuEncourgementEntity(keyValue); var jsonData = new { StuEncourgement = StuEncourgementData, @@ -217,7 +217,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers [AjaxOnly] public ActionResult DeleteForm(string keyValue) { - stuEncourgementIBLL.DeleteEntity(keyValue); + stuEncourgementTranIBLL.DeleteEntity(keyValue); return Success("删除成功!"); } /// @@ -230,8 +230,8 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers [AjaxOnly] public ActionResult SaveForm(string keyValue, string strEntity) { - StuEncourgementEntity entity = strEntity.ToObject(); - stuEncourgementIBLL.SaveEntity(keyValue, entity); + StuEncourgementTranEntity entity = strEntity.ToObject(); + stuEncourgementTranIBLL.SaveEntity(keyValue, entity); return Success("保存成功!"); } #endregion diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/QueryAPStuHealthIndex.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/QueryAPStuHealthIndex.js index 604b41ef4..2d5a60e33 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/QueryAPStuHealthIndex.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/QueryAPStuHealthIndex.js @@ -22,20 +22,7 @@ var bootstrap = function ($, learun) { url: top.$.rootUrl + '/LogisticsManagement/APStuHealthRecordsTran/GetPageList', headData: [ { - label: "申请人", name: "PStuNo", width: 100, align: "left", - formatterAsync: function (callback, value, row, op, $cell) { - learun.clientdata.getAsync('custmerData', { - url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'StuInfoBasic', - key: value, - keyId: 'stuno', - callback: function (_data) { - callback(_data['stuname']); - } - }); - } - }, - { - label: "系", name: "PDeptNo", width: 100, align: "left", + label: "系", name: "DeptNo", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { learun.clientdata.getAsync('custmerData', { url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo', @@ -48,7 +35,7 @@ var bootstrap = function ($, learun) { } }, { - label: "专业", name: "PMajorNo", width: 100, align: "left", + label: "专业", name: "MajorNo", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { learun.clientdata.getAsync('custmerData', { url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo', @@ -61,7 +48,7 @@ var bootstrap = function ($, learun) { } }, { - label: "班级", name: "PClassNo", width: 100, align: "left", + label: "班级", name: "ClassNo", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { learun.clientdata.getAsync('custmerData', { url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj', @@ -73,31 +60,21 @@ var bootstrap = function ($, learun) { }); } }, - { label: "预约时间", name: "PTime", width: 100, align: "left" }, { - label: "预约老师", name: "PEmpNo", width: 100, align: "left", + label: "学生", name: "Stuno", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { learun.clientdata.getAsync('custmerData', { - url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Psychology', + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'StuInfoBasic', key: value, - keyId: 'f_account', + keyId: 'stuno', callback: function (_data) { - callback(_data['f_realname']); + callback(_data['stuname']); } }); } }, - { - label: "预约成功", name: "PAgreee", width: 100, align: "left", - formatter(val) { - if (val === 'true') { - return '成功'; - } else { - return '待处理'; - } - } - }, - { label: "备注", name: "Remark", width: 100, align: "left" }, + + { label: "描述", name: "Remark", width: 100, align: "left" }, ], mainId: 'ID', isPage: true @@ -106,7 +83,7 @@ var bootstrap = function ($, learun) { }, search: function (param) { param = param || {}; - param.StuNo = StuNo; + param.Stuno = StuNo; $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); } }; diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoService.cs index 2c1714848..48041940f 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoService.cs @@ -346,6 +346,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration //历史数据 InsertEntity.StuId = item.StuId; InsertEntity.ReturnSchoolId = item.ID; + InsertEntity.StuTranId = item.StuTranId; InsertEntity.StuNo = item.StuNo; InsertEntity.StuName = item.StuName; InsertEntity.Gender = item.Gender; @@ -452,7 +453,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration foreach (var itemScore in StuScoreHistory) { //插入新数据 - db.ExecuteBySql(" insert into StuScoreTran select * from StuScore where Scoreid = '" + itemScore.ScoreId + "' and Scoreid not in ('" + itemScore.ScoreId + "')"); + db.ExecuteBySql(" insert into StuScoreTran select * from StuScore where Scoreid = '" + itemScore.ScoreId + "'"); //删除旧数据 db.Delete(x => x.ScoreId == itemScore.ScoreId); } @@ -466,7 +467,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration foreach (var entity in StuSelectLessonListHistory) { //插入新数据 - db.ExecuteBySql("insert into StuSelectLessonListTran select * from StuSelectLessonList where SelectId='" + entity.SelectId + "' and SelectId not in ('" + entity.SelectId + "')"); + db.ExecuteBySql("insert into StuSelectLessonListTran select * from StuSelectLessonList where SelectId='" + entity.SelectId + "'"); //删除旧数据 db.Delete(x => x.SelectId == entity.SelectId); } @@ -480,7 +481,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration foreach (var entity in StuSelectLessonListOfElectiveHistory) { //插入新数据 - db.ExecuteBySql("insert into StuSelectLessonListOfElectiveTran select * from StuSelectLessonListOfElective where Id='" + entity.Id + "' and Id not in ('" + entity.Id + "')"); + db.ExecuteBySql("insert into StuSelectLessonListOfElectiveTran select * from StuSelectLessonListOfElective where Id='" + entity.Id + "'"); //修改旧数据:报名成功时,选课表中报名成功人数字段减一; if (entity.Status == 2) { @@ -499,7 +500,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration { foreach (var itemScore in StuScoreNotPassHistory) { - db.ExecuteBySql(" insert into StuScoreNotPassTran select * from StuScoreNotPass where Scoreid = '" + itemScore.ScoreId + "' and Scoreid not in ('" + itemScore.ScoreId + "')"); + db.ExecuteBySql(" insert into StuScoreNotPassTran select * from StuScoreNotPass where Scoreid = '" + itemScore.ScoreId + "'"); //删除旧数据 db.Delete(x => x.ScoreId == itemScore.ScoreId); } @@ -514,7 +515,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration foreach (var itemScore in StuScoreNotPassTwoHistory) { //插入数据 - db.ExecuteBySql(" insert into StuScoreNotPassTwoTran select * from StuScoreNotPassTwo where Scoreid = '" + itemScore.ScoreId + "' and Scoreid not in ('" + itemScore.ScoreId + "')"); + db.ExecuteBySql(" insert into StuScoreNotPassTwoTran select * from StuScoreNotPassTwo where Scoreid = '" + itemScore.ScoreId + "'"); //删除旧数据 db.Delete(x => x.ScoreId == itemScore.ScoreId); } @@ -526,9 +527,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration { foreach (var items in ScholarshipHistory) { - db.ExecuteBySql(" insert into ScholarshipTran select * from ScholarshipAudit where id = '" + items.Id + "' and Id not in ('" + items.Id + "')"); + db.ExecuteBySql(" insert into ScholarshipTran select * from ScholarshipAudit where id = '" + items.Id + "' "); // 删除旧数据 - db.Delete(x => x.Id == items.Id); + //db.Delete(x => x.Id == items.Id); } } #endregion @@ -538,9 +539,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration { foreach (var items in AspHistory) { - db.ExecuteBySql(" insert into APStuHealthRecordsTran select * from APStuHealthRecords where ID = '" + items.ID + "' and ID not in ('" + items.ID + "')"); + db.ExecuteBySql(" insert into APStuHealthRecordsTran select * from APStuHealthRecords where ID = '" + items.ID + "'"); // 删除旧数据 - db.Delete(x => x.ID == items.ID); + //db.Delete(x => x.ID == items.ID); } } #endregion @@ -550,9 +551,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration { foreach (var items in MSRIntentionHistory) { - db.ExecuteBySql(" insert into MSRIntentionManagementTran select * from MSRIntentionManagement where ID = '" + items.ID + "' and ID not in ('" + items.ID + "')"); + db.ExecuteBySql(" insert into MSRIntentionManagementTran select * from MSRIntentionManagement where ID = '" + items.ID + "'"); // 删除旧数据 - db.Delete(x => x.ID == items.ID); + //db.Delete(x => x.ID == items.ID); } } #endregion @@ -562,9 +563,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration { foreach (var items in MSRMilitaryRecordHistory) { - db.ExecuteBySql(" insert into MSRMilitaryRecordTran select * from MSRMilitaryRecord where ID = '" + items.ID + "' and ID not in ('" + items.ID + "')"); + db.ExecuteBySql(" insert into MSRMilitaryRecordTran select * from MSRMilitaryRecord where ID = '" + items.ID + "'"); // 删除旧数据 - db.Delete(x => x.ID == items.ID); + //db.Delete(x => x.ID == items.ID); } } #endregion @@ -574,9 +575,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration { foreach (var items in MSRMilitaryServiceRegistrationHistory) { - db.ExecuteBySql(" insert into MSRMilitaryServiceRegistrationTran select * from MSRMilitaryServiceRegistration where ID = '" + items.ID + "' and ID not in ('" + items.ID + "')"); + db.ExecuteBySql(" insert into MSRMilitaryServiceRegistrationTran select * from MSRMilitaryServiceRegistration where ID = '" + items.ID + "'"); // 删除旧数据 - db.Delete(x => x.ID == items.ID); + //db.Delete(x => x.ID == items.ID); } } #endregion @@ -586,9 +587,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration { foreach (var items in StuEncourgementHistory) { - db.ExecuteBySql(" insert into StuEncourgementTran select * from StuEncourgement where ID = '" + items.ID + "' and ID not in ('" + items.ID + "')"); + db.ExecuteBySql(" insert into StuEncourgementTran select * from StuEncourgement where ID = '" + items.ID + "'"); // 删除旧数据 - db.Delete(x => x.ID == items.ID); + //db.Delete(x => x.ID == items.ID); } } #endregion @@ -598,9 +599,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration { foreach (var items in StuPunishmentHistory) { - db.ExecuteBySql(" insert into StuPunishmentTran select * from StuPunishment where ID = '" + items.Id + "' and ID not in ('" + items.Id + "')"); + db.ExecuteBySql(" insert into StuPunishmentTran select * from StuPunishment where ID = '" + items.Id + "'"); // 删除旧数据 - db.Delete(x => x.Id == items.Id); + //db.Delete(x => x.Id == items.Id); } } #endregion @@ -674,7 +675,6 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration upTrua.F_EnabledMark = 1; upTrua.CheckTime = DateTime.Now; upTrua.CheckUserId = userInfo.userId; - //修改关联休学记录的 IsReturnSchool = 1 db.ExecuteBySql(" update StuTransferInfo set IsReturnSchool = 1 where ID = '" + upTrua.ReturnSchoolId + "'");