Procházet zdrojové kódy

内控多选调整

金隅分支
liangkun před 3 roky
rodič
revize
8f1f03c4f2
3 změnil soubory, kde provedl 15 přidání a 5 odebrání
  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 Zobrazit soubor

@@ -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 Zobrazit soubor

@@ -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 Zobrazit soubor

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


Načítá se…
Zrušit
Uložit