Ver código fonte

内控多选调整

金隅分支
liangkun 3 anos atrás
pai
commit
8f1f03c4f2
3 arquivos alterados com 15 adições e 5 exclusões
  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 Ver arquivo

@@ -148,9 +148,14 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers
[AjaxOnly] [AjaxOnly]
public ActionResult Qqualified(string keyValue, bool status) 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("修改成功!"); return Success("修改成功!");
} }




+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_ManagementPlan/Form.js Ver arquivo

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


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


+ 6
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MP_ManagementPlan/MP_ManagementPlanService.cs Ver arquivo

@@ -167,7 +167,12 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
{ {
try 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) catch (Exception ex)
{ {


Carregando…
Cancelar
Salvar