10 changed files with 697 additions and 178 deletions
@ -0,0 +1,53 @@ |
|||||
|
@{ |
||||
|
ViewData["Title"] = "在製分布圖-過站PASS條碼資料"; |
||||
|
Layout = "~/Views/Shared/_AMESLayout.cshtml"; |
||||
|
} |
||||
|
|
||||
|
<div class="layui-card"> |
||||
|
<div class="layui-card-body"> |
||||
|
<input id="wip_id" name="wip_id" value="@ViewBag.WIP_ID" type="hidden" /> |
||||
|
<input id="rule_station_id" name="rule_station_id" value="@ViewBag.RULE_STATION_ID" type="hidden" /> |
||||
|
<table class="layui-hide" id="test" lay-filter="test"></table> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
@section Scripts{ |
||||
|
<script type="text/javascript"> |
||||
|
//监听表单提交事件 |
||||
|
hg.form.onsubmit('querysubmit', function (data) { |
||||
|
table && table.reload(data); |
||||
|
}); |
||||
|
var tableCols = [[ |
||||
|
{ |
||||
|
field: 'barcodeNo', |
||||
|
width: 200, |
||||
|
title: '條碼', |
||||
|
sort: true |
||||
|
}, |
||||
|
{ |
||||
|
field: 'lineDesc', |
||||
|
width: 80, |
||||
|
title: '線別名稱' |
||||
|
}, |
||||
|
{ |
||||
|
field: 'ruleStatus', |
||||
|
minWidth: 60, |
||||
|
title: '狀態' |
||||
|
}, |
||||
|
{ |
||||
|
field: 'inputDate', |
||||
|
title: '過站時間', |
||||
|
templet: '<div>{{ layui.util.toDateString(d.inputDate, "yyyy/MM/dd HH:mm:ss") }}</div>' |
||||
|
}, |
||||
|
{ |
||||
|
field: 'userName', |
||||
|
title: '作業員', |
||||
|
width: 100, |
||||
|
sort: true |
||||
|
}] |
||||
|
]; |
||||
|
|
||||
|
//基本数据表格 |
||||
|
var table = hg.table.datatable('test', '過站條碼資料', '/PCS/PCS022VQuery?wipID=' + wip_id.value +'&ruleStationID='+rule_station_id.value, {}, tableCols, toolbar, true, 'full-100', ['filter', 'print', 'exports']); |
||||
|
</script> |
||||
|
} |
@ -0,0 +1,104 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Threading.Tasks; |
||||
|
|
||||
|
|
||||
|
namespace AMESCoreStudio.WebApi.Models.AMES |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 條碼資料 DTO
|
||||
|
/// </summary>
|
||||
|
|
||||
|
public class BarcodeInfoDto |
||||
|
{ |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 内部條碼ID
|
||||
|
/// </summary>
|
||||
|
public int BarcodeID { get; set; } |
||||
|
|
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 内部條碼
|
||||
|
/// </summary>
|
||||
|
public string Barcode { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工單ID
|
||||
|
/// </summary>
|
||||
|
public int WipID { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工單號碼
|
||||
|
/// </summary>
|
||||
|
public string WipNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 料號
|
||||
|
/// </summary>
|
||||
|
|
||||
|
public string ItemNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工單數量
|
||||
|
/// </summary>
|
||||
|
|
||||
|
public int WipQty { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 流程站
|
||||
|
/// </summary>
|
||||
|
public string StationName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 流程站ID
|
||||
|
/// </summary>
|
||||
|
public int RuleStationID { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 生產單位
|
||||
|
/// </summary>
|
||||
|
public string Unit { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 生產單位名稱
|
||||
|
/// </summary>
|
||||
|
public string UnitName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 線別ID
|
||||
|
/// </summary>
|
||||
|
|
||||
|
public int LineID { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 線別名稱
|
||||
|
/// </summary>
|
||||
|
|
||||
|
public string LineName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 數量
|
||||
|
/// </summary>
|
||||
|
public int InputQty { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 建立者Name
|
||||
|
/// </summary>
|
||||
|
|
||||
|
public string CreateUser { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 建立時間
|
||||
|
/// </summary>
|
||||
|
|
||||
|
public DateTime CreateDate { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 修改時間
|
||||
|
/// </summary>
|
||||
|
public DateTime UpdateDate { get; set; } |
||||
|
|
||||
|
} |
||||
|
} |
Loading…
Reference in new issue