You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
2.5 KiB
65 lines
2.5 KiB
@model int
|
|
@{
|
|
ViewData["Title"] = "標準工時修改歷程";
|
|
Layout = "~/Views/Shared/_AMESLayout.cshtml";
|
|
}
|
|
<div class="layui-card">
|
|
<div class="layui-card-header">
|
|
<div class="layui-inline"><i class="fa fa-file-text-o fa-fw"></i> @ViewBag.Title</div>
|
|
</div>
|
|
<div class="layui-card-body">
|
|
<input type="hidden" id="workingStandardID" value="@Model" />
|
|
<table class="layui-hide" id="test" lay-filter="test"></table>
|
|
</div>
|
|
</div>
|
|
|
|
@section Scripts {
|
|
<script type="text/javascript">
|
|
var tableCols = [[
|
|
{ field: 'workingStandardLogID', title: '#' },
|
|
{ field: 'workingStandardID', title: '標準工時編號'},
|
|
{ field: 'itemNo', title: '工程編號' },
|
|
{ field: 'workingUnitName', title: '報工生產單位' },
|
|
{ field: 'workingLineName', title: '報工線別' },
|
|
{ field: 'workingStationName', title: '報工站別' },
|
|
{ field: 'side', title: '面別' },
|
|
{ field: 'opCnt', title: '標準人力' },
|
|
{ field: 'ct', title: '標準工時(分)' },
|
|
{ field: 'unitNo', title: '對應途程站別' },
|
|
{ field: 'machineCnt', title: '作業機台數' },
|
|
{ field: 'createDate', title: '修改日' },
|
|
{ field: 'createUserName', title: '修改人' },
|
|
{ field: 'remark', title: '備註' },
|
|
{
|
|
field: 'action',
|
|
title: '操作',
|
|
templet: function (d) {
|
|
switch (d.action) {
|
|
case '新增': return '<span style="color: green;">新增</span>';
|
|
case '刪除': return '<span style="color: red;">刪除</span>';
|
|
case '修改': return '<span style="color: blue;">修改</span>';
|
|
default: return '<span style="color: gray;">未知</span>';
|
|
}
|
|
}
|
|
}
|
|
]];
|
|
|
|
layui.use(['form', 'layer', 'laydate'], function () {
|
|
var form = layui.form;
|
|
|
|
var toolbar = [];
|
|
|
|
$(function () {
|
|
tt();
|
|
});
|
|
|
|
function tt() {
|
|
var id = $("#workingStandardID").val();
|
|
var url = '/WHS/GetWorkingStandardWorkTimesLog?id=' + id;
|
|
|
|
table = hg.table.datatable('test', '標準工時資料', url,
|
|
{}, tableCols, toolbar, true, 'full-100', ['filter', 'print', 'exports']);
|
|
}
|
|
});
|
|
</script>
|
|
}
|