|
|
@@ -47,7 +47,7 @@ var bootstrap = function ($, learun) { |
|
|
|
}, 250, 400); |
|
|
|
$('#Department').lrDepartmentSelect(); |
|
|
|
$('#ADR_Device').lrDataSourceSelect({ code: 'ADR_Device', value: 'dname', text: 'dname' }); |
|
|
|
$('#ADStatus').lrDataItemSelect({ code: 'ADStatus'}); |
|
|
|
$('#ADStatus').lrDataItemSelect({ code: 'ADStatus' }); |
|
|
|
// 刷新 |
|
|
|
$('#lr_refresh').on('click', function () { |
|
|
|
location.reload(); |
|
|
@@ -81,6 +81,19 @@ var bootstrap = function ($, learun) { |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
$('#lr_view').on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('ID'); |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
learun.layerForm({ |
|
|
|
id: 'form', |
|
|
|
title: '查看', |
|
|
|
url: top.$.rootUrl + '/LogisticsManagement/ADR_Record/FormView?keyValue=' + keyValue, |
|
|
|
width: 600, |
|
|
|
height: 400, |
|
|
|
btn: null |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
// 删除 |
|
|
|
$('#lr_delete').on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('ID'); |
|
|
@@ -97,7 +110,7 @@ var bootstrap = function ($, learun) { |
|
|
|
}, |
|
|
|
// 初始化列表 |
|
|
|
initGird: function () { |
|
|
|
$('#gridtable').lrAuthorizeJfGrid({ |
|
|
|
$('#gridtable').jfGrid({ |
|
|
|
url: top.$.rootUrl + '/LogisticsManagement/ADR_Record/GetPageList', |
|
|
|
headData: [ |
|
|
|
{ |
|
|
@@ -157,7 +170,12 @@ var bootstrap = function ($, learun) { |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: "打卡地点", name: "ClockPlace", width: 100, align: "left" }, |
|
|
|
{ |
|
|
|
label: "是否外勤", name: "AIsOut", width: 100, align: "left", formatter: function (value) { |
|
|
|
return value == true ? "是" : "否"; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: "打卡地点", name: "ClockPlace", width: 200, align: "left" }, |
|
|
|
{ label: "考勤数据上传时间", name: "ADTime", width: 150, align: "left" } |
|
|
|
], |
|
|
|
mainId: 'ID', |
|
|
|