diff --git a/AMESCoreStudio.Web/Controllers/BASController.cs b/AMESCoreStudio.Web/Controllers/BASController.cs index aa2d929d..b5e6e63f 100644 --- a/AMESCoreStudio.Web/Controllers/BASController.cs +++ b/AMESCoreStudio.Web/Controllers/BASController.cs @@ -20,13 +20,15 @@ namespace AMESCoreStudio.Web.Controllers public readonly IBAS _basApi; public readonly ISYS _sysApi; public readonly IPCS _pcsApi; - public BASController(ILogger logger, IBAS basApi, ISYS sysApi, IPCS pcsApi) + public readonly IJIG _jigApi; + public BASController(ILogger logger, IBAS basApi, ISYS sysApi, IPCS pcsApi, IJIG jigApi) { _logger = logger; _basApi = basApi; _sysApi = sysApi; _pcsApi = pcsApi; - } + _jigApi = jigApi; + } #region 下拉選項 @@ -217,6 +219,19 @@ namespace AMESCoreStudio.Web.Controllers } ViewBag.RuleStationList = RuleStationItems; } + + private async Task GetOutfitCommodityList() + { + var result = await _jigApi.GetOutfitCommodityInfoes(); + + var OutfitCommoditys = new List(); + for (int i = 0; i < result.Count; i++) + { + OutfitCommoditys.Add(new SelectListItem(result[i].CommodityName, result[i].CommodityNo)); + } + ViewBag.CommodityList = OutfitCommoditys; + } + public void GetUserID() { var userID = ""; @@ -2171,7 +2186,7 @@ namespace AMESCoreStudio.Web.Controllers public async Task BAS017UAsync(int id) { await GetUnitList(); - await GetRuleStationsList(); + await GetStationList(); GetUserID(); var result = await _basApi.GetMaterialStationsItem(id); @@ -2230,7 +2245,7 @@ namespace AMESCoreStudio.Web.Controllers { await GetUnitList(); - await GetRuleStationsList(); + await GetStationList(); GetUserID(); if (ModelState.IsValid) { @@ -2339,6 +2354,7 @@ namespace AMESCoreStudio.Web.Controllers { await GetUnitList(); GetUserID(); + await GetOutfitCommodityList(); return View(); } @@ -2347,7 +2363,8 @@ namespace AMESCoreStudio.Web.Controllers public async Task BAS018UAsync(int id) { await GetUnitList(); - await GetRuleStationsList(); + await GetStationList(); + await GetOutfitCommodityList(); GetUserID(); var result = await _basApi.GetMaterialOutfit(id); @@ -2385,6 +2402,7 @@ namespace AMESCoreStudio.Web.Controllers } else { + await GetOutfitCommodityList(); ModelState.AddModelError("error", result.Msg); return View("BAS018C", model); } @@ -2401,7 +2419,7 @@ namespace AMESCoreStudio.Web.Controllers public async Task BAS018USaveAsync(MaterialOutfit model) { await GetUnitList(); - await GetRuleStationsList(); + await GetStationList(); GetUserID(); if (ModelState.IsValid) @@ -2418,7 +2436,7 @@ namespace AMESCoreStudio.Web.Controllers } else { - + await GetOutfitCommodityList(); ModelState.AddModelError("error", result.Msg); return View("BAS018U", model); diff --git a/AMESCoreStudio.Web/Controllers/WHSController.cs b/AMESCoreStudio.Web/Controllers/WHSController.cs index 5351ffbe..c630648b 100644 --- a/AMESCoreStudio.Web/Controllers/WHSController.cs +++ b/AMESCoreStudio.Web/Controllers/WHSController.cs @@ -964,7 +964,7 @@ namespace AMESCoreStudio.Web.Controllers } //修改页面 [HttpGet] - public async Task WHS009UAsync(int id, string type) + public async Task WHS009UAsync(string id) { //製程單位 await GetFactoryUnitsList2(); @@ -978,13 +978,17 @@ namespace AMESCoreStudio.Web.Controllers GetClassList(); //其他部門 await GetDeptList(); - //+異常代碼 - //+判定負責人詢問如何關聯單位與人 - //+判定類別 - ViewBag.type = type; + await GetExceptionClassesList(); + + await GetExceptionCodesList(); + + var result = await _whsApi.GetExceptionWorktime(id); + var result2 = await _whsApi.GetExceptionCode(result[0].ExceptionNo); + ViewBag.ClassNo = result2[0].ExceptionClassNo; + var result3 = await _whsApi.GetExceptionClass(result2[0].ExceptionClassNo); + ViewBag.GroupNo = result3[0].ExceptionGroupNo; - var result = await _whsApi.GetSupportUser(id); if (result.Count == 0) { @@ -1041,14 +1045,17 @@ namespace AMESCoreStudio.Web.Controllers } else { - if (result.Errors.Count > 0) - { - ModelState.AddModelError(result.Errors[0].Id, result.Errors[0].Msg); - } - else - { - ModelState.AddModelError("error", result.Msg); - } + await GetExceptionClassesList(); + + await GetExceptionCodesList(); + + var result2 = await _whsApi.GetExceptionCode(model.ExceptionNo); + ViewBag.ClassNo = result2[0].ExceptionClassNo; + var result3 = await _whsApi.GetExceptionClass(result2[0].ExceptionClassNo); + ViewBag.GroupNo = result3[0].ExceptionGroupNo; + + ModelState.AddModelError("error", result.Msg); + } } return View("WHS009U", model); @@ -1632,13 +1639,13 @@ namespace AMESCoreStudio.Web.Controllers [HttpGet] public async Task WHS016UAsync(string id) { + await GetExceptionClassesList(); + await GetExceptionCodesList(); var result = await _whsApi.GetExceptionReason(id); var result2 = await _whsApi.GetExceptionCode(result[0].ExceptionNo); ViewBag.ClassNo = result2[0].ExceptionClassNo; var result3 = await _whsApi.GetExceptionClass(result2[0].ExceptionClassNo); ViewBag.GroupNo = result3[0].ExceptionGroupNo; - await GetExceptionClassesList(); - await GetExceptionCodesList(); if (result.Count == 0) { @@ -1684,9 +1691,6 @@ namespace AMESCoreStudio.Web.Controllers public async Task WHS016USaveAsync(ExceptionReason model) { - var ExceptionGroupNo = ViewBag.GroupNo ; - var ExceptionClassNo = ViewBag.ClassNo; - if (ModelState.IsValid) { IResultModel result; @@ -1703,8 +1707,12 @@ namespace AMESCoreStudio.Web.Controllers await GetExceptionClassesList(); await GetExceptionCodesList(); - ViewBag.GroupNo = ExceptionGroupNo; - ViewBag.ClassNo = ExceptionClassNo; + var result1 = await _whsApi.GetExceptionReason(model.ReasonNo); + var result2 = await _whsApi.GetExceptionCode(result1[0].ExceptionNo); + ViewBag.ClassNo = result2[0].ExceptionClassNo; + var result3 = await _whsApi.GetExceptionClass(result2[0].ExceptionClassNo); + ViewBag.GroupNo = result3[0].ExceptionGroupNo; + ModelState.AddModelError("error", result.Msg); diff --git a/AMESCoreStudio.Web/Views/BAS/BAS017.cshtml b/AMESCoreStudio.Web/Views/BAS/BAS017.cshtml index 3541ab6b..e3db46a8 100644 --- a/AMESCoreStudio.Web/Views/BAS/BAS017.cshtml +++ b/AMESCoreStudio.Web/Views/BAS/BAS017.cshtml @@ -80,11 +80,11 @@ },//MTNO001-TEST { field: 'rStation', - title: '製程單位', + title: '站別', templet: function (d) { var rStation; if (d.rStation) - rStation = d.rStation["stationDesc"]; + rStation = d.rStation["stationName"]; else rStation = "N/A"; return rStation; diff --git a/AMESCoreStudio.Web/Views/BAS/BAS017C.cshtml b/AMESCoreStudio.Web/Views/BAS/BAS017C.cshtml index 832cebf1..583687a7 100644 --- a/AMESCoreStudio.Web/Views/BAS/BAS017C.cshtml +++ b/AMESCoreStudio.Web/Views/BAS/BAS017C.cshtml @@ -111,9 +111,9 @@ }); function getRuleStationByUnitNo(data) { $.ajax({ - url: "/BAS/GetRuleStationByUnit", + url: "/BAS/GetStationses", dataType: 'json', - data: { id: data }, + //data: { id: data }, contentType: "application/json", type: 'get', success: function (result) { @@ -121,8 +121,15 @@ $("#RuleStationID").empty(); var count = 0; $.each(result.data, function (index, item) { - $('#RuleStationID').append(new Option(item.stationDesc, item.ruleStationID));//修改參數 + if (item.unitNo == data) { + $('#RuleStationID').append(new Option(item.stationName, item.stationID));//修改參數 + count = count + 1; + } }); + if (count == 0) { + $("#RuleStationID").empty(); + $('#RuleStationID').append(new Option("無選項", "")); + } } else { $("#RuleStationID").empty(); diff --git a/AMESCoreStudio.Web/Views/BAS/BAS017U.cshtml b/AMESCoreStudio.Web/Views/BAS/BAS017U.cshtml index 971afb76..5148c689 100644 --- a/AMESCoreStudio.Web/Views/BAS/BAS017U.cshtml +++ b/AMESCoreStudio.Web/Views/BAS/BAS017U.cshtml @@ -35,7 +35,7 @@
- @@ -108,7 +108,7 @@ }); function getRuleStationByUnitNo(data) { $.ajax({ - url: "/BAS/GetRuleStationByUnit", + url: "/BAS/GetStationses", dataType: 'json', data: { id: data }, contentType: "application/json", @@ -118,8 +118,15 @@ $("#RuleStationID").empty(); var count = 0; $.each(result.data, function (index, item) { - $('#RuleStationID').append(new Option(item.stationDesc, item.ruleStationID));//修改參數 + if (item.unitNo == data) { + $('#RuleStationID').append(new Option(item.stationName, item.stationID));//修改參數 + count = count + 1; + } }); + if (count == 0) { + $("#RuleStationID").empty(); + $('#RuleStationID').append(new Option("無選項", "")); + } } else { $("#RuleStationID").empty(); diff --git a/AMESCoreStudio.Web/Views/BAS/BAS018.cshtml b/AMESCoreStudio.Web/Views/BAS/BAS018.cshtml index 392a13c5..27a793ef 100644 --- a/AMESCoreStudio.Web/Views/BAS/BAS018.cshtml +++ b/AMESCoreStudio.Web/Views/BAS/BAS018.cshtml @@ -73,11 +73,11 @@ }, { field: 'rStation', - title: '流程站別', + title: '站別', templet: function (d) { var rStation; if (d.rStation) - rStation = d.rStation["stationDesc"]; + rStation = d.rStation["stationName"]; else rStation = "N/A"; return rStation; diff --git a/AMESCoreStudio.Web/Views/BAS/BAS018C.cshtml b/AMESCoreStudio.Web/Views/BAS/BAS018C.cshtml index 223ca2b8..755b871e 100644 --- a/AMESCoreStudio.Web/Views/BAS/BAS018C.cshtml +++ b/AMESCoreStudio.Web/Views/BAS/BAS018C.cshtml @@ -27,6 +27,13 @@
+
+ + + +
@@ -101,7 +108,7 @@ }); function getRuleStationByUnitNo(data) { $.ajax({ - url: "/BAS/GetRuleStationByUnit", + url: "/BAS/GetStationsByUnit", dataType: 'json', data: { id: data }, contentType: "application/json", @@ -111,8 +118,15 @@ $("#RuleStationID").empty(); var count = 0; $.each(result.data, function (index, item) { - $('#RuleStationID').append(new Option(item.stationDesc, item.ruleStationID));//修改參數 + if (item.unitNo == data) { + $('#RuleStationID').append(new Option(item.stationName, item.stationID));//修改參數 + count = count + 1; + } }); + if (count == 0) { + $("#RuleStationID").empty(); + $('#RuleStationID').append(new Option("無選項", "")); + } } else { $("#RuleStationID").empty(); diff --git a/AMESCoreStudio.Web/Views/BAS/BAS018U.cshtml b/AMESCoreStudio.Web/Views/BAS/BAS018U.cshtml index 327dc98c..aa064391 100644 --- a/AMESCoreStudio.Web/Views/BAS/BAS018U.cshtml +++ b/AMESCoreStudio.Web/Views/BAS/BAS018U.cshtml @@ -26,6 +26,13 @@
+
+ + + +
@@ -40,7 +47,7 @@
- @@ -98,7 +105,7 @@ }); function getRuleStationByUnitNo(data) { $.ajax({ - url: "/BAS/GetRuleStationByUnit", + url: "/BAS/GetStationses", dataType: 'json', data: { id: data }, contentType: "application/json", @@ -108,8 +115,15 @@ $("#RuleStationID").empty(); var count = 0; $.each(result.data, function (index, item) { - $('#RuleStationID').append(new Option(item.stationDesc, item.ruleStationID));//修改參數 + if (item.unitNo == data) { + $('#RuleStationID').append(new Option(item.stationName, item.stationID));//修改參數 + count = count + 1; + } }); + if (count == 0) { + $("#RuleStationID").empty(); + $('#RuleStationID').append(new Option("無選項", "")); + } } else { $("#RuleStationID").empty(); diff --git a/AMESCoreStudio.Web/Views/WHS/WHS006C.cshtml b/AMESCoreStudio.Web/Views/WHS/WHS006C.cshtml index 77a40c97..d5381976 100644 --- a/AMESCoreStudio.Web/Views/WHS/WHS006C.cshtml +++ b/AMESCoreStudio.Web/Views/WHS/WHS006C.cshtml @@ -20,24 +20,24 @@
- +
- +
- -
- - diff --git a/AMESCoreStudio.Web/Views/WHS/WHS006U.cshtml b/AMESCoreStudio.Web/Views/WHS/WHS006U.cshtml index 20acf940..a4d8afd2 100644 --- a/AMESCoreStudio.Web/Views/WHS/WHS006U.cshtml +++ b/AMESCoreStudio.Web/Views/WHS/WHS006U.cshtml @@ -21,25 +21,25 @@
- +
- +
- -
- - + +
diff --git a/AMESCoreStudio.Web/Views/WHS/WHS009.cshtml b/AMESCoreStudio.Web/Views/WHS/WHS009.cshtml index 512b40df..7c0a8d8e 100644 --- a/AMESCoreStudio.Web/Views/WHS/WHS009.cshtml +++ b/AMESCoreStudio.Web/Views/WHS/WHS009.cshtml @@ -209,14 +209,14 @@ ]; //通过行tool编辑,lay-event="edit" function edit(obj) { - if (obj.data.classID) { - hg.open('修改異常工時', '/WHS/WHS009U/' + obj.data.exceptionID, 640, 320); + if (obj.data.exceptionID) { + hg.open('修改異常工時', '/WHS/WHS009U/' + obj.data.exceptionID, 480,480); } } //通过行tool删除,lay-event="del" function del(obj) { if (obj.data.classID) { - hg.confirm("異常工時:" + obj.data.exceptionID + ",确定要删除吗?", function () { + hg.confirm("異常工時:" + obj.data.exceptionID + ",確定要删除嗎?", function () { $.ajax({ url: '/WHS/WHS009D', data: { id: obj.data.exceptionID }, @@ -231,7 +231,7 @@ } }, error: function () { - hg.msg("网络请求失败!"); + hg.msg("網路請求失敗!"); } }); }); diff --git a/AMESCoreStudio.Web/Views/WHS/WHS009C.cshtml b/AMESCoreStudio.Web/Views/WHS/WHS009C.cshtml index 9fb27c7b..2f7406fe 100644 --- a/AMESCoreStudio.Web/Views/WHS/WHS009C.cshtml +++ b/AMESCoreStudio.Web/Views/WHS/WHS009C.cshtml @@ -323,7 +323,7 @@ var count = 0; $.each(result.data, function (index, item) { if (item.exceptionClassNo == data) { //修改等號 - $('#ExceptionNo').append(new Option(item.exceptionDescCh, item.exceptionNo));//修改參數 + $('#ExceptionNo').append(new Option(item.exceptionDescCH, item.exceptionNo));//修改參數 count = count + 1; } }); diff --git a/AMESCoreStudio.Web/Views/WHS/WHS009U.cshtml b/AMESCoreStudio.Web/Views/WHS/WHS009U.cshtml index b0ad9a94..9c3b7760 100644 --- a/AMESCoreStudio.Web/Views/WHS/WHS009U.cshtml +++ b/AMESCoreStudio.Web/Views/WHS/WHS009U.cshtml @@ -68,13 +68,13 @@
-
- @@ -166,9 +166,11 @@ @{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); await Html.RenderPartialAsync("_FileinputScriptsPartial"); } - + } diff --git a/AMESCoreStudio.Web/Views/WHS/WHS015U.cshtml b/AMESCoreStudio.Web/Views/WHS/WHS015U.cshtml index 626ec484..c4defe79 100644 --- a/AMESCoreStudio.Web/Views/WHS/WHS015U.cshtml +++ b/AMESCoreStudio.Web/Views/WHS/WHS015U.cshtml @@ -75,7 +75,6 @@ parent.hg.msg(error); } }); - $("#ExceptionType").change(function () { var data = $("#ExceptionType").val(); getExceptionClassByType(data); diff --git a/AMESCoreStudio.Web/Views/WHS/WHS016.cshtml b/AMESCoreStudio.Web/Views/WHS/WHS016.cshtml index 75067566..6592175d 100644 --- a/AMESCoreStudio.Web/Views/WHS/WHS016.cshtml +++ b/AMESCoreStudio.Web/Views/WHS/WHS016.cshtml @@ -197,7 +197,7 @@ //通过行tool编辑,lay-event="edit" function edit(obj) { if (obj.data.reasonNo) { - hg.open('修改異常工時原因', '/WHS/WHS016U/' + obj.data.reasonNo, 640, 320); + hg.open('修改異常工時原因', '/WHS/WHS016U/' + obj.data.reasonNo, 480, 480); } } @@ -230,7 +230,7 @@ layuiicon: '', class: 'layui-btn-normal', handler: function () { - hg.open('新增異常工時原因', '/WHS/WHS016C', 640, 320); + hg.open('新增異常工時原因', '/WHS/WHS016C', 480, 480); } } diff --git a/AMESCoreStudio.Web/Views/WHS/WHS016U.cshtml b/AMESCoreStudio.Web/Views/WHS/WHS016U.cshtml index d6704e42..1f87fd5c 100644 --- a/AMESCoreStudio.Web/Views/WHS/WHS016U.cshtml +++ b/AMESCoreStudio.Web/Views/WHS/WHS016U.cshtml @@ -19,11 +19,14 @@ - + + + +
- @@ -31,7 +34,7 @@
-
@@ -42,6 +45,11 @@
+
+ + + +
@@ -70,15 +78,18 @@ @{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); await Html.RenderPartialAsync("_FileinputScriptsPartial"); } - + } diff --git a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.Views.dll b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.Views.dll index e07d7ca3..17294dac 100644 Binary files a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.Views.dll and b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.Views.dll differ diff --git a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.Views.pdb b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.Views.pdb index ab88a41c..cd811938 100644 Binary files a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.Views.pdb and b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.Views.pdb differ diff --git a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.dll b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.dll index 4fa48ab7..3ca85de2 100644 Binary files a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.dll and b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.dll differ diff --git a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.pdb b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.pdb index 8606439a..fb32877f 100644 Binary files a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.pdb and b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.Web.pdb differ diff --git a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.Views.dll b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.Views.dll index 725706cd..3ea63244 100644 Binary files a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.Views.dll and b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.Views.dll differ diff --git a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.Views.pdb b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.Views.pdb index 9767e4e6..52b43752 100644 Binary files a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.Views.pdb and b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.Views.pdb differ diff --git a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.dll b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.dll index 8a85a76c..88fa4265 100644 Binary files a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.dll and b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.dll differ diff --git a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.pdb b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.pdb index 3a094aec..92f5506e 100644 Binary files a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.pdb and b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.pdb differ diff --git a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.xml b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.xml index 5b12ec40..9baa5347 100644 --- a/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.xml +++ b/AMESCoreStudio.Web/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.xml @@ -4675,7 +4675,7 @@ 料號 0:找不到 - + 取得上一個作業站RuleStationID @@ -4683,6 +4683,7 @@ BarCodeID 目前作業站ID 工單流程ID + 目前作業站ID(RuleStation) true:false @@ -10912,6 +10913,11 @@ 料號ID + + + 治具種類NO + + 治具NO @@ -10924,7 +10930,7 @@ - 流程站別編號 + 站別 @@ -11044,7 +11050,7 @@ - 流程站別編號 + 站別 diff --git a/AMESCoreStudio.WebApi/Models/AMES/MaterialOutfit.cs b/AMESCoreStudio.WebApi/Models/AMES/MaterialOutfit.cs index a8b610dd..4cdc14cb 100644 --- a/AMESCoreStudio.WebApi/Models/AMES/MaterialOutfit.cs +++ b/AMESCoreStudio.WebApi/Models/AMES/MaterialOutfit.cs @@ -42,11 +42,20 @@ namespace AMESCoreStudio.WebApi.Models.AMES public int ItemID { get; set; } /// - /// 治具NO + /// 治具種類NO /// [DataMember] [Required(ErrorMessage = "{0},不能空白")] - [Display(Name = "治具代碼")] + [Display(Name = "治具種類")] + [Column("COMMODITY_NO")] + [StringLength(15)] + public string CommodityNo { get; set; } + + /// + /// 治具NO + /// + [DataMember] + [Display(Name = "治具編碼")] [Column("OUTFIT_NO")] [StringLength(15)] public string OutfitNo { get; set; } @@ -61,10 +70,10 @@ namespace AMESCoreStudio.WebApi.Models.AMES public string StationType { get; set; } /// - /// 流程站別編號 + /// 站別 /// [Column("RULE_STATION_ID")] - [Display(Name = "流程站別")] + [Display(Name = "站別")] [DataMember] [Required] public int RuleStationID { get; set; } @@ -117,7 +126,7 @@ namespace AMESCoreStudio.WebApi.Models.AMES /// 製程單位主檔 /// [ForeignKey("RuleStationID")] - public virtual AMESCoreStudio.WebApi.Models.BAS.RuleStation RStation { get; set; } + public virtual AMESCoreStudio.WebApi.Models.BAS.Stations RStation { get; set; } /// /// 製程單位主檔 diff --git a/AMESCoreStudio.WebApi/Models/AMES/MaterialStationsItem.cs b/AMESCoreStudio.WebApi/Models/AMES/MaterialStationsItem.cs index 896f5c32..5de78c52 100644 --- a/AMESCoreStudio.WebApi/Models/AMES/MaterialStationsItem.cs +++ b/AMESCoreStudio.WebApi/Models/AMES/MaterialStationsItem.cs @@ -42,12 +42,12 @@ namespace AMESCoreStudio.WebApi.Models.AMES public string UnitNo { get; set; } /// - /// 流程站別編號 + /// 站別 /// [Column("RULE_STATION_ID")] [DataMember] [Required] - [Display(Name = "流程站別編號")] + [Display(Name = "站別")] public int RuleStationID { get; set; } /// @@ -138,6 +138,6 @@ namespace AMESCoreStudio.WebApi.Models.AMES /// 製程單位主檔 /// [ForeignKey("RuleStationID")] - public virtual AMESCoreStudio.WebApi.Models.BAS.RuleStation RStation { get; set; } + public virtual AMESCoreStudio.WebApi.Models.BAS.Stations RStation { get; set; } } } diff --git a/AMESCoreStudio.WebApi/Models/AMES/OutfitVarityInfo.cs b/AMESCoreStudio.WebApi/Models/AMES/OutfitVarityInfo.cs index be3f8d20..1e279488 100644 --- a/AMESCoreStudio.WebApi/Models/AMES/OutfitVarityInfo.cs +++ b/AMESCoreStudio.WebApi/Models/AMES/OutfitVarityInfo.cs @@ -35,7 +35,7 @@ namespace AMESCoreStudio.WebApi.Models.AMES /// 規格代碼 /// [Column("VARIETY_NO")] - [StringLength(2)] + [StringLength(5)] [DataMember] [Required] [Display(Name = "規格代碼")] diff --git a/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.Views.dll b/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.Views.dll index 725706cd..3ea63244 100644 Binary files a/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.Views.dll and b/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.Views.dll differ diff --git a/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.Views.pdb b/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.Views.pdb index 9767e4e6..52b43752 100644 Binary files a/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.Views.pdb and b/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.Views.pdb differ diff --git a/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.dll b/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.dll index 8a85a76c..88fa4265 100644 Binary files a/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.dll and b/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.dll differ diff --git a/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.pdb b/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.pdb index 3a094aec..92f5506e 100644 Binary files a/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.pdb and b/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.pdb differ diff --git a/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.xml b/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.xml index 5b12ec40..9baa5347 100644 --- a/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.xml +++ b/AMESCoreStudio.WebApi/bin/Debug/netcoreapp3.1/AMESCoreStudio.WebApi.xml @@ -4675,7 +4675,7 @@ 料號 0:找不到 - + 取得上一個作業站RuleStationID @@ -4683,6 +4683,7 @@ BarCodeID 目前作業站ID 工單流程ID + 目前作業站ID(RuleStation) true:false @@ -10912,6 +10913,11 @@ 料號ID + + + 治具種類NO + + 治具NO @@ -10924,7 +10930,7 @@ - 流程站別編號 + 站別 @@ -11044,7 +11050,7 @@ - 流程站別編號 + 站別