using Microsoft.AspNetCore.Mvc; using Rhea.Common; using System.Collections.Generic; using System.Threading.Tasks; using Tiger.IBusiness; using Tiger.Model; namespace Tiger.Api.Controllers.MES { public partial class SMTController: ControllerBase { /// /// 获取未上料列表 /// /// /// [HttpPost] [Route("api/[controller]/[action]")] public async Task GetNotLoadingMaterial([FromBody] ApiAction action) { ApiAction response = new(); try { response = response.GetResponse(await DI.Resolve().GetNotLoadingMaterial(action.Data)); } catch (System.Exception ex) { response = response.GetResponse().CatchExceptionWithLog(ex); } return Ok(response); } /// /// 导入工单料站表 /// /// /// [HttpPost] [Route("api/[controller]/[action]")] public async Task ValidateTableImport([FromBody]List action) { ApiAction response = new(); try { response = response.GetResponse(await DI.Resolve().ValidateTableImport(action)); } catch (System.Exception ex) { response = response.GetResponse().CatchExceptionWithLog(ex); } return Ok(response); } /// /// 保存导入工单料站表 /// /// /// [HttpPost] [Route("api/[controller]/[action]")] public async Task SaveValidateTableImport([FromBody] List action) { ApiAction response = new(); try { response = response.GetResponse(await DI.Resolve().SaveValidateTableImport(action)); } catch (System.Exception ex) { response = response.GetResponse().CatchExceptionWithLog(ex); } return Ok(response); } } }