| | |
| | | /// </summary> |
| | | public string PipeSpecCode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 分拣托盘号 |
| | | /// </summary> |
| | | public string ContinerNo { get; set; } |
| | | |
| | | |
| | | } |
| | | } |
| | |
| | | var materialProvider = _serviceProvider.GetRequiredService<IMaterialProvider>(); |
| | | var workPlanAppService = _serviceProvider.GetRequiredService<IWorkPlanAppService>(); |
| | | |
| | | Dictionary<string, object?> keyValuePairs = new Dictionary<string, object?> |
| | | { |
| | | { "分拣托盘号","托盘1"}, |
| | | { "分拣方向", "短管装配"}, |
| | | { "分拣人", myCurrentUser.UserAccount } |
| | | }; |
| | | _variableService.WriteValueAsync(keyValuePairs); |
| | | //Dictionary<string, object?> keyValuePairs = new Dictionary<string, object?> |
| | | // { |
| | | // { "分拣托盘号","托盘1"}, |
| | | // { "分拣方向", "短管装配"}, |
| | | // { "分拣人", myCurrentUser.UserAccount } |
| | | // }; |
| | | //_variableService.WriteValueAsync(keyValuePairs); |
| | | |
| | | //根据工序名获取工序对象 |
| | | var workSection = await _workSectionManager.GetByNameAsync("分拣工序"); |
| | |
| | | { |
| | | _value = "短管装配"; |
| | | } |
| | | if (item.Name == "分拣托盘号") |
| | | { |
| | | _value = input.ContinerNo; |
| | | } |
| | | if (item.Name == "分拣人") |
| | | { |
| | | _value = myCurrentUser.UserAccount; |
| | | } |
| | | //item.Key |
| | | TraceParamModel traceParamModel = new TraceParamModel() |
| | | { |
| | |
| | | /// </summary> |
| | | /// <param name="input">输入.</param> |
| | | /// <returns></returns> |
| | | //[Authorize] |
| | | [Authorize] |
| | | [HttpPost] |
| | | public virtual Task<CallMaterialOrderDto> CreateAsync(CallMaterialOrderCreateDto input) |
| | | { |
| | |
| | | /// <param name="id">标识符.</param> |
| | | /// <param name="input">输入.</param> |
| | | /// <returns></returns> |
| | | //[Authorize] |
| | | [Authorize] |
| | | [HttpPut] |
| | | [Route("{id}")] |
| | | public virtual Task<CallMaterialOrderDto> UpdateAsync(Guid id, CallMaterialOrderUpdateDto input) |
| | |
| | | /// </summary> |
| | | /// <param name="ids">Id集合.</param> |
| | | /// <returns></returns> |
| | | //[Authorize] |
| | | [Authorize] |
| | | [HttpPost] |
| | | [Route("Clone")] |
| | | public virtual Task<List<CallMaterialOrderDto>> CloneAsync([FromBody] IEnumerable<Guid> ids) |
| | |
| | | /// </summary> |
| | | /// <param name="id">标识符.</param> |
| | | /// <returns></returns> |
| | | //[Authorize] |
| | | [Authorize] |
| | | [HttpDelete] |
| | | [Route("{id}")] |
| | | public virtual Task DeleteAsync(Guid id) |
| | |
| | | /// </summary> |
| | | /// <param name="ids">The ids.</param> |
| | | /// <returns></returns> |
| | | //[Authorize] |
| | | [Authorize] |
| | | [HttpDelete] |
| | | public virtual Task DeleteAsync([FromBody] IEnumerable<Guid> ids) |
| | | { |
| | |
| | | /// </summary> |
| | | /// <param name="input">输入.</param> |
| | | /// <returns></returns> |
| | | //[Authorize] |
| | | [Authorize] |
| | | [HttpPost] |
| | | public virtual Task<CallMaterialOrderRecordDto> CreateAsync(CallMaterialOrderRecordCreateDto input) |
| | | { |
| | |
| | | /// <param name="id">标识符.</param> |
| | | /// <param name="input">输入.</param> |
| | | /// <returns></returns> |
| | | //[Authorize] |
| | | [Authorize] |
| | | [HttpPut] |
| | | [Route("{id}")] |
| | | public virtual Task<CallMaterialOrderRecordDto> UpdateAsync(Guid id, CallMaterialOrderRecordUpdateDto input) |
| | |
| | | /// </summary> |
| | | /// <param name="ids">Id集合.</param> |
| | | /// <returns></returns> |
| | | //[Authorize] |
| | | [Authorize] |
| | | [HttpPost] |
| | | [Route("Clone")] |
| | | public virtual Task<List<CallMaterialOrderRecordDto>> CloneAsync([FromBody] IEnumerable<Guid> ids) |
| | |
| | | /// </summary> |
| | | /// <param name="id">标识符.</param> |
| | | /// <returns></returns> |
| | | //[Authorize] |
| | | [Authorize] |
| | | [HttpDelete] |
| | | [Route("{id}")] |
| | | public virtual Task DeleteAsync(Guid id) |
| | |
| | | /// </summary> |
| | | /// <param name="ids">The ids.</param> |
| | | /// <returns></returns> |
| | | //[Authorize] |
| | | [Authorize] |
| | | [HttpDelete] |
| | | public virtual Task DeleteAsync([FromBody] IEnumerable<Guid> ids) |
| | | { |
| | |
| | | /// </summary> |
| | | /// <param name="input">输入.</param> |
| | | /// <returns></returns> |
| | | //[Authorize] |
| | | [Authorize] |
| | | [HttpPost] |
| | | public virtual Task<WorkPlanDto> CreateAsync(WorkPlanCreateDto input) |
| | | { |
| | |
| | | /// <param name="id">标识符.</param> |
| | | /// <param name="input">输入.</param> |
| | | /// <returns></returns> |
| | | //[Authorize] |
| | | [Authorize] |
| | | [HttpPut] |
| | | [Route("{id}")] |
| | | public virtual Task<WorkPlanDto> UpdateAsync(Guid id, WorkPlanUpdateDto input) |
| | |
| | | /// </summary> |
| | | /// <param name="ids">Id集合.</param> |
| | | /// <returns></returns> |
| | | //[Authorize] |
| | | [Authorize] |
| | | [HttpPost] |
| | | [Route("Clone")] |
| | | public virtual Task<List<WorkPlanDto>> CloneAsync([FromBody] IEnumerable<Guid> ids) |
| | |
| | | /// </summary> |
| | | /// <param name="id">标识符.</param> |
| | | /// <returns></returns> |
| | | //[Authorize] |
| | | [Authorize] |
| | | [HttpDelete] |
| | | [Route("{id}")] |
| | | public virtual Task DeleteAsync(Guid id) |
| | |
| | | /// </summary> |
| | | /// <param name="ids">The ids.</param> |
| | | /// <returns></returns> |
| | | //[Authorize] |
| | | [Authorize] |
| | | [HttpDelete] |
| | | public virtual Task DeleteAsync([FromBody] IEnumerable<Guid> ids) |
| | | { |
| | |
| | | using CMS.Plugin.PipeLineLems.Application.Contracts.Dtos.WorkPlan; |
| | | using CMS.Plugin.PipeLineLems.Application.Contracts.Services; |
| | | using CmsQueryExtensions.Entitys; |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using System.Reflection; |
| | | |
| | |
| | | /// </summary> |
| | | /// <param name="input">标识符.</param> |
| | | /// <returns></returns> |
| | | [Authorize] |
| | | [HttpPost] |
| | | [Route("Pick")] |
| | | public virtual async Task<MesOrderResponse> Pick([FromBody] PickInput input) |