|
|
@ -179,6 +179,17 @@ namespace AMESCoreStudio.Web.Controllers |
|
|
|
ViewBag.NextStationList = NextStationItems; |
|
|
|
} |
|
|
|
|
|
|
|
private async Task GetProcessTypeList() |
|
|
|
{ |
|
|
|
var result = await _basApi.GetProcessType(); |
|
|
|
|
|
|
|
var ProcessTypeItems = new List<SelectListItem>(); |
|
|
|
for (int i = 0; i < result.Count; i++) |
|
|
|
{ |
|
|
|
ProcessTypeItems.Add(new SelectListItem(result[i].ProcessTypeName, result[i].ProcessTypeNO.ToString())); |
|
|
|
} |
|
|
|
ViewBag.ProcessTypeList = ProcessTypeItems; |
|
|
|
} |
|
|
|
|
|
|
|
[HttpPost] |
|
|
|
public async Task<JsonResult> GetFlowRuleJson(string unit_no) |
|
|
@ -976,6 +987,7 @@ namespace AMESCoreStudio.Web.Controllers |
|
|
|
public async Task<IActionResult> BAS009C(string id) |
|
|
|
{ |
|
|
|
await GetUnitList(); |
|
|
|
await GetProcessTypeList(); |
|
|
|
|
|
|
|
var model = new FlowRule(); |
|
|
|
if (id != null) |
|
|
@ -994,6 +1006,7 @@ namespace AMESCoreStudio.Web.Controllers |
|
|
|
public async Task<IActionResult> BAS009UAsync(int id) |
|
|
|
{ |
|
|
|
await GetUnitList(); |
|
|
|
await GetProcessTypeList(); |
|
|
|
|
|
|
|
var result = await _basApi.GetFlowRule(id); |
|
|
|
|
|
|
|