|
|
@@ -106,15 +106,10 @@ var bootstrap = function ($, learun) { |
|
|
|
$('#lr_delete').on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('RID'); |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
var SendFlag = $('#gridtable').jfGridValue('RSendFlag'); |
|
|
|
if (SendFlag != 0) { |
|
|
|
learun.alert.warning("当前项目已提交不能删除!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
learun.layerConfirm('是否确认删除该项!', function (res) { |
|
|
|
if (res) { |
|
|
|
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveDocument/DeleteForm', { keyValue: keyValue }, function () { |
|
|
|
refreshGirdData(); |
|
|
|
page.search(); |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
@@ -205,6 +200,18 @@ var bootstrap = function ($, learun) { |
|
|
|
$('#gridtable').lrAuthorizeJfGrid({ |
|
|
|
url: top.$.rootUrl + '/EducationalAdministration/Sys_ReceiveDocument/GetPageList', |
|
|
|
headData: [ |
|
|
|
{ |
|
|
|
label: "录入人员", name: "SenderId", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'teacheruserdata', |
|
|
|
key: value, |
|
|
|
keyId: 'f_userid', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['f_realname']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: "来文单位", name: "RSourceUnit", width: 100, align: "left" }, |
|
|
|
{ |
|
|
|
label: "收文单位", name: "RReceiveUnit", width: 100, align: "left", |
|
|
|