Merge branch 'master' of http://115.159.85.185:8098/r/HuaYiZhongHeng/BaiBuLiKu
| | |
| | | public string? ProductionLine { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 备 注: 当前工序 |
| | | /// 默认值: |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "ProcessCode", Length = 255, IsNullable = true)] |
| | | public string? ProcessCode { get; set; } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 任务执行明细 |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "任务执行明细")] |
| | |
| | | { |
| | | NGStation = efg.Select(x => x.stationNGChildCode).ToList(); |
| | | } |
| | | content = await CreateNewTask(input, result.ProductionLine, NGStation, 2); |
| | | content = await CreateNewTask(input, result.ProductionLine, result.ProcessCode, NGStation, 2); |
| | | return content.Error("存在异常电芯"); |
| | | } |
| | | |
| | |
| | | { |
| | | // TODO 送至包装 |
| | | List<string> strings = stationManagers.Where(x => x.stationType == 0).Select(x => x.Roadway).ToList(); |
| | | content = await CreateNewTask(input, result.ProductionLine, strings, 3); |
| | | content = await CreateNewTask(input, result.ProductionLine, result.ProcessCode, strings, 3); |
| | | return content; |
| | | } |
| | | else |
| | |
| | | var config = _configService.GetByConfigKey("SYS_InStacker", "CW3InStacker"); |
| | | var strings = config.ConfigValue.Split(',').ToList(); |
| | | // TODO 入库 |
| | | content = await CreateNewTask(input, result.ProductionLine, strings); |
| | | content = await CreateNewTask(input, result.ProductionLine, result.ProcessCode, strings); |
| | | if (content.Status) |
| | | await _boxingInfoRepository.AddDataNavAsync(boxing); |
| | | } |
| | |
| | | List<string> strings = stationManagers.Roadway.Split(',').ToList(); |
| | | Console.WriteLine(strings.ToJsonString() + "b-----------------------"); |
| | | //// 调用CreateNewTask方法,创建新任务 |
| | | content = await CreateNewTask(input, result.ProductionLine, strings); |
| | | content = await CreateNewTask(input, result.ProductionLine,result.ProcessCode, strings); |
| | | if (content.Status) |
| | | { |
| | | var isBox = await _boxingInfoRepository.AddDataNavAsync(boxing); |
| | |
| | | CreateDate = DateTime.Now, |
| | | TaskId = 0, |
| | | ProductionLine = stock.ProductionLine, |
| | | ProcessCode = stock.ProcessCode, |
| | | }; |
| | | |
| | | var taskDTO = CreateTaskDTO(taskNew); |
| | |
| | | } |
| | | List<string> strings = stationManagers.Roadway.Split(',').ToList(); |
| | | |
| | | return await CreateNewTask(input, result.ProductionLine, strings, 1); |
| | | return await CreateNewTask(input, result.ProductionLine, result.ProcessCode,strings, 1); |
| | | } |
| | | catch (Exception) |
| | | { |
| | |
| | | CreateDate = DateTime.Now, |
| | | TaskId = 0, |
| | | ProductionLine = stockInfo.ProductionLine, |
| | | ProcessCode = stockInfo.ProcessCode, |
| | | }; |
| | | } |
| | | |
| | |
| | | TaskType = (int)TaskInboundTypeEnum.Inbound, |
| | | TaskNum = await BaseDal.GetTaskNo(), |
| | | Creater = "Systeam", |
| | | ProductionLine = result.ProductionLine |
| | | ProductionLine = result.ProductionLine, |
| | | ProcessCode=result.ProcessCode, |
| | | }; |
| | | |
| | | // 创建WMS任务 |
| | |
| | | TaskType = (int)TaskInboundTypeEnum.InTray, |
| | | TaskNum = await BaseDal.GetTaskNo(), |
| | | Creater = "Systeam", |
| | | ProductionLine = result.ProductionLine |
| | | ProductionLine = result.ProductionLine, |
| | | ProcessCode = result.ProcessCode, |
| | | }; |
| | | // 创建WMS任务 |
| | | WMSTaskDTO taskDTO = CreateWMSTaskDTO(task); |
| | |
| | | /// <param name="process">巷道</param> |
| | | /// <param name="flag">标识(0-入库,1-空托盘入库,2-NG入库,3-出库)</param> |
| | | /// <returns></returns> |
| | | private async Task<WebResponseContent> CreateNewTask(RequestTaskDto input, string productionLine, List<string> process = null, int flag = 0) |
| | | private async Task<WebResponseContent> CreateNewTask(RequestTaskDto input, string productionLine, string processCode, List<string> process = null, int flag = 0) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | |
| | |
| | | TaskType = flag == 0 ? (int)TaskInboundTypeEnum.Inbound : flag == 1 ? (int)TaskInboundTypeEnum.InTray : flag == 2 ? (int)TaskInboundTypeEnum.InNG : (int)TaskOutboundTypeEnum.Outbound, |
| | | TaskNum = await BaseDal.GetTaskNo(), |
| | | Creater = "Systeam", |
| | | ProductionLine = productionLine |
| | | ProductionLine = productionLine, |
| | | ProcessCode = processCode |
| | | }; |
| | | |
| | | // 尝试添加新任务 |
| | |
| | | TaskType = (int)TaskOutboundTypeEnum.InToOut, |
| | | TaskNum = await BaseDal.GetTaskNo(), |
| | | Creater = "Systeam", |
| | | ProductionLine = result.ProductionLine |
| | | ProductionLine = result.ProductionLine, |
| | | ProcessCode = result.ProcessCode, |
| | | }; |
| | | return taskNG; |
| | | } |
| | |
| | | TaskType = (int)TaskOutboundTypeEnum.InToOut, |
| | | TaskNum = await BaseDal.GetTaskNo(), |
| | | Creater = "Systeam", |
| | | ProductionLine = result.ProductionLine |
| | | ProductionLine = result.ProductionLine, |
| | | ProcessCode = result.ProcessCode, |
| | | }; |
| | | return taskNG; |
| | | } |
| | |
| | | TaskType = (int)TaskOutboundTypeEnum.InToOut, |
| | | TaskNum = await BaseDal.GetTaskNo(), |
| | | Creater = "Systeam", |
| | | ProductionLine = result.ProductionLine |
| | | ProductionLine = result.ProductionLine, |
| | | ProcessCode = result.ProcessCode, |
| | | }; |
| | | return task; |
| | | } |
| | |
| | | TaskType = (int)TaskOutboundTypeEnum.InToOut, |
| | | TaskNum = await BaseDal.GetTaskNo(), |
| | | Creater = "Systeam", |
| | | ProductionLine = result.ProductionLine |
| | | ProductionLine = result.ProductionLine, |
| | | ProcessCode = result.ProcessCode, |
| | | }; |
| | | return taskNG; |
| | | } |
| | |
| | | TaskNum = await BaseDal.GetTaskNo(), |
| | | Creater = "Systeam", |
| | | ProductionLine = result.ProductionLine, |
| | | ProcessCode = result.ProcessCode, |
| | | }; |
| | | int lastStatus = locationInfo.LocationStatus; |
| | | ConsoleHelper.WriteSuccessLine($"修改前:" + lastStatus.ToString()); |
| | |
| | | TaskNum = await BaseDal.GetTaskNo(), |
| | | Creater = "Systeam", |
| | | ProductionLine = result.ProductionLine, |
| | | ProcessCode = result.ProcessCode, |
| | | }; |
| | | return Epmtytask; |
| | | } |
| | |
| | | TaskNum = await BaseDal.GetTaskNo(), |
| | | Creater = "Systeam", |
| | | ProductionLine = result.ProductionLine, |
| | | ProcessCode = result.ProcessCode, |
| | | }; |
| | | |
| | | var isBox = await _boxingInfoRepository.AddDataNavAsync(boxing); |
| | |
| | | TaskNum = await BaseDal.GetTaskNo(), |
| | | Creater = "Systeam", |
| | | ProductionLine = stockInfo.ProductionLine, |
| | | ProcessCode = stockInfo.ProcessCode, |
| | | }; |
| | | |
| | | WMSTaskDTO taskDTO = CreateTaskDTO(task); |
| | |
| | | var config = _configService.GetByConfigKey("SYS_InStacker", "CW3InStacker"); |
| | | var strings = config.ConfigValue.Split(',').ToList(); |
| | | // 入库送至常温3 |
| | | var resultContent = await CreateNewTask(input, input.ProductionLine, strings); |
| | | var resultContent = await CreateNewTask(input, input.ProductionLine, boxing.ProcessCode,strings); |
| | | if (resultContent.Status) |
| | | { |
| | | await _boxingInfoRepository.AddDataNavAsync(boxing); |
| | |
| | | { |
| | | // 送至包装 |
| | | List<string> strings = stationManagers.Where(x => x.stationType == 0).Select(x => x.Roadway).ToList(); |
| | | return await CreateNewTask(input, input.ProductionLine, strings, 3); |
| | | return await CreateNewTask(input, input.ProductionLine, boxing.ProcessCode, strings, 3); |
| | | } |
| | | else |
| | | { |
| | | var config = _configService.GetByConfigKey("SYS_InStacker", "CW3InStacker"); |
| | | var strings = config.ConfigValue.Split(',').ToList(); |
| | | // 入库送至常温3 |
| | | var resultContent = await CreateNewTask(input, input.ProductionLine, strings); |
| | | var resultContent = await CreateNewTask(input, input.ProductionLine, boxing.ProcessCode, strings); |
| | | if (resultContent.Status) |
| | | { |
| | | await _boxingInfoRepository.AddDataNavAsync(boxing); |
| | |
| | | } |
| | | List<string> strings = stationManagers.Roadway.Split(',').ToList(); |
| | | |
| | | var resultContent = await CreateNewTask(input, result.ProductionLine, strings); |
| | | var resultContent = await CreateNewTask(input, result.ProductionLine,boxing.ProcessCode, strings); |
| | | if (resultContent.Status) |
| | | { |
| | | var isBox = await _boxingInfoRepository.AddDataNavAsync(boxing); |
| | |
| | | // NGStation = stationManagers.stationNGChildCode.Split(',').ToList(); |
| | | //} |
| | | List<string> NGStation = stationManagers.stationNGChildCode.Split(',').ToList(); |
| | | content = await CreateNewTask(input, input.ProductionLine, NGStation, 2); |
| | | content = await CreateNewTask(input, input.ProductionLine,"", NGStation, 2); |
| | | return content.Error("存在异常电芯"); |
| | | } |
| | | |