From 36773b0bf91b46867e3e1c42a296ac9b97fc904e Mon Sep 17 00:00:00 2001 From: hwh2023 <598694955@qq.com> Date: Tue, 30 Apr 2024 17:52:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=9B=E7=94=9F=E5=9B=9B=E4=B8=AA=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E6=89=B9=E9=87=8F=E5=88=A0=E9=99=A4=EF=BC=8C=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=9D=A1=E4=BB=B6=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/OfficerScoreManage/Index.js | 13 ++++++++++++- .../Views/Officer_admissioninfo/Index.js | 13 ++++++++++++- .../Views/OfficerexamManage/Index.js | 13 ++++++++++++- .../Views/Officermailpage/Index.js | 15 +++++++++++++-- .../OfficerScoreManageService.cs | 10 +++++++++- .../Officer_admissioninfoService.cs | 10 +++++++++- .../OfficerexamManage/OfficerexamManageService.cs | 9 ++++++++- .../Officermailpage/OfficermailpageService.cs | 10 +++++++++- 8 files changed, 84 insertions(+), 9 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/OfficerScoreManage/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/OfficerScoreManage/Index.js index 196e6064a..eea2cf65e 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/OfficerScoreManage/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/OfficerScoreManage/Index.js @@ -54,6 +54,16 @@ var bootstrap = function ($, learun) { }); // 删除 $('#lr_delete').on('click', function () { + //var keyValue = $('#gridtable').jfGridValue('Id'); + //if (learun.checkrow(keyValue)) { + // learun.layerConfirm('是否确认删除该项!', function (res) { + // if (res) { + // learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/OfficerScoreManage/DeleteForm', { keyValue: keyValue}, function () { + // refreshGirdData(); + // }); + // } + // }); + //} var keyValue = $('#gridtable').jfGridValue('Id'); if (learun.checkrow(keyValue)) { learun.layerConfirm('是否确认删除该项!', function (res) { @@ -87,7 +97,8 @@ var bootstrap = function ($, learun) { //{ label: "成绩单", name: "scoreimg", width: 100, align: "left"}, ], mainId:'Id', - isPage: true + isPage: true, + isMultiselect: true }); page.search(); }, diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Officer_admissioninfo/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Officer_admissioninfo/Index.js index daab90c50..db340a17d 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Officer_admissioninfo/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Officer_admissioninfo/Index.js @@ -54,6 +54,16 @@ var bootstrap = function ($, learun) { }); // 删除 $('#lr_delete').on('click', function () { + //var keyValue = $('#gridtable').jfGridValue('Id'); + //if (learun.checkrow(keyValue)) { + // learun.layerConfirm('是否确认删除该项!', function (res) { + // if (res) { + // learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/Officer_admissioninfo/DeleteForm', { keyValue: keyValue}, function () { + // refreshGirdData(); + // }); + // } + // }); + //} var keyValue = $('#gridtable').jfGridValue('Id'); if (learun.checkrow(keyValue)) { learun.layerConfirm('是否确认删除该项!', function (res) { @@ -104,7 +114,8 @@ var bootstrap = function ($, learun) { { label: "邮寄地址", name: "mailaddress", width: 100, align: "left"}, ], mainId:'Id', - isPage: true + isPage: true, + isMultiselect: true }); page.search(); }, diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/OfficerexamManage/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/OfficerexamManage/Index.js index a7ee40660..f3d0b960d 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/OfficerexamManage/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/OfficerexamManage/Index.js @@ -52,6 +52,16 @@ var bootstrap = function ($, learun) { }); // 删除 $('#lr_delete').on('click', function () { + //var keyValue = $('#gridtable').jfGridValue('Id'); + //if (learun.checkrow(keyValue)) { + // learun.layerConfirm('是否确认删除该项!', function (res) { + // if (res) { + // learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/OfficerexamManage/DeleteForm', { keyValue: keyValue}, function () { + // refreshGirdData(); + // }); + // } + // }); + //} var keyValue = $('#gridtable').jfGridValue('Id'); if (learun.checkrow(keyValue)) { learun.layerConfirm('是否确认删除该项!', function (res) { @@ -74,7 +84,8 @@ var bootstrap = function ($, learun) { //{ label: "准考证", name: "examcard", width: 100, align: "left"}, ], mainId:'Id', - isPage: true + isPage: true, + isMultiselect: true }); page.search(); }, diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Officermailpage/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Officermailpage/Index.js index 18ff5a0e5..76757efe1 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Officermailpage/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Officermailpage/Index.js @@ -67,11 +67,21 @@ var bootstrap = function ($, learun) { }); // 删除 $('#lr_delete').on('click', function () { + //var keyValue = $('#gridtable').jfGridValue('Id'); + //if (learun.checkrow(keyValue)) { + // learun.layerConfirm('是否确认删除该项!', function (res) { + // if (res) { + // learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/Officermailpage/DeleteForm', { keyValue: keyValue}, function () { + // refreshGirdData(); + // }); + // } + // }); + //} var keyValue = $('#gridtable').jfGridValue('Id'); if (learun.checkrow(keyValue)) { learun.layerConfirm('是否确认删除该项!', function (res) { if (res) { - learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/Officermailpage/DeleteForm', { keyValue: keyValue}, function () { + learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/Officermailpage/DeleteForm', { keyValue: keyValue }, function () { refreshGirdData(); }); } @@ -100,7 +110,8 @@ var bootstrap = function ($, learun) { //{ label: "学生退档申请书", name: "applicationfile", width: 100, align: "left"}, ], mainId:'Id', - isPage: true + isPage: true, + isMultiselect: true }); page.search(); }, diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/OfficerScoreManage/OfficerScoreManageService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/OfficerScoreManage/OfficerScoreManageService.cs index 782abc349..34ed8d024 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/OfficerScoreManage/OfficerScoreManageService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/OfficerScoreManage/OfficerScoreManageService.cs @@ -105,7 +105,15 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration { try { - this.BaseRepository("CollegeMIS").Delete(t=>t.Id == keyValue); + //this.BaseRepository("CollegeMIS").Delete(t=>t.Id == keyValue); + + var keyValueArr = keyValue.Split(','); + foreach (var item in keyValueArr) + { + var model = this.BaseRepository("CollegeMIS").FindEntity(t => t.Id == item); + + this.BaseRepository("CollegeMIS").Delete(model); + } } catch (Exception ex) { diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Officer_admissioninfo/Officer_admissioninfoService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Officer_admissioninfo/Officer_admissioninfoService.cs index fadd18b99..f555149d7 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Officer_admissioninfo/Officer_admissioninfoService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Officer_admissioninfo/Officer_admissioninfoService.cs @@ -108,7 +108,15 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration { try { - this.BaseRepository("CollegeMIS").Delete(t=>t.Id == keyValue); + //this.BaseRepository("CollegeMIS").Delete(t=>t.Id == keyValue); + + var keyValueArr = keyValue.Split(','); + foreach (var item in keyValueArr) + { + var model = this.BaseRepository("CollegeMIS").FindEntity(t => t.Id == item); + + this.BaseRepository("CollegeMIS").Delete(model); + } } catch (Exception ex) { diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/OfficerexamManage/OfficerexamManageService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/OfficerexamManage/OfficerexamManageService.cs index 3cdca0da3..00781b7c1 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/OfficerexamManage/OfficerexamManageService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/OfficerexamManage/OfficerexamManageService.cs @@ -99,7 +99,14 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration { try { - this.BaseRepository("CollegeMIS").Delete(t=>t.Id == keyValue); + //this.BaseRepository("CollegeMIS").Delete(t=>t.Id == keyValue); + var keyValueArr = keyValue.Split(','); + foreach (var item in keyValueArr) + { + var model = this.BaseRepository("CollegeMIS").FindEntity(t => t.Id == item); + + this.BaseRepository("CollegeMIS").Delete(model); + } } catch (Exception ex) { diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Officermailpage/OfficermailpageService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Officermailpage/OfficermailpageService.cs index 212f843d5..7b2e7f419 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Officermailpage/OfficermailpageService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Officermailpage/OfficermailpageService.cs @@ -104,7 +104,15 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration { try { - this.BaseRepository("CollegeMIS").Delete(t=>t.Id == keyValue); + //this.BaseRepository("CollegeMIS").Delete(t=>t.Id == keyValue); + + var keyValueArr = keyValue.Split(','); + foreach (var item in keyValueArr) + { + var model = this.BaseRepository("CollegeMIS").FindEntity(t => t.Id == item); + + this.BaseRepository("CollegeMIS").Delete(model); + } } catch (Exception ex) {