@@ -133,9 +133,13 @@ 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_PerformanceTrackingIBLL.GetMP_ManageMentPlanEntity(keyValue); | |||||
entity.MPConclusion = status?1:0; | |||||
mP_PerformanceTrackingIBLL.SaveEntity(keyValue,entity); | |||||
var keyValueArr = keyValue.Split(','); | |||||
foreach (var item in keyValueArr) | |||||
{ | |||||
var entity = mP_PerformanceTrackingIBLL.GetMP_ManageMentPlanEntity(item); | |||||
entity.MPConclusion = status ? 1 : 0; | |||||
mP_PerformanceTrackingIBLL.SaveEntity(item, entity); | |||||
} | |||||
return Success("操作成功!"); | return Success("操作成功!"); | ||||
} | } | ||||
@@ -136,10 +136,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_QualityObjectivesIBLL.GetMP_ManageMentPlanEntity(keyValue); | |||||
entity.MPConclusion = status?1:0; | |||||
mP_QualityObjectivesIBLL.SaveEntity(keyValue, entity); | |||||
return Success("删除成功!"); | |||||
var keyValueArr = keyValue.Split(','); | |||||
foreach (var item in keyValueArr) | |||||
{ | |||||
var entity = mP_QualityObjectivesIBLL.GetMP_ManageMentPlanEntity(item); | |||||
entity.MPConclusion = status ? 1 : 0; | |||||
mP_QualityObjectivesIBLL.SaveEntity(item, entity); | |||||
} | |||||
return Success("操作成功!"); | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
@@ -73,6 +73,10 @@ var bootstrap = function ($, learun) { | |||||
$('#lr_edit').on('click', function () { | $('#lr_edit').on('click', function () { | ||||
var keyValue = $('#gridtable').jfGridValue('MPId'); | var keyValue = $('#gridtable').jfGridValue('MPId'); | ||||
if (learun.checkrow(keyValue)) { | if (learun.checkrow(keyValue)) { | ||||
if (keyValue.indexOf(',') != -1) { | |||||
learun.alert.warning("只能选择一条记录进行编辑!"); | |||||
return; | |||||
} | |||||
learun.layerForm({ | learun.layerForm({ | ||||
id: 'form', | id: 'form', | ||||
title: '编辑', | title: '编辑', | ||||
@@ -89,6 +93,10 @@ var bootstrap = function ($, learun) { | |||||
$('#lr_uploadView').on('click', function () { | $('#lr_uploadView').on('click', function () { | ||||
var keyValue = $('#gridtable').jfGridValue('MPId'); | var keyValue = $('#gridtable').jfGridValue('MPId'); | ||||
if (learun.checkrow(keyValue)) { | if (learun.checkrow(keyValue)) { | ||||
if (keyValue.indexOf(',') != -1) { | |||||
learun.alert.warning("只能选择一条记录进行编辑!"); | |||||
return; | |||||
} | |||||
learun.layerFormForPercent({ | learun.layerFormForPercent({ | ||||
id: 'form', | id: 'form', | ||||
title: '提交材料', | title: '提交材料', | ||||
@@ -119,6 +127,10 @@ var bootstrap = function ($, learun) { | |||||
$("#lr_statistics").on('click', function () { | $("#lr_statistics").on('click', function () { | ||||
var keyValue = $('#gridtable').jfGridValue('MPId'); | var keyValue = $('#gridtable').jfGridValue('MPId'); | ||||
if (learun.checkrow(keyValue)) { | if (learun.checkrow(keyValue)) { | ||||
if (keyValue.indexOf(',') != -1) { | |||||
learun.alert.warning("只能选择一条记录进行编辑!"); | |||||
return; | |||||
} | |||||
learun.layerFormForPercent({ | learun.layerFormForPercent({ | ||||
id: 'form', | id: 'form', | ||||
title: '访问情况统计', | title: '访问情况统计', | ||||
@@ -236,7 +248,8 @@ var bootstrap = function ($, learun) { | |||||
], | ], | ||||
mainId: 'MPId', | mainId: 'MPId', | ||||
sidx: 'cast(MPMonth as int) asc', | sidx: 'cast(MPMonth as int) asc', | ||||
isPage: true | |||||
isPage: true, | |||||
isMultiselect: true | |||||
}); | }); | ||||
page.search(); | page.search(); | ||||
}, | }, | ||||
@@ -25,7 +25,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
/// <summary> | /// <summary> | ||||
/// <param name="queryJson">查询参数</param> | /// <param name="queryJson">查询参数</param> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public IEnumerable<MP_ManageMentPlanEntity> GetPageList(Pagination pagination, string queryJson,int MPType=1) | |||||
public IEnumerable<MP_ManageMentPlanEntity> GetPageList(Pagination pagination, string queryJson, int MPType = 1) | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
@@ -85,12 +85,12 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
} | } | ||||
if (!queryParam["MPAcademicYearNo"].IsEmpty()) | if (!queryParam["MPAcademicYearNo"].IsEmpty()) | ||||
{ | { | ||||
dp.Add("MPAcademicYearNo",queryParam["MPAcademicYearNo"].ToString(), DbType.String); | |||||
dp.Add("MPAcademicYearNo", queryParam["MPAcademicYearNo"].ToString(), DbType.String); | |||||
strSql.Append(" AND t.MPAcademicYearNo = @MPAcademicYearNo "); | strSql.Append(" AND t.MPAcademicYearNo = @MPAcademicYearNo "); | ||||
} | } | ||||
if (!queryParam["MPSemester"].IsEmpty()) | if (!queryParam["MPSemester"].IsEmpty()) | ||||
{ | { | ||||
dp.Add("MPSemester",queryParam["MPSemester"].ToString(), DbType.String); | |||||
dp.Add("MPSemester", queryParam["MPSemester"].ToString(), DbType.String); | |||||
strSql.Append(" AND t.MPSemester = @MPSemester "); | strSql.Append(" AND t.MPSemester = @MPSemester "); | ||||
} | } | ||||
if (!queryParam["MPDepartment"].IsEmpty()) | if (!queryParam["MPDepartment"].IsEmpty()) | ||||
@@ -108,7 +108,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement | |||||
dp.Add("MPUploader", "%" + queryParam["MPUploader"].ToString() + "%", DbType.String); | dp.Add("MPUploader", "%" + queryParam["MPUploader"].ToString() + "%", DbType.String); | ||||
strSql.Append(" AND t.MPUploader Like @MPUploader "); | strSql.Append(" AND t.MPUploader Like @MPUploader "); | ||||
} | } | ||||
return this.BaseRepository("CollegeMIS").FindList<MP_ManageMentPlanEntity>(strSql.ToString(),dp, pagination); | |||||
return this.BaseRepository("CollegeMIS").FindList<MP_ManageMentPlanEntity>(strSql.ToString(), dp, pagination); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -160,7 +160,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 == keyValue); | |||||
} | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -160,7 +160,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 == keyValue); | |||||
} | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||