Преглед на файлове

内控调整多选

金隅分支
liangkun преди 3 години
родител
ревизия
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) { if (val) {
var departmentIds = val.id; var departmentIds = val.id;
$('#MPReceiveUser').lrselectRefresh({ $('#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 () { $('#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: '编辑',
@@ -95,6 +99,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: '提交材料',
@@ -127,6 +135,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: '访问情况统计',
@@ -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", label: "部门", name: "MPDepartment", width: 250, align: "left",
@@ -278,7 +290,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();
}, },
@@ -293,7 +306,7 @@ var bootstrap = function ($, learun) {
} }
if (!param.MPMonth) { if (!param.MPMonth) {
var jsdate = new Date(); var jsdate = new Date();
param.MPMonth = jsdate.getMonth()+1;
param.MPMonth = jsdate.getMonth() + 1;
} }
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}, },


Зареждане…
Отказ
Запис