@@ -17,6 +17,7 @@ var bootstrap = function ($, learun) {
page.bind();
},
bind: function () {
// $('#CreateUserId').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_userid', text: 'f_realname' });
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
@@ -60,7 +61,7 @@ var bootstrap = function ($, learun) {
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认删除该项!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/LogisticsManagement/ProjectProcessManage/DeleteForm', { keyValue: keyValue}, function () {
learun.deleteForm(top.$.rootUrl + '/LogisticsManagement/ProjectProcessManage/DeleteForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
@@ -77,10 +78,24 @@ var bootstrap = function ($, learun) {
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/LogisticsManagement/ProjectProcessManage/GetPageList',
headData: [
{ label: "项目进展情况", name: "Progress", width: 100, align: "left"},
{ label: "时间", name: "ProcessTime", width: 100, align: "left"},
{ label: "项目进展情况", name: "Progress", width: 100, align: "left" },
{ label: "时间", name: "ProcessTime", width: 100, align: "left" },
{
label: "申请人", name: "CreateUserId", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('user', {
key: value,
callback: function (_data) {
callback(_data.name);
}
});
}
},
{
label: "创建时间", name: "CreateTime", width: 200, align: "left",
}
],
mainId:'Id',
mainId: 'Id',
isPage: true
});
page.search();
@@ -101,7 +116,7 @@ var bootstrap = function ($, learun) {
param = param || {};
param.PPId = PPId;
param.PId = PId;
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) });
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {