@@ -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("修改成功!"); | ||||
} | } | ||||
@@ -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) { | ||||
@@ -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) | ||||
{ | { | ||||