z8018
2025-05-20 745aa71a76544989535ff193f3ede69200bab2db
项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob/CommonConveyorLineOutJob.cs
@@ -135,49 +135,6 @@
                                            }
                                            else
                                            {
                                                //if (message.Contains("10001"))
                                                //{
                                                //    otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Length));
                                                //    otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Width));
                                                //    otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Thickness));
                                                //    otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, dischargeStation);
                                                //    otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTaskNum, 999);
                                                //    otherDevice.SetValue(ConveyorLineStationDBName.WCSStationResponse, true);
                                                //}
                                                //else if (message.Contains("10002"))
                                                //{
                                                //    WriteError($"{otherDevice.DeviceCode}-{otherDevice.DeviceName}", message);
                                                //}
                                                //else
                                                {
                                                    otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Length));
                                                    otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Width));
                                                    otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Thickness));
                                                    otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, dischargeStation);
                                                    otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTaskNum, 998);
                                                    otherDevice.SetValue(ConveyorLineStationDBName.WCSStationResponse, true);
                                                    WriteError(nameof(CommonConveyorLineOutJob), message);
                                                }
                                            }
                                        }
                                        catch (Exception ex)
                                        {
                                            if (ex.Message.Contains("10001"))
                                            {
                                                otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Length));
                                                otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Width));
                                                otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Thickness));
                                                otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, dischargeStation);
                                                otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTaskNum, 999);
                                                otherDevice.SetValue(ConveyorLineStationDBName.WCSStationResponse, true);
                                            }
                                            else if (ex.Message.Contains("10002"))
                                            {
                                                WriteError($"{otherDevice.DeviceCode}-{otherDevice.DeviceName}", ex.Message, ex);
                                            }
                                            else
                                            {
                                                otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Length));
                                                otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Width));
                                                otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Thickness));
@@ -185,8 +142,20 @@
                                                otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTaskNum, 998);
                                                otherDevice.SetValue(ConveyorLineStationDBName.WCSStationResponse, true);
                                                WriteError(nameof(CommonConveyorLineOutJob), ex.Message, ex);
                                                WriteError(nameof(CommonConveyorLineOutJob), message);
                                                WriteError("鏉垮瓙鎺掑嚭閿欒鍘熷洜璁板綍鏃ュ織", message);
                                            }
                                        }
                                        catch (Exception ex)
                                        {
                                            otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Length));
                                            otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Width));
                                            otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Thickness));
                                            otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, dischargeStation);
                                            otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTaskNum, 999);
                                            otherDevice.SetValue(ConveyorLineStationDBName.WCSStationResponse, true);
                                            WriteError("鏀炬澘閫昏緫杩愮畻閿欒璁板綍鏃ュ織", ex.Message, ex);
                                        }
                                    }
                                    else
@@ -209,6 +178,7 @@
                                }
                                else
                                {
                                    //todo 瓒呭澶勭悊
                                    otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Length));
                                    otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Width));
                                    otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Thickness));
@@ -222,7 +192,6 @@
                                otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, dischargeStation);
                                otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTaskNum, 997);
                                otherDevice.SetValue(ConveyorLineStationDBName.WCSStationResponse, true);
                                //otherDevice.SetValue(ConveyorLineStationDBName.WCSStationNoBarcode, true);
                            }
                        }