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

内控调整多选

金隅分支
liangkun 3 лет назад
Родитель
Сommit
904dbf67d0
1 измененных файлов: 17 добавлений и 4 удалений
  1. +17
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_ManagementPlan/IndexManagement.js

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

@@ -51,7 +51,7 @@ var bootstrap = function ($, learun) {
if (val) {
var departmentIds = val.id;
$('#MPReceiveUser').lrselectRefresh({
url: top.$.rootUrl +'/LR_OrganizationModule/User/GetListByDepartmentIds?departmentId=' +departmentIds
url: top.$.rootUrl + '/LR_OrganizationModule/User/GetListByDepartmentIds?departmentId=' + departmentIds
});
}
}
@@ -79,6 +79,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: '编辑',
@@ -95,6 +99,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: '提交材料',
@@ -127,6 +135,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: '访问情况统计',
@@ -192,7 +204,7 @@ var bootstrap = function ($, learun) {
// }
//},
{
label: "月份",name: "MPMonth",width: 100,align: "left"
label: "月份", name: "MPMonth", width: 100, align: "left"
},
{
label: "部门", name: "MPDepartment", width: 250, align: "left",
@@ -278,7 +290,8 @@ var bootstrap = function ($, learun) {
],
mainId: 'MPId',
sidx: 'cast(MPMonth as int) asc',
isPage: true
isPage: true,
isMultiselect: true
})
page.search();
},
@@ -293,7 +306,7 @@ var bootstrap = function ($, learun) {
}
if (!param.MPMonth) {
var jsdate = new Date();
param.MPMonth = jsdate.getMonth()+1;
param.MPMonth = jsdate.getMonth() + 1;
}
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
},


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