|
|
@@ -69,10 +69,13 @@ var bootstrap = function ($, learun) { |
|
|
|
$('#AIASSState').lrDataItemSelect({ code: 'AssState' }); |
|
|
|
$('#AIDepartment').lrDepartmentSelect({ |
|
|
|
select: function (val) { |
|
|
|
$('#AIUsePeople').lrselectRefresh({ url: top.$.rootUrl + '/LR_OrganizationModule/User/GetListByDepartmentId?departmentId=' + val.value, text: 'F_RealName', value: 'F_UserId' }) |
|
|
|
if (val) { |
|
|
|
$('#AIUsePeople').lrselectRefresh({ url: top.$.rootUrl + '/LR_OrganizationModule/User/GetListByDepartmentId?departmentId=' + val.value, text: 'F_RealName', value: 'F_UserId' }) |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
$('#AIUsePeople').lrselect({ allowSearch: true, text: 'F_RealName', value: 'F_UserId' }); |
|
|
|
//$('#AIUsePeople').lrselect({ allowSearch: true, text: 'F_RealName', value: 'F_UserId' }); |
|
|
|
$('#AIUsePeople').lrselect(); |
|
|
|
// 刷新 |
|
|
|
$('#lr_refresh').on('click', function () { |
|
|
|
location.reload(); |
|
|
@@ -133,6 +136,10 @@ var bootstrap = function ($, learun) { |
|
|
|
$('#lr_edit').on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('AIId'); |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
if (keyValue.indexOf(',') != -1) { |
|
|
|
learun.alert.warning("只能选择一条记录进行操作!"); |
|
|
|
return false; |
|
|
|
} |
|
|
|
learun.layerForm({ |
|
|
|
id: 'forminfoitem', |
|
|
|
title: '编辑', |
|
|
@@ -149,6 +156,10 @@ var bootstrap = function ($, learun) { |
|
|
|
$('#lr_view').on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('AIId'); |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
if (keyValue.indexOf(',') != -1) { |
|
|
|
learun.alert.warning("只能选择一条记录进行操作!"); |
|
|
|
return false; |
|
|
|
} |
|
|
|
learun.layerForm({ |
|
|
|
id: 'forminfoitem', |
|
|
|
title: '查看', |
|
|
@@ -166,6 +177,10 @@ var bootstrap = function ($, learun) { |
|
|
|
$('#lr_detail').on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('AIId'); |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
if (keyValue.indexOf(',') != -1) { |
|
|
|
learun.alert.warning("只能选择一条记录进行操作!"); |
|
|
|
return false; |
|
|
|
} |
|
|
|
learun.layerForm({ |
|
|
|
id: 'formdetail', |
|
|
|
title: '出入库记录', |
|
|
@@ -181,6 +196,10 @@ var bootstrap = function ($, learun) { |
|
|
|
$('#lr_usedetail').on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('AIId'); |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
if (keyValue.indexOf(',') != -1) { |
|
|
|
learun.alert.warning("只能选择一条记录进行操作!"); |
|
|
|
return false; |
|
|
|
} |
|
|
|
learun.layerForm({ |
|
|
|
id: 'formusedetail', |
|
|
|
title: '使用人员变动记录', |
|
|
|