Browse Source

【修改】质量管理体系-绩效跟踪:同内控检查;

undefined
dyy 2 years ago
parent
commit
210e0fc655
6 changed files with 60 additions and 48 deletions
  1. +4
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_ManagementPlan/IndexManagement.js
  2. +13
    -5
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_PerformanceTracking/Form.js
  3. +5
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_PerformanceTracking/Index.js
  4. +33
    -10
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_PerformanceTracking/IndexManagement.js
  5. +4
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_QualityObjectives/IndexManagement.js
  6. +1
    -24
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MP_PerformanceTracking/MP_PerformanceTrackingService.cs

+ 4
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_ManagementPlan/IndexManagement.js View File

@@ -163,8 +163,8 @@ var bootstrap = function ($, learun) {
var keyValue = $('#gridtable').jfGridValue('MPId');
if (learun.checkrow(keyValue)) {
var MPConclusion = $('#gridtable').jfGridValue('MPConclusion');
if (MPConclusion == 1) {
learun.alert.warning("当前项已合格");
if (MPConclusion.indexOf('1') != -1) {
learun.alert.warning("选中项包含已合格");
return false;
}
learun.layerConfirm('是否确认合格!', function (res) {
@@ -181,8 +181,8 @@ var bootstrap = function ($, learun) {
var keyValue = $('#gridtable').jfGridValue('MPId');
if (learun.checkrow(keyValue)) {
var MPConclusion = $('#gridtable').jfGridValue('MPConclusion');
if (MPConclusion != 1) {
learun.alert.warning("当前项已不合格");
if (MPConclusion.indexOf('0') != -1) {
learun.alert.warning("选中项包含不合格");
return false;
}
learun.layerConfirm('是否确认不合格!', function (res) {


+ 13
- 5
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_PerformanceTracking/Form.js View File

@@ -33,7 +33,7 @@ var bootstrap = function ($, learun) {
//});

$('#MPDepartment').lrselect({
type: 'tree',
type: 'treemultiple',
// 展开最大高度
maxHeight: 200,
// 是否允许搜索
@@ -41,10 +41,18 @@ var bootstrap = function ($, learun) {
// 访问数据接口地址
url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTree',
select: function (val) {
var departmentIds = val.id;
$('#MPReceiveUser').lrselectRefresh({
url: top.$.rootUrl + '/LR_OrganizationModule/User/GetListByDepartmentIds?departmentId=' + departmentIds
})
if (val && val.length > 0) {
var departmentIds = '';
for (var i = 0; i < val.length; i++) {
departmentIds += val[i].id;
if (i < val.length - 1) {
departmentIds += ',';
}
}
$('#MPReceiveUser').lrselectRefresh({
url: top.$.rootUrl + '/LR_OrganizationModule/User/GetListByDepartmentIds?departmentId=' + departmentIds
})
}
}
});



+ 5
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_PerformanceTracking/Index.js View File

@@ -140,7 +140,11 @@ var bootstrap = function ($, learun) {
item.F_Id +
'\',)" style="color:blue">' +
item.F_FileName +
'</span>,&nbsp;&nbsp;&nbsp;';
'</span>&nbsp;&nbsp;&nbsp;';

if (i < res.data.length - 1) {
bb += ',&nbsp;&nbsp;&nbsp;';
}
})
callback(bb);
}


+ 33
- 10
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_PerformanceTracking/IndexManagement.js View File

@@ -37,7 +37,7 @@ var bootstrap = function ($, learun) {
//});
$('#MPMonth').lrDataItemSelect({ code: 'MPMonth' });
$('#MPDepartment').lrselect({
type: 'tree',
type: 'treemultiple',
// 展开最大高度
maxHeight: 200,
// 是否允许搜索
@@ -45,11 +45,18 @@ var bootstrap = function ($, learun) {
// 访问数据接口地址
url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTree',
select: function (val) {
console.log(val);
var departmentIds = val.id;
$('#MPReceiveUser').lrselectRefresh({
url: top.$.rootUrl + '/LR_OrganizationModule/User/GetListByDepartmentIds?departmentId=' + departmentIds
})
if (val && val.length > 0) {
var departmentIds = '';
for (var i = 0; i < val.length; i++) {
departmentIds += val[i].id;
if (i < val.length - 1) {
departmentIds += ',';
}
}
$('#MPReceiveUser').lrselectRefresh({
url: top.$.rootUrl + '/LR_OrganizationModule/User/GetListByDepartmentIds?departmentId=' + departmentIds
})
}
}
});

@@ -148,9 +155,14 @@ var bootstrap = function ($, learun) {
$('#lr_qualified').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('MPId');
if (learun.checkrow(keyValue)) {
var MPConclusion = $('#gridtable').jfGridValue('MPConclusion');
if (MPConclusion.indexOf('1') != -1) {
learun.alert.warning("选中项包含已合格");
return false;
}
learun.layerConfirm('是否确认合格!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/MP_ManagementPlan/Qqualified', {keyValue:keyValue, status: true }, function () {
learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/MP_PerformanceTracking/Qqualified', {keyValue:keyValue, status: true }, function () {
refreshGirdData();
});
}
@@ -161,9 +173,14 @@ var bootstrap = function ($, learun) {
$('#lr_noqualified').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('MPId');
if (learun.checkrow(keyValue)) {
var MPConclusion = $('#gridtable').jfGridValue('MPConclusion');
if (MPConclusion.indexOf('0') != -1) {
learun.alert.warning("选中项包含不合格");
return false;
}
learun.layerConfirm('是否确认不合格!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/MP_ManagementPlan/Qqualified', {keyValue:keyValue, status: false }, function () {
learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/MP_PerformanceTracking/Qqualified', {keyValue:keyValue, status: false }, function () {
refreshGirdData();
});
}
@@ -202,8 +219,10 @@ var bootstrap = function ($, learun) {
}

});
if (i < deptarr.length - 1) {
content += ',';
}
}
content = content.substring(0, content.length - 1);
callback(content);
} else {
learun.clientdata.getAsync('custmerData',
@@ -249,7 +268,11 @@ var bootstrap = function ($, learun) {
item.F_Id +
'\',)" style="color:blue">' +
item.F_FileName +
'</span>,&nbsp;&nbsp;&nbsp;';
'</span>&nbsp;&nbsp;&nbsp;';

if (i < res.data.length - 1) {
bb += ',&nbsp;&nbsp;&nbsp;';
}
})
callback(bb);
}


+ 4
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_QualityObjectives/IndexManagement.js View File

@@ -157,8 +157,8 @@ var bootstrap = function ($, learun) {
var keyValue = $('#gridtable').jfGridValue('MPId');
if (learun.checkrow(keyValue)) {
var MPConclusion = $('#gridtable').jfGridValue('MPConclusion');
if (MPConclusion == 1) {
learun.alert.warning("当前项已合格");
if (MPConclusion.indexOf('1') != -1) {
learun.alert.warning("选中项包含已合格");
return false;
}
learun.layerConfirm('是否确认合格!', function (res) {
@@ -175,8 +175,8 @@ var bootstrap = function ($, learun) {
var keyValue = $('#gridtable').jfGridValue('MPId');
if (learun.checkrow(keyValue)) {
var MPConclusion = $('#gridtable').jfGridValue('MPConclusion');
if (MPConclusion != 1) {
learun.alert.warning("当前项已不合格");
if (MPConclusion.indexOf('0') != -1) {
learun.alert.warning("选中项包含不合格");
return false;
}
learun.layerConfirm('是否确认不合格!', function (res) {


+ 1
- 24
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/MP_PerformanceTracking/MP_PerformanceTrackingService.cs View File

@@ -30,30 +30,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
try
{
var strSql = new StringBuilder();
strSql.Append("SELECT ");
strSql.Append(@"
t.MPId,
t.MPAcademicYearNo,
t.MPSemester,
t.MPFile,
t.MPType,
t.MPUploader,
t.MPRemark,
t.MPDepartment,
t.MPProjectName,
t.MPFileTwo,
t.MPUploadTimes,
t.MPOverTime,
t.MPStatus,
t.MPConclusion,
t.SUpdateTime,
t.ParentId,
t.MPFileTwoRemark,
t.MPUploaderTwo,
t.MPMonth,
t.MPReceiveUser,
t.MPUploadTime
");
strSql.Append("SELECT t.* ");
strSql.Append(" FROM MP_ManageMentPlan t ");
strSql.Append(" WHERE 1=1 ");
strSql.Append($" AND MPType={MPType} ");


Loading…
Cancel
Save