添加 FireCommand 属性以处理火警任务类型
在 `CommonStackerCraneJob.cs` 文件中,新增了 `stackerCraneTaskCommand` 对象的 `FireCommand` 属性。该属性的值根据 `task.TaskType` 是否等于 `TaskOutboundTypeEnum.OutFireAlarm` 来决定,增强了对火警相关任务的处理能力。
| | |
| | | stackerCraneTaskCommand.WorkType = 1; |
| | | stackerCraneTaskCommand.TrayType = 0; |
| | | stackerCraneTaskCommand.StartCommand = 1; |
| | | stackerCraneTaskCommand.FireCommand = Convert.ToInt16(task.TaskType == (int)TaskOutboundTypeEnum.OutFireAlarm ? 2 : 0); |
| | | if (task.TaskType.GetTaskTypeGroup() == TaskTypeGroup.InboundGroup)//判断是否是入库任务 |
| | | { |
| | | var value = _sys_ConfigService.GetByConfigKey(CateGoryConst.CONFIG_SYS_InStation, SysConfigKeyConst.JZNGInBoundStation).ConfigValue; |