|
|
@ -1,5 +1,5 @@ |
|
|
@{ |
|
|
@{ |
|
|
ViewData["Title"] = "報工工作站基本資料"; |
|
|
ViewData["Title"] = "報工站別基本資料"; |
|
|
Layout = "~/Views/Shared/_AMESLayout.cshtml"; |
|
|
Layout = "~/Views/Shared/_AMESLayout.cshtml"; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -49,11 +49,11 @@ |
|
|
{ |
|
|
{ |
|
|
field: 'workingStationName', |
|
|
field: 'workingStationName', |
|
|
width: 300, |
|
|
width: 300, |
|
|
title: '報工工作站別名稱' |
|
|
title: '報工站別名稱' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
field: 'workingStationDesc', |
|
|
field: 'workingStationDesc', |
|
|
title: '報工工作站敘述', |
|
|
title: '報工站別敘述', |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
field: 'typeNo', |
|
|
field: 'typeNo', |
|
|
@ -86,7 +86,7 @@ |
|
|
//通过行tool編輯,lay-event="edit" |
|
|
//通过行tool編輯,lay-event="edit" |
|
|
function edit(obj) { |
|
|
function edit(obj) { |
|
|
if (obj.data.workingStationID) { |
|
|
if (obj.data.workingStationID) { |
|
|
hg.open('修改報工工作站', '/WHS/WHS024U/' + obj.data.workingStationID, 640,480); |
|
|
hg.open('修改報工站別', '/WHS/WHS024U/' + obj.data.workingStationID, 640,480); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -96,7 +96,7 @@ |
|
|
str = '停用'; |
|
|
str = '停用'; |
|
|
else |
|
|
else |
|
|
str = '啟用'; |
|
|
str = '啟用'; |
|
|
hg.confirm("報工工作站別名稱:" + obj.data.workingStationName + ",確定要" + str + "嗎?", function () { |
|
|
hg.confirm("報工站別名稱:" + obj.data.workingStationName + ",確定要" + str + "嗎?", function () { |
|
|
$.ajax({ |
|
|
$.ajax({ |
|
|
url: '/WHS/WHS024D', |
|
|
url: '/WHS/WHS024D', |
|
|
data: { id: obj.data.workingStationID }, |
|
|
data: { id: obj.data.workingStationID }, |
|
|
@ -124,7 +124,7 @@ |
|
|
layuiicon: '', |
|
|
layuiicon: '', |
|
|
class: 'layui-btn-normal', |
|
|
class: 'layui-btn-normal', |
|
|
handler: function () { |
|
|
handler: function () { |
|
|
hg.open('新增報工工作站別', '/WHS/WHS024C', 640, 480); |
|
|
hg.open('新增報工站別', '/WHS/WHS024C', 640, 480); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -143,9 +143,9 @@ |
|
|
//基本資料表格 |
|
|
//基本資料表格 |
|
|
function tt() { |
|
|
function tt() { |
|
|
var unit = $("#unitNo").val(); |
|
|
var unit = $("#unitNo").val(); |
|
|
table = hg.table.datatable('test', '報工工作站別維護', '/WHS/GetWorkingStations?id=' + unit |
|
|
table = hg.table.datatable('test', '報工站別維護', '/WHS/GetWorkingStations?id=' + unit |
|
|
, {}, tableCols, toolbar, true, 'full-100', ['filter', 'print', 'exports']); |
|
|
, {}, tableCols, toolbar, true, 'full-100', ['filter', 'print', 'exports']); |
|
|
} |
|
|
} |
|
|
// var table = hg.table.datatable('test', '報工工作站別維護', '/WHS/GetWorkingStations', {}, tableCols, toolbar, true, 'full-100', ['filter', 'print', 'exports']); |
|
|
// var table = hg.table.datatable('test', '報工站別維護', '/WHS/GetWorkingStations', {}, tableCols, toolbar, true, 'full-100', ['filter', 'print', 'exports']); |
|
|
</script> |
|
|
</script> |
|
|
} |
|
|
} |