|
@ -1274,11 +1274,20 @@ namespace AMESCoreStudio.Web.Controllers |
|
|
await GetStationList(); |
|
|
await GetStationList(); |
|
|
await GetMFGTypeList(); |
|
|
await GetMFGTypeList(); |
|
|
|
|
|
|
|
|
|
|
|
ViewBag.StartDate = System.DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd"); |
|
|
|
|
|
ViewBag.EndDate = System.DateTime.Now.ToString("yyyy-MM-dd"); |
|
|
|
|
|
|
|
|
return View(); |
|
|
return View(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public async Task<IActionResult> QRS010QueryAsync(string unitNo, string lineID, string stationID, string mfgTypeNo, string wipNO, string itemNO, string dateStart, string dateEnd, string custType, int page = 0, int limit = 10) |
|
|
public async Task<IActionResult> QRS010QueryAsync(string unitNo, string lineID, string stationID, string mfgTypeNo, string wipNO, string itemNO, string dateStart, string dateEnd, string custType, int page = 0, int limit = 10) |
|
|
{ |
|
|
{ |
|
|
|
|
|
if (unitNo == null && lineID == null && stationID == null && mfgTypeNo == null && wipNO == null && itemNO == null && dateStart == null && dateEnd == null && custType == null) |
|
|
|
|
|
{ |
|
|
|
|
|
dateStart = System.DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd"); |
|
|
|
|
|
dateEnd = System.DateTime.Now.ToString("yyyy-MM-dd"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
var result = await _pcsApi.GetYieldData4QRS010(unitNo, lineID, stationID, mfgTypeNo, wipNO, itemNO, dateStart, dateEnd, custType, page, limit); |
|
|
var result = await _pcsApi.GetYieldData4QRS010(unitNo, lineID, stationID, mfgTypeNo, wipNO, itemNO, dateStart, dateEnd, custType, page, limit); |
|
|
|
|
|
|
|
|
var query = new QRS010ViewModel(); |
|
|
var query = new QRS010ViewModel(); |
|
|