diff --git a/AMESCoreStudio.Web/Views/QRS/QRS018B.cshtml b/AMESCoreStudio.Web/Views/QRS/QRS018B.cshtml index 12de4ffe..06886b07 100644 --- a/AMESCoreStudio.Web/Views/QRS/QRS018B.cshtml +++ b/AMESCoreStudio.Web/Views/QRS/QRS018B.cshtml @@ -73,10 +73,10 @@ title: '測試人員' }, { - field: 'createDate', + field: 'creatE_DATE', title: '不良時間', width: 160, - templet: '
{{ layui.util.toDateString(d.createDate, "yyyy/MM/dd HH:mm:ss") }}
' + templet: '
{{ layui.util.toDateString(d.creatE_DATE, "yyyy/MM/dd HH:mm:ss") }}
' }] ]; diff --git a/AMESCoreStudio.Web/Views/QRS/QRS018C.cshtml b/AMESCoreStudio.Web/Views/QRS/QRS018C.cshtml index 56a6d7ed..c52a240c 100644 --- a/AMESCoreStudio.Web/Views/QRS/QRS018C.cshtml +++ b/AMESCoreStudio.Web/Views/QRS/QRS018C.cshtml @@ -69,10 +69,10 @@ title: '維修人員' }, { - field: 'createDate', + field: 'creatE_DATE', title: '維修日期', width: 160, - templet: '
{{ layui.util.toDateString(d.createDate, "yyyy/MM/dd HH:mm:ss") }}
' + templet: '
{{ layui.util.toDateString(d.creatE_DATE, "yyyy/MM/dd HH:mm:ss") }}
' }, { field: 'memo', diff --git a/AMESCoreStudio.Web/Views/QRS/QRS018D.cshtml b/AMESCoreStudio.Web/Views/QRS/QRS018D.cshtml index 6f4c26fc..248f4dcb 100644 --- a/AMESCoreStudio.Web/Views/QRS/QRS018D.cshtml +++ b/AMESCoreStudio.Web/Views/QRS/QRS018D.cshtml @@ -69,10 +69,10 @@ title: '維修人員' }, { - field: 'createDate', + field: 'creatE_DATE', title: '維修日期', width: 160, - templet: '
{{ layui.util.toDateString(d.createDate, "yyyy/MM/dd HH:mm:ss") }}
' + templet: '
{{ layui.util.toDateString(d.creatE_DATE, "yyyy/MM/dd HH:mm:ss") }}
' }, { field: 'memo', diff --git a/AMESCoreStudio.WebApi/Controllers/AMES/NgRepairsController.cs b/AMESCoreStudio.WebApi/Controllers/AMES/NgRepairsController.cs index ca455c7a..590e8122 100644 --- a/AMESCoreStudio.WebApi/Controllers/AMES/NgRepairsController.cs +++ b/AMESCoreStudio.WebApi/Controllers/AMES/NgRepairsController.cs @@ -833,7 +833,7 @@ where x.wip_id = y.wip_id", wipNo); public async Task> GetErrorCodeList4QRS018(string wipNo, int stationID, string ngNo) { ResultModel result = new ResultModel(); - string sql = string.Format(@"select c.barcode_no,e.station_name,b.ng_no,g.ng_reason_desc,b.location_no,b.reply_reason,f.user_name,a.create_date + string sql = string.Format(@"select distinct c.barcode_no,e.station_name,b.ng_no,g.ng_reason_desc,b.location_no,b.reply_reason,f.user_name,a.create_date from jhames.ng_info a,jhames.ng_component b,jhames.barcode_info c,jhames.wip_info d,jhames.stations e,jhsys.user_info f,jhames.ng_reason g where a.ng_id = b.ng_id and a.barcode_id = c.barcode_id and c.wip_id = d.wip_id and a.station_id = e.station_id and b.create_userid = f.user_id(+) and b.ng_no = g.ng_reason_no and d.wip_no = '{0}' and a.station_id={1} and b.ng_no='{2}'", wipNo, stationID, ngNo); @@ -963,7 +963,7 @@ and b.repair_no = g.rma_reason_no and d.wip_no = '{0}' and a.station_id={1} and public async Task> GetRepairPartNoList4QRS018(string wipNo,int stationID,string partNo) { ResultModel result = new ResultModel(); - string sql = string.Format(@"select c.barcode_no,e.station_name,b.repair_no,b.repair_desc,b.part_no,f.user_name,a.create_date,b.memo + string sql = string.Format(@"select distinct c.barcode_no,e.station_name,b.repair_no,b.repair_desc,b.part_no,f.user_name,a.create_date,b.memo from jhames.ng_info a,jhames.ng_repair b,jhames.barcode_info c,jhames.wip_info d,jhames.stations e,jhsys.user_info f where a.ng_id = b.ng_id and a.barcode_id = c.barcode_id and c.wip_id = d.wip_id and a.station_id = e.station_id and b.create_userid = f.user_id(+) and d.wip_no = '{0}' and a.station_id={1} and b.part_no='{2}'", wipNo, stationID, partNo);