1
HuBingJie
8 天以前 5da3a276b7847187a7c155ee069d3cd4c9e58074
´úÂë¹ÜÀí/WCS/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/SpeStackerCraneJob/SpeStackerCraneJob.cs
@@ -50,9 +50,10 @@
        private readonly IRouterService _routerService;
        private readonly IAgvStationService _agvStationService;
        IRepository<AbnormalTask> _abnormalTask;
        IRgvoperainformService _rgvoperainformService;
        public SpeStackerCraneJob(ITaskService taskService, ITaskExecuteDetailService taskExecuteDetailService, ITaskRepository taskRepository, IRouterService routerService, IAgvStationService agvStationService, IRepository<AbnormalTask> abnormalTask)
        public SpeStackerCraneJob(ITaskService taskService, ITaskExecuteDetailService taskExecuteDetailService, ITaskRepository taskRepository, IRouterService routerService, IAgvStationService agvStationService, IRepository<AbnormalTask> abnormalTask, IRgvoperainformService rgvoperainformService)
        {
            _taskService = taskService;
            _taskExecuteDetailService = taskExecuteDetailService;
@@ -60,6 +61,7 @@
            _routerService = routerService;
            _agvStationService = agvStationService;
            _abnormalTask = abnormalTask;
            _rgvoperainformService = rgvoperainformService;
        }
@@ -73,6 +75,9 @@
                if (speStackerCrane != null)
                {
                    GetStackerObject getStackerObject = new GetStackerObject(speStackerCrane);
                    _rgvoperainformService.LogAlarmToDatabase(speStackerCrane.DeviceCode);
                    if (getStackerObject.RGVInitializationValue == RGVInitialize.Initialized)
                    {
@@ -315,7 +320,7 @@
                }
                else if (getStackerObject.RGVCurrentlocation == RGVTaskdevice.WaitmomentTwo)    //则需要判断两个母车的位子
                {
                    //判断两个子车是否在堆垛机取货口
                    //判断两个母车是否在堆垛机取货口
                    //母车1
                    var mu1rgv = _agvStationService.GetMothervehicle(RGVTaskdevice.MotherCarDeviceCode);
@@ -655,7 +660,7 @@
                    => Findshippingtask(RGVTaskdevice, getStackerObject.RGVCurrentlocation),    //子车取货后,进行放货(已完成)
                ((int)RGVEquipment.OutRGVForklift, RgvEquipmentStatus.NoCargo)
                    => OutboundGateVehicle(RGVTaskdevice),              //出库口RGV取货(已完成)
                    => OutboundGateVehicle(RGVTaskdevice),          //出库口RGV取货(已完成)
                ((int)RGVEquipment.OutRGVForklift, RgvEquipmentStatus.HasCargo)
                    => _taskService.GetOutkouFinhuoTask(RGVTaskdevice.ChildPosiDeviceCode,