CC/iWareCC_ASRS/Common/SystemValue.cs
@@ -132,7 +132,7 @@ /// <summary> /// æ¯å¦å 许æ§è¡ ä»»å¡å解线ç¨-ç»çå ¥åº /// </summary> public static bool isAllowRuning_MainTaskDecompose_ZPRK = false; public static bool isAllowRuning_DataProcess_RobotBuffer_ModeChange = false; /// <summary> /// æ¯å¦å 许æ§è¡ å åæºå ¥å£æ«ç æ£æµçº¿ç¨ @@ -149,12 +149,12 @@ /// <summary> /// æ¯å¦å 许æ§è¡ AGVçº¿ç¨ /// </summary> public static bool isAllowRuning_Agv = false; public static bool isAllowRuning_DataProcess_RobotBuffer_AutoQiTaoOutbound = false; /// <summary> /// æ¯å¦å 许æ§è¡ 空æè½¬è¿çº¿ç¨ /// </summary> public static bool isAllowRuning_EmptySalverTransfer = false; public static bool isAllowRuning_DataProcess_RobotBuffer_IssueOutboundTask = false; /// <summary> /// æ¯å¦å 许æ§è¡ èªå¨ç»çä»»å¡ CC/iWareCC_ASRS/Common/SystemWarningMsg.cs
@@ -63,7 +63,7 @@ /// <summary> /// RGVä»»å¡å®æç¡®è®¤çè¦åæ¶æ¯ /// </summary> public static string _lbl_Alert_RgvReleaseFinish = string.Empty; public static string _lbl_Alert_DataProcess_RobotBuffer_ModeChange = string.Empty; /// <summary> /// RGVä»»å¡å®æç¡®è®¤çè¦åæ¶æ¯ï¼è¡¥å¿ï¼ @@ -111,7 +111,7 @@ /// <summary> /// 空æçè½¬è¿ çè¦åæ¶æ¯ /// </summary> public static string _lbl_Alert_EmptySalverTransfer = string.Empty; public static string _lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound = string.Empty; /// <summary> @@ -137,7 +137,7 @@ /// <summary> /// 1014å°1020 çè¦åæ¶æ¯ /// </summary> public static string _lbl_Alert_Place1014To1020TaskTask = string.Empty; public static string _lbl_Alert_DataProcess_RobotBuffer_IssueOutboundTask = string.Empty; /// <summary> /// åºåºä»»å¡éç¥MES çè¦åæ¶æ¯ CC/iWareCC_ASRS/Connected Services/StationService/Reference.cs
@@ -194,6 +194,9 @@ private short R_DestinationField; [System.Runtime.Serialization.OptionalFieldAttribute()] private bool R_ForceOutboundModeField; [System.Runtime.Serialization.OptionalFieldAttribute()] private bool R_InboundFinishField; [System.Runtime.Serialization.OptionalFieldAttribute()] @@ -302,6 +305,19 @@ if ((this.R_DestinationField.Equals(value) != true)) { this.R_DestinationField = value; this.RaisePropertyChanged("R_Destination"); } } } [System.Runtime.Serialization.DataMemberAttribute()] public bool R_ForceOutboundMode { get { return this.R_ForceOutboundModeField; } set { if ((this.R_ForceOutboundModeField.Equals(value) != true)) { this.R_ForceOutboundModeField = value; this.RaisePropertyChanged("R_ForceOutboundMode"); } } } @@ -562,7 +578,7 @@ private int W_Destination_InField; [System.Runtime.Serialization.OptionalFieldAttribute()] private string W_Destination_OutField; private int W_Destination_OutField; [System.Runtime.Serialization.OptionalFieldAttribute()] private bool W_EndMarkField; @@ -574,7 +590,7 @@ private bool W_InboundFinishConfirmField; [System.Runtime.Serialization.OptionalFieldAttribute()] private int W_Inbound_TaskIDField; private short W_Inbound_TaskIDField; [System.Runtime.Serialization.OptionalFieldAttribute()] private bool W_IsRotateField; @@ -586,10 +602,13 @@ private short W_LengthField; [System.Runtime.Serialization.OptionalFieldAttribute()] private short W_ModeField; [System.Runtime.Serialization.OptionalFieldAttribute()] private bool W_OutboundFinishConfirmField; [System.Runtime.Serialization.OptionalFieldAttribute()] private int W_Outbound_TaskIDField; private short W_Outbound_TaskIDField; [System.Runtime.Serialization.OptionalFieldAttribute()] private string W_PackageLengthField; @@ -703,12 +722,12 @@ } [System.Runtime.Serialization.DataMemberAttribute()] public string W_Destination_Out { public int W_Destination_Out { get { return this.W_Destination_OutField; } set { if ((object.ReferenceEquals(this.W_Destination_OutField, value) != true)) { if ((this.W_Destination_OutField.Equals(value) != true)) { this.W_Destination_OutField = value; this.RaisePropertyChanged("W_Destination_Out"); } @@ -755,7 +774,7 @@ } [System.Runtime.Serialization.DataMemberAttribute()] public int W_Inbound_TaskID { public short W_Inbound_TaskID { get { return this.W_Inbound_TaskIDField; } @@ -807,6 +826,19 @@ } [System.Runtime.Serialization.DataMemberAttribute()] public short W_Mode { get { return this.W_ModeField; } set { if ((this.W_ModeField.Equals(value) != true)) { this.W_ModeField = value; this.RaisePropertyChanged("W_Mode"); } } } [System.Runtime.Serialization.DataMemberAttribute()] public bool W_OutboundFinishConfirm { get { return this.W_OutboundFinishConfirmField; @@ -820,7 +852,7 @@ } [System.Runtime.Serialization.DataMemberAttribute()] public int W_Outbound_TaskID { public short W_Outbound_TaskID { get { return this.W_Outbound_TaskIDField; } @@ -1687,6 +1719,12 @@ [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IStationService/OutboundFinishConfirm", ReplyAction="http://tempuri.org/IStationService/OutboundFinishConfirmResponse")] System.Threading.Tasks.Task<iWareCC.StationService.SdaResEntity> OutboundFinishConfirmAsync(int deviceId, bool value, string stationCode); [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IStationService/ChangeMode", ReplyAction="http://tempuri.org/IStationService/ChangeModeResponse")] iWareCC.StationService.SdaResEntity ChangeMode(int deviceId, int value, string stationCode); [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IStationService/ChangeMode", ReplyAction="http://tempuri.org/IStationService/ChangeModeResponse")] System.Threading.Tasks.Task<iWareCC.StationService.SdaResEntity> ChangeModeAsync(int deviceId, int value, string stationCode); [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IStationService/WriteInStoreTaskInfo", ReplyAction="http://tempuri.org/IStationService/WriteInStoreTaskInfoResponse")] iWareCC.StationService.SdaResEntity WriteInStoreTaskInfo(int deviceId, string stationCode, string toPlaceNo, short length, short width, short height, int inbound_TaskID); @@ -1853,6 +1891,14 @@ return base.Channel.OutboundFinishConfirmAsync(deviceId, value, stationCode); } public iWareCC.StationService.SdaResEntity ChangeMode(int deviceId, int value, string stationCode) { return base.Channel.ChangeMode(deviceId, value, stationCode); } public System.Threading.Tasks.Task<iWareCC.StationService.SdaResEntity> ChangeModeAsync(int deviceId, int value, string stationCode) { return base.Channel.ChangeModeAsync(deviceId, value, stationCode); } public iWareCC.StationService.SdaResEntity WriteInStoreTaskInfo(int deviceId, string stationCode, string toPlaceNo, short length, short width, short height, int inbound_TaskID) { return base.Channel.WriteInStoreTaskInfo(deviceId, stationCode, toPlaceNo, length, width, height, inbound_TaskID); } CC/iWareCC_ASRS/Connected Services/StationService/StationService.wsdl
@@ -81,6 +81,12 @@ <wsdl:message name="IStationService_OutboundFinishConfirm_OutputMessage"> <wsdl:part name="parameters" element="tns:OutboundFinishConfirmResponse" /> </wsdl:message> <wsdl:message name="IStationService_ChangeMode_InputMessage"> <wsdl:part name="parameters" element="tns:ChangeMode" /> </wsdl:message> <wsdl:message name="IStationService_ChangeMode_OutputMessage"> <wsdl:part name="parameters" element="tns:ChangeModeResponse" /> </wsdl:message> <wsdl:message name="IStationService_WriteInStoreTaskInfo_InputMessage"> <wsdl:part name="parameters" element="tns:WriteInStoreTaskInfo" /> </wsdl:message> @@ -171,6 +177,10 @@ <wsdl:operation name="OutboundFinishConfirm"> <wsdl:input wsaw:Action="http://tempuri.org/IStationService/OutboundFinishConfirm" message="tns:IStationService_OutboundFinishConfirm_InputMessage" /> <wsdl:output wsaw:Action="http://tempuri.org/IStationService/OutboundFinishConfirmResponse" message="tns:IStationService_OutboundFinishConfirm_OutputMessage" /> </wsdl:operation> <wsdl:operation name="ChangeMode"> <wsdl:input wsaw:Action="http://tempuri.org/IStationService/ChangeMode" message="tns:IStationService_ChangeMode_InputMessage" /> <wsdl:output wsaw:Action="http://tempuri.org/IStationService/ChangeModeResponse" message="tns:IStationService_ChangeMode_OutputMessage" /> </wsdl:operation> <wsdl:operation name="WriteInStoreTaskInfo"> <wsdl:input wsaw:Action="http://tempuri.org/IStationService/WriteInStoreTaskInfo" message="tns:IStationService_WriteInStoreTaskInfo_InputMessage" /> @@ -311,6 +321,15 @@ <soap:body use="literal" /> </wsdl:output> </wsdl:operation> <wsdl:operation name="ChangeMode"> <soap:operation soapAction="http://tempuri.org/IStationService/ChangeMode" style="document" /> <wsdl:input> <soap:body use="literal" /> </wsdl:input> <wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> <wsdl:operation name="WriteInStoreTaskInfo"> <soap:operation soapAction="http://tempuri.org/IStationService/WriteInStoreTaskInfo" style="document" /> <wsdl:input> CC/iWareCC_ASRS/Connected Services/StationService/item2.xsd
@@ -187,6 +187,22 @@ </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ChangeMode"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" name="deviceId" type="xs:int" /> <xs:element minOccurs="0" name="value" type="xs:int" /> <xs:element minOccurs="0" name="stationCode" nillable="true" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ChangeModeResponse"> <xs:complexType> <xs:sequence> <xs:element xmlns:q13="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="ChangeModeResult" nillable="true" type="q13:SdaResEntity" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="WriteInStoreTaskInfo"> <xs:complexType> <xs:sequence> @@ -203,7 +219,7 @@ <xs:element name="WriteInStoreTaskInfoResponse"> <xs:complexType> <xs:sequence> <xs:element xmlns:q13="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="WriteInStoreTaskInfoResult" nillable="true" type="q13:SdaResEntity" /> <xs:element xmlns:q14="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="WriteInStoreTaskInfoResult" nillable="true" type="q14:SdaResEntity" /> </xs:sequence> </xs:complexType> </xs:element> @@ -220,7 +236,7 @@ <xs:element name="WriteOutStoreTaskInfoResponse"> <xs:complexType> <xs:sequence> <xs:element xmlns:q14="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="WriteOutStoreTaskInfoResult" nillable="true" type="q14:SdaResEntity" /> <xs:element xmlns:q15="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="WriteOutStoreTaskInfoResult" nillable="true" type="q15:SdaResEntity" /> </xs:sequence> </xs:complexType> </xs:element> @@ -276,7 +292,7 @@ <xs:element name="WriteStation_FinishACKResponse"> <xs:complexType> <xs:sequence> <xs:element xmlns:q17="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="WriteStation_FinishACKResult" nillable="true" type="q17:SdaResEntity" /> <xs:element xmlns:q16="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="WriteStation_FinishACKResult" nillable="true" type="q16:SdaResEntity" /> </xs:sequence> </xs:complexType> </xs:element> @@ -294,7 +310,7 @@ <xs:element name="WriteScanValidateACKResponse"> <xs:complexType> <xs:sequence> <xs:element xmlns:q18="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="WriteScanValidateACKResult" nillable="true" type="q18:SdaResEntity" /> <xs:element xmlns:q16="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="WriteScanValidateACKResult" nillable="true" type="q16:SdaResEntity" /> </xs:sequence> </xs:complexType> </xs:element> @@ -312,7 +328,7 @@ <xs:element name="WriteStation_XigangGetDataForOutResponse"> <xs:complexType> <xs:sequence> <xs:element xmlns:q19="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="WriteStation_XigangGetDataForOutResult" nillable="true" type="q19:SdaResEntity" /> <xs:element xmlns:q18="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="WriteStation_XigangGetDataForOutResult" nillable="true" type="q18:SdaResEntity" /> </xs:sequence> </xs:complexType> </xs:element> CC/iWareCC_ASRS/Connected Services/StationService/item3.xsd
@@ -12,6 +12,7 @@ <xs:element minOccurs="0" name="R_AlarmCode" type="xs:short" /> <xs:element minOccurs="0" name="R_AlarmCodeMsg" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="R_Destination" type="xs:short" /> <xs:element minOccurs="0" name="R_ForceOutboundMode" type="xs:boolean" /> <xs:element minOccurs="0" name="R_InboundFinish" type="xs:boolean" /> <xs:element minOccurs="0" name="R_InboundNumber" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="R_Inbound_TaskID" type="xs:short" /> @@ -45,16 +46,16 @@ <xs:element minOccurs="0" name="W_CartonWidth" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="W_DataFinish" type="xs:boolean" /> <xs:element minOccurs="0" name="W_Destination_In" type="xs:int" /> <xs:element minOccurs="0" name="W_Destination_Out" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="W_EndMark" type="xs:boolean" /> <xs:element minOccurs="0" name="W_Destination_Out" type="xs:int" /> <xs:element minOccurs="0" name="W_Height" type="xs:short" /> <xs:element minOccurs="0" name="W_InboundFinishConfirm" type="xs:boolean" /> <xs:element minOccurs="0" name="W_Inbound_TaskID" type="xs:int" /> <xs:element minOccurs="0" name="W_Inbound_TaskID" type="xs:short" /> <xs:element minOccurs="0" name="W_IsRotate" type="xs:boolean" /> <xs:element minOccurs="0" name="W_KittingInfo" type="xs:short" /> <xs:element minOccurs="0" name="W_Length" type="xs:short" /> <xs:element minOccurs="0" name="W_Mode" type="xs:short" /> <xs:element minOccurs="0" name="W_OutboundFinishConfirm" type="xs:boolean" /> <xs:element minOccurs="0" name="W_Outbound_TaskID" type="xs:int" /> <xs:element minOccurs="0" name="W_Outbound_TaskID" type="xs:short" /> <xs:element minOccurs="0" name="W_PackageLength" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="W_PackageWidth" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="W_PalletizingPlaceX" type="xs:short" /> CC/iWareCC_ASRS/DeviceThreadFactory/DeviceThreadService/RgvThreadService/RgvTaskThreadService.cs
@@ -536,7 +536,7 @@ { ConfirmFinishTaskHandle(i_deviceId, out errMsg); } SystemWarningMsg._lbl_Alert_RgvReleaseFinish = errMsg; SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_ModeChange = errMsg; Thread.Sleep(2000); } CC/iWareCC_ASRS/FormCC.Designer.cs
@@ -236,12 +236,12 @@ this.checkBox_OutTaskRetryToMes = new System.Windows.Forms.CheckBox(); this.lbl_Alert_DataProcess_RobotBuffer_FinishTaskForOutbound = new System.Windows.Forms.Label(); this.checkBox_DataProcess_RobotBuffer_FinishTaskForOutbound = new System.Windows.Forms.CheckBox(); this.lbl_MainTaskDecompose_ZPRK = new System.Windows.Forms.Label(); this.ckMainTaskDecompose_ZPRK = new System.Windows.Forms.CheckBox(); this.lbl_Alert_Agv = new System.Windows.Forms.Label(); this.ckAgv = new System.Windows.Forms.CheckBox(); this.lbl_Alert_Place1014ClearStoreTask = new System.Windows.Forms.Label(); this.ckPlace1014ClearStoreTask = new System.Windows.Forms.CheckBox(); this.lbl_DataProcess_RobotBuffer_ModeChange = new System.Windows.Forms.Label(); this.ck_DataProcess_RobotBuffer_ModeChange = new System.Windows.Forms.CheckBox(); this.lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound = new System.Windows.Forms.Label(); this.ckDataProcess_RobotBuffer_AutoQiTaoOutbound = new System.Windows.Forms.CheckBox(); this.lbl_Alert_DataProcess_RobotBuffer_IssueOutboundTask = new System.Windows.Forms.Label(); this.ck_DataProcess_RobotBuffer_IssueOutboundTask = new System.Windows.Forms.CheckBox(); this.lbl_Alert_EmptySalverTransfer = new System.Windows.Forms.Label(); this.ckEmptySalverTransfer = new System.Windows.Forms.CheckBox(); this.lbl_MainTaskDecompose = new System.Windows.Forms.Label(); @@ -469,6 +469,11 @@ this.dataGridViewTextBoxColumn62 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn63 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.btn_Find_OutTaskRetryToMes = new System.Windows.Forms.Button(); this.lbl_RobotMode = new System.Windows.Forms.Label(); this.tb_PackageCode = new System.Windows.Forms.TextBox(); this.label23 = new System.Windows.Forms.Label(); this.button24 = new System.Windows.Forms.Button(); this.lbl_currHandlerPackageCodeForIssueOutboundTask = new System.Windows.Forms.Label(); this.tPTransAsrs.SuspendLayout(); this.panel14.SuspendLayout(); this.panel15.SuspendLayout(); @@ -2800,6 +2805,8 @@ // // panel_Model // this.panel_Model.Controls.Add(this.lbl_currHandlerPackageCodeForIssueOutboundTask); this.panel_Model.Controls.Add(this.lbl_RobotMode); this.panel_Model.Controls.Add(this.rBOnlyIn); this.panel_Model.Controls.Add(this.lbl_IsSimulationPLC); this.panel_Model.Controls.Add(this.lbl_WCFMsg); @@ -2983,12 +2990,12 @@ this.groupBox1.Controls.Add(this.checkBox_OutTaskRetryToMes); this.groupBox1.Controls.Add(this.lbl_Alert_DataProcess_RobotBuffer_FinishTaskForOutbound); this.groupBox1.Controls.Add(this.checkBox_DataProcess_RobotBuffer_FinishTaskForOutbound); this.groupBox1.Controls.Add(this.lbl_MainTaskDecompose_ZPRK); this.groupBox1.Controls.Add(this.ckMainTaskDecompose_ZPRK); this.groupBox1.Controls.Add(this.lbl_Alert_Agv); this.groupBox1.Controls.Add(this.ckAgv); this.groupBox1.Controls.Add(this.lbl_Alert_Place1014ClearStoreTask); this.groupBox1.Controls.Add(this.ckPlace1014ClearStoreTask); this.groupBox1.Controls.Add(this.lbl_DataProcess_RobotBuffer_ModeChange); this.groupBox1.Controls.Add(this.ck_DataProcess_RobotBuffer_ModeChange); this.groupBox1.Controls.Add(this.lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound); this.groupBox1.Controls.Add(this.ckDataProcess_RobotBuffer_AutoQiTaoOutbound); this.groupBox1.Controls.Add(this.lbl_Alert_DataProcess_RobotBuffer_IssueOutboundTask); this.groupBox1.Controls.Add(this.ck_DataProcess_RobotBuffer_IssueOutboundTask); this.groupBox1.Controls.Add(this.lbl_Alert_EmptySalverTransfer); this.groupBox1.Controls.Add(this.ckEmptySalverTransfer); this.groupBox1.Controls.Add(this.lbl_MainTaskDecompose); @@ -3189,74 +3196,75 @@ this.checkBox_DataProcess_RobotBuffer_FinishTaskForOutbound.UseVisualStyleBackColor = true; this.checkBox_DataProcess_RobotBuffer_FinishTaskForOutbound.CheckedChanged += new System.EventHandler(this.CommonCheckedChanged); // // lbl_MainTaskDecompose_ZPRK // lbl_DataProcess_RobotBuffer_ModeChange // this.lbl_MainTaskDecompose_ZPRK.AutoSize = true; this.lbl_MainTaskDecompose_ZPRK.BackColor = System.Drawing.Color.White; this.lbl_MainTaskDecompose_ZPRK.ForeColor = System.Drawing.Color.Red; this.lbl_MainTaskDecompose_ZPRK.Location = new System.Drawing.Point(213, 452); this.lbl_MainTaskDecompose_ZPRK.Name = "lbl_MainTaskDecompose_ZPRK"; this.lbl_MainTaskDecompose_ZPRK.Size = new System.Drawing.Size(70, 15); this.lbl_MainTaskDecompose_ZPRK.TabIndex = 43; this.lbl_MainTaskDecompose_ZPRK.Text = "label11"; this.lbl_DataProcess_RobotBuffer_ModeChange.AutoSize = true; this.lbl_DataProcess_RobotBuffer_ModeChange.BackColor = System.Drawing.Color.White; this.lbl_DataProcess_RobotBuffer_ModeChange.ForeColor = System.Drawing.Color.Red; this.lbl_DataProcess_RobotBuffer_ModeChange.Location = new System.Drawing.Point(213, 452); this.lbl_DataProcess_RobotBuffer_ModeChange.Name = "lbl_DataProcess_RobotBuffer_ModeChange"; this.lbl_DataProcess_RobotBuffer_ModeChange.Size = new System.Drawing.Size(70, 15); this.lbl_DataProcess_RobotBuffer_ModeChange.TabIndex = 43; this.lbl_DataProcess_RobotBuffer_ModeChange.Text = "label11"; // // ckMainTaskDecompose_ZPRK // ck_DataProcess_RobotBuffer_ModeChange // this.ckMainTaskDecompose_ZPRK.AutoSize = true; this.ckMainTaskDecompose_ZPRK.Location = new System.Drawing.Point(3, 452); this.ckMainTaskDecompose_ZPRK.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.ckMainTaskDecompose_ZPRK.Name = "ckMainTaskDecompose_ZPRK"; this.ckMainTaskDecompose_ZPRK.Size = new System.Drawing.Size(207, 19); this.ckMainTaskDecompose_ZPRK.TabIndex = 42; this.ckMainTaskDecompose_ZPRK.Text = "ä»»å¡å解线ç¨(ç»çå ¥åº)"; this.ckMainTaskDecompose_ZPRK.UseVisualStyleBackColor = true; this.ckMainTaskDecompose_ZPRK.CheckedChanged += new System.EventHandler(this.CommonCheckedChanged); this.ck_DataProcess_RobotBuffer_ModeChange.AutoSize = true; this.ck_DataProcess_RobotBuffer_ModeChange.Location = new System.Drawing.Point(3, 452); this.ck_DataProcess_RobotBuffer_ModeChange.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.ck_DataProcess_RobotBuffer_ModeChange.Name = "ck_DataProcess_RobotBuffer_ModeChange"; this.ck_DataProcess_RobotBuffer_ModeChange.Size = new System.Drawing.Size(166, 19); this.ck_DataProcess_RobotBuffer_ModeChange.TabIndex = 42; this.ck_DataProcess_RobotBuffer_ModeChange.Text = "åºåºæ¨¡å¼åæ¢çº¿ç¨ "; this.ck_DataProcess_RobotBuffer_ModeChange.UseVisualStyleBackColor = true; this.ck_DataProcess_RobotBuffer_ModeChange.CheckedChanged += new System.EventHandler(this.CommonCheckedChanged); // // lbl_Alert_Agv // lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound // this.lbl_Alert_Agv.AutoSize = true; this.lbl_Alert_Agv.BackColor = System.Drawing.Color.White; this.lbl_Alert_Agv.ForeColor = System.Drawing.Color.Red; this.lbl_Alert_Agv.Location = new System.Drawing.Point(216, 609); this.lbl_Alert_Agv.Name = "lbl_Alert_Agv"; this.lbl_Alert_Agv.Size = new System.Drawing.Size(70, 15); this.lbl_Alert_Agv.TabIndex = 41; this.lbl_Alert_Agv.Text = "label11"; this.lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound.AutoSize = true; this.lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound.BackColor = System.Drawing.Color.White; this.lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound.ForeColor = System.Drawing.Color.Red; this.lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound.Location = new System.Drawing.Point(289, 609); this.lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound.Name = "lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound"; this.lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound.Size = new System.Drawing.Size(70, 15); this.lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound.TabIndex = 41; this.lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound.Text = "label11"; // // ckAgv // ckDataProcess_RobotBuffer_AutoQiTaoOutbound // this.ckAgv.AutoSize = true; this.ckAgv.Location = new System.Drawing.Point(3, 609); this.ckAgv.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.ckAgv.Name = "ckAgv"; this.ckAgv.Size = new System.Drawing.Size(88, 19); this.ckAgv.TabIndex = 40; this.ckAgv.Text = "AGV线ç¨"; this.ckAgv.UseVisualStyleBackColor = true; this.ckAgv.CheckedChanged += new System.EventHandler(this.CommonCheckedChanged); this.ckDataProcess_RobotBuffer_AutoQiTaoOutbound.AutoSize = true; this.ckDataProcess_RobotBuffer_AutoQiTaoOutbound.Location = new System.Drawing.Point(3, 609); this.ckDataProcess_RobotBuffer_AutoQiTaoOutbound.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.ckDataProcess_RobotBuffer_AutoQiTaoOutbound.Name = "ckDataProcess_RobotBuffer_AutoQiTaoOutbound"; this.ckDataProcess_RobotBuffer_AutoQiTaoOutbound.Size = new System.Drawing.Size(271, 19); this.ckDataProcess_RobotBuffer_AutoQiTaoOutbound.TabIndex = 40; this.ckDataProcess_RobotBuffer_AutoQiTaoOutbound.Text = "æºå¨äººç¼åå² èªå¨é½å¥åºåº 线ç¨"; this.ckDataProcess_RobotBuffer_AutoQiTaoOutbound.UseVisualStyleBackColor = true; this.ckDataProcess_RobotBuffer_AutoQiTaoOutbound.CheckedChanged += new System.EventHandler(this.CommonCheckedChanged); // // lbl_Alert_Place1014ClearStoreTask // lbl_Alert_DataProcess_RobotBuffer_IssueOutboundTask // this.lbl_Alert_Place1014ClearStoreTask.AutoSize = true; this.lbl_Alert_Place1014ClearStoreTask.BackColor = System.Drawing.Color.White; this.lbl_Alert_Place1014ClearStoreTask.ForeColor = System.Drawing.Color.Red; this.lbl_Alert_Place1014ClearStoreTask.Location = new System.Drawing.Point(215, 528); this.lbl_Alert_Place1014ClearStoreTask.Name = "lbl_Alert_Place1014ClearStoreTask"; this.lbl_Alert_Place1014ClearStoreTask.Size = new System.Drawing.Size(70, 15); this.lbl_Alert_Place1014ClearStoreTask.TabIndex = 39; this.lbl_Alert_Place1014ClearStoreTask.Text = "label11"; this.lbl_Alert_DataProcess_RobotBuffer_IssueOutboundTask.AutoSize = true; this.lbl_Alert_DataProcess_RobotBuffer_IssueOutboundTask.BackColor = System.Drawing.Color.White; this.lbl_Alert_DataProcess_RobotBuffer_IssueOutboundTask.ForeColor = System.Drawing.Color.Red; this.lbl_Alert_DataProcess_RobotBuffer_IssueOutboundTask.Location = new System.Drawing.Point(345, 529); this.lbl_Alert_DataProcess_RobotBuffer_IssueOutboundTask.Name = "lbl_Alert_DataProcess_RobotBuffer_IssueOutboundTask"; this.lbl_Alert_DataProcess_RobotBuffer_IssueOutboundTask.Size = new System.Drawing.Size(70, 15); this.lbl_Alert_DataProcess_RobotBuffer_IssueOutboundTask.TabIndex = 39; this.lbl_Alert_DataProcess_RobotBuffer_IssueOutboundTask.Text = "label11"; this.lbl_Alert_DataProcess_RobotBuffer_IssueOutboundTask.Click += new System.EventHandler(this.lbl_Alert_Place1014ClearStoreTask_Click); // // ckPlace1014ClearStoreTask // ck_DataProcess_RobotBuffer_IssueOutboundTask // this.ckPlace1014ClearStoreTask.AutoSize = true; this.ckPlace1014ClearStoreTask.Location = new System.Drawing.Point(4, 528); this.ckPlace1014ClearStoreTask.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.ckPlace1014ClearStoreTask.Name = "ckPlace1014ClearStoreTask"; this.ckPlace1014ClearStoreTask.Size = new System.Drawing.Size(165, 19); this.ckPlace1014ClearStoreTask.TabIndex = 38; this.ckPlace1014ClearStoreTask.Text = "1014转è¿1020线ç¨"; this.ckPlace1014ClearStoreTask.UseVisualStyleBackColor = true; this.ckPlace1014ClearStoreTask.CheckedChanged += new System.EventHandler(this.CommonCheckedChanged); this.ck_DataProcess_RobotBuffer_IssueOutboundTask.AutoSize = true; this.ck_DataProcess_RobotBuffer_IssueOutboundTask.Location = new System.Drawing.Point(4, 528); this.ck_DataProcess_RobotBuffer_IssueOutboundTask.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.ck_DataProcess_RobotBuffer_IssueOutboundTask.Name = "ck_DataProcess_RobotBuffer_IssueOutboundTask"; this.ck_DataProcess_RobotBuffer_IssueOutboundTask.Size = new System.Drawing.Size(335, 19); this.ck_DataProcess_RobotBuffer_IssueOutboundTask.TabIndex = 38; this.ck_DataProcess_RobotBuffer_IssueOutboundTask.Text = "æºå¨äººç¼åå² èªå¨ä¸ååºåºä»»å¡ å¤ç线ç¨"; this.ck_DataProcess_RobotBuffer_IssueOutboundTask.UseVisualStyleBackColor = true; this.ck_DataProcess_RobotBuffer_IssueOutboundTask.CheckedChanged += new System.EventHandler(this.CommonCheckedChanged); // // lbl_Alert_EmptySalverTransfer // @@ -5471,6 +5479,9 @@ // // tabPage3 // this.tabPage3.Controls.Add(this.button24); this.tabPage3.Controls.Add(this.tb_PackageCode); this.tabPage3.Controls.Add(this.label23); this.tabPage3.Controls.Add(this.button23); this.tabPage3.Controls.Add(this.tb_wlm); this.tabPage3.Controls.Add(this.label22); @@ -5821,6 +5832,54 @@ this.btn_Find_OutTaskRetryToMes.UseVisualStyleBackColor = true; this.btn_Find_OutTaskRetryToMes.Click += new System.EventHandler(this.btn_Find_OutTaskRetryToMes_Click); // // lbl_RobotMode // this.lbl_RobotMode.AutoSize = true; this.lbl_RobotMode.Location = new System.Drawing.Point(275, 659); this.lbl_RobotMode.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbl_RobotMode.Name = "lbl_RobotMode"; this.lbl_RobotMode.Size = new System.Drawing.Size(127, 15); this.lbl_RobotMode.TabIndex = 12; this.lbl_RobotMode.Text = "ç¼å岿ºå¨äººæ¨¡å¼"; // // tb_PackageCode // this.tb_PackageCode.Location = new System.Drawing.Point(856, 427); this.tb_PackageCode.Name = "tb_PackageCode"; this.tb_PackageCode.Size = new System.Drawing.Size(339, 25); this.tb_PackageCode.TabIndex = 154; // // label23 // this.label23.AutoSize = true; this.label23.Location = new System.Drawing.Point(794, 437); this.label23.Name = "label23"; this.label23.Size = new System.Drawing.Size(45, 15); this.label23.TabIndex = 153; this.label23.Text = "å å·:"; // // button24 // this.button24.BackColor = System.Drawing.Color.Aqua; this.button24.Location = new System.Drawing.Point(817, 489); this.button24.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.button24.Name = "button24"; this.button24.Size = new System.Drawing.Size(155, 48); this.button24.TabIndex = 155; this.button24.Text = "强å¶è¯¥å å·åºåº"; this.button24.UseVisualStyleBackColor = false; this.button24.Click += new System.EventHandler(this.button24_Click); // // lbl_currHandlerPackageCodeForIssueOutboundTask // this.lbl_currHandlerPackageCodeForIssueOutboundTask.AutoSize = true; this.lbl_currHandlerPackageCodeForIssueOutboundTask.Location = new System.Drawing.Point(275, 693); this.lbl_currHandlerPackageCodeForIssueOutboundTask.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbl_currHandlerPackageCodeForIssueOutboundTask.Name = "lbl_currHandlerPackageCodeForIssueOutboundTask"; this.lbl_currHandlerPackageCodeForIssueOutboundTask.Size = new System.Drawing.Size(172, 15); this.lbl_currHandlerPackageCodeForIssueOutboundTask.TabIndex = 14; this.lbl_currHandlerPackageCodeForIssueOutboundTask.Text = "å½åä¸ååºåºä»»å¡çå å·"; // // FormCC // this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); @@ -6095,8 +6154,8 @@ private System.Windows.Forms.CheckBox ckMainTaskDecompose; private System.Windows.Forms.Label lbl_Alert_EmptySalverTransfer; private System.Windows.Forms.CheckBox ckEmptySalverTransfer; private System.Windows.Forms.Label lbl_Alert_Place1014ClearStoreTask; private System.Windows.Forms.CheckBox ckPlace1014ClearStoreTask; private System.Windows.Forms.Label lbl_Alert_DataProcess_RobotBuffer_IssueOutboundTask; private System.Windows.Forms.CheckBox ck_DataProcess_RobotBuffer_IssueOutboundTask; private System.Windows.Forms.Button btn_1007; private System.Windows.Forms.Button btn_1006; private System.Windows.Forms.Button btn_1005; @@ -6206,10 +6265,10 @@ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn11; private System.Windows.Forms.DataGridViewTextBoxColumn Qty; private System.Windows.Forms.DataGridViewTextBoxColumn InStoreTime; private System.Windows.Forms.Label lbl_Alert_Agv; private System.Windows.Forms.CheckBox ckAgv; private System.Windows.Forms.Label lbl_MainTaskDecompose_ZPRK; private System.Windows.Forms.CheckBox ckMainTaskDecompose_ZPRK; private System.Windows.Forms.Label lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound; private System.Windows.Forms.CheckBox ckDataProcess_RobotBuffer_AutoQiTaoOutbound; private System.Windows.Forms.Label lbl_DataProcess_RobotBuffer_ModeChange; private System.Windows.Forms.CheckBox ck_DataProcess_RobotBuffer_ModeChange; private System.Windows.Forms.TabPage tabPage4; private System.Windows.Forms.Panel panel_DeviceTaskList_dgvPartTask_Finished; private System.Windows.Forms.Button button17; @@ -6333,6 +6392,11 @@ private System.Windows.Forms.TextBox tb_wlm; private System.Windows.Forms.Label label22; private System.Windows.Forms.Button button23; private System.Windows.Forms.Label lbl_RobotMode; private System.Windows.Forms.Button button24; private System.Windows.Forms.TextBox tb_PackageCode; private System.Windows.Forms.Label label23; private System.Windows.Forms.Label lbl_currHandlerPackageCodeForIssueOutboundTask; } } CC/iWareCC_ASRS/FormCC.cs
@@ -39,6 +39,11 @@ public static bool IsAllowRunOutMode = false; /// <summary> /// å½åä¸ååºåºä»»å¡çå å· /// </summary> public static string currHandlerPackageCodeForIssueOutboundTask = ""; /// <summary> /// 1å·å åæºå ¥åºå£æ«ç 强å¶éªè¯éè¿ /// </summary> public static bool Srm1_IN_SMQZYZTG = false; @@ -214,33 +219,32 @@ // rgvService.StartService(); //å¤çãä¸åä¸ãçåºåºè®¡åä»»å¡ // new Thread(OutPlanTaskDecompose.HandlerIssuingTask).Start(); //ä»»å¡å解线ç¨-åºåº // new Thread(MainTaskDecompose.HandlerMainTaskDecompose).Start(); new Thread(DataProcess_RobotBuffer_ModeChange.Handler).Start(); //ä»»å¡å解线ç¨-ç»çå ¥åº // new Thread(MainTaskDecompose_ZPRK.HandlerMainTaskDecompose_ZPRK).Start(); new Thread(DataProcess_RobotBuffer_IssueOutboundTask.Handler).Start(); new Thread(DataProcess_RobotBuffer_AutoQiTaoOutbound.Handler).Start(); new Thread(DataProcess_RobotBuffer_FinishTaskForOutbound.Handler).Start(); //èªå¨ç»çä»»å¡ new Thread(DataProcess_RobotBuffer_FinishTask.Handler).Start(); new Thread(DataProcess_BZ01.Handler).Start(); //éæ°è·åå卿ºä¿¡æ¯ new Thread(DataProcess_269.Handler).Start(); //1014åºä½è½¬è¿å°1020çº¿ç¨ new Thread(DataProcess_BZ39.Handler).Start(); new Thread(DataProcess_BZ12.Hander).Start(); new Thread(DeleteData).Start(); new Thread(LineInSacnResult.HandlerLineInSacnResult).Start(); //new Thread(LineInSacnResult.HandlerLineInSacnResult).Start(); @@ -346,7 +350,7 @@ this.lbl_Alert_Srm4ReleaseFinish.Text = showNowTime + SystemWarningMsg._lbl_Alert_Srm4ReleaseFinish; this.lbl_Alert_RgvRelease.Text = showNowTime + SystemWarningMsg._lbl_Alert_RgvRelease; this.lbl_Alert_RgvReleaseFinish.Text = showNowTime + SystemWarningMsg._lbl_Alert_RgvReleaseFinish; this.lbl_Alert_RgvReleaseFinish.Text = showNowTime + SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_ModeChange; this.lbl_Alert_RgvReleaseFinish_BuChang.Text = showNowTime + SystemWarningMsg._lbl_Alert_RgvReleaseFinish_BuChang; this.lbl_Alert_HandlerIssuingTask.Text = showNowTime + SystemWarningMsg._lbl_Alert_HandlerIssuingTask; @@ -355,13 +359,13 @@ this.lbl_MainTaskDecompose.Text = showNowTime + SystemWarningMsg._lbl_Alert_MainTaskDecompose; this.lbl_MainTaskDecompose_ZPRK.Text = showNowTime + SystemWarningMsg._lbl_Alert_MainTaskDecompose_ZPRK; this.lbl_DataProcess_RobotBuffer_ModeChange.Text = showNowTime + SystemWarningMsg._lbl_Alert_MainTaskDecompose_ZPRK; this.lbl_Alert_DataProcess_RobotBuffer_FinishTaskForOutbound.Text = showNowTime + SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_FinishTaskForOutbound; this.lbl_Alert_DeleteData.Text = showNowTime + SystemWarningMsg._lbl_Alert_DeleteData; this.lbl_Alert_EmptySalverTransfer.Text = showNowTime + SystemWarningMsg._lbl_Alert_EmptySalverTransfer; this.lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound.Text = showNowTime + SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound; this.lbl_alert_DataProcess_BZ39.Text = showNowTime + SystemWarningMsg._lbl_alert_DataProcess_BZ39; @@ -369,7 +373,7 @@ this.lbl_alert_DataProcess_269.Text = showNowTime + SystemWarningMsg._lbl_alert_DataProcess_269; this.lbl_Alert_Place1014ClearStoreTask.Text = showNowTime + SystemWarningMsg._lbl_Alert_Place1014To1020TaskTask; this.lbl_Alert_DataProcess_RobotBuffer_IssueOutboundTask.Text = showNowTime + SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_IssueOutboundTask; this.lbl_Alter_OutTaskRetryToMes.Text = showNowTime + SystemWarningMsg._lbl_Alert_OutTaskRetryToMes; @@ -969,53 +973,6 @@ #endregion #region AGV /// <summary> /// è·åAGV车è¾å表 /// </summary> public void GetAgvVehicles() { while (true) { try { if (SystemValue.isAllowRuning_Agv && SystemValue.isStartedModel) { AGVRetModel list = AgvRequestHelper.GetVehicles(); AgvHandler.SaveAgvData(list); List<String> warningAddressList = new List<string>(); if (list.alarms != null && list.alarms.errors != null && list.alarms.errors.Count > 0) { var waringList = list.alarms.errors; if (waringList != null && waringList.Count > 0) { for (int i = 0; i < waringList.Count; i++) { DeviceWarningHandler.SaveWarning(EDevice.AGV, iWareCommon.Utils.LogType.AGVTheadService, waringList[i].code, waringList[i].code, waringList[i].desc);//æ°å¢æ¥è¦ warningAddressList.Add(waringList[i].code); } } } DeviceWarningHandler.AutoCloseWarning(EDevice.AGV, iWareCommon.Utils.LogType.AGVTheadService, warningAddressList);//èªå¨å ³éæ¥è¦ this.lbl_Alert_Agv.Text = "è·åAGV车è¾ä¿¡æ¯æå"; } } catch (Exception ex) { Log4NetHelper.WriteErrorLog(iWareCommon.Utils.LogType.CCWCFService, "è·åAGV车è¾å表 åºç°å¼å¸¸:" + ex.Message, ex); this.lbl_Alert_Agv.Text = "è·åAGV车è¾ä¿¡æ¯å¼å¸¸ï¼" + ex.Message; } finally { Thread.Sleep(5000);//5ç§ä¸æ¬¡ } } } #endregion #region å ¶ä»çº¿ç¨ @@ -1587,16 +1544,14 @@ DoCommonCheckedChanged(ref SystemValue.isAllowRuning_MainTaskDecompose, ckMainTaskDecompose); DoCommonCheckedChanged(ref SystemValue.isAllowRuning_MainTaskDecompose_ZPRK, ckMainTaskDecompose_ZPRK); DoCommonCheckedChanged(ref SystemValue.isAllowRuning_DataProcess_RobotBuffer_ModeChange, ck_DataProcess_RobotBuffer_ModeChange); DoCommonCheckedChanged(ref SystemValue.isAllowRuning_DataProcess_RobotBuffer_FinishTaskForOutbound, checkBox_DataProcess_RobotBuffer_FinishTaskForOutbound); DoCommonCheckedChanged(ref SystemValue.isAllowRuning_DeleteData, ckDeleteData); DoCommonCheckedChanged(ref SystemValue.isAllowRuning_Agv, ckAgv); DoCommonCheckedChanged(ref SystemValue.isAllowRuning_EmptySalverTransfer, ckEmptySalverTransfer); DoCommonCheckedChanged(ref SystemValue.isAllowRuning_DataProcess_RobotBuffer_AutoQiTaoOutbound, ckDataProcess_RobotBuffer_AutoQiTaoOutbound); DoCommonCheckedChanged(ref SystemValue.isAllowRuning_DataProcess_BZ39, ck_DataProcess_BZ39); @@ -1604,7 +1559,7 @@ DoCommonCheckedChanged(ref SystemValue.isAllowRuning_DataProcess_269, ck_DataProcess_269); DoCommonCheckedChanged(ref SystemValue.isAllowRuning_Place1014To1020Task, ckPlace1014ClearStoreTask); DoCommonCheckedChanged(ref SystemValue.isAllowRuning_DataProcess_RobotBuffer_IssueOutboundTask, ck_DataProcess_RobotBuffer_IssueOutboundTask); DoCommonCheckedChanged(ref SystemValue.isAllowRuning_OutTaskRetryToMes, checkBox_OutTaskRetryToMes); } @@ -1881,6 +1836,9 @@ this.btn_Start.BackColor = default_btn_Start_Color;//è¿åé¢è² } } this.lbl_RobotMode.Text = "ç¼å岿ºå¨äººæ¨¡å¼:" + (IsAllowRunOutMode ? "åºåºæ¨¡å¼" : "å ¥åºæ¨¡å¼"); this.lbl_currHandlerPackageCodeForIssueOutboundTask.Text = "å½åä¸ååºåºä»»å¡çå å·:" + currHandlerPackageCodeForIssueOutboundTask; } } @@ -3580,5 +3538,27 @@ "转æ¢å:" + "\r\n" + JsonConvert.SerializeObject(retModel); } private void lbl_Alert_Place1014ClearStoreTask_Click(object sender, EventArgs e) { } private void button24_Click(object sender, EventArgs e) { //强å¶è¯¥å å·åºåº var packageCode = this.tb_PackageCode.Text.Trim(); var alertMsg = ""; DataProcess_RobotBuffer_ForceOutbound.Handler(packageCode, ref alertMsg); if (!string.IsNullOrEmpty(alertMsg)) { MessageBox.Show("é误:" + alertMsg); } else { MessageBox.Show("å·²å¤ç"); } } } } CC/iWareCC_ASRS/Forms/SystemCheckForm.cs
@@ -259,7 +259,7 @@ iWareCC.RgvService.SdaResEntity sdaResult = rgvService.IsRgvAuto((int)EDevice.RGV, Convert.ToInt32(EDevice.RGV).ToString()); if (sdaResult.result == false) { Log4NetHelper.WriteErrorLog(iWareCommon.Utils.LogType.TrussThreadService, "éªè¯RGVæ¯å¦å¯ä»¥æ¥åä»»å¡åºç°é误,int_deviceId:" + (int)EDevice.RGV + ",sdaResultStr:" + JsonConvert.SerializeObject(sdaResult)); Log4NetHelper.WriteErrorLog(iWareCommon.Utils.LogType.DataProcess_RobotBuffer_ModeChange, "éªè¯RGVæ¯å¦å¯ä»¥æ¥åä»»å¡åºç°é误,int_deviceId:" + (int)EDevice.RGV + ",sdaResultStr:" + JsonConvert.SerializeObject(sdaResult)); text_RGV.Invoke(new Action(() => { text_RGV.BackColor = Color.Salmon; })); text_RGV.Invoke(new Action(() => { text_RGV.Text = msg + "æ£æµå¤±è´¥ï¼" + sdaResult.resMsg; })); return false; CC/iWareCC_ASRS/ThreadService/00_269¹¤Î»/DataProcess_269.cs
@@ -30,7 +30,7 @@ LogType logType = LogType.DataProcess_269; while (true) { Thread.Sleep(2000);//ä¼ç 2ç§ï¼å°ä¼ç åå°åé¢ï¼æ¯ä¸ºäºä¸é¢çcontinueæ¹æ³æ§è¡å䏿¾ç¤ºé误信æ¯çæç¤ºï¼ï¼ï¼ãEditBy shaocx,2022-05-24ã Thread.Sleep(1000);//ä¼ç 2ç§ï¼å°ä¼ç åå°åé¢ï¼æ¯ä¸ºäºä¸é¢çcontinueæ¹æ³æ§è¡å䏿¾ç¤ºé误信æ¯çæç¤ºï¼ï¼ï¼ãEditBy shaocx,2022-05-24ã SystemWarningMsg._lbl_alert_DataProcess_269 = string.Empty; try { CC/iWareCC_ASRS/ThreadService/01_BZ01¹¤Î»£¨Çå»Ò£¬Ï´°åºó¹¤Î»£©/DataProcess_BZ01.cs
@@ -33,7 +33,7 @@ LogType logType = LogType.DataProcess_BZ01; while (true) { Thread.Sleep(2000);//ä¼ç 2ç§ï¼å°ä¼ç åå°åé¢ï¼æ¯ä¸ºäºä¸é¢çcontinueæ¹æ³æ§è¡å䏿¾ç¤ºé误信æ¯çæç¤ºï¼ï¼ï¼ãEditBy shaocx,2022-05-24ã Thread.Sleep(1000);//ä¼ç 2ç§ï¼å°ä¼ç åå°åé¢ï¼æ¯ä¸ºäºä¸é¢çcontinueæ¹æ³æ§è¡å䏿¾ç¤ºé误信æ¯çæç¤ºï¼ï¼ï¼ãEditBy shaocx,2022-05-24ã SystemWarningMsg._lbl_alert_DataProcess_BZ01 = string.Empty; try { CC/iWareCC_ASRS/ThreadService/02_BZ39¹¤Î»£¨²¹°åºó¹¤Î»£©/DataProcess_RobotBuffer_ModeChange.cs
@@ -27,24 +27,49 @@ public static async void Handler() { var alertMsg = ""; LogType logType = LogType.DataProcess_BZ39; LogType logType = LogType.DataProcess_RobotBuffer_ModeChange; while (true) { Thread.Sleep(2000);//ä¼ç 2ç§ï¼å°ä¼ç åå°åé¢ï¼æ¯ä¸ºäºä¸é¢çcontinueæ¹æ³æ§è¡å䏿¾ç¤ºé误信æ¯çæç¤ºï¼ï¼ï¼ãEditBy shaocx,2022-05-24ã SystemWarningMsg._lbl_alert_DataProcess_BZ39 = string.Empty; SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_ModeChange = string.Empty; try { if (SystemValue.isAllowRuning_DataProcess_BZ39 && SystemValue.isStartedModel) if (SystemValue.isAllowRuning_DataProcess_RobotBuffer_ModeChange && SystemValue.isStartedModel) { var rgvLocation = StationLocationEnum.BZ39.ToString(); if (FormCC.IsAllowRunOutMode) { using (WmsDBModel wmsDB = new WmsDBModel()) { var rbRunMode = wmsDB.wms_rbline_runmode.FirstOrDefault(); if (TaskHandler.ValidateNoFinishOutTaskForRobotBuffer(wmsDB)) {//ä¸åå¨ rbRunMode.LineRunMode = (int)RbRunModeEnum.å ¥åºæ¨¡å¼; rbRunMode.LineRunModeName = RbRunModeEnum.å ¥åºæ¨¡å¼.ToString(); rbRunMode.UpdateTime = DateTime.Now; //æ¨éç»PLCåæ¢æ¨¡å¼ using (StationServiceClient client = new StationServiceClient()) { var res = await client.ChangeModeAsync((int)EDevice.Station, (int)RbRunModeEnum.å ¥åºæ¨¡å¼, rgvLocation); if (!res.result) { SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_ModeChange = $"{rgvLocation.ToString()}-æ¨éç»PLCåæ¢æ¨¡å¼ å¤±è´¥,ChangeModeAsync è¿å:{res.resMsg}"; continue; } else { Log4NetHelper.WriteInfoLog(logType, $"{rgvLocation.ToString()}-æ¨éç»PLCåæ¢æ¨¡å¼ æå,ChangeModeAsyncï¼åæ°: ç«ç¹{rgvLocation}"); } } FormCC.IsAllowRunOutMode = false; } else {//åå¨ if (rbRunMode.LineRunMode == (int)RbRunModeEnum.åºåºæ¨¡å¼) { SystemWarningMsg._lbl_alert_DataProcess_BZ39 = $"å·²ç»æ¯åºåºæ¨¡å¼äº,æ¤æ¬¡å¾ªç¯ç»æ"; SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_ModeChange = $"å·²ç»æ¯åºåºæ¨¡å¼äº,æ¤æ¬¡å¾ªç¯ç»æ"; continue; } rbRunMode.LineRunMode = (int)RbRunModeEnum.åºåºæ¨¡å¼; @@ -52,20 +77,20 @@ rbRunMode.UpdateTime = DateTime.Now; //æ¨éç»PLCåæ¢æ¨¡å¼ //using (StationServiceClient client = new StationServiceClient()) //{ // var res = await client.WriteOutStoreTaskInfoAsync((int)EDevice.Station, rgvLocation, doTask.PlaceCode, Convert.ToInt32(doTask.TaskNo)); // if (!res.result) // { // SystemWarningMsg._lbl_alert_DataProcess_BZ39 = $"{rgvLocation.ToString()}-ä¸ååºåºä»»å¡ 失败,WriteOutStoreTaskInfoAsync è¿å:{res.resMsg}"; // continue; // } // else // { // Log4NetHelper.WriteInfoLog(logType, $"{rgvLocation.ToString()}-ä¸ååºåºä»»å¡ æå,WriteOutStoreTaskInfoAsyncï¼åæ°: ç«ç¹{rgvLocation}"); // } //} using (StationServiceClient client = new StationServiceClient()) { var res = await client.ChangeModeAsync((int)EDevice.Station, (int)RbRunModeEnum.åºåºæ¨¡å¼, rgvLocation); if (!res.result) { SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_ModeChange = $"{rgvLocation.ToString()}-æ¨éç»PLCåæ¢æ¨¡å¼ å¤±è´¥,ChangeModeAsync è¿å:{res.resMsg}"; continue; } else { Log4NetHelper.WriteInfoLog(logType, $"{rgvLocation.ToString()}-æ¨éç»PLCåæ¢æ¨¡å¼ æå,ChangeModeAsyncï¼åæ°: ç«ç¹{rgvLocation}"); } } } wmsDB.SaveChanges(); } @@ -74,7 +99,7 @@ } catch (Exception ex) { SystemWarningMsg._lbl_alert_DataProcess_BZ39 += " åºç°å¼å¸¸:" + ex.Message + SysGloble.SPLIT_STR; SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_ModeChange += " åºç°å¼å¸¸:" + ex.Message + SysGloble.SPLIT_STR; Log4NetHelper.WriteErrorLog(logType, " åºç°å¼å¸¸ï¼" + ex.Message, ex); } } CC/iWareCC_ASRS/ThreadService/02_BZ39¹¤Î»£¨²¹°åºó¹¤Î»£©/Inbound/1¡¢DataProcess_BZ39.cs
@@ -30,7 +30,7 @@ LogType logType = LogType.DataProcess_BZ39; while (true) { Thread.Sleep(2000);//ä¼ç 2ç§ï¼å°ä¼ç åå°åé¢ï¼æ¯ä¸ºäºä¸é¢çcontinueæ¹æ³æ§è¡å䏿¾ç¤ºé误信æ¯çæç¤ºï¼ï¼ï¼ãEditBy shaocx,2022-05-24ã Thread.Sleep(1000);//ä¼ç 2ç§ï¼å°ä¼ç åå°åé¢ï¼æ¯ä¸ºäºä¸é¢çcontinueæ¹æ³æ§è¡å䏿¾ç¤ºé误信æ¯çæç¤ºï¼ï¼ï¼ãEditBy shaocx,2022-05-24ã SystemWarningMsg._lbl_alert_DataProcess_BZ39 = string.Empty; try { @@ -54,6 +54,8 @@ var qitaoReault = false; using (WmsDBModel wmsDB = new WmsDBModel()) { //ä¸åæ¦æª /* //è¦æ¯æå·²ä¸åçä»»å¡ï¼å°±ä¸è¦æ§è¡ var isValidate = TaskHandler.ValidateIssueTaskForRobotBuffer(wmsDB); if (!isValidate) @@ -61,6 +63,7 @@ SystemWarningMsg._lbl_alert_DataProcess_BZ39 = $"{rgvLocation.ToString()}-æâå·²ä¸åâçä»»å¡ï¼ä¸è½å¤ç,æ¤æ¬¡å¾ªç¯ç»æ"; continue; } //*/ var upiObj = wmsDB.mes_batchOrderUPI_new.Where(x => x.UPI == upiCode).FirstOrDefault(); if (upiObj == null) { @@ -110,6 +113,8 @@ using (StationServiceClient client = new StationServiceClient()) { //ä¸åæ¦æª /* //é¦å å æ¸ ç var res = await client.InboundFinishConfirmAsync((int)EDevice.Station, false, rgvLocation); if (!res.result) @@ -121,8 +126,9 @@ { Log4NetHelper.WriteInfoLog(logType, $"{rgvLocation.ToString()}-ä¸åå ¥åºä»»å¡ æå,InboundFinishConfirmAsyncï¼åæ°: ç«ç¹{rgvLocation}"); } //*/ res = await client.WriteInStoreTaskInfoAsync((int)EDevice.Station, rgvLocation, place.PlaceCode, var res = await client.WriteInStoreTaskInfoAsync((int)EDevice.Station, rgvLocation, place.PlaceCode, (short)upiObj.Length, (short)upiObj.Width, (short)upiObj.Thk, Convert.ToInt32(task.TaskNo)); if (!res.result) CC/iWareCC_ASRS/ThreadService/02_BZ39¹¤Î»£¨²¹°åºó¹¤Î»£©/Inbound/2¡¢DataProcess_RobotBuffer_FinishTask.cs
@@ -30,7 +30,7 @@ LogType logType = LogType.DataProcess_RobotBuffer_FinishTask; while (true) { Thread.Sleep(2000);//ä¼ç 2ç§ï¼å°ä¼ç åå°åé¢ï¼æ¯ä¸ºäºä¸é¢çcontinueæ¹æ³æ§è¡å䏿¾ç¤ºé误信æ¯çæç¤ºï¼ï¼ï¼ãEditBy shaocx,2022-05-24ã Thread.Sleep(500);//ä¼ç 2ç§ï¼å°ä¼ç åå°åé¢ï¼æ¯ä¸ºäºä¸é¢çcontinueæ¹æ³æ§è¡å䏿¾ç¤ºé误信æ¯çæç¤ºï¼ï¼ï¼ãEditBy shaocx,2022-05-24ã SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_FinishTask = string.Empty; try { @@ -89,6 +89,7 @@ InTime = DateTime.Now, OperReason = "å ¥åº", PackageCode = task.PackageCode, Length = task.Length, Width = task.Width, Thk = task.Thk, PlaceCode = task.PlaceCode, CC/iWareCC_ASRS/ThreadService/02_BZ39¹¤Î»£¨²¹°åºó¹¤Î»£©/Outbound/1¡¢DataProcess_RobotBuffer_AutoQiTaoOutbound.cs
@@ -20,25 +20,15 @@ public static async void Handler() { var alertMsg = ""; LogType logType = LogType.DataProcess_RobotBuffer_FinishTaskForOutbound; LogType logType = LogType.DataProcess_RobotBuffer_AutoQiTaoOutbound; while (true) { Thread.Sleep(2000);//ä¼ç 2ç§ï¼å°ä¼ç åå°åé¢ï¼æ¯ä¸ºäºä¸é¢çcontinueæ¹æ³æ§è¡å䏿¾ç¤ºé误信æ¯çæç¤ºï¼ï¼ï¼ãEditBy shaocx,2022-05-24ã SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_FinishTaskForOutbound = string.Empty; SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound = string.Empty; try { if (SystemValue.isAllowRuning_DataProcess_RobotBuffer_FinishTaskForOutbound && SystemValue.isStartedModel) if (SystemValue.isAllowRuning_DataProcess_RobotBuffer_AutoQiTaoOutbound && SystemValue.isStartedModel) { var rgvLocation = StationLocationEnum.BZ39.ToString(); var obj = FormCC.stationView.R_StationForReadCommList.Where(x => x.StationCode == rgvLocation.ToString()).FirstOrDefault(); if (obj.R_OutboundFinish) { var result = obj.R_OutboundNumber; if (string.IsNullOrEmpty(result)) { SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_FinishTaskForOutbound = $"{rgvLocation.ToString()}- åºåºåºä½å·æ¯ç©ºç,æ¤æ¬¡å¾ªç¯ç»æ"; continue; } using (WmsDBModel wmsDB = new WmsDBModel()) { @@ -53,8 +43,11 @@ if (allCount == group.ToList().Count()) { //满足é½å¥ï¼åºåº group.ToList().ForEach(x => //注æï¼æåºä¸¥æ ¼æç § æ¬¡åº è¿è¡æåºã ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ var doList = upiList.Where(x => x.PackageCode == packageCode).OrderBy(x => x.Shelf).ToList(); foreach (var item in doList) { var x = group.ToList().Find(b => b.Upi == item.UPI); x.StockStatus = (int)StockStatusEnum.é½å å¾ åºåº; //çæåºåºä»»å¡ @@ -79,7 +72,7 @@ RbTaskTypeEnumName = RbTaskTypeEnum.åºåºä»»å¡.ToString(), TaskStatus = (int)TaskStatusEnum.æ°å»º, TaskStatusName = TaskStatusEnum.æ°å»º.ToString(), TaskMsg = "å ¥åº", TaskMsg = "åºåºä»»å¡", CreateTime = DateTime.Now, @@ -92,18 +85,20 @@ var place = StationHandler.GetPlaceByPlaceCode(x.PlaceCode, wmsDB); place.PlaceStatus = (int)PlaceStatusEnum.éå®; }); Thread.Sleep(100); } } } wmsDB.SaveChanges(); } } } } catch (Exception ex) { SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_FinishTaskForOutbound += " åºç°å¼å¸¸:" + ex.Message + SysGloble.SPLIT_STR; SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound += " åºç°å¼å¸¸:" + ex.Message + SysGloble.SPLIT_STR; Log4NetHelper.WriteErrorLog(logType, " åºç°å¼å¸¸ï¼" + ex.Message, ex); } } CC/iWareCC_ASRS/ThreadService/02_BZ39¹¤Î»£¨²¹°åºó¹¤Î»£©/Outbound/2¡¢DataProcess_RobotBuffer_IssueOutboundTask.cs
@@ -24,69 +24,81 @@ /// </summary> public static class DataProcess_RobotBuffer_IssueOutboundTask { public static async void Handler() { var alertMsg = ""; LogType logType = LogType.DataProcess_BZ39; LogType logType = LogType.DataProcess_RobotBuffer_IssueOutboundTask; while (true) { Thread.Sleep(2000);//ä¼ç 2ç§ï¼å°ä¼ç åå°åé¢ï¼æ¯ä¸ºäºä¸é¢çcontinueæ¹æ³æ§è¡å䏿¾ç¤ºé误信æ¯çæç¤ºï¼ï¼ï¼ãEditBy shaocx,2022-05-24ã SystemWarningMsg._lbl_alert_DataProcess_BZ39 = string.Empty; Thread.Sleep(1000);//ä¼ç 2ç§ï¼å°ä¼ç åå°åé¢ï¼æ¯ä¸ºäºä¸é¢çcontinueæ¹æ³æ§è¡å䏿¾ç¤ºé误信æ¯çæç¤ºï¼ï¼ï¼ãEditBy shaocx,2022-05-24ã SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_IssueOutboundTask = string.Empty; try { if (SystemValue.isAllowRuning_DataProcess_BZ39 && SystemValue.isStartedModel) if (SystemValue.isAllowRuning_DataProcess_RobotBuffer_IssueOutboundTask && SystemValue.isStartedModel) { var rgvLocation = StationLocationEnum.BZ39.ToString(); /* * 1ã仿°æ®åºä¸å¤ææ¯å¦é½å¥ * 2ãæ ¹æ®é½å¥ç»æï¼æ¨éç»PLC */ var obj = FormCC.stationView.R_StationForReadCommList.Where(x => x.StationCode == rgvLocation.ToString()).FirstOrDefault(); if (obj.R_ReqParseData) { var result = obj.R_ReadCodeResult; if (string.IsNullOrEmpty(result)) { SystemWarningMsg._lbl_alert_DataProcess_BZ39 = $"{rgvLocation.ToString()}-请æ±äºè§£ç ï¼ä½æ¯ç»ææ¯ç©ºç,æ¤æ¬¡å¾ªç¯ç»æ"; continue; } var upiCode = result; var qitaoReault = false; using (WmsDBModel wmsDB = new WmsDBModel()) { //è¦æ¯æå·²ä¸åçä»»å¡ï¼å°±ä¸è¦æ§è¡ var isValidate = TaskHandler.ValidateIssueTaskForRobotBuffer(wmsDB); if (!isValidate) { SystemWarningMsg._lbl_alert_DataProcess_BZ39 = $"{rgvLocation.ToString()}-æâå·²ä¸åâçä»»å¡ï¼ä¸è½å¤ç,æ¤æ¬¡å¾ªç¯ç»æ"; SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_IssueOutboundTask = $"{rgvLocation.ToString()}-æâå·²ä¸åâçä»»å¡ï¼ä¸è½å¤ç,æ¤æ¬¡å¾ªç¯ç»æ"; continue; } //åå建æ¶é´ææ©çé£ä¸ªè¦åºåºçå if (string.IsNullOrEmpty(FormCC.currHandlerPackageCodeForIssueOutboundTask)) { var firstTask = wmsDB.wms_rbline_task.Where(x => x.RbTaskType == (int)RbTaskTypeEnum.åºåºä»»å¡ && x.TaskStatus == (int)TaskStatusEnum.æ°å»º).OrderBy(x => x.CreateTime).FirstOrDefault(); if (firstTask == null) { SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_IssueOutboundTask = $"{rgvLocation.ToString()},æ ¹æ® æ²¡ææ¾å° æ°å»º çä»»å¡ "; FormCC.currHandlerPackageCodeForIssueOutboundTask = ""; continue; } FormCC.currHandlerPackageCodeForIssueOutboundTask = firstTask.PackageCode; } else { var firstTask = wmsDB.wms_rbline_task.Where(x => x.RbTaskType == (int)RbTaskTypeEnum.åºåºä»»å¡ && x.TaskStatus == (int)TaskStatusEnum.æ°å»º && x.PackageCode == FormCC.currHandlerPackageCodeForIssueOutboundTask ).OrderBy(x => x.CreateTime).FirstOrDefault(); if (firstTask == null) { SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_IssueOutboundTask = $"{rgvLocation.ToString()},æ ¹æ® æ²¡ææ¾å° æ°å»º çä»»å¡ "; FormCC.currHandlerPackageCodeForIssueOutboundTask = ""; continue; } } var taskList = wmsDB.wms_rbline_task.Where(x => x.PlaceCode == obj.R_OutboundNumber && x.RbTaskType == (int)RbTaskTypeEnum.åºåºä»»å¡ && x.TaskStatus == (int)TaskStatusEnum.æ°å»º).OrderBy(x => x.PackageCode).ToList(); var taskList = wmsDB.wms_rbline_task.Where(x => x.RbTaskType == (int)RbTaskTypeEnum.åºåºä»»å¡ && x.TaskStatus == (int)TaskStatusEnum.æ°å»º).Where(x => x.PackageCode == FormCC.currHandlerPackageCodeForIssueOutboundTask).OrderBy(x => x.CreateTime).ToList(); if (taskList == null) { SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_FinishTaskForOutbound = $"{rgvLocation.ToString()},æ ¹æ® R_OutboundNumber:{obj.R_OutboundNumber}æ²¡ææ¾å°å·²ä¸åçä»»å¡ "; SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_IssueOutboundTask = $"{rgvLocation.ToString()},æ ¹æ® æ²¡ææ¾å° æ°å»º çä»»å¡ "; continue; } var doTask = taskList.FirstOrDefault(); var upiObj = wmsDB.mes_batchOrderUPI_new.Where(x => x.UPI == upiCode).FirstOrDefault(); if (upiObj == null) { SystemWarningMsg._lbl_alert_DataProcess_BZ39 = $"{rgvLocation.ToString()},æ ¹æ®UPI:{upiCode}æ²¡ææ¾å°å¯¹è±¡ "; continue; } //è¿éæ¹ä¸º ä¸å åºåºä»»å¡ //è¿éä¸å åºåºä»»å¡ using (StationServiceClient client = new StationServiceClient()) { //é¦å è¦æ¸ ç var res = await client.OutboundFinishConfirmAsync((int)EDevice.Station, true, rgvLocation); var res = await client.OutboundFinishConfirmAsync((int)EDevice.Station, false, rgvLocation); if (!res.result) { SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_FinishTaskForOutbound = $"{rgvLocation.ToString()}-ä¸ååºåºä»»å¡ 失败,OutboundFinishConfirmAsync è¿å:{res.resMsg}"; @@ -109,14 +121,17 @@ } } doTask.TaskStatus = (int)TaskStatusEnum.å·²ä¸å; doTask.TaskStatusName = TaskStatusEnum.å·²ä¸å.ToString(); wmsDB.SaveChanges(); } } } } catch (Exception ex) { SystemWarningMsg._lbl_alert_DataProcess_BZ39 += " åºç°å¼å¸¸:" + ex.Message + SysGloble.SPLIT_STR; SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_IssueOutboundTask += " åºç°å¼å¸¸:" + ex.Message + SysGloble.SPLIT_STR; Log4NetHelper.WriteErrorLog(logType, " åºç°å¼å¸¸ï¼" + ex.Message, ex); } } CC/iWareCC_ASRS/ThreadService/02_BZ39¹¤Î»£¨²¹°åºó¹¤Î»£©/Outbound/3¡¢DataProcess_RobotBuffer_FinishTaskForOutbound.cs
@@ -22,7 +22,7 @@ LogType logType = LogType.DataProcess_RobotBuffer_FinishTaskForOutbound; while (true) { Thread.Sleep(2000);//ä¼ç 2ç§ï¼å°ä¼ç åå°åé¢ï¼æ¯ä¸ºäºä¸é¢çcontinueæ¹æ³æ§è¡å䏿¾ç¤ºé误信æ¯çæç¤ºï¼ï¼ï¼ãEditBy shaocx,2022-05-24ã Thread.Sleep(500);//ä¼ç 2ç§ï¼å°ä¼ç åå°åé¢ï¼æ¯ä¸ºäºä¸é¢çcontinueæ¹æ³æ§è¡å䏿¾ç¤ºé误信æ¯çæç¤ºï¼ï¼ï¼ãEditBy shaocx,2022-05-24ã SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_FinishTaskForOutbound = string.Empty; try { CC/iWareCC_ASRS/ThreadService/02_BZ39¹¤Î»£¨²¹°åºó¹¤Î»£©/Outbound/4¡¢DataProcess_RobotBuffer_ForceOutbound.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,102 @@ using Admin.NET.Application; using iWareCommon.Common.Globle; using iWareCommon.Utils; using iWareModel; using iWareSql.DataAccess; using iWareSql.WmsDBModel; using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; namespace iWareCC.ThreadService { /// <summary> /// æºå¨äººç¼åå² äººå·¥å¼ºå¶åºåº å¤ç /// </summary> public static class DataProcess_RobotBuffer_ForceOutbound { public static bool Handler(string packageCode, ref string alertMsg) { alertMsg = ""; LogType logType = LogType.DataProcess_RobotBuffer_AutoQiTaoOutbound; try { var rgvLocation = StationLocationEnum.BZ39.ToString(); var obj = FormCC.stationView.R_StationForReadCommList.Where(x => x.StationCode == rgvLocation.ToString()).FirstOrDefault(); if (obj.R_ForceOutboundMode == false) { alertMsg = "PLC䏿¯å¼ºå¶åºåºæ¨¡å¼"; return false; } using (WmsDBModel wmsDB = new WmsDBModel()) { List<wms_stock_quan> qunList = wmsDB.wms_stock_quan.Where(x => x.StockStatus == (int)StockStatusEnum.å¨åº && x.PackageCode == packageCode ).ToList(); foreach (var x in qunList) { x.StockStatus = (int)StockStatusEnum.人工强å¶å¾ åºåº; //çæåºåºä»»å¡ //è®°å½ä»»å¡ var _id = Yitter.IdGenerator.YitIdHelper.NextId(); var plcTaskNo = BusinessHelper.CreatePlcTaskIdForSrmTask(); var new_task = new wms_rbline_task() { Id = _id, TaskNo = plcTaskNo, UPI = x.Upi, Length = x.Length, Width = x.Width, Thk = x.Thk, IssueTime = DateTime.Now, PlanNo = x.PlanNo, OrderId = x.OrderId, PackageCode = x.PackageCode, PlaceCode = x.PlaceCode, RbTaskType = (int)RbTaskTypeEnum.åºåºä»»å¡, RbTaskTypeEnumName = RbTaskTypeEnum.åºåºä»»å¡.ToString(), TaskStatus = (int)TaskStatusEnum.æ°å»º, TaskStatusName = TaskStatusEnum.æ°å»º.ToString(), TaskMsg = "人工强å¶å¾ åºåº", CreateTime = DateTime.Now, CreateUserName = "CC", UpdateTime = DateTime.Now, UpdateUserName = "CC", }; wmsDB.wms_rbline_task.Add(new_task); var place = StationHandler.GetPlaceByPlaceCode(x.PlaceCode, wmsDB); place.PlaceStatus = (int)PlaceStatusEnum.éå®; Thread.Sleep(100); } wmsDB.SaveChanges(); } return true; } catch (Exception ex) { alertMsg = " åºç°å¼å¸¸:" + ex.Message; SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound += " åºç°å¼å¸¸:" + ex.Message + SysGloble.SPLIT_STR; Log4NetHelper.WriteErrorLog(logType, " åºç°å¼å¸¸ï¼" + ex.Message, ex); return false; } } } } CC/iWareCC_ASRS/WmsTask/EmptySalverTransferTask.cs
@@ -29,11 +29,11 @@ while (true) { Thread.Sleep(2000);//ä¼ç 2ç§ï¼å°ä¼ç åå°åé¢ï¼æ¯ä¸ºäºä¸é¢çcontinueæ¹æ³æ§è¡å䏿¾ç¤ºé误信æ¯çæç¤ºï¼ï¼ï¼ãEditBy shaocx,2022-05-24ã SystemWarningMsg._lbl_Alert_EmptySalverTransfer = string.Empty; SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound = string.Empty; bool isHasFinishedCurrentHanlder = false;//æ¯å¦å·²ç»å¤çå®äºç©ºæç转è¿ä»»å¡ try { if (SystemValue.isAllowRuning_EmptySalverTransfer && SystemValue.isStartedModel) if (SystemValue.isAllowRuning_DataProcess_RobotBuffer_IssueOutboundTask && SystemValue.isStartedModel) { //æ¤å¤å¤æ 1009 1010 1011çç¶æ bool isEmptyPlace_1011 = false, isEmptyPlace_1010 = false, isEmptyPlace_1009 = false; @@ -77,7 +77,7 @@ { if (FormCC.RGV_1011_HasCategory_COUNT < SysGloble.MAX_RGV_1011_HasCategory_COUNT) { SystemWarningMsg._lbl_Alert_EmptySalverTransfer += "é误ï¼1011å¤ä¸å 许å建任å¡ï¼1011æè´§æ¶é´:" + FormCC.RGV_1011_HasCategory_COUNT SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound += "é误ï¼1011å¤ä¸å 许å建任å¡ï¼1011æè´§æ¶é´:" + FormCC.RGV_1011_HasCategory_COUNT + ",è¿æªå¤§äºè®¾å®çæå¤§è¶ æ¶æ¶é´:" + SysGloble.MAX_RGV_1011_HasCategory_COUNT + SysGloble.SPLIT_STR; } else @@ -93,11 +93,11 @@ var fr = MyExtendHelper.DoHandler(context, store, rgvLocation); if (fr.result == false) { SystemWarningMsg._lbl_Alert_EmptySalverTransfer += "é误ï¼1011夿°å»ºä»»å¡å¤±è´¥:" + fr.resMsg + SysGloble.SPLIT_STR; SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound += "é误ï¼1011夿°å»ºä»»å¡å¤±è´¥:" + fr.resMsg + SysGloble.SPLIT_STR; } else { SystemWarningMsg._lbl_Alert_EmptySalverTransfer += "æåå建1011ä»»å¡" + SysGloble.SPLIT_STR; SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound += "æåå建1011ä»»å¡" + SysGloble.SPLIT_STR; continue; } isHasFinishedCurrentHanlder = true; @@ -165,7 +165,7 @@ if (salverStackCount == 0) { //æ¥é SystemWarningMsg._lbl_Alert_EmptySalverTransfer += ("[æ£æµ]æ ¹æ®1009ç«ç¹çå çµè·åè¿åç«ä½åºçæçæ°ä¸º0") + SysGloble.SPLIT_STR; SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound += ("[æ£æµ]æ ¹æ®1009ç«ç¹çå çµè·åè¿åç«ä½åºçæçæ°ä¸º0") + SysGloble.SPLIT_STR; continue; } //ä¼ç 5ç§ @@ -174,13 +174,13 @@ if (salverStackCount2 == 0) { //æ¥é SystemWarningMsg._lbl_Alert_EmptySalverTransfer += ("[æ£æµ]æ ¹æ®1009ç«ç¹çå çµè·åè¿åç«ä½åºçæçæ°ä¸º0") + SysGloble.SPLIT_STR; SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound += ("[æ£æµ]æ ¹æ®1009ç«ç¹çå çµè·åè¿åç«ä½åºçæçæ°ä¸º0") + SysGloble.SPLIT_STR; continue; } if (salverStackCount != salverStackCount2) { //æ¥é SystemWarningMsg._lbl_Alert_EmptySalverTransfer += ("æ ¹æ®1009ç«ç¹çå çµï¼ç¸å·®5ç§è·åè¿åç«ä½åºçæçæ°ä¸ä¸è´ï¼ç¬¬ä¸æ¬¡æ¯" + salverStackCount + "ï¼ç¬¬äºæ¬¡æ¯" + salverStackCount2) + SysGloble.SPLIT_STR; SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound += ("æ ¹æ®1009ç«ç¹çå çµï¼ç¸å·®5ç§è·åè¿åç«ä½åºçæçæ°ä¸ä¸è´ï¼ç¬¬ä¸æ¬¡æ¯" + salverStackCount + "ï¼ç¬¬äºæ¬¡æ¯" + salverStackCount2) + SysGloble.SPLIT_STR; continue; } @@ -190,11 +190,11 @@ var fr = MyExtendHelper.DoHandler(context, null, rgvLocation); if (fr.result == false) { SystemWarningMsg._lbl_Alert_EmptySalverTransfer += "é误ï¼1009夿°å»ºä»»å¡å¤±è´¥:" + fr.resMsg + SysGloble.SPLIT_STR; SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound += "é误ï¼1009夿°å»ºä»»å¡å¤±è´¥:" + fr.resMsg + SysGloble.SPLIT_STR; } else { SystemWarningMsg._lbl_Alert_EmptySalverTransfer += "æåå建1009ä»»å¡" + SysGloble.SPLIT_STR; SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound += "æåå建1009ä»»å¡" + SysGloble.SPLIT_STR; continue; } isHasFinishedCurrentHanlder = true; @@ -209,7 +209,7 @@ var errMsg = ""; if (!MyExtendHelper.IsAllowSendTaskTo1014ByTPHS(ref errMsg)) { SystemWarningMsg._lbl_Alert_EmptySalverTransfer += errMsg + SysGloble.SPLIT_STR; SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound += errMsg + SysGloble.SPLIT_STR; continue; } @@ -223,7 +223,7 @@ { if (!MyExtendHelper.IsAllowSendTaskTo1014ByTPHS(ref errMsg)) {//忬¡æ ¡éª ãEditBy shaocx,2022-05-18ã SystemWarningMsg._lbl_Alert_EmptySalverTransfer += errMsg + SysGloble.SPLIT_STR; SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound += errMsg + SysGloble.SPLIT_STR; continue; } //夿1011ä½ç½®æ¯å¦æåºåï¼å¹¶ä¸æ¯æªéå®ç¶æï¼å¦ææ¯ï¼å°±ä¸è¦å建ä»ç«ä½åºå°1014çä»»å¡äºãEditBy shaocx,2022-05-18ã @@ -232,18 +232,18 @@ if (store1011 != null && store1011.StationId > 0) //if (store1011 != null && store1011.StationIsLock == false && store1011.StationIsHasTaskDoing == false) { SystemWarningMsg._lbl_Alert_EmptySalverTransfer += "1011ä½ç½®æç³»ç»åºååå¨ï¼å æ¤ä¸éè¦å建ä»ç«ä½åºå°1014çä»»å¡ãã" + SysGloble.SPLIT_STR; SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound += "1011ä½ç½®æç³»ç»åºååå¨ï¼å æ¤ä¸éè¦å建ä»ç«ä½åºå°1014çä»»å¡ãã" + SysGloble.SPLIT_STR; continue; } var fr = MyExtendHelper.DoHandler(context, null, rgvLocation); if (fr.result == false) { SystemWarningMsg._lbl_Alert_EmptySalverTransfer += "éè¯¯ï¼æçæºå ¥å£1014夿°å»ºä»ç«ä½åºå«æçä»»å¡å¤±è´¥:" + fr.resMsg + SysGloble.SPLIT_STR; SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound += "éè¯¯ï¼æçæºå ¥å£1014夿°å»ºä»ç«ä½åºå«æçä»»å¡å¤±è´¥:" + fr.resMsg + SysGloble.SPLIT_STR; } else { SystemWarningMsg._lbl_Alert_EmptySalverTransfer += "æåå建æçæºå ¥å£1014夿°å»ºä»ç«ä½åºå«æçä»»å¡" + SysGloble.SPLIT_STR; SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound += "æåå建æçæºå ¥å£1014夿°å»ºä»ç«ä½åºå«æçä»»å¡" + SysGloble.SPLIT_STR; continue; } } @@ -254,8 +254,8 @@ } catch (Exception ex) { SystemWarningMsg._lbl_Alert_EmptySalverTransfer += "å解线ç¨åºç°å¼å¸¸:" + ex.Message + SysGloble.SPLIT_STR; Log4NetHelper.WriteErrorLog(LogType.EmptySalverTransferTask, "HandlerIssuingTaskåºç°å¼å¸¸ï¼" + ex.Message, ex); SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_AutoQiTaoOutbound += "å解线ç¨åºç°å¼å¸¸:" + ex.Message + SysGloble.SPLIT_STR; Log4NetHelper.WriteErrorLog(LogType.DataProcess_RobotBuffer_IssueOutboundTask, "HandlerIssuingTaskåºç°å¼å¸¸ï¼" + ex.Message, ex); } } CC/iWareCC_ASRS/WmsTask/MainTaskDecompose_ZPRK.cs
@@ -31,7 +31,7 @@ try { SystemWarningMsg._lbl_Alert_MainTaskDecompose_ZPRK = ""; if (SystemValue.isAllowRuning_MainTaskDecompose_ZPRK && SystemValue.isStartedModel) if (SystemValue.isAllowRuning_DataProcess_RobotBuffer_ModeChange && SystemValue.isStartedModel) { using (DbModel context = new DbModel()) { CC/iWareCC_ASRS/WmsTask/Place1014To1020Task.cs
@@ -32,7 +32,7 @@ { if (FormCC.RGV_1020_NoHasCategory_COUNT <= 25) { SystemWarningMsg._lbl_Alert_Place1014To1020TaskTask = "1020ç«ç¹ï¼25ç§å å çµæ¾ç¤ºæè´§ï¼æ é¡»å¤ç转è¿å°1020ä»»å¡"; SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_IssueOutboundTask = "1020ç«ç¹ï¼25ç§å å çµæ¾ç¤ºæè´§ï¼æ é¡»å¤ç转è¿å°1020ä»»å¡"; continue; } @@ -50,27 +50,27 @@ if (isGD_HasCatogryForRgvStattion == false) { SystemWarningMsg._lbl_Alert_Place1014To1020TaskTask = "1014ç«ç¹ï¼å çµæ¾ç¤ºæ è´§ï¼æ é¡»å¤ç转è¿å°1020ä»»å¡"; SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_IssueOutboundTask = "1014ç«ç¹ï¼å çµæ¾ç¤ºæ è´§ï¼æ é¡»å¤ç转è¿å°1020ä»»å¡"; continue; } else if (isSys_HasCatogryForRgvStattion == false) { SystemWarningMsg._lbl_Alert_Place1014To1020TaskTask = "1014ç«ç¹ï¼ç³»ç»æ¾ç¤ºæ è´§ï¼æ é¡»å¤ç转è¿å°1020ä»»å¡"; SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_IssueOutboundTask = "1014ç«ç¹ï¼ç³»ç»æ¾ç¤ºæ è´§ï¼æ é¡»å¤ç转è¿å°1020ä»»å¡"; continue; } else if (isExistOtherTaskDoing == true) { SystemWarningMsg._lbl_Alert_Place1014To1020TaskTask = "1014ç«ç¹ï¼ç³»ç»æ¾ç¤ºæå ¶ä»ä»»å¡å ç¨ï¼æ é¡»å¤ç转è¿å°1020ä»»å¡"; SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_IssueOutboundTask = "1014ç«ç¹ï¼ç³»ç»æ¾ç¤ºæå ¶ä»ä»»å¡å ç¨ï¼æ é¡»å¤ç转è¿å°1020ä»»å¡"; continue; } else if (isExistOtherTaskDoingForDeviceTaskTypeEnum_ç«åºç©ºæå°æçæºå ¥å£ == true) { SystemWarningMsg._lbl_Alert_Place1014To1020TaskTask = "1014ç«ç¹ï¼ç³»ç»æ¾ç¤ºæç«åºç©ºæå°æçæºå ¥å£ä»»å¡å ç¨ï¼æ é¡»å¤ç转è¿å°1020ä»»å¡"; SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_IssueOutboundTask = "1014ç«ç¹ï¼ç³»ç»æ¾ç¤ºæç«åºç©ºæå°æçæºå ¥å£ä»»å¡å ç¨ï¼æ é¡»å¤ç转è¿å°1020ä»»å¡"; continue; } else if (isExistOtherTaskDoingForDeviceTaskTypeEnum_空æè½¬è¿å°æçæºå ¥å£ == true) { SystemWarningMsg._lbl_Alert_Place1014To1020TaskTask = "1014ç«ç¹ï¼ç³»ç»æ¾ç¤ºæç©ºæè½¬è¿å°æçæºå ¥å£ä»»å¡å ç¨ï¼æ é¡»å¤ç转è¿å°1020ä»»å¡"; SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_IssueOutboundTask = "1014ç«ç¹ï¼ç³»ç»æ¾ç¤ºæç©ºæè½¬è¿å°æçæºå ¥å£ä»»å¡å ç¨ï¼æ é¡»å¤ç转è¿å°1020ä»»å¡"; continue; } @@ -79,7 +79,7 @@ isGD_HasCatogryForRgvStattion = MyExtendHelper.IsGD_HasCatogryForRgvStattion(((int)rgvLocation_1020).ToString()); if (isGD_HasCatogryForRgvStattion == true) { SystemWarningMsg._lbl_Alert_Place1014To1020TaskTask = "1020ç«ç¹ï¼å çµæ¾ç¤ºæè´§ï¼æ é¡»å¤ç转è¿å°1020ä»»å¡"; SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_IssueOutboundTask = "1020ç«ç¹ï¼å çµæ¾ç¤ºæè´§ï¼æ é¡»å¤ç转è¿å°1020ä»»å¡"; continue; } @@ -98,11 +98,11 @@ var fr = MyExtendHelper.DoHandler(context, store, EDevice.æçæº1020); if (fr.result == false) { SystemWarningMsg._lbl_Alert_Place1014To1020TaskTask = "éè¯¯ï¼æçæºå ¥å£1014夿°å»ºä» 1014åºä½è½¬è¿å°1020çº¿ç¨ ä»»å¡å¤±è´¥:" + fr.resMsg; SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_IssueOutboundTask = "éè¯¯ï¼æçæºå ¥å£1014夿°å»ºä» 1014åºä½è½¬è¿å°1020çº¿ç¨ ä»»å¡å¤±è´¥:" + fr.resMsg; } else { SystemWarningMsg._lbl_Alert_Place1014To1020TaskTask = "æåå建æçæºå ¥å£1014夿°å»º 1014åºä½è½¬è¿å°1020 ä»»å¡"; SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_IssueOutboundTask = "æåå建æçæºå ¥å£1014夿°å»º 1014åºä½è½¬è¿å°1020 ä»»å¡"; } #endregion @@ -113,7 +113,7 @@ } catch (Exception ex) { SystemWarningMsg._lbl_Alert_Place1014To1020TaskTask = "1014åºä½è½¬è¿å°1020线ç¨åºç°å¼å¸¸:" + ex.Message; SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_IssueOutboundTask = "1014åºä½è½¬è¿å°1020线ç¨åºç°å¼å¸¸:" + ex.Message; Log4NetHelper.WriteErrorLog(LogType.CCWCFService, "Place1014To1020Task åºç°å¼å¸¸ï¼" + ex.Message, ex); } } CC/iWareCC_ASRS/iWareCC.csproj
@@ -156,6 +156,7 @@ <Compile Include="ThreadService\00_269å·¥ä½\DataProcess_269.cs" /> <Compile Include="ThreadService\01_BZ01å·¥ä½ï¼æ¸ ç°ï¼æ´æ¿åå·¥ä½ï¼\DataProcess_BZ01.cs" /> <Compile Include="ThreadService\02_BZ39å·¥ä½ï¼è¡¥æ¿åå·¥ä½ï¼\DataProcess_RobotBuffer_ModeChange.cs" /> <Compile Include="ThreadService\02_BZ39å·¥ä½ï¼è¡¥æ¿åå·¥ä½ï¼\Outbound\4ãDataProcess_RobotBuffer_ForceOutbound.cs" /> <Compile Include="ThreadService\02_BZ39å·¥ä½ï¼è¡¥æ¿åå·¥ä½ï¼\Outbound\2ãDataProcess_RobotBuffer_IssueOutboundTask.cs" /> <Compile Include="ThreadService\02_BZ39å·¥ä½ï¼è¡¥æ¿åå·¥ä½ï¼\Outbound\1ãDataProcess_RobotBuffer_AutoQiTaoOutbound.cs" /> <Compile Include="ThreadService\02_BZ39å·¥ä½ï¼è¡¥æ¿åå·¥ä½ï¼\Outbound\3ãDataProcess_RobotBuffer_FinishTaskForOutbound.cs" /> CC/iWareCommon/BusinessHelper/BusinessHelper.cs
@@ -135,7 +135,7 @@ /// <returns></returns> public static string CreatePlcTaskIdForSrmTask() { int iSeed = 65534; int iSeed = 9999; //ä»101-9999ï¼ä¸ºä»ä¹è¦ä»101å¼å§ï¼å 为1-100ä½ä¸ºæå¨ä»»å¡ä¸åããEditBy shaocx,2022-05-10ã return new Random(Guid.NewGuid().GetHashCode()).Next(101, iSeed).ToString(); } CC/iWareCommon/Utils/Log4Net/LogType.cs
@@ -30,7 +30,7 @@ /// <summary> /// æ¡æ¶ä»»å¡çº¿ç¨æ¥å¿ /// </summary> TrussThreadService = 15, DataProcess_RobotBuffer_ModeChange = 15, #region SDAç¸å ³ @@ -73,7 +73,7 @@ /// <summary> /// AGVçº¿ç¨æ¥å¿ /// </summary> AGVTheadService = 302, DataProcess_RobotBuffer_AutoQiTaoOutbound = 302, /// <summary> /// åä¸ªå ¥åºå£æ«ææ£æµçº¿ç¨ @@ -93,7 +93,7 @@ /// <summary> /// 空æç转è¿ä»»å¡ /// </summary> EmptySalverTransferTask = 306, DataProcess_RobotBuffer_IssueOutboundTask = 306, /// <summary> /// èªå¨ç»çä»»å¡ä¸å CC/iWareCommon/log4net_iWare.config
@@ -70,8 +70,8 @@ <filter type="log4net.Filter.DenyAllFilter" /> </appender> <!-- 空æç转è¿ä»»å¡ãä¿¡æ¯ãæ¥å¿--> <appender name="EmptySalverTransferTask_Info" type="log4net.Appender.RollingFileAppender"> <file value="d:\\Log\\LuLiMuYe\\iWareCC\\EmptySalverTransferTask_Info\\" /> <appender name="DataProcess_RobotBuffer_IssueOutboundTask_Info" type="log4net.Appender.RollingFileAppender"> <file value="d:\\Log\\LuLiMuYe\\iWareCC\\DataProcess_RobotBuffer_IssueOutboundTask_Info\\" /> <appendToFile value="true" /> <rollingStyle value="Date" /> <staticLogFileName value="false" /> @@ -81,13 +81,13 @@ <param name="ConversionPattern" value="%næ¶æ¯æ¶é´ï¼%d [%t] %næ¶æ¯çº§å«ï¼%-5p %næ¶ æ¯ ç±»ï¼%c [%x] %n%m %n "/> </layout> <filter type="log4net.Filter.LoggerMatchFilter"> <loggerToMatch value="EmptySalverTransferTask_Info" /> <loggerToMatch value="DataProcess_RobotBuffer_IssueOutboundTask_Info" /> </filter> <filter type="log4net.Filter.DenyAllFilter" /> </appender> <!--空æç转è¿ä»»å¡ãéè¯¯ãæ¥å¿--> <appender name="EmptySalverTransferTask_Error" type="log4net.Appender.RollingFileAppender"> <file value="d:\\Log\\LuLiMuYe\\iWareCC\\EmptySalverTransferTask_Error\\" /> <appender name="DataProcess_RobotBuffer_IssueOutboundTask_Error" type="log4net.Appender.RollingFileAppender"> <file value="d:\\Log\\LuLiMuYe\\iWareCC\\DataProcess_RobotBuffer_IssueOutboundTask_Error\\" /> <appendToFile value="true" /> <rollingStyle value="Date" /> <staticLogFileName value="false" /> @@ -97,7 +97,7 @@ <param name="ConversionPattern" value="%nå¼å¸¸æ¶é´ï¼%d [%t] %nå¼å¸¸çº§å«ï¼%-5p %nå¼ å¸¸ ç±»ï¼%c [%x] %n%m %n "/> </layout> <filter type="log4net.Filter.LoggerMatchFilter"> <loggerToMatch value="EmptySalverTransferTask_Error" /> <loggerToMatch value="DataProcess_RobotBuffer_IssueOutboundTask_Error" /> </filter> <filter type="log4net.Filter.DenyAllFilter" /> </appender> @@ -198,8 +198,8 @@ <filter type="log4net.Filter.DenyAllFilter" /> </appender> <!--AGVãä¿¡æ¯ãæ¥å¿--> <appender name="AGVTheadService_Info" type="log4net.Appender.RollingFileAppender"> <file value="d:\\Log\\LuLiMuYe\\iWareCC\\AGVTheadService_Info\\" /> <appender name="DataProcess_RobotBuffer_AutoQiTaoOutbound_Info" type="log4net.Appender.RollingFileAppender"> <file value="d:\\Log\\LuLiMuYe\\iWareCC\\DataProcess_RobotBuffer_AutoQiTaoOutbound_Info\\" /> <appendToFile value="true" /> <rollingStyle value="Date" /> <staticLogFileName value="false" /> @@ -209,13 +209,13 @@ <param name="ConversionPattern" value="%næ¶æ¯æ¶é´ï¼%d [%t] %næ¶æ¯çº§å«ï¼%-5p %næ¶ æ¯ ç±»ï¼%c [%x] %n%m %n "/> </layout> <filter type="log4net.Filter.LoggerMatchFilter"> <loggerToMatch value="AGVTheadService_Info" /> <loggerToMatch value="DataProcess_RobotBuffer_AutoQiTaoOutbound_Info" /> </filter> <filter type="log4net.Filter.DenyAllFilter" /> </appender> <!--AGVãéè¯¯ãæ¥å¿--> <appender name="AGVTheadService_Error" type="log4net.Appender.RollingFileAppender"> <file value="d:\\Log\\LuLiMuYe\\iWareCC\\AGVTheadService_Error\\" /> <appender name="DataProcess_RobotBuffer_AutoQiTaoOutbound_Error" type="log4net.Appender.RollingFileAppender"> <file value="d:\\Log\\LuLiMuYe\\iWareCC\\DataProcess_RobotBuffer_AutoQiTaoOutbound_Error\\" /> <appendToFile value="true" /> <rollingStyle value="Date" /> <staticLogFileName value="false" /> @@ -225,13 +225,13 @@ <param name="ConversionPattern" value="%nå¼å¸¸æ¶é´ï¼%d [%t] %nå¼å¸¸çº§å«ï¼%-5p %nå¼ å¸¸ ç±»ï¼%c [%x] %n%m %n "/> </layout> <filter type="log4net.Filter.LoggerMatchFilter"> <loggerToMatch value="AGVTheadService_Error" /> <loggerToMatch value="DataProcess_RobotBuffer_AutoQiTaoOutbound_Error" /> </filter> <filter type="log4net.Filter.DenyAllFilter" /> </appender> <!--MESæ¥å£ãä¿¡æ¯ãæ¥å¿--> <appender name="MesService_Info" type="log4net.Appender.RollingFileAppender"> <file value="d:\\Log\\LuLiMuYe\\iWareCC\\MesService_Info\\" /> <appender name="DataProcess_RobotBuffer_ModeChange_Info" type="log4net.Appender.RollingFileAppender"> <file value="d:\\Log\\LuLiMuYe\\iWareCC\\DataProcess_RobotBuffer_ModeChange_Info\\" /> <appendToFile value="true" /> <rollingStyle value="Date" /> <staticLogFileName value="false" /> @@ -241,13 +241,13 @@ <param name="ConversionPattern" value="%næ¶æ¯æ¶é´ï¼%d [%t] %næ¶æ¯çº§å«ï¼%-5p %næ¶ æ¯ ç±»ï¼%c [%x] %n%m %n "/> </layout> <filter type="log4net.Filter.LoggerMatchFilter"> <loggerToMatch value="MesService_Info" /> <loggerToMatch value="DataProcess_RobotBuffer_ModeChange_Info" /> </filter> <filter type="log4net.Filter.DenyAllFilter" /> </appender> <!--MESæ¥å£ãéè¯¯ãæ¥å¿--> <appender name="MesService_Error" type="log4net.Appender.RollingFileAppender"> <file value="d:\\Log\\LuLiMuYe\\iWareCC\\MesService_Error\\" /> <appender name="DataProcess_RobotBuffer_ModeChange_Error" type="log4net.Appender.RollingFileAppender"> <file value="d:\\Log\\LuLiMuYe\\iWareCC\\DataProcess_RobotBuffer_ModeChange_Error\\" /> <appendToFile value="true" /> <rollingStyle value="Date" /> <staticLogFileName value="false" /> @@ -257,7 +257,7 @@ <param name="ConversionPattern" value="%nå¼å¸¸æ¶é´ï¼%d [%t] %nå¼å¸¸çº§å«ï¼%-5p %nå¼ å¸¸ ç±»ï¼%c [%x] %n%m %n "/> </layout> <filter type="log4net.Filter.LoggerMatchFilter"> <loggerToMatch value="MesService_Error" /> <loggerToMatch value="DataProcess_RobotBuffer_ModeChange_Error" /> </filter> <filter type="log4net.Filter.DenyAllFilter" /> </appender> @@ -628,18 +628,18 @@ <appender-ref ref="DataProcess_269_Error"/> <appender-ref ref="DataProcess_BZ01_Info"/> <appender-ref ref="DataProcess_BZ01_Error"/> <appender-ref ref="EmptySalverTransferTask_Info"/> <appender-ref ref="EmptySalverTransferTask_Error"/> <appender-ref ref="DataProcess_RobotBuffer_IssueOutboundTask_Info"/> <appender-ref ref="DataProcess_RobotBuffer_IssueOutboundTask_Error"/> <appender-ref ref="DataProcess_BZ39_Info"/> <appender-ref ref="DataProcess_BZ39_Error"/> <appender-ref ref="DataProcess_RobotBuffer_FinishTask_Info"/> <appender-ref ref="DataProcess_RobotBuffer_FinishTask_Error"/> <appender-ref ref="DataProcess_RobotBuffer_FinishTaskForOutbound_Info"/> <appender-ref ref="DataProcess_RobotBuffer_FinishTaskForOutbound_Error"/> <appender-ref ref="AGVTheadService_Info"/> <appender-ref ref="AGVTheadService_Error"/> <appender-ref ref="MesService_Info"/> <appender-ref ref="MesService_Error"/> <appender-ref ref="DataProcess_RobotBuffer_AutoQiTaoOutbound_Info"/> <appender-ref ref="DataProcess_RobotBuffer_AutoQiTaoOutbound_Error"/> <appender-ref ref="DataProcess_RobotBuffer_ModeChange_Info"/> <appender-ref ref="DataProcess_RobotBuffer_ModeChange_Error"/> <appender-ref ref="OutPlanTask_Info"/> <appender-ref ref="OutPlanTask_Error"/> <!--å åæºä»»å¡çº¿ç¨æ¥å¿--> CC/iWareSql/DataAccess/StationHandlerV2.cs
@@ -181,7 +181,7 @@ var emptyStationList = edm.V_EmptyStation.ToList(); //ä¸éæºæåº emptyStationList = emptyStationList.OrderByDescending(x => x.LaneNo).ThenByDescending(x => x.ColumnNo).ThenBy(x => x.LayerNo).ToList(); emptyStationList = emptyStationList.OrderBy(x => x.LaneNo).ThenBy(x => x.LayerNo).ThenBy(x => x.ColumnNo).ToList(); //å¢å 该åºä½æ¯å¦è¢«ä»»å¡å ç¨ççé [EditBy shaocx,2022-06-02] @@ -192,7 +192,7 @@ var my_emptyStationList = emptyStationList.Where(x => usePlaceTypeList.Contains( x.PlaceType)).OrderBy(x=>x.PlaceType).ToList(); if (my_emptyStationList?.Count() > 0) { wms_base_place toPlace = StationHandler.GetPlaceByPlaceId(emptyStationList.First().Id, edm); wms_base_place toPlace = StationHandler.GetPlaceByPlaceId(my_emptyStationList.First().Id, edm); return toPlace; } else CC/iWareSql/DataAccess/TaskHandler.cs
@@ -45,11 +45,27 @@ var isExist = wmsDB.wms_rbline_task.Where(x => x.TaskStatus == (int)TaskStatusEnum.å·²ä¸å && x.RbTaskType == (int)RbTaskTypeEnum.ç æ¿ä»»å¡).ToList(); /// <summary> /// éªè¯ æºå¨äººç¼å岿¯å¦åå¨ æªç»æ çåºåºä»»å¡ /// </summary> /// <param name="wmsDB"></param> /// <returns>true:ä¸åå¨ falseï¼åå¨</returns> public static bool ValidateNoFinishOutTaskForRobotBuffer(WmsDBModel.WmsDBModel wmsDB) { var isExist = wmsDB.wms_rbline_task.Where(x => x.TaskStatus != (int)TaskStatusEnum.已宿 && x.TaskStatus != (int)TaskStatusEnum.已忶 && ( x.RbTaskType == (int)RbTaskTypeEnum.åºåºä»»å¡ ) ).ToList(); if (isExist?.Count() > 0) { return false; } return true; } } } CC/iWareUnitTest/App.config
@@ -5,8 +5,7 @@ <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/> </configSections> <connectionStrings> <!--æ¬æº--> <add name="DbModel" connectionString="data source=192.168.10.5;initial catalog=LA24030_LuLiPackageLine;persist security info=True;user id=sa;password=123abc.com;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient"/> <add name="WmsDBModel" connectionString="data source=localhost;initial catalog=LA24030_LuLiPackageLine;persist security info=True;user id=sa;password=123abc.com;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient"/> </connectionStrings> <appSettings> <!-- æ¯å¦æ¨¡æPLCï¼åå¸ä¸å®æ¯ FALSE --> CC/iWareUnitTest/Task_UnitTest.cs
@@ -6,6 +6,8 @@ using iWareModel; using iWareCC.Common.Helper; using iWareSql.DBModel; using iWareSql.WmsDBModel; using System.Linq; namespace iWareUnitTest { @@ -17,9 +19,11 @@ public void Test() { var errMsg = ""; using (DbModel context = new DbModel()) using (WmsDBModel context = new WmsDBModel()) { var srmStore = MyExtendHelper.FindStoreForEmptySalverTo1014(context, ref errMsg); var obj = context.mes_batchOrderUPI_new.Where(x => x.UPI == "LS101000901100090000").FirstOrDefault(); var place = StationHandlerV2.FindBestEmptyPlace(context, obj); } } @@ -27,7 +31,7 @@ [TestMethod] public void TestAddInStoreTask() { SysUser user = new SysUser(); AddMainTaskPostParam param = new AddMainTaskPostParam(); param.CargoNo = "ææ¯è´§ç©å·å2swfsaf"; param.SalverCode = "ææ¯æçå·å2swfsaf"; LA24030_LuLiPackageLine_Web/src/views/main/WmsOrder/mes_BatchOrderUPI_New/index.vue
@@ -199,7 +199,7 @@ </el-table-column> <el-table-column prop="planNo" label="æ¹æ¬¡å·" show-overflow-tooltip="" /> <el-table-column prop="orderId" label="订åå·" show-overflow-tooltip="" /> <el-table-column prop="upi" label="é¨ä»¶æ¡ç " show-overflow-tooltip="" /> <el-table-column prop="upi" label="é¨ä»¶æ¡ç " width="200px" show-overflow-tooltip="" /> <el-table-column prop="detailName" label="é¨ä»¶åç§°" show-overflow-tooltip="" /> <el-table-column prop="length" label="é¿" show-overflow-tooltip="" /> <el-table-column prop="width" label="宽" show-overflow-tooltip="" /> LA24030_LuLiPackageLine_Wms/Admin.NET.Application/Configuration/Database.json
@@ -21,12 +21,12 @@ // } //], "DbSettings": { "EnableInitDb": false, // å¯ç¨åºåå§å "EnableDiffLog": false, // å¯ç¨åºè¡¨å·®å¼æ¥å¿ "EnableInitDb": true, // å¯ç¨åºåå§å "EnableDiffLog": true, // å¯ç¨åºè¡¨å·®å¼æ¥å¿ "EnableUnderLine": false // å¯ç¨é©¼å³°è½¬ä¸å线 }, "TableSettings": { "EnableInitTable": false, // å¯ç¨è¡¨åå§å "EnableInitTable": true, // å¯ç¨è¡¨åå§å "EnableIncreTable": false // å¯ç¨è¡¨å¢éæ´æ°-ç¹æ§[IncreTable] }, "SeedSettings": { SDA/iWareSda/App.config
@@ -4,8 +4,8 @@ <!-- è¯è¨é ç½® é ç½® 0 䏿 1 è±æ --> <add key="LanguageFlg" value="0"/> <!-- ç«ç¹çPLC é ç½® --> <!-- <add key="Station_Address" value="172.17.51.202"/> --> <add key="Station_Address" value="192.168.10.100"/> <add key="Station_Address" value="172.17.51.202"/> <!-- <add key="Station_Address" value="192.168.10.100"/> --> <add key="Station_Rack" value="0"/> <add key="Station_Slot" value="1"/> <add key="Station_Port" value="102"/> SDA/iWareSda/Devices/4-Station/StationModel/DB/RgvComm.cs
@@ -40,13 +40,13 @@ /// å ¥åºä»»å¡å· /// </summary> [Description("å ¥åºä»»å¡å·")] public int W_Inbound_TaskID { get; set; } public short W_Inbound_TaskID { get; set; } /// <summary> /// åºåºä»»å¡å· /// </summary> [Description("åºåºä»»å¡å·")] public int W_Outbound_TaskID { get; set; } public short W_Outbound_TaskID { get; set; } /// <summary> /// æ¥æé¿åº¦ @@ -77,7 +77,7 @@ /// åé åºåºåºä½å· /// </summary> [Description("åé åºåºåºä½å·")] public string W_Destination_Out { get; set; } public int W_Destination_Out { get; set; } /// <summary> /// æ¯å¦æè½¬ @@ -173,6 +173,12 @@ /// </summary> [Description("ç åä»»å¡å®æç¡®è®¤")] public bool W_PalletizingTaskFinish { get; set; } /// <summary> /// 模å¼ï¼1ï¼å ¥åºï¼ 2ï¼åºåº 3ï¼å¼ºå¶åºåºï¼ /// </summary> [Description("模å¼ï¼1ï¼å ¥åºï¼ 2ï¼åºåº 3ï¼å¼ºå¶åºåºï¼")] public short W_Mode { get; set; } } @@ -474,27 +480,6 @@ /// </summary> [Description("åºåºä»»å¡å·")] public short R_Outbound_TaskID { get; set; } /// <summary> /// ç åæ¾è´§å®æ /// </summary> [Description("ç åæ¾è´§å®æ")] public bool R_PalletizingFinish { get; set; } /// <summary> /// ç å读åä»»å¡å· /// </summary> [Description("ç å读åä»»å¡å·")] public short R_PalletizingTaskNo { get; set; } /// <summary> /// ç åä½ç½®1ç¶æ /// </summary> [Description("ç åä½ç½®1ç¶æ")] public short R_PalletizingStation1 { get; set; } /// <summary> /// ç åä½ç½®2ç¶æ /// </summary> [Description("ç åä½ç½®2ç¶æ")] public short R_PalletizingStation2 { get; set; } } public class StationDBForReadComm @@ -554,25 +539,6 @@ /// </summary> [Description("åºåºä»»å¡å·")] public string R_Outbound_TaskID { get; set; } /// <summary> /// ç åæ¾è´§å®æ /// </summary> [Description("ç åæ¾è´§å®æ")] public string R_PalletizingFinish { get; set; } /// <summary> /// ç å读åä»»å¡å· /// </summary> [Description("ç å读åä»»å¡å·")] public string R_PalletizingTaskNo { get; set; } /// <summary> /// ç åä½ç½®1ç¶æ /// </summary> [Description("ç åä½ç½®1ç¶æ")] public string R_PalletizingStation1 { get; set; } /// <summary> /// ç åä½ç½®2ç¶æ /// </summary> [Description("ç åä½ç½®2ç¶æ")] public string R_PalletizingStation2 { get; set; } } } SDA/iWareSda/Devices/4-Station/StationModel/StationEntity.cs
@@ -278,12 +278,71 @@ return false; } b2 = this.plcService.WriteValuePoint(stationObj.W_ReqOut, false, view_stationObj.W_ReqOut); if (!b2.result) { msg = string.Format("åStation W_ReqOut å°å{0} å " + false + "失败,è¿åç»æ:" + b2.resMsg, stationObj.W_ReqOut); return false; } b2 = this.plcService.WriteValuePoint(stationObj.W_Destination_Out, 0, view_stationObj.W_Destination_Out); if (!b2.result) { msg = string.Format("åStation W_Destination_Out å°å{0} å " + 0 + "失败,è¿åç»æ:" + b2.resMsg, stationObj.W_Destination_Out); return false; } b2 = this.plcService.WriteValuePoint(stationObj.W_Outbound_TaskID, 0, view_stationObj.W_Outbound_TaskID); if (!b2.result) { msg = string.Format("åStation W_Outbound_TaskID å°å{0} å " + 0 + "失败,è¿åç»æ:" + b2.resMsg, stationObj.W_Outbound_TaskID); return false; } return true; } catch (Exception ex) { msg = ex.Message; var logcontext = string.Format("åStatio åºåºä»»å¡å®æç¡®è®¤ åºç°å¼å¸¸:" + JsonConvert.SerializeObject(ex), ""); Log4NetHelper.WriteErrorLog(Station_CacheEntity.curLogType, logcontext, ex); return false; } } /// <summary> /// åæ¢æ¨¡å¼ /// </summary> /// <param name="stationCode"></param> /// <param name="value"></param> /// <param name="msg"></param> /// <returns></returns> public bool ChangeMode(string stationCode, int value, out string msg) { try { msg = ""; var stationObj = this.DBBlockForWrite.W_StationForWriteCommList.Where(x => x.StationCode == stationCode).FirstOrDefault(); var view_stationObj = this.View.W_StationForWriteCommList.Where(x => x.StationCode == stationCode).FirstOrDefault(); MessageModel b2 = this.plcService.WriteValuePoint(stationObj.W_Mode, value, view_stationObj.W_Mode); if (!b2.result) { msg = string.Format("åStation åæ¢æ¨¡å¼ å°å{0} å " + value + "失败,è¿åç»æ:" + b2.resMsg, stationObj.W_Mode); return false; } return true; } catch (Exception ex) { msg = ex.Message; var logcontext = string.Format("åStatio åæ¢æ¨¡å¼ åºç°å¼å¸¸:" + JsonConvert.SerializeObject(ex), ""); Log4NetHelper.WriteErrorLog(Station_CacheEntity.curLogType, logcontext, ex); return false; @@ -514,20 +573,11 @@ var stationObj = this.DBBlockForWrite.W_StationForWriteCommList.Where(x => x.StationCode == stationCode).FirstOrDefault(); var view_stationObj = this.View.W_StationForWriteCommList.Where(x => x.StationCode == stationCode).FirstOrDefault(); MessageModel b2 = this.plcService.WriteValuePoint(stationObj.W_Outbound_TaskID, true, view_stationObj.W_Outbound_TaskID); MessageModel b2 = this.plcService.WriteValuePoint(stationObj.W_Outbound_TaskID, outbound_TaskID, view_stationObj.W_Outbound_TaskID); if (!b2.result) { msg = string.Format("åStationå°å{0} å åºåºä»»å¡å· " + true + "失败,è¿åç»æ:" + b2.resMsg, msg = string.Format("åStationå°å{0} å åºåºä»»å¡å· " + outbound_TaskID + "失败,è¿åç»æ:" + b2.resMsg, stationObj.W_Outbound_TaskID); return false; } b2 = this.plcService.WriteValuePoint(stationObj.W_ReqOut, true, view_stationObj.W_ReqOut); if (!b2.result) { msg = string.Format("åStationå°å{0} å 请æ±åºåº " + true + "失败,è¿åç»æ:" + b2.resMsg, stationObj.W_ReqOut); return false; } @@ -539,6 +589,13 @@ return false; } b2 = this.plcService.WriteValuePoint(stationObj.W_ReqOut, true, view_stationObj.W_ReqOut); if (!b2.result) { msg = string.Format("åStationå°å{0} å 请æ±åºåº " + true + "失败,è¿åç»æ:" + b2.resMsg, stationObj.W_ReqOut); return false; } return true; } SDA/iWareSda/Devices/4-Station/StationModel/Station_CacheEntity.cs
@@ -177,7 +177,8 @@ W_ReqOut = W_DBHeaderWithSeparate_BZ39 + "12.0", W_Destination_Out = W_DBHeaderWithSeparate_BZ39 + "14.0", W_Mode = W_DBHeaderWithSeparate_BZ39 + "18.0", W_OutboundFinishConfirm = W_DBHeaderWithSeparate_BZ39 + "0.2" W_OutboundFinishConfirm = W_DBHeaderWithSeparate_BZ39 + "0.2", }); @@ -244,6 +245,8 @@ R_Inbound_TaskID = W_DBHeaderWithSeparate_BZ39 + "112.0", R_Outbound_TaskID = W_DBHeaderWithSeparate_BZ39 + "114.0", R_ForceOutboundMode = W_DBHeaderWithSeparate_BZ39 + "50.3", }); SDA/iWareSda/Devices/4-Station/StationService/IStationService.cs
@@ -110,6 +110,17 @@ [OperationContract] SdaResEntity OutboundFinishConfirm(int deviceId, bool value, string stationCode); /// <summary> /// åæ¢æ¨¡å¼ /// </summary> /// <param name="deviceId"></param> /// <param name="value"></param> /// <param name="stationCode"></param> /// <returns></returns> [OperationContract] SdaResEntity ChangeMode(int deviceId, int value, string stationCode); /// <summary> /// åå ¥å ¥åºä»»å¡ä¿¡æ¯ /// </summary> SDA/iWareSda/Devices/4-Station/StationService/StationService.cs
@@ -503,6 +503,39 @@ } /// <summary> /// åæ¢æ¨¡å¼ /// </summary> /// <param name="deviceId"></param> /// <param name="value"></param> /// <param name="stationCode"></param> /// <returns></returns> public SdaResEntity ChangeMode(int deviceId, int value, string stationCode) { SdaResEntity _SdaResEntity = new SdaResEntity(); try { var StationResult = Station_CacheEntity.GetDeviceObj(deviceId); if (!StationResult.result) { return StationResult; } var Station = StationResult.resData as StationEntity; string msg = ""; var result = Station.ChangeMode(stationCode, value, out msg); _SdaResEntity.result = result; _SdaResEntity.resMsg = msg; return _SdaResEntity; } catch (Exception ex) { _SdaResEntity.result = false; _SdaResEntity.resMsg = ex.Message; return _SdaResEntity; } } /// <summary> /// åå ¥å ¥åºä»»å¡ä¿¡æ¯ /// </summary> /// <param name="deviceId"></param>