-
-
-
-
-
-
-
-
~
-
-
-
+
+
@section Scripts{
@@ -214,36 +225,50 @@
};
$('#recordNumber').on('keypress', function (event) {
-
if (event.keyCode == 13) {
getCustomer($('#recordNumber').val());
}
-
});
//监听表单提交事件
hg.form.onsubmit('querysubmit', function (data) {
hg.msghide("重新載入資料..");
data.autoLoad = 1;
- table && table.reload(data);
+ //table && table.reload(data);
+ console.log(data);
+ layui.table.reload('query', {
+ where: {
+ recordType: data.recordType,
+ recordNumber: data.recordNumber,
+ lineNo: data.lineNo,
+ materialNo: data.materialNo,
+ shippingSN: data.shippingSN,
+ dateStart: data.dateStart,
+ dateEnd: data.dateEnd,
+ autoLoad: data.autoLoad,
+ RBU: data.RBU,
+ soNumber: data.soNumber,
+ soLineNo: data.soLineNo,
+ customer: data.customer
+ },
+ done: function (res, curr, count) {
+ $('#rowCount').text('總筆數: ' + count);
+ }
+ });
});
var tableCols = [[
{
field: 'recordTypeID',
title: 'RecordType',
- sort: true
},
{
field: 'recordNumber',
title: 'RecordNumber',
- sort: true
},
{
field: 'lineNo',
- width: 120,
title: 'LineNo',
- sort: true
},
{
field: 'sn',
@@ -257,27 +282,35 @@
sort: true
},
{
- field: 'customer',
- title: 'Customer',
- width: 160,
- sort: true
+ field: 'soNumber',
+ title: 'SO Number',
+ },
+ {
+ field: 'soLineNo',
+ title: 'SO Line',
},
{
field: 'location',
title: 'Location',
- width: 100,
- sort: true
},
{
- field: 'creatorID',
+ field: 'empID',
title: 'EMP',
- width: 100,
sort: true
},
+ {
+ field: 'extNotes',
+ title: 'Notes',
+ },
{
field: 'recordDate',
title: 'RecordDate',
templet: '
{{ layui.util.toDateString(d.recordDate, "yyyy/MM/dd HH:mm:ss") }}
'
+ },
+ {
+ field: 'createDate',
+ title: 'CreateDate',
+ templet: '
{{ layui.util.toDateString(d.createDate, "yyyy/MM/dd HH:mm:ss") }}
'
}]
];
diff --git a/AMESCoreStudio.Web/Views/PTD/PTD004.cshtml b/AMESCoreStudio.Web/Views/PTD/PTD004.cshtml
index 956d3aa5..ecbce47d 100644
--- a/AMESCoreStudio.Web/Views/PTD/PTD004.cshtml
+++ b/AMESCoreStudio.Web/Views/PTD/PTD004.cshtml
@@ -31,7 +31,6 @@
},
{
field: 'id',
- width: 100,
title: '代號'
},
{
@@ -47,12 +46,10 @@
{
field: 'source',
title: '來源',
- width: 160
},
{
field: 'prefixCode',
title: '開頭',
- width: 160
},
{
field: 'length',
@@ -193,25 +190,26 @@
//通过行tool编辑,lay-event="edit"
function edit(obj) {
- if (obj.data.id) {
- hg.open('修改單頭說明', '/PTD/PTD004U/' + obj.data.id, 480, 480);
+ if (obj.data.seq) {
+ hg.open('修改單頭說明', '/PTD/PTD004U?idx=' + obj.data.sEQ, 480, 480);
}
}
//通过行tool删除,lay-event="del"
function del(obj) {
- if (obj.data.id) {
+ if (obj.data.seq) {
hg.confirm("系統:" + obj.data.typeName + ",確定要刪除嗎?", function () {
$.ajax({
url: '/PTD/PTD004D',
- data: { id: obj.data.id },
+ data: { id: obj.data.seq },
type: 'POST',
success: function (res) {
if (res.success) {
hg.msghide("刪除成功!", {
icon: 6
});
- layui.table.reload('test', { page: { curr: $(".layui-laypage-em").next().html() } })
+ layui.table.reload('test')
+ //layui.table.reload('test', { page: { curr: $(".layui-laypage-em").next().html() } })
}
else {
hg.msg(data.msg);
diff --git a/AMESCoreStudio.Web/Views/PTD/PTD004U.cshtml b/AMESCoreStudio.Web/Views/PTD/PTD004U.cshtml
index 8574fad2..40881c8a 100644
--- a/AMESCoreStudio.Web/Views/PTD/PTD004U.cshtml
+++ b/AMESCoreStudio.Web/Views/PTD/PTD004U.cshtml
@@ -16,6 +16,7 @@