| | |
| | | /// èªå¨ç»çä»»å¡ çè¦åæ¶æ¯ |
| | | /// </summary> |
| | | public static string _lbl_alert_DataProcess_BZ39 = string.Empty; |
| | | |
| | | /// <summary> |
| | | /// èªå¨ç æ¿ä»»å¡ çè¦åæ¶æ¯ |
| | | /// </summary> |
| | | public static string _lbl_alert_DataProcess_BZ12 = string.Empty; |
| | | |
| | | /// <summary> |
| | | /// èªå¨ç»çä»»å¡ä¸å çè¦åæ¶æ¯ |
| | |
| | | private short R_Outbound_TaskIDField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private bool R_PalletizingFinishField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private short R_PalletizingStation1Field; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private short R_PalletizingStation2Field; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private short R_PalletizingTaskNoField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private string R_ReadCodeResultField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | |
| | | } |
| | | |
| | | [System.Runtime.Serialization.DataMemberAttribute()] |
| | | public bool R_PalletizingFinish { |
| | | get { |
| | | return this.R_PalletizingFinishField; |
| | | } |
| | | set { |
| | | if ((this.R_PalletizingFinishField.Equals(value) != true)) { |
| | | this.R_PalletizingFinishField = value; |
| | | this.RaisePropertyChanged("R_PalletizingFinish"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | [System.Runtime.Serialization.DataMemberAttribute()] |
| | | public short R_PalletizingStation1 { |
| | | get { |
| | | return this.R_PalletizingStation1Field; |
| | | } |
| | | set { |
| | | if ((this.R_PalletizingStation1Field.Equals(value) != true)) { |
| | | this.R_PalletizingStation1Field = value; |
| | | this.RaisePropertyChanged("R_PalletizingStation1"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | [System.Runtime.Serialization.DataMemberAttribute()] |
| | | public short R_PalletizingStation2 { |
| | | get { |
| | | return this.R_PalletizingStation2Field; |
| | | } |
| | | set { |
| | | if ((this.R_PalletizingStation2Field.Equals(value) != true)) { |
| | | this.R_PalletizingStation2Field = value; |
| | | this.RaisePropertyChanged("R_PalletizingStation2"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | [System.Runtime.Serialization.DataMemberAttribute()] |
| | | public short R_PalletizingTaskNo { |
| | | get { |
| | | return this.R_PalletizingTaskNoField; |
| | | } |
| | | set { |
| | | if ((this.R_PalletizingTaskNoField.Equals(value) != true)) { |
| | | this.R_PalletizingTaskNoField = value; |
| | | this.RaisePropertyChanged("R_PalletizingTaskNo"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | [System.Runtime.Serialization.DataMemberAttribute()] |
| | | public string R_ReadCodeResult { |
| | | get { |
| | | return this.R_ReadCodeResultField; |
| | |
| | | private string W_Destination_OutField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private bool W_EndMarkField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private short W_HeightField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | |
| | | private string W_PackageWidthField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private short W_PalletizingPlaceXField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private short W_PalletizingPlaceYField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private short W_PalletizingStationField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private bool W_PalletizingTaskFinishField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private short W_PalletizingTaskIDField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private bool W_ReqOutField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private short W_RotateField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private short W_WidthField; |
| | |
| | | if ((object.ReferenceEquals(this.W_Destination_OutField, value) != true)) { |
| | | this.W_Destination_OutField = value; |
| | | this.RaisePropertyChanged("W_Destination_Out"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | [System.Runtime.Serialization.DataMemberAttribute()] |
| | | public bool W_EndMark { |
| | | get { |
| | | return this.W_EndMarkField; |
| | | } |
| | | set { |
| | | if ((this.W_EndMarkField.Equals(value) != true)) { |
| | | this.W_EndMarkField = value; |
| | | this.RaisePropertyChanged("W_EndMark"); |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | [System.Runtime.Serialization.DataMemberAttribute()] |
| | | public short W_PalletizingPlaceX { |
| | | get { |
| | | return this.W_PalletizingPlaceXField; |
| | | } |
| | | set { |
| | | if ((this.W_PalletizingPlaceXField.Equals(value) != true)) { |
| | | this.W_PalletizingPlaceXField = value; |
| | | this.RaisePropertyChanged("W_PalletizingPlaceX"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | [System.Runtime.Serialization.DataMemberAttribute()] |
| | | public short W_PalletizingPlaceY { |
| | | get { |
| | | return this.W_PalletizingPlaceYField; |
| | | } |
| | | set { |
| | | if ((this.W_PalletizingPlaceYField.Equals(value) != true)) { |
| | | this.W_PalletizingPlaceYField = value; |
| | | this.RaisePropertyChanged("W_PalletizingPlaceY"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | [System.Runtime.Serialization.DataMemberAttribute()] |
| | | public short W_PalletizingStation { |
| | | get { |
| | | return this.W_PalletizingStationField; |
| | | } |
| | | set { |
| | | if ((this.W_PalletizingStationField.Equals(value) != true)) { |
| | | this.W_PalletizingStationField = value; |
| | | this.RaisePropertyChanged("W_PalletizingStation"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | [System.Runtime.Serialization.DataMemberAttribute()] |
| | | public bool W_PalletizingTaskFinish { |
| | | get { |
| | | return this.W_PalletizingTaskFinishField; |
| | | } |
| | | set { |
| | | if ((this.W_PalletizingTaskFinishField.Equals(value) != true)) { |
| | | this.W_PalletizingTaskFinishField = value; |
| | | this.RaisePropertyChanged("W_PalletizingTaskFinish"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | [System.Runtime.Serialization.DataMemberAttribute()] |
| | | public short W_PalletizingTaskID { |
| | | get { |
| | | return this.W_PalletizingTaskIDField; |
| | | } |
| | | set { |
| | | if ((this.W_PalletizingTaskIDField.Equals(value) != true)) { |
| | | this.W_PalletizingTaskIDField = value; |
| | | this.RaisePropertyChanged("W_PalletizingTaskID"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | [System.Runtime.Serialization.DataMemberAttribute()] |
| | | public bool W_ReqOut { |
| | | get { |
| | | return this.W_ReqOutField; |
| | |
| | | if ((this.W_ReqOutField.Equals(value) != true)) { |
| | | this.W_ReqOutField = value; |
| | | this.RaisePropertyChanged("W_ReqOut"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | [System.Runtime.Serialization.DataMemberAttribute()] |
| | | public short W_Rotate { |
| | | get { |
| | | return this.W_RotateField; |
| | | } |
| | | set { |
| | | if ((this.W_RotateField.Equals(value) != true)) { |
| | | this.W_RotateField = value; |
| | | this.RaisePropertyChanged("W_Rotate"); |
| | | } |
| | | } |
| | | } |
| | |
| | | [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IStationService/WriteOutStoreTaskInfo", ReplyAction="http://tempuri.org/IStationService/WriteOutStoreTaskInfoResponse")] |
| | | System.Threading.Tasks.Task<iWareCC.StationService.SdaResEntity> WriteOutStoreTaskInfoAsync(int deviceId, string stationCode, string sourcePlaceNo, int outbound_TaskID); |
| | | |
| | | [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IStationService/WritePalletizingTaskInfo", ReplyAction="http://tempuri.org/IStationService/WritePalletizingTaskInfoResponse")] |
| | | iWareCC.StationService.SdaResEntity WritePalletizingTaskInfo(int deviceId, string stationCode, int taskID, bool isLast, short length, short width, short height, short rotate, short toplace, short placeX, short placeY); |
| | | |
| | | [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IStationService/WritePalletizingTaskInfo", ReplyAction="http://tempuri.org/IStationService/WritePalletizingTaskInfoResponse")] |
| | | System.Threading.Tasks.Task<iWareCC.StationService.SdaResEntity> WritePalletizingTaskInfoAsync(int deviceId, string stationCode, int taskID, bool isLast, short length, short width, short height, short rotate, short toplace, short placeX, short placeY); |
| | | |
| | | [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IStationService/SetPalletizingTaskFinishAck", ReplyAction="http://tempuri.org/IStationService/SetPalletizingTaskFinishAckResponse")] |
| | | iWareCC.StationService.SdaResEntity SetPalletizingTaskFinishAck(int deviceId, bool value, string stationCode); |
| | | |
| | | [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IStationService/SetPalletizingTaskFinishAck", ReplyAction="http://tempuri.org/IStationService/SetPalletizingTaskFinishAckResponse")] |
| | | System.Threading.Tasks.Task<iWareCC.StationService.SdaResEntity> SetPalletizingTaskFinishAckAsync(int deviceId, bool value, string stationCode); |
| | | |
| | | [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IStationService/WriteStation_FinishACK", ReplyAction="http://tempuri.org/IStationService/WriteStation_FinishACKResponse")] |
| | | iWareCC.StationService.SdaResEntity WriteStation_FinishACK(int deviceId, bool value, int plcTaskId); |
| | | |
| | |
| | | return base.Channel.WriteOutStoreTaskInfoAsync(deviceId, stationCode, sourcePlaceNo, outbound_TaskID); |
| | | } |
| | | |
| | | public iWareCC.StationService.SdaResEntity WritePalletizingTaskInfo(int deviceId, string stationCode, int taskID, bool isLast, short length, short width, short height, short rotate, short toplace, short placeX, short placeY) { |
| | | return base.Channel.WritePalletizingTaskInfo(deviceId, stationCode, taskID, isLast, length, width, height, rotate, toplace, placeX, placeY); |
| | | } |
| | | |
| | | public System.Threading.Tasks.Task<iWareCC.StationService.SdaResEntity> WritePalletizingTaskInfoAsync(int deviceId, string stationCode, int taskID, bool isLast, short length, short width, short height, short rotate, short toplace, short placeX, short placeY) { |
| | | return base.Channel.WritePalletizingTaskInfoAsync(deviceId, stationCode, taskID, isLast, length, width, height, rotate, toplace, placeX, placeY); |
| | | } |
| | | |
| | | public iWareCC.StationService.SdaResEntity SetPalletizingTaskFinishAck(int deviceId, bool value, string stationCode) { |
| | | return base.Channel.SetPalletizingTaskFinishAck(deviceId, value, stationCode); |
| | | } |
| | | |
| | | public System.Threading.Tasks.Task<iWareCC.StationService.SdaResEntity> SetPalletizingTaskFinishAckAsync(int deviceId, bool value, string stationCode) { |
| | | return base.Channel.SetPalletizingTaskFinishAckAsync(deviceId, value, stationCode); |
| | | } |
| | | |
| | | public iWareCC.StationService.SdaResEntity WriteStation_FinishACK(int deviceId, bool value, int plcTaskId) { |
| | | return base.Channel.WriteStation_FinishACK(deviceId, value, plcTaskId); |
| | | } |
| | |
| | | <wsdl:message name="IStationService_WriteOutStoreTaskInfo_OutputMessage"> |
| | | <wsdl:part name="parameters" element="tns:WriteOutStoreTaskInfoResponse" /> |
| | | </wsdl:message> |
| | | <wsdl:message name="IStationService_WritePalletizingTaskInfo_InputMessage"> |
| | | <wsdl:part name="parameters" element="tns:WritePalletizingTaskInfo" /> |
| | | </wsdl:message> |
| | | <wsdl:message name="IStationService_WritePalletizingTaskInfo_OutputMessage"> |
| | | <wsdl:part name="parameters" element="tns:WritePalletizingTaskInfoResponse" /> |
| | | </wsdl:message> |
| | | <wsdl:message name="IStationService_SetPalletizingTaskFinishAck_InputMessage"> |
| | | <wsdl:part name="parameters" element="tns:SetPalletizingTaskFinishAck" /> |
| | | </wsdl:message> |
| | | <wsdl:message name="IStationService_SetPalletizingTaskFinishAck_OutputMessage"> |
| | | <wsdl:part name="parameters" element="tns:SetPalletizingTaskFinishAckResponse" /> |
| | | </wsdl:message> |
| | | <wsdl:message name="IStationService_WriteStation_FinishACK_InputMessage"> |
| | | <wsdl:part name="parameters" element="tns:WriteStation_FinishACK" /> |
| | | </wsdl:message> |
| | |
| | | <wsdl:operation name="WriteOutStoreTaskInfo"> |
| | | <wsdl:input wsaw:Action="http://tempuri.org/IStationService/WriteOutStoreTaskInfo" message="tns:IStationService_WriteOutStoreTaskInfo_InputMessage" /> |
| | | <wsdl:output wsaw:Action="http://tempuri.org/IStationService/WriteOutStoreTaskInfoResponse" message="tns:IStationService_WriteOutStoreTaskInfo_OutputMessage" /> |
| | | </wsdl:operation> |
| | | <wsdl:operation name="WritePalletizingTaskInfo"> |
| | | <wsdl:input wsaw:Action="http://tempuri.org/IStationService/WritePalletizingTaskInfo" message="tns:IStationService_WritePalletizingTaskInfo_InputMessage" /> |
| | | <wsdl:output wsaw:Action="http://tempuri.org/IStationService/WritePalletizingTaskInfoResponse" message="tns:IStationService_WritePalletizingTaskInfo_OutputMessage" /> |
| | | </wsdl:operation> |
| | | <wsdl:operation name="SetPalletizingTaskFinishAck"> |
| | | <wsdl:input wsaw:Action="http://tempuri.org/IStationService/SetPalletizingTaskFinishAck" message="tns:IStationService_SetPalletizingTaskFinishAck_InputMessage" /> |
| | | <wsdl:output wsaw:Action="http://tempuri.org/IStationService/SetPalletizingTaskFinishAckResponse" message="tns:IStationService_SetPalletizingTaskFinishAck_OutputMessage" /> |
| | | </wsdl:operation> |
| | | <wsdl:operation name="WriteStation_FinishACK"> |
| | | <wsdl:input wsaw:Action="http://tempuri.org/IStationService/WriteStation_FinishACK" message="tns:IStationService_WriteStation_FinishACK_InputMessage" /> |
| | |
| | | <soap:body use="literal" /> |
| | | </wsdl:output> |
| | | </wsdl:operation> |
| | | <wsdl:operation name="WritePalletizingTaskInfo"> |
| | | <soap:operation soapAction="http://tempuri.org/IStationService/WritePalletizingTaskInfo" style="document" /> |
| | | <wsdl:input> |
| | | <soap:body use="literal" /> |
| | | </wsdl:input> |
| | | <wsdl:output> |
| | | <soap:body use="literal" /> |
| | | </wsdl:output> |
| | | </wsdl:operation> |
| | | <wsdl:operation name="SetPalletizingTaskFinishAck"> |
| | | <soap:operation soapAction="http://tempuri.org/IStationService/SetPalletizingTaskFinishAck" style="document" /> |
| | | <wsdl:input> |
| | | <soap:body use="literal" /> |
| | | </wsdl:input> |
| | | <wsdl:output> |
| | | <soap:body use="literal" /> |
| | | </wsdl:output> |
| | | </wsdl:operation> |
| | | <wsdl:operation name="WriteStation_FinishACK"> |
| | | <soap:operation soapAction="http://tempuri.org/IStationService/WriteStation_FinishACK" style="document" /> |
| | | <wsdl:input> |
| | |
| | | </xs:sequence> |
| | | </xs:complexType> |
| | | </xs:element> |
| | | <xs:element name="WritePalletizingTaskInfo"> |
| | | <xs:complexType> |
| | | <xs:sequence> |
| | | <xs:element minOccurs="0" name="deviceId" type="xs:int" /> |
| | | <xs:element minOccurs="0" name="stationCode" nillable="true" type="xs:string" /> |
| | | <xs:element minOccurs="0" name="taskID" type="xs:int" /> |
| | | <xs:element minOccurs="0" name="isLast" type="xs:boolean" /> |
| | | <xs:element minOccurs="0" name="length" type="xs:short" /> |
| | | <xs:element minOccurs="0" name="width" type="xs:short" /> |
| | | <xs:element minOccurs="0" name="height" type="xs:short" /> |
| | | <xs:element minOccurs="0" name="rotate" type="xs:short" /> |
| | | <xs:element minOccurs="0" name="toplace" type="xs:short" /> |
| | | <xs:element minOccurs="0" name="placeX" type="xs:short" /> |
| | | <xs:element minOccurs="0" name="placeY" type="xs:short" /> |
| | | </xs:sequence> |
| | | </xs:complexType> |
| | | </xs:element> |
| | | <xs:element name="WritePalletizingTaskInfoResponse"> |
| | | <xs:complexType> |
| | | <xs:sequence> |
| | | <xs:element xmlns:q15="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="WritePalletizingTaskInfoResult" nillable="true" type="q15:SdaResEntity" /> |
| | | </xs:sequence> |
| | | </xs:complexType> |
| | | </xs:element> |
| | | <xs:element name="SetPalletizingTaskFinishAck"> |
| | | <xs:complexType> |
| | | <xs:sequence> |
| | | <xs:element minOccurs="0" name="deviceId" type="xs:int" /> |
| | | <xs:element minOccurs="0" name="value" type="xs:boolean" /> |
| | | <xs:element minOccurs="0" name="stationCode" nillable="true" type="xs:string" /> |
| | | </xs:sequence> |
| | | </xs:complexType> |
| | | </xs:element> |
| | | <xs:element name="SetPalletizingTaskFinishAckResponse"> |
| | | <xs:complexType> |
| | | <xs:sequence> |
| | | <xs:element xmlns:q16="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="SetPalletizingTaskFinishAckResult" nillable="true" type="q16:SdaResEntity" /> |
| | | </xs:sequence> |
| | | </xs:complexType> |
| | | </xs:element> |
| | | <xs:element name="WriteStation_FinishACK"> |
| | | <xs:complexType> |
| | | <xs:sequence> |
| | |
| | | <xs:element name="WriteStation_FinishACKResponse"> |
| | | <xs:complexType> |
| | | <xs:sequence> |
| | | <xs:element xmlns:q15="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="WriteStation_FinishACKResult" nillable="true" type="q15:SdaResEntity" /> |
| | | <xs:element xmlns:q17="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="WriteStation_FinishACKResult" nillable="true" type="q17:SdaResEntity" /> |
| | | </xs:sequence> |
| | | </xs:complexType> |
| | | </xs:element> |
| | |
| | | <xs:element name="WriteScanValidateACKResponse"> |
| | | <xs:complexType> |
| | | <xs:sequence> |
| | | <xs:element xmlns:q16="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="WriteScanValidateACKResult" nillable="true" type="q16:SdaResEntity" /> |
| | | <xs:element xmlns:q18="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="WriteScanValidateACKResult" nillable="true" type="q18:SdaResEntity" /> |
| | | </xs:sequence> |
| | | </xs:complexType> |
| | | </xs:element> |
| | |
| | | <xs:element name="WriteStation_XigangGetDataForOutResponse"> |
| | | <xs:complexType> |
| | | <xs:sequence> |
| | | <xs:element xmlns:q17="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="WriteStation_XigangGetDataForOutResult" nillable="true" type="q17:SdaResEntity" /> |
| | | <xs:element xmlns:q19="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="WriteStation_XigangGetDataForOutResult" nillable="true" type="q19:SdaResEntity" /> |
| | | </xs:sequence> |
| | | </xs:complexType> |
| | | </xs:element> |
| | |
| | | <xs:element minOccurs="0" name="R_OutboundFinish" type="xs:boolean" /> |
| | | <xs:element minOccurs="0" name="R_OutboundNumber" nillable="true" type="xs:string" /> |
| | | <xs:element minOccurs="0" name="R_Outbound_TaskID" type="xs:short" /> |
| | | <xs:element minOccurs="0" name="R_PalletizingFinish" type="xs:boolean" /> |
| | | <xs:element minOccurs="0" name="R_PalletizingStation1" type="xs:short" /> |
| | | <xs:element minOccurs="0" name="R_PalletizingStation2" type="xs:short" /> |
| | | <xs:element minOccurs="0" name="R_PalletizingTaskNo" type="xs:short" /> |
| | | <xs:element minOccurs="0" name="R_ReadCodeResult" nillable="true" type="xs:string" /> |
| | | <xs:element minOccurs="0" name="R_ReqParseData" type="xs:boolean" /> |
| | | <xs:element minOccurs="0" name="R_Shape" type="xs:short" /> |
| | |
| | | <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_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_Outbound_TaskID" type="xs:int" /> |
| | | <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" /> |
| | | <xs:element minOccurs="0" name="W_PalletizingPlaceY" type="xs:short" /> |
| | | <xs:element minOccurs="0" name="W_PalletizingStation" type="xs:short" /> |
| | | <xs:element minOccurs="0" name="W_PalletizingTaskFinish" type="xs:boolean" /> |
| | | <xs:element minOccurs="0" name="W_PalletizingTaskID" type="xs:short" /> |
| | | <xs:element minOccurs="0" name="W_ReqOut" type="xs:boolean" /> |
| | | <xs:element minOccurs="0" name="W_Rotate" type="xs:short" /> |
| | | <xs:element minOccurs="0" name="W_Width" type="xs:short" /> |
| | | <xs:element minOccurs="0" name="W_X_Offset" nillable="true" type="xs:string" /> |
| | | <xs:element minOccurs="0" name="W_Y_Offset" nillable="true" type="xs:string" /> |
| | |
| | | using iWareCC.SrmService; |
| | | using iWareCC.StationService; |
| | | using iWareCC.ThreadService; |
| | | using iWareCC.ThreadService._03_BZ12_æºå¨äººç å
å·¥ä½_; |
| | | using iWareCC.WCF; |
| | | using iWareCommon.Common.Globle; |
| | | using iWareCommon.Utils; |
| | |
| | | |
| | | //éæ°è·åå卿ºä¿¡æ¯ |
| | | new Thread(DataProcess_269.Handler).Start(); |
| | | |
| | | |
| | | //1014åºä½è½¬è¿å°1020çº¿ç¨ |
| | | new Thread(DataProcess_BZ39.Handler).Start(); |
| | | |
| | | new Thread(DataProcess_BZ12.Hander).Start(); |
| | | |
| | | new Thread(DeleteData).Start(); |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using Admin.NET.Application; |
| | | using iWareCC.StationService; |
| | | 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.Text; |
| | | using System.Threading; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace iWareCC.ThreadService._03_BZ12_æºå¨äººç å
å·¥ä½_ |
| | | { |
| | | public class DataProcess_BZ12 |
| | | { |
| | | public static void Hander() |
| | | { |
| | | var alertMsg = ""; |
| | | LogType logType = LogType.DataProcess_BZ12; |
| | | while (true) |
| | | { |
| | | Thread.Sleep(2000);//ä¼ç 2ç§ï¼å°ä¼ç åå°åé¢ï¼æ¯ä¸ºäºä¸é¢çcontinueæ¹æ³æ§è¡å䏿¾ç¤ºé误信æ¯çæç¤ºï¼ï¼ï¼ãEditBy shaocx,2022-05-24ã |
| | | SystemWarningMsg._lbl_alert_DataProcess_BZ12 = string.Empty; |
| | | try |
| | | { |
| | | if (SystemValue.isAllowRuning_DataProcess_BZ39 && SystemValue.isStartedModel) |
| | | { |
| | | var rgvLocation = StationLocationEnum.BZ12.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; |
| | | bool islast = false;//æ¯å¦æ«æ¿ |
| | | short isrotate = 0;//æ¯å¦æè½¬ |
| | | short placeX = 0; |
| | | short placeY = 0; |
| | | string place = ""; |
| | | using (WmsDBModel wmsDB = new WmsDBModel()) |
| | | { |
| | | //è¦æ¯æå·²ä¸åçä»»å¡ï¼å°±ä¸è¦æ§è¡ |
| | | var isValidate = TaskHandler.ValidateIssueTaskForBZ12(wmsDB); |
| | | if (!isValidate) |
| | | { |
| | | SystemWarningMsg._lbl_alert_DataProcess_BZ12 = $"{rgvLocation.ToString()}-æâå·²ä¸åâçä»»å¡ï¼ä¸è½å¤ç,æ¤æ¬¡å¾ªç¯ç»æ"; |
| | | continue; |
| | | } |
| | | var upiObj = wmsDB.mes_batchOrderUPI_new.Where(x => x.UPI == upiCode).FirstOrDefault(); |
| | | if (upiObj == null) |
| | | { |
| | | SystemWarningMsg._lbl_alert_DataProcess_BZ12 = $"{rgvLocation.ToString()},æ ¹æ®UPI:{upiCode}æ²¡ææ¾å°å¯¹è±¡ "; |
| | | continue; |
| | | } |
| | | isrotate = 1; |
| | | placeX = (short)upiObj.MachineXCenter; |
| | | placeY = (short)upiObj.MachineYCenter; |
| | | //æ¥å¤è¿å
ææçæ°é |
| | | var upiList = wmsDB.mes_batchOrderUPI_new.Where(x => x.PackageCode == upiObj.PackageCode).ToList(); |
| | | //æ¥è¯¢æ¯å¦æ«æ¿å¹¶ä¸å¤æææ²¡ææ··æ¹ |
| | | var wms_rbline_runmode = wmsDB.wms_rbline_runmode.FirstOrDefault(); |
| | | if (wms_rbline_runmode != null) |
| | | { |
| | | //æ¥è¯¢æ¯å¦æ··æ¹ |
| | | if (!string.IsNullOrEmpty(wms_rbline_runmode.PalletizingUPI)) |
| | | { |
| | | if (upiCode != wms_rbline_runmode.PalletizingUPI) |
| | | { |
| | | SystemWarningMsg._lbl_alert_DataProcess_BZ12 = $"{rgvLocation.ToString()},UPI:{upiCode}ç å
é¨ä»¶æ··æ¹ "; |
| | | continue; |
| | | } |
| | | } |
| | | //è·åç åç®æ ä½ |
| | | if (wms_rbline_runmode.PalletizingStation != 0) |
| | | { |
| | | place = wms_rbline_runmode.PalletizingStation.ToString(); |
| | | } |
| | | else |
| | | { |
| | | if (obj.R_PalletizingStation1 == 1) |
| | | { |
| | | place = "1"; |
| | | } |
| | | else if (obj.R_PalletizingStation2 == 1) |
| | | { |
| | | place = "2"; |
| | | |
| | | } |
| | | else |
| | | { |
| | | SystemWarningMsg._lbl_alert_DataProcess_BZ12 = $"{rgvLocation.ToString()},UPI:{upiCode}æ å¯ç¨ç åç®æ ä½ "; |
| | | continue; |
| | | } |
| | | } |
| | | //å¦ææ¬¡åºçäºå½é±å
æ»æ°éï¼æ¯å¦æ«æ¿ç½®ä¸ºtrue |
| | | if (upiObj.Shelf == upiList.Count()) |
| | | { |
| | | islast = true; |
| | | wms_rbline_runmode.PalletizingUPI = null; |
| | | wms_rbline_runmode.PalletizingStation = 0; |
| | | } |
| | | |
| | | } |
| | | //æ¥è¯¢ææ²¡ææ¬¡åºå°äºå½å次åºå¹¶ä¸æ²¡æç åç |
| | | var oldupi = upiList.Where(x => x.Shelf < upiObj.Shelf && x.UpiStatus != (int)UpiStatusEnum.å·²ç å).FirstOrDefault(); |
| | | if (oldupi != null) |
| | | { |
| | | SystemWarningMsg._lbl_alert_DataProcess_BZ12 = $"{rgvLocation.ToString()},UPI:{upiCode}ç å
顺åºé误 "; |
| | | continue; |
| | | } |
| | | |
| | | //è®°å½ä»»å¡ |
| | | var _id = Yitter.IdGenerator.YitIdHelper.NextId(); |
| | | var plcTaskNo = BusinessHelper.CreatePlcTaskIdForSrmTask(); |
| | | var task = new wms_rbline_task() |
| | | { |
| | | Id = _id, |
| | | TaskNo = plcTaskNo, |
| | | UPI = upiObj.UPI, |
| | | Length = upiObj.Length, |
| | | Width = upiObj.Width, |
| | | Thk = upiObj.Thk, |
| | | IssueTime = DateTime.Now, |
| | | PlanNo = upiObj.PlanNo, |
| | | OrderId = upiObj.OrderId, |
| | | PackageCode = upiObj.PackageCode, |
| | | RbTaskType = (int)RbTaskTypeEnum.ç æ¿ä»»å¡, |
| | | RbTaskTypeEnumName = RbTaskTypeEnum.ç æ¿ä»»å¡.ToString(), |
| | | TaskStatus = (int)TaskStatusEnum.å·²ä¸å, |
| | | TaskStatusName = TaskStatusEnum.å·²ä¸å.ToString(), |
| | | TaskMsg = "ç æ¿", |
| | | CreateTime = DateTime.Now, |
| | | CreateUserName = "CC", |
| | | UpdateTime = DateTime.Now, |
| | | UpdateUserName = "CC", |
| | | PlaceCode=place |
| | | }; |
| | | |
| | | wmsDB.wms_rbline_task.Add(task); |
| | | |
| | | using (StationServiceClient client = new StationServiceClient()) |
| | | { |
| | | |
| | | var res = client.WritePalletizingTaskInfo((int)EDevice.Station, rgvLocation, Convert.ToInt32(task.TaskNo), islast, |
| | | (short)upiObj.Length, (short)upiObj.Width, (short)upiObj.Thk, isrotate, short.Parse(task.PlaceCode), placeX, placeY); |
| | | if (!res.result) |
| | | { |
| | | SystemWarningMsg._lbl_alert_DataProcess_BZ12 = $"{rgvLocation.ToString()}-ä¸åå
¥åºä»»å¡ 失败,WriteInStoreTaskInfoAsync è¿å:{res.resMsg}"; |
| | | continue; |
| | | } |
| | | else |
| | | { |
| | | Log4NetHelper.WriteInfoLog(logType, $"{rgvLocation.ToString()}-ä¸åå
¥åºä»»å¡ æå,WriteInStoreTaskInfoAsyncï¼åæ°: ç«ç¹{rgvLocation}"); |
| | | } |
| | | } |
| | | |
| | | wmsDB.SaveChanges(); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | SystemWarningMsg._lbl_alert_DataProcess_BZ39 += " åºç°å¼å¸¸:" + ex.Message + SysGloble.SPLIT_STR; |
| | | Log4NetHelper.WriteErrorLog(logType, " åºç°å¼å¸¸ï¼" + ex.Message, ex); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace iWareCC.ThreadService._03_BZ12_æºå¨äººç å
å·¥ä½_ |
| | | { |
| | | internal class DataProcess_BZ12_FinishTask |
| | | { |
| | | } |
| | | } |
| | |
| | | <Compile Include="ThreadService\02_BZ39å·¥ä½ï¼è¡¥æ¿åå·¥ä½ï¼\Outbound\3ãDataProcess_RobotBuffer_FinishTaskForOutbound.cs" /> |
| | | <Compile Include="ThreadService\02_BZ39å·¥ä½ï¼è¡¥æ¿åå·¥ä½ï¼\Inbound\2ãDataProcess_RobotBuffer_FinishTask.cs" /> |
| | | <Compile Include="ThreadService\02_BZ39å·¥ä½ï¼è¡¥æ¿åå·¥ä½ï¼\Inbound\1ãDataProcess_BZ39.cs" /> |
| | | <Compile Include="ThreadService\03_BZ12%28æºå¨äººç å
å·¥ä½%29\DataProcess_BZ12.cs" /> |
| | | <Compile Include="ThreadService\04_BZ21ï¼æ¬è¿æ´åæºå¨äººï¼\DataProcess_BZ21.cs" /> |
| | | <Compile Include="WCF\CCWcfService.cs" /> |
| | | <Compile Include="WCF\ICCWcfService.cs" /> |
| | |
| | | <None Include="Resources\ç©¿æ¢æ¯è½¦1.jpg" /> |
| | | <None Include="Resources\ç©¿æ¢åæ¯è½¦%28彩è²%29.jpg" /> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | | <Folder Include="ThreadService\03_BZ12%28æºå¨äººç å
å·¥ä½%29\" /> |
| | | </ItemGroup> |
| | | <ItemGroup /> |
| | | <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
| | | </Project> |
| | |
| | | /// <summary> |
| | | /// éæ°è·åå卿ºä¿¡æ¯ |
| | | /// </summary> |
| | | DataProcess_269 = 308 |
| | | DataProcess_269 = 308, |
| | | /// <summary> |
| | | /// ç æ¿ä»»å¡ä¸å |
| | | /// </summary> |
| | | DataProcess_BZ12 = 309, |
| | | } |
| | | } |
| | |
| | | return true; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// éªè¯ ç æ¿æ¯å¦ææ§è¡ä¸ä»»å¡ |
| | | /// </summary> |
| | | /// <param name="wmsDB"></param> |
| | | /// <returns></returns> |
| | | public static bool ValidateIssueTaskForBZ12(WmsDBModel.WmsDBModel wmsDB) |
| | | { |
| | | var isExist = wmsDB.wms_rbline_task.Where(x => x.TaskStatus == (int)TaskStatusEnum.å·²ä¸å |
| | | && x.RbTaskType == (int)RbTaskTypeEnum.ç æ¿ä»»å¡).ToList(); |
| | | |
| | | if (isExist?.Count() > 0) |
| | | { |
| | | return false; |
| | | } |
| | | return true; |
| | | } |
| | | } |
| | | } |
| | |
| | | public string UpdateUserName { get; set; } |
| | | |
| | | public bool IsDelete { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä¸ä¸æ¬¡ç åç¼å· |
| | | /// </summary> |
| | | public string PalletizingUPI { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä¸ä¸æ¬¡ç åç«ç¹ |
| | | /// </summary> |
| | | public int? PalletizingStation { get; set; } |
| | | } |
| | | } |
| | |
| | | |
| | | public string? LineRunModeName { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä¸ä¸æ¬¡ç åç¼å· |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "PalletizingUPI", ColumnDescription = "ä¸ä¸æ¬¡ç åç¼å·", Length = 50)] |
| | | public string? PalletizingUPI { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä¸ä¸æ¬¡ç åç«ç¹ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "PalletizingStation", ColumnDescription = "ä¸ä¸æ¬¡ç åç«ç¹")] |
| | | public int? PalletizingStation { get; set; } |
| | | |
| | | } |
| | | } |
| | |
| | | StationLocationEnum.馿¬¡æ«ç å·¥ä½.ToString(), |
| | | StationLocationEnum.BZ01.ToString(), |
| | | StationLocationEnum.BZ39.ToString(), |
| | | StationLocationEnum.BZ21.ToString(), |
| | | StationLocationEnum.BZ12.ToString(), |
| | | |
| | | }; |
| | | |
| | | |
| | |
| | | [Description("åºåºå®æå·²ç¡®è®¤")] |
| | | public bool W_OutboundFinishConfirm { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç åæ«æ¿æ å¿ |
| | | /// </summary> |
| | | [Description("ç åæ«æ¿æ å¿")] |
| | | public bool W_EndMark { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç åä»»å¡å· |
| | | /// </summary> |
| | | [Description("ç åä»»å¡å·")] |
| | | public short W_PalletizingTaskID { get; set; } |
| | | /// <summary> |
| | | /// ç åæ¯å¦æè½¬ |
| | | /// </summary> |
| | | [Description("ç åæ¯å¦æè½¬")] |
| | | public short W_Rotate { get; set; } |
| | | /// <summary> |
| | | /// ç åç®æ å·¥ä½ |
| | | /// </summary> |
| | | [Description("ç åç®æ å·¥ä½")] |
| | | public short W_PalletizingStation { get; set; } |
| | | /// <summary> |
| | | /// ç åä½ç½®åæ X |
| | | /// </summary> |
| | | [Description("ç åä½ç½®åæ X")] |
| | | public short W_PalletizingPlaceX { get; set; } |
| | | /// <summary> |
| | | /// ç åä½ç½®åæ Y |
| | | /// </summary> |
| | | [Description("ç åä½ç½®åæ Y")] |
| | | public short W_PalletizingPlaceY { get; set; } |
| | | /// <summary> |
| | | /// ç åä»»å¡å®æç¡®è®¤ |
| | | /// </summary> |
| | | [Description("ç åä»»å¡å®æç¡®è®¤")] |
| | | public bool W_PalletizingTaskFinish { get; set; } |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | [Description("è¯»ç æ°æ®è§£æå®æ")] |
| | | public string W_DataFinish { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç åæ«æ¿æ å¿ |
| | | /// </summary> |
| | | [Description("ç åæ«æ¿æ å¿")] |
| | | public string W_EndMark { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç åä»»å¡å· |
| | | /// </summary> |
| | | [Description("ç åä»»å¡å·")] |
| | | public string W_PalletizingTaskID { get; set; } |
| | | /// <summary> |
| | | /// ç åæ¯å¦æè½¬ |
| | | /// </summary> |
| | | [Description("ç åæ¯å¦æè½¬")] |
| | | public string W_Rotate { get; set; } |
| | | /// <summary> |
| | | /// ç åç®æ å·¥ä½ |
| | | /// </summary> |
| | | [Description("ç åç®æ å·¥ä½")] |
| | | public string W_PalletizingStation { get; set; } |
| | | /// <summary> |
| | | /// ç åä½ç½®åæ X |
| | | /// </summary> |
| | | [Description("ç åä½ç½®åæ X")] |
| | | public string W_PalletizingPlaceX { get; set; } |
| | | /// <summary> |
| | | /// ç åä½ç½®åæ Y |
| | | /// </summary> |
| | | [Description("ç åä½ç½®åæ Y")] |
| | | public string W_PalletizingPlaceY { get; set; } |
| | | /// <summary> |
| | | /// ç åä»»å¡å®æç¡®è®¤ |
| | | /// </summary> |
| | | [Description("ç åä»»å¡å®æç¡®è®¤")] |
| | | public string W_PalletizingTaskFinish { get; set; } |
| | | /// <summary> |
| | | /// é½å¥ä¿¡æ¯ï¼998é½å¥ï¼999å¼å¸¸åºåºï¼ |
| | | /// </summary> |
| | |
| | | /// </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 |
| | |
| | | /// </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; } |
| | | } |
| | | } |
| | |
| | | return false; |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// åå
¥ç åä»»å¡ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <param name="stationCode"></param> |
| | | /// <param name=""></param> |
| | | /// <param name="taskID"></param> |
| | | /// <param name="isLast"></param> |
| | | /// <param name="length"></param> |
| | | /// <param name="width"></param> |
| | | /// <param name="height"></param> |
| | | /// <param name="rotate"></param> |
| | | /// <param name="toplace"></param> |
| | | /// <param name="placeX"></param> |
| | | /// <param name="placeY"></param> |
| | | /// <param name=""></param> |
| | | /// <param name=""></param> |
| | | /// <returns></returns> |
| | | public bool WritePalletizingTaskInfo(string stationCode, int taskID, bool isLast, short length, short width, short height, short rotate, short toplace, short placeX, short placeY, 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_PalletizingTaskID, taskID, view_stationObj.W_PalletizingTaskID); |
| | | if (!b2.result) |
| | | { |
| | | msg = string.Format("åStationå°å{0} å ç åä»»å¡å· " + taskID + "失败,è¿åç»æ:" + b2.resMsg, |
| | | stationObj.W_Inbound_TaskID); |
| | | return false; |
| | | } |
| | | |
| | | b2 = this.plcService.WriteValuePoint(stationObj.W_EndMark, isLast, view_stationObj.W_EndMark); |
| | | if (!b2.result) |
| | | { |
| | | msg = string.Format("åStationå°å{0} å æ¯å¦æ«æ¿ " + isLast + "失败,è¿åç»æ:" + b2.resMsg, |
| | | stationObj.W_Destination_In); |
| | | return false; |
| | | } |
| | | |
| | | b2 = this.plcService.WriteValuePoint(stationObj.W_Length, length, view_stationObj.W_Length); |
| | | if (!b2.result) |
| | | { |
| | | msg = string.Format("åStationå°å{0} å é¿åº¦ " + length + "失败,è¿åç»æ:" + b2.resMsg, |
| | | stationObj.W_Length); |
| | | return false; |
| | | } |
| | | b2 = this.plcService.WriteValuePoint(stationObj.W_Width, width, view_stationObj.W_Width); |
| | | if (!b2.result) |
| | | { |
| | | msg = string.Format("åStationå°å{0} å 宽度 " + width + "失败,è¿åç»æ:" + b2.resMsg, |
| | | stationObj.W_Width); |
| | | return false; |
| | | } |
| | | b2 = this.plcService.WriteValuePoint(stationObj.W_Height, height, view_stationObj.W_Height); |
| | | if (!b2.result) |
| | | { |
| | | msg = string.Format("åStationå°å{0} å é«åº¦ " + height + "失败,è¿åç»æ:" + b2.resMsg, |
| | | stationObj.W_Height); |
| | | return false; |
| | | } |
| | | b2 = this.plcService.WriteValuePoint(stationObj.W_PalletizingStation, toplace, view_stationObj.W_PalletizingStation); |
| | | if (!b2.result) |
| | | { |
| | | msg = string.Format("åStationå°å{0} å ç®æ ä½ " + toplace + "失败,è¿åç»æ:" + b2.resMsg, |
| | | stationObj.W_Height); |
| | | return false; |
| | | } |
| | | b2 = this.plcService.WriteValuePoint(stationObj.W_Rotate, rotate, view_stationObj.W_Rotate); |
| | | if (!b2.result) |
| | | { |
| | | msg = string.Format("åStationå°å{0} å æ¯å¦æè½¬ " + rotate + "失败,è¿åç»æ:" + b2.resMsg, |
| | | stationObj.W_Height); |
| | | return false; |
| | | } |
| | | b2 = this.plcService.WriteValuePoint(stationObj.W_PalletizingPlaceX, placeX, view_stationObj.W_PalletizingPlaceX); |
| | | if (!b2.result) |
| | | { |
| | | msg = string.Format("åStationå°å{0} å Xåæ " + placeX + "失败,è¿åç»æ:" + b2.resMsg, |
| | | stationObj.W_Height); |
| | | return false; |
| | | } |
| | | b2 = this.plcService.WriteValuePoint(stationObj.W_PalletizingPlaceY, placeY, view_stationObj.W_PalletizingPlaceY); |
| | | if (!b2.result) |
| | | { |
| | | msg = string.Format("åStationå°å{0} å Yåæ " + placeY + "失败,è¿åç»æ:" + b2.resMsg, |
| | | stationObj.W_Height); |
| | | return false; |
| | | } |
| | | |
| | | b2 = this.plcService.WriteValuePoint(stationObj.W_DataFinish, true, view_stationObj.W_DataFinish); |
| | | if (!b2.result) |
| | | { |
| | | msg = string.Format("åStationå°å{0} å 读ç è§£æå®æ " + true + "失败,è¿åç»æ:" + b2.resMsg, |
| | | stationObj.W_DataFinish); |
| | | return false; |
| | | } |
| | | |
| | | |
| | | return true; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | msg = ex.Message; |
| | | var logcontext = string.Format("WriteInStoreTaskInfoåºç°å¼å¸¸:" + 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 WriteStation_FinishACK(string stationCode, bool 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_PalletizingTaskFinish, value, view_stationObj.W_PalletizingTaskFinish); |
| | | if (!b2.result) |
| | | { |
| | | msg = string.Format("åStation"+stationCode+" åå
¥ä»»å¡å®æç¡®è®¤ å°å{0} å " + value + "失败,è¿åç»æ:" + b2.resMsg, |
| | | stationObj.W_OutboundFinishConfirm); |
| | | 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; |
| | | } |
| | | } |
| | | |
| | | public bool WriteOutStoreTaskInfo(string stationCode, string sourcePlaceNo, out string msg, int outbound_TaskID) |
| | | { |
| | |
| | | /// åå
¥DB |
| | | /// </summary> |
| | | public static string W_DBHeaderWithSeparate_BZ39 = "3002" + WareSdaStruct.PLCDBADDRESS_SEPARATE; |
| | | public static string W_DBHeaderWithSeparate_BZ12 = "3003" + WareSdaStruct.PLCDBADDRESS_SEPARATE; |
| | | public static string W_DBHeaderWithSeparate_BZ01 = "3001" + WareSdaStruct.PLCDBADDRESS_SEPARATE; |
| | | |
| | | /// <summary> |
| | |
| | | |
| | | }); |
| | | |
| | | _dbBlockForWrite.W_StationForWriteCommList.Add(new StationDBForWriteComm() |
| | | { |
| | | StationCode = StationLocationEnum.BZ12.ToString(), |
| | | |
| | | W_DataFinish = W_DBHeaderWithSeparate_BZ12 + "0.0", |
| | | W_EndMark = W_DBHeaderWithSeparate_BZ12 + "0.1", |
| | | W_PalletizingPlaceX = W_DBHeaderWithSeparate_BZ12 + "12.0", |
| | | W_PalletizingPlaceY = W_DBHeaderWithSeparate_BZ12 + "14.0", |
| | | |
| | | W_PalletizingTaskID = W_DBHeaderWithSeparate_BZ12 + "20.0", |
| | | W_Rotate = W_DBHeaderWithSeparate_BZ12 + "8.0", |
| | | |
| | | W_Length = W_DBHeaderWithSeparate_BZ12 + "2.0", |
| | | W_Width = W_DBHeaderWithSeparate_BZ12 + "4.0", |
| | | W_Height = W_DBHeaderWithSeparate_BZ12 + "6.0", |
| | | |
| | | W_PalletizingStation = W_DBHeaderWithSeparate_BZ12 + "10.0", |
| | | |
| | | }); |
| | | |
| | | return _dbBlockForWrite; |
| | | } |
| | | |
| | |
| | | }); |
| | | |
| | | |
| | | _dbBlockForRead.R_StationForReadCommList.Add(new StationDBForReadComm() |
| | | { |
| | | StationCode = StationLocationEnum.BZ12.ToString(), |
| | | |
| | | R_ReqParseData = W_DBHeaderWithSeparate_BZ12 + "50.0", |
| | | R_PalletizingFinish = W_DBHeaderWithSeparate_BZ12 + "50.1", |
| | | R_PalletizingTaskNo = W_DBHeaderWithSeparate_BZ12 + "50.2", |
| | | R_ReadCodeResult = W_DBHeaderWithSeparate_BZ12 + "52.0", |
| | | R_PalletizingStation1 = W_DBHeaderWithSeparate_BZ12 + "104.0", |
| | | R_PalletizingStation2 = W_DBHeaderWithSeparate_BZ12 + "106.0", |
| | | |
| | | //R_Inbound_TaskID = W_DBHeaderWithSeparate_BZ12 + "112.0", |
| | | //R_Outbound_TaskID = W_DBHeaderWithSeparate_BZ12 + "114.0", |
| | | |
| | | }); |
| | | |
| | | |
| | | return _dbBlockForRead; |
| | | |
| | | } |
| | |
| | | SdaResEntity WriteOutStoreTaskInfo(int deviceId, string stationCode, string sourcePlaceNo, int outbound_TaskID); |
| | | |
| | | /// <summary> |
| | | /// åå
¥ç æ¿ä»»å¡ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <param name="deviceId"></param> |
| | | /// <param name="value"></param> |
| | | /// <returns></returns> |
| | | [OperationContract] |
| | | |
| | | SdaResEntity WritePalletizingTaskInfo(int deviceId, string stationCode, int taskID, bool isLast, short length, short width, short height, short rotate, short toplace, short placeX, short placeY); |
| | | |
| | | /// <summary> |
| | | /// ç åå®æå·²ç¡®è®¤ |
| | | /// </summary> |
| | | /// <param name="deviceId"></param> |
| | | /// <param name="value"></param> |
| | | /// <returns></returns |
| | | [OperationContract] |
| | | SdaResEntity SetPalletizingTaskFinishAck(int deviceId, bool value, string stationCode); |
| | | |
| | | /// <summary> |
| | | /// Stationçä»»å¡å®æACKèµå¼ |
| | | /// </summary> |
| | | /// <param name="deviceId"></param> |
| | |
| | | return _SdaResEntity; |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// åå
¥ç æ¿ä»»å¡ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <param name="deviceId"></param> |
| | | /// <param name="value"></param> |
| | | /// <returns></returns> |
| | | public SdaResEntity WritePalletizingTaskInfo(int deviceId, string stationCode,int taskID, bool isLast, short length, short width, short height,short rotate,short toplace,short placeX,short placeY) |
| | | { |
| | | 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.WritePalletizingTaskInfo(stationCode, taskID,isLast, length, width, height,rotate,toplace,placeX,placeY,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> |
| | | /// <param name="value"></param> |
| | | /// <returns></returns> |
| | | public SdaResEntity SetPalletizingTaskFinishAck(int deviceId, bool 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.WriteStation_FinishACK(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> |
| | |
| | | /// </summary> |
| | | BZ39 = 102, |
| | | |
| | | /// <summary> |
| | | /// å çå·¥ä½ |
| | | /// </summary> |
| | | BZ12 = 103, |
| | | |
| | | /// <summary> |
| | | /// åå
å·¥ä½ |
| | | /// </summary> |
| | | BZ21 = 104 |
| | | } |
| | | } |