Просмотр исходного кода

内控多选调整

金隅分支
liangkun 3 лет назад
Родитель
Сommit
9f41a34c0d
5 измененных файлов: 45 добавлений и 14 удалений
  1. +7
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/MP_PerformanceTrackingController.cs
  2. +8
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/MP_QualityObjectivesController.cs
  3. +14
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_PerformanceTracking/IndexManagement.js
  4. +10
    -5
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MP_PerformanceTracking/MP_PerformanceTrackingService.cs
  5. +6
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MP_QualityObjectives/MP_QualityObjectivesService.cs

+ 7
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/MP_PerformanceTrackingController.cs Просмотреть файл

@@ -133,9 +133,13 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers
[AjaxOnly]
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("操作成功!");
}



+ 8
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/MP_QualityObjectivesController.cs Просмотреть файл

@@ -136,10 +136,14 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers
[AjaxOnly]
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>


+ 14
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_PerformanceTracking/IndexManagement.js Просмотреть файл

@@ -73,6 +73,10 @@ var bootstrap = function ($, learun) {
$('#lr_edit').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('MPId');
if (learun.checkrow(keyValue)) {
if (keyValue.indexOf(',') != -1) {
learun.alert.warning("只能选择一条记录进行编辑!");
return;
}
learun.layerForm({
id: 'form',
title: '编辑',
@@ -89,6 +93,10 @@ var bootstrap = function ($, learun) {
$('#lr_uploadView').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('MPId');
if (learun.checkrow(keyValue)) {
if (keyValue.indexOf(',') != -1) {
learun.alert.warning("只能选择一条记录进行编辑!");
return;
}
learun.layerFormForPercent({
id: 'form',
title: '提交材料',
@@ -119,6 +127,10 @@ var bootstrap = function ($, learun) {
$("#lr_statistics").on('click', function () {
var keyValue = $('#gridtable').jfGridValue('MPId');
if (learun.checkrow(keyValue)) {
if (keyValue.indexOf(',') != -1) {
learun.alert.warning("只能选择一条记录进行编辑!");
return;
}
learun.layerFormForPercent({
id: 'form',
title: '访问情况统计',
@@ -236,7 +248,8 @@ var bootstrap = function ($, learun) {
],
mainId: 'MPId',
sidx: 'cast(MPMonth as int) asc',
isPage: true
isPage: true,
isMultiselect: true
});
page.search();
},


+ 10
- 5
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MP_PerformanceTracking/MP_PerformanceTrackingService.cs Просмотреть файл

@@ -25,7 +25,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
/// <summary>
/// <param name="queryJson">查询参数</param>
/// <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
{
@@ -85,12 +85,12 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
}
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 ");
}
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 ");
}
if (!queryParam["MPDepartment"].IsEmpty())
@@ -108,7 +108,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
dp.Add("MPUploader", "%" + queryParam["MPUploader"].ToString() + "%", DbType.String);
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)
{
@@ -160,7 +160,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 == keyValue);
}
}
catch (Exception ex)
{


+ 6
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MP_QualityObjectives/MP_QualityObjectivesService.cs Просмотреть файл

@@ -160,7 +160,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 == keyValue);
}
}
catch (Exception ex)
{


Загрузка…
Отмена
Сохранить