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) {