ソースを参照

招生四个模块批量删除,查询条件新增

娄底高职分支
hwh2023 7ヶ月前
コミット
36773b0bf9
8個のファイルの変更84行の追加9行の削除
  1. +12
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/OfficerScoreManage/Index.js
  2. +12
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Officer_admissioninfo/Index.js
  3. +12
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/OfficerexamManage/Index.js
  4. +13
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Officermailpage/Index.js
  5. +9
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/OfficerScoreManage/OfficerScoreManageService.cs
  6. +9
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Officer_admissioninfo/Officer_admissioninfoService.cs
  7. +8
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/OfficerexamManage/OfficerexamManageService.cs
  8. +9
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Officermailpage/OfficermailpageService.cs

+ 12
- 1
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();
},


+ 12
- 1
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();
},


+ 12
- 1
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();
},


+ 13
- 2
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();
},


+ 9
- 1
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<OfficerScoreManageEntity>(t=>t.Id == keyValue);
//this.BaseRepository("CollegeMIS").Delete<OfficerScoreManageEntity>(t=>t.Id == keyValue);

var keyValueArr = keyValue.Split(',');
foreach (var item in keyValueArr)
{
var model = this.BaseRepository("CollegeMIS").FindEntity<OfficerScoreManageEntity>(t => t.Id == item);

this.BaseRepository("CollegeMIS").Delete<OfficerScoreManageEntity>(model);
}
}
catch (Exception ex)
{


+ 9
- 1
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<Officer_admissioninfoEntity>(t=>t.Id == keyValue);
//this.BaseRepository("CollegeMIS").Delete<Officer_admissioninfoEntity>(t=>t.Id == keyValue);

var keyValueArr = keyValue.Split(',');
foreach (var item in keyValueArr)
{
var model = this.BaseRepository("CollegeMIS").FindEntity<Officer_admissioninfoEntity>(t => t.Id == item);

this.BaseRepository("CollegeMIS").Delete<Officer_admissioninfoEntity>(model);
}
}
catch (Exception ex)
{


+ 8
- 1
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<OfficerexamManageEntity>(t=>t.Id == keyValue);
//this.BaseRepository("CollegeMIS").Delete<OfficerexamManageEntity>(t=>t.Id == keyValue);
var keyValueArr = keyValue.Split(',');
foreach (var item in keyValueArr)
{
var model = this.BaseRepository("CollegeMIS").FindEntity<OfficerexamManageEntity>(t => t.Id == item);

this.BaseRepository("CollegeMIS").Delete<OfficerexamManageEntity>(model);
}
}
catch (Exception ex)
{


+ 9
- 1
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<OfficermailpageEntity>(t=>t.Id == keyValue);
//this.BaseRepository("CollegeMIS").Delete<OfficermailpageEntity>(t=>t.Id == keyValue);

var keyValueArr = keyValue.Split(',');
foreach (var item in keyValueArr)
{
var model = this.BaseRepository("CollegeMIS").FindEntity<OfficermailpageEntity>(t => t.Id == item);

this.BaseRepository("CollegeMIS").Delete<OfficermailpageEntity>(model);
}
}
catch (Exception ex)
{


読み込み中…
キャンセル
保存