huanghongfeng
9 小时以前 3f66e3c1ddc2a78c0ae1e5014c0ab94d9756453a
´úÂë¹ÜÀí/WCS/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob/CommonConveyorLineJob.cs
@@ -121,26 +121,29 @@
            {
                // èŽ·å–å®‰å…¨é—¨ä¿¡æ¯
                AQMReturnnormal aQMConveyor = AQMStoticCommand(conveyorLine, Stations.ChildPosiDeviceCode);
                if(aQMConveyor != null)
                {
                    if (aQMConveyor.SafetyLockStatus == 1)
                    {
                        //写入报警
                        GetDeviceAddress.WriteSecurityDoorpolice(Stations.ChildPosiDeviceCode, "AlarmSummary", 0);
                        //写入开门信号
                        GetDeviceAddress.WriteSecurityDoorpolice(Stations.ChildPosiDeviceCode, "OpenDoor", 0);
                    }
                if (aQMConveyor.SafetyLockStatus == 1)
                {
                    //写入报警
                    GetDeviceAddress.WriteSecurityDoorpolice(Stations.ChildPosiDeviceCode, "AlarmSummary", 0);
                    //写入开门信号
                    GetDeviceAddress.WriteSecurityDoorpolice(Stations.ChildPosiDeviceCode, "OpenDoor", 0);
                    // æ ¹æ®ä»»åŠ¡ç±»åž‹é€‰æ‹©å¤„ç†ç­–ç•¥
                    if (Stations.Station_tasktype == (int)RGVTasktype.Outbound)
                    {
                        if (aQMConveyor.EmergencyStopStatus == 0) _gvOperationService.WriteOutbuttonpause(null);
                        HandleDoorRequest(aQMConveyor, Stations, 2);
                    }
                    else
                    {
                        if (aQMConveyor.EmergencyStopStatus == 0) _gvOperationService.InWriteOutbuttonpause(null);
                        HandleDoorRequest(aQMConveyor, Stations, 1);
                    }
                }
                // æ ¹æ®ä»»åŠ¡ç±»åž‹é€‰æ‹©å¤„ç†ç­–ç•¥
                if (Stations.Station_tasktype == (int)RGVTasktype.Outbound)
                {
                    if (aQMConveyor.EmergencyStopStatus == 0) _gvOperationService.WriteOutbuttonpause(null);
                    HandleDoorRequest(aQMConveyor, Stations, 2);
                }
                else
                {
                    if (aQMConveyor.EmergencyStopStatus == 0) _gvOperationService.InWriteOutbuttonpause(null);
                    HandleDoorRequest(aQMConveyor, Stations, 1);
                }
                return false;
            }
            catch (Exception ex)
@@ -155,21 +158,25 @@
            try
            {
                PlatformStatus aQMConveyor = StoticCommand(conveyorLine, Stations.ChildPosiDeviceCode);
                if (aQMConveyor.HCJ_GoodsStatus == 0)    //可进行放货
                if (aQMConveyor != null)
                {
                    WebResponseContent webResponseContent = new WebResponseContent();
                    //根据类型查找任务
                    if (Stations.Station_material == (int)RGVEquipment.AbnormalOutbound)
                    if (aQMConveyor.HCJ_GoodsStatus == 0)    //可进行放货
                    {
                        //查找是否有异常搬运任务
                        webResponseContent = _taskService.UpdateDeliveryAddress(Stations.HCJStorageaddress.ToString(), 1);   //还需要传入地址
                    }
                    else
                    {
                        //出库站台的任务
                        webResponseContent = _taskService.UpdateDeliveryAddress(Stations.HCJStorageaddress.ToString(), 2);
                        WebResponseContent webResponseContent = new WebResponseContent();
                        //根据类型查找任务
                        if (Stations.Station_material == (int)RGVEquipment.AbnormalOutbound)
                        {
                            //查找是否有异常搬运任务
                            webResponseContent = _taskService.UpdateDeliveryAddress(Stations.HCJStorageaddress.ToString(), 1);   //还需要传入地址
                        }
                        else
                        {
                            //出库站台的任务
                            webResponseContent = _taskService.UpdateDeliveryAddress(Stations.HCJStorageaddress.ToString(), 2);
                        }
                    }
                }
                return false;
            }
            catch (Exception ex)