Browse Source

1.修改BAS009,修改工单属性

PTD
Marvin 3 years ago
parent
commit
98689b2fad
  1. 13
      AMESCoreStudio.Web/Controllers/BASController.cs
  2. 7
      AMESCoreStudio.Web/HttpApis/IBAS.cs
  3. 4
      AMESCoreStudio.WebApi/Controllers/AMES/ProcessTypesController.cs

13
AMESCoreStudio.Web/Controllers/BASController.cs

@ -179,6 +179,17 @@ namespace AMESCoreStudio.Web.Controllers
ViewBag.NextStationList = NextStationItems; 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] [HttpPost]
public async Task<JsonResult> GetFlowRuleJson(string unit_no) public async Task<JsonResult> GetFlowRuleJson(string unit_no)
@ -976,6 +987,7 @@ namespace AMESCoreStudio.Web.Controllers
public async Task<IActionResult> BAS009C(string id) public async Task<IActionResult> BAS009C(string id)
{ {
await GetUnitList(); await GetUnitList();
await GetProcessTypeList();
var model = new FlowRule(); var model = new FlowRule();
if (id != null) if (id != null)
@ -994,6 +1006,7 @@ namespace AMESCoreStudio.Web.Controllers
public async Task<IActionResult> BAS009UAsync(int id) public async Task<IActionResult> BAS009UAsync(int id)
{ {
await GetUnitList(); await GetUnitList();
await GetProcessTypeList();
var result = await _basApi.GetFlowRule(id); var result = await _basApi.GetFlowRule(id);

7
AMESCoreStudio.Web/HttpApis/IBAS.cs

@ -707,6 +707,11 @@ namespace AMESCoreStudio.Web
#endregion #endregion
/// <summary>
/// 獲取工單屬性資料
/// </summary>
/// <returns></returns>
[WebApiClient.Attributes.HttpGet("api/ProcessTypes")]
ITask<List<AMESCoreStudio.WebApi.Models.AMES.ProcessType>> GetProcessType();
} }
} }

4
AMESCoreStudio.WebApi/Controllers/AMES/ProcessTypesController.cs

@ -28,10 +28,10 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES
} }
/// <summary> /// <summary>
/// 獲取產品別資料 /// 獲取工單屬性資料
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
// GET: api/SystemInfoes // GET: api/ProcessTypes
[HttpGet] [HttpGet]
public async Task<ActionResult<IEnumerable<ProcessType>>> GetProcessType() public async Task<ActionResult<IEnumerable<ProcessType>>> GetProcessType()
{ {

Loading…
Cancel
Save