| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Reflection.Metadata; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using Masuit.Tools; |
| | | using WIDESEA_Core.Const; |
| | | using WIDESEA_Core.DB.Models; |
| | | using WIDESEA_DTO.MOM; |
| | | using WIDESEA_DTO.WMS; |
| | | using WIDESEA_DTO; |
| | | using WIDESEA_Model.Models; |
| | | using WIDESEA_Repository; |
| | | using WIDESEAWCS_BasicInfoRepository; |
| | | using Masuit.Tools; |
| | | |
| | | namespace WIDESEA_StorageTaskServices; |
| | | |
| | | |
| | | public partial class Dt_TaskService : ServiceBase<Dt_Task, IDt_TaskRepository>, IDt_TaskService |
| | | { |
| | |
| | | { |
| | | case "CH01": |
| | | return "CH001"; |
| | | |
| | | case "JZ01": |
| | | return "JZ001"; |
| | | |
| | | case "GW01": |
| | | return "GWSC1"; |
| | | |
| | | case "CW01": |
| | | return "CWSC1"; |
| | | |
| | | case "CW02": |
| | | return "CWSC2"; |
| | | |
| | | default: |
| | | return string.Empty; |
| | | } |
| | |
| | | /// <summary> |
| | | /// 电芯NG送至NG口 |
| | | /// </summary> |
| | | private async Task<WebResponseContent> HandleErrorCells(RequestTaskDto input, Dt_AreaInfo area, List<SerialNoDto> serialNosError) |
| | | private async Task<WebResponseContent> HandleErrorCells(RequestTaskDto input, Dt_AreaInfo area, List<SerialNoDto> serialNosError = null) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | // TODO 创建任务送至NG排出口 |
| | |
| | | { |
| | | throw new Exception("未找到NG入库站台配置"); |
| | | } |
| | | List<string> NGStation = stationManagers.Roadway.Split(',').ToList(); |
| | | if (NGStation.Count <= 0) |
| | | { |
| | | NGStation = stationManagers.stationNGChildCode.Split(',').ToList(); |
| | | } |
| | | //List<string> NGStation = stationManagers.Roadway.Split(',').ToList(); |
| | | //if (NGStation.Count <= 0) |
| | | //{ |
| | | // NGStation = stationManagers.stationNGChildCode.Split(',').ToList(); |
| | | //} |
| | | List<string> NGStation = stationManagers.stationNGChildCode.Split(',').ToList(); |
| | | content = await CreateNewTask(input, NGStation, 2); |
| | | return content.Error("存在异常电芯"); |
| | | } |
| | |
| | | { |
| | | return await _areaInfoRepository.QueryFirstAsync(x => x.Spare1.Contains(position)); |
| | | } |
| | | } |
| | | } |