Преглед изворни кода

内控多选调整

金隅分支
liangkun пре 3 година
родитељ
комит
8f1f03c4f2
3 измењених фајлова са 15 додато и 5 уклоњено
  1. +8
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/MP_ManagementPlanController.cs
  2. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_ManagementPlan/Form.js
  3. +6
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MP_ManagementPlan/MP_ManagementPlanService.cs

+ 8
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/MP_ManagementPlanController.cs Прегледај датотеку

@@ -148,9 +148,14 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers
[AjaxOnly]
public ActionResult Qqualified(string keyValue, bool status)
{
var entity = mP_ManagementPlanIBLL.GetMP_ManageMentPlanEntity(keyValue);
entity.MPConclusion = status?1:0;
mP_ManagementPlanIBLL.SaveEntity(keyValue, entity);
var keyValueArr = keyValue.Split(',');
foreach (var item in keyValueArr)
{
var entity = mP_ManagementPlanIBLL.GetMP_ManageMentPlanEntity(item);
entity.MPConclusion = status ? 1 : 0;
mP_ManagementPlanIBLL.SaveEntity(item, entity);
}
return Success("修改成功!");
}



+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_ManagementPlan/Form.js Прегледај датотеку

@@ -50,7 +50,7 @@ var bootstrap = function ($, learun) {

$('#MPReceiveUser').lrselect({ type: 'default', allowSearch: true, value: 'F_UserId', text:'F_RealName' })
$('#MPMonth').lrDataItemSelect({ code: 'MPMonth' });
$('#MPFile').lrUploader();
$('#MPFile').lrUploader({ isView:false});
},
initData: function () {
if (!!keyValue) {


+ 6
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MP_ManagementPlan/MP_ManagementPlanService.cs Прегледај датотеку

@@ -167,7 +167,12 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
{
try
{
this.BaseRepository("CollegeMIS").Delete<MP_ManageMentPlanEntity>(t => t.MPId == keyValue);
//多个删除
var keyValueArr = keyValue.Split(',');
foreach (var item in keyValueArr)
{
this.BaseRepository("CollegeMIS").Delete<MP_ManageMentPlanEntity>(t => t.MPId == item);
}
}
catch (Exception ex)
{


Loading…
Откажи
Сачувај