| | |
| | | /// èªå¨ç æ¿ä»»å¡ çè¦åæ¶æ¯ |
| | | /// </summary> |
| | | public static string _lbl_alert_DataProcess_BZ12 = string.Empty; |
| | | |
| | | /// <summary> |
| | | /// èªå¨ç æ¿ä»»å¡ çè¦åæ¶æ¯ |
| | | /// </summary> |
| | | public static string _lbl_alert_DataProcess_BZ21 = string.Empty; |
| | | /// <summary> |
| | | /// èªå¨ç»çä»»å¡ä¸å çè¦åæ¶æ¯ |
| | | /// </summary> |
| | |
| | | private short R_StateField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private bool R_SurrouondTaskFinishField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private short R_SurrouondTaskNoField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private int R_TaskIDField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | |
| | | } |
| | | |
| | | [System.Runtime.Serialization.DataMemberAttribute()] |
| | | public bool R_SurrouondTaskFinish { |
| | | get { |
| | | return this.R_SurrouondTaskFinishField; |
| | | } |
| | | set { |
| | | if ((this.R_SurrouondTaskFinishField.Equals(value) != true)) { |
| | | this.R_SurrouondTaskFinishField = value; |
| | | this.RaisePropertyChanged("R_SurrouondTaskFinish"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | [System.Runtime.Serialization.DataMemberAttribute()] |
| | | public short R_SurrouondTaskNo { |
| | | get { |
| | | return this.R_SurrouondTaskNoField; |
| | | } |
| | | set { |
| | | if ((this.R_SurrouondTaskNoField.Equals(value) != true)) { |
| | | this.R_SurrouondTaskNoField = value; |
| | | this.RaisePropertyChanged("R_SurrouondTaskNo"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | [System.Runtime.Serialization.DataMemberAttribute()] |
| | | public int R_TaskID { |
| | | get { |
| | | return this.R_TaskIDField; |
| | |
| | | private bool W_EndMarkField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private bool W_FirstMarkField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private short W_HeightField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | |
| | | private short W_PalletizingPlaceYField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private short W_PalletizingPlaceZField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private short W_PalletizingStationField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private short W_RotateField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private bool W_SurroundTaskFinishField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private int W_SurroundTaskNoField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private short W_WidthField; |
| | |
| | | if ((this.W_EndMarkField.Equals(value) != true)) { |
| | | this.W_EndMarkField = value; |
| | | this.RaisePropertyChanged("W_EndMark"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | [System.Runtime.Serialization.DataMemberAttribute()] |
| | | public bool W_FirstMark { |
| | | get { |
| | | return this.W_FirstMarkField; |
| | | } |
| | | set { |
| | | if ((this.W_FirstMarkField.Equals(value) != true)) { |
| | | this.W_FirstMarkField = value; |
| | | this.RaisePropertyChanged("W_FirstMark"); |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | [System.Runtime.Serialization.DataMemberAttribute()] |
| | | public short W_PalletizingPlaceZ { |
| | | get { |
| | | return this.W_PalletizingPlaceZField; |
| | | } |
| | | set { |
| | | if ((this.W_PalletizingPlaceZField.Equals(value) != true)) { |
| | | this.W_PalletizingPlaceZField = value; |
| | | this.RaisePropertyChanged("W_PalletizingPlaceZ"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | [System.Runtime.Serialization.DataMemberAttribute()] |
| | | public short W_PalletizingStation { |
| | | get { |
| | | return this.W_PalletizingStationField; |
| | |
| | | if ((this.W_RotateField.Equals(value) != true)) { |
| | | this.W_RotateField = value; |
| | | this.RaisePropertyChanged("W_Rotate"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | [System.Runtime.Serialization.DataMemberAttribute()] |
| | | public bool W_SurroundTaskFinish { |
| | | get { |
| | | return this.W_SurroundTaskFinishField; |
| | | } |
| | | set { |
| | | if ((this.W_SurroundTaskFinishField.Equals(value) != true)) { |
| | | this.W_SurroundTaskFinishField = value; |
| | | this.RaisePropertyChanged("W_SurroundTaskFinish"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | [System.Runtime.Serialization.DataMemberAttribute()] |
| | | public int W_SurroundTaskNo { |
| | | get { |
| | | return this.W_SurroundTaskNoField; |
| | | } |
| | | set { |
| | | if ((this.W_SurroundTaskNoField.Equals(value) != true)) { |
| | | this.W_SurroundTaskNoField = value; |
| | | this.RaisePropertyChanged("W_SurroundTaskNo"); |
| | | } |
| | | } |
| | | } |
| | |
| | | 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); |
| | | iWareCC.StationService.SdaResEntity WritePalletizingTaskInfo(int deviceId, string stationCode, int taskID, bool isLast, bool isFirst, short length, short width, short height, short rotate, short toplace, short placeX, short placeY, short placeZ); |
| | | |
| | | [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.Threading.Tasks.Task<iWareCC.StationService.SdaResEntity> WritePalletizingTaskInfoAsync(int deviceId, string stationCode, int taskID, bool isLast, bool isFirst, short length, short width, short height, short rotate, short toplace, short placeX, short placeY, short placeZ); |
| | | |
| | | [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/WriteSurroundTaskInfo", ReplyAction="http://tempuri.org/IStationService/WriteSurroundTaskInfoResponse")] |
| | | iWareCC.StationService.SdaResEntity WriteSurroundTaskInfo(int deviceId, string stationCode, int taskID, short length, short width, short cartonhigh, short cartonwidth, short placex, short placey); |
| | | |
| | | [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IStationService/WriteSurroundTaskInfo", ReplyAction="http://tempuri.org/IStationService/WriteSurroundTaskInfoResponse")] |
| | | System.Threading.Tasks.Task<iWareCC.StationService.SdaResEntity> WriteSurroundTaskInfoAsync(int deviceId, string stationCode, int taskID, short length, short width, short cartonhigh, short cartonwidth, short placex, short placey); |
| | | |
| | | [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IStationService/SetSurroundTaskFinishAck", ReplyAction="http://tempuri.org/IStationService/SetSurroundTaskFinishAckResponse")] |
| | | iWareCC.StationService.SdaResEntity SetSurroundTaskFinishAck(int deviceId, bool value, string stationCode); |
| | | |
| | | [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IStationService/SetSurroundTaskFinishAck", ReplyAction="http://tempuri.org/IStationService/SetSurroundTaskFinishAckResponse")] |
| | | System.Threading.Tasks.Task<iWareCC.StationService.SdaResEntity> SetSurroundTaskFinishAckAsync(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 iWareCC.StationService.SdaResEntity WritePalletizingTaskInfo(int deviceId, string stationCode, int taskID, bool isLast, bool isFirst, short length, short width, short height, short rotate, short toplace, short placeX, short placeY, short placeZ) { |
| | | return base.Channel.WritePalletizingTaskInfo(deviceId, stationCode, taskID, isLast, isFirst, length, width, height, rotate, toplace, placeX, placeY, placeZ); |
| | | } |
| | | |
| | | 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 System.Threading.Tasks.Task<iWareCC.StationService.SdaResEntity> WritePalletizingTaskInfoAsync(int deviceId, string stationCode, int taskID, bool isLast, bool isFirst, short length, short width, short height, short rotate, short toplace, short placeX, short placeY, short placeZ) { |
| | | return base.Channel.WritePalletizingTaskInfoAsync(deviceId, stationCode, taskID, isLast, isFirst, length, width, height, rotate, toplace, placeX, placeY, placeZ); |
| | | } |
| | | |
| | | public iWareCC.StationService.SdaResEntity SetPalletizingTaskFinishAck(int deviceId, bool value, string stationCode) { |
| | |
| | | return base.Channel.SetPalletizingTaskFinishAckAsync(deviceId, value, stationCode); |
| | | } |
| | | |
| | | public iWareCC.StationService.SdaResEntity WriteSurroundTaskInfo(int deviceId, string stationCode, int taskID, short length, short width, short cartonhigh, short cartonwidth, short placex, short placey) { |
| | | return base.Channel.WriteSurroundTaskInfo(deviceId, stationCode, taskID, length, width, cartonhigh, cartonwidth, placex, placey); |
| | | } |
| | | |
| | | public System.Threading.Tasks.Task<iWareCC.StationService.SdaResEntity> WriteSurroundTaskInfoAsync(int deviceId, string stationCode, int taskID, short length, short width, short cartonhigh, short cartonwidth, short placex, short placey) { |
| | | return base.Channel.WriteSurroundTaskInfoAsync(deviceId, stationCode, taskID, length, width, cartonhigh, cartonwidth, placex, placey); |
| | | } |
| | | |
| | | public iWareCC.StationService.SdaResEntity SetSurroundTaskFinishAck(int deviceId, bool value, string stationCode) { |
| | | return base.Channel.SetSurroundTaskFinishAck(deviceId, value, stationCode); |
| | | } |
| | | |
| | | public System.Threading.Tasks.Task<iWareCC.StationService.SdaResEntity> SetSurroundTaskFinishAckAsync(int deviceId, bool value, string stationCode) { |
| | | return base.Channel.SetSurroundTaskFinishAckAsync(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_SetPalletizingTaskFinishAck_OutputMessage"> |
| | | <wsdl:part name="parameters" element="tns:SetPalletizingTaskFinishAckResponse" /> |
| | | </wsdl:message> |
| | | <wsdl:message name="IStationService_WriteSurroundTaskInfo_InputMessage"> |
| | | <wsdl:part name="parameters" element="tns:WriteSurroundTaskInfo" /> |
| | | </wsdl:message> |
| | | <wsdl:message name="IStationService_WriteSurroundTaskInfo_OutputMessage"> |
| | | <wsdl:part name="parameters" element="tns:WriteSurroundTaskInfoResponse" /> |
| | | </wsdl:message> |
| | | <wsdl:message name="IStationService_SetSurroundTaskFinishAck_InputMessage"> |
| | | <wsdl:part name="parameters" element="tns:SetSurroundTaskFinishAck" /> |
| | | </wsdl:message> |
| | | <wsdl:message name="IStationService_SetSurroundTaskFinishAck_OutputMessage"> |
| | | <wsdl:part name="parameters" element="tns:SetSurroundTaskFinishAckResponse" /> |
| | | </wsdl:message> |
| | | <wsdl:message name="IStationService_WriteStation_FinishACK_InputMessage"> |
| | | <wsdl:part name="parameters" element="tns:WriteStation_FinishACK" /> |
| | | </wsdl:message> |
| | |
| | | <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="WriteSurroundTaskInfo"> |
| | | <wsdl:input wsaw:Action="http://tempuri.org/IStationService/WriteSurroundTaskInfo" message="tns:IStationService_WriteSurroundTaskInfo_InputMessage" /> |
| | | <wsdl:output wsaw:Action="http://tempuri.org/IStationService/WriteSurroundTaskInfoResponse" message="tns:IStationService_WriteSurroundTaskInfo_OutputMessage" /> |
| | | </wsdl:operation> |
| | | <wsdl:operation name="SetSurroundTaskFinishAck"> |
| | | <wsdl:input wsaw:Action="http://tempuri.org/IStationService/SetSurroundTaskFinishAck" message="tns:IStationService_SetSurroundTaskFinishAck_InputMessage" /> |
| | | <wsdl:output wsaw:Action="http://tempuri.org/IStationService/SetSurroundTaskFinishAckResponse" message="tns:IStationService_SetSurroundTaskFinishAck_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="WriteSurroundTaskInfo"> |
| | | <soap:operation soapAction="http://tempuri.org/IStationService/WriteSurroundTaskInfo" style="document" /> |
| | | <wsdl:input> |
| | | <soap:body use="literal" /> |
| | | </wsdl:input> |
| | | <wsdl:output> |
| | | <soap:body use="literal" /> |
| | | </wsdl:output> |
| | | </wsdl:operation> |
| | | <wsdl:operation name="SetSurroundTaskFinishAck"> |
| | | <soap:operation soapAction="http://tempuri.org/IStationService/SetSurroundTaskFinishAck" 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: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="isFirst" 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="toplace" type="xs:short" /> |
| | | <xs:element minOccurs="0" name="placeX" type="xs:short" /> |
| | | <xs:element minOccurs="0" name="placeY" type="xs:short" /> |
| | | <xs:element minOccurs="0" name="placeZ" type="xs:short" /> |
| | | </xs:sequence> |
| | | </xs:complexType> |
| | | </xs:element> |
| | |
| | | </xs:sequence> |
| | | </xs:complexType> |
| | | </xs:element> |
| | | <xs:element name="WriteSurroundTaskInfo"> |
| | | <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="length" type="xs:short" /> |
| | | <xs:element minOccurs="0" name="width" type="xs:short" /> |
| | | <xs:element minOccurs="0" name="cartonhigh" type="xs:short" /> |
| | | <xs:element minOccurs="0" name="cartonwidth" 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="WriteSurroundTaskInfoResponse"> |
| | | <xs:complexType> |
| | | <xs:sequence> |
| | | <xs:element xmlns:q18="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="WriteSurroundTaskInfoResult" nillable="true" type="q18:SdaResEntity" /> |
| | | </xs:sequence> |
| | | </xs:complexType> |
| | | </xs:element> |
| | | <xs:element name="SetSurroundTaskFinishAck"> |
| | | <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="SetSurroundTaskFinishAckResponse"> |
| | | <xs:complexType> |
| | | <xs:sequence> |
| | | <xs:element xmlns:q19="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="SetSurroundTaskFinishAckResult" nillable="true" type="q19: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:q18="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="WriteStation_FinishACKResult" nillable="true" type="q18:SdaResEntity" /> |
| | | <xs:element xmlns:q20="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="WriteStation_FinishACKResult" nillable="true" type="q20:SdaResEntity" /> |
| | | </xs:sequence> |
| | | </xs:complexType> |
| | | </xs:element> |
| | |
| | | <xs:element name="WriteScanValidateACKResponse"> |
| | | <xs:complexType> |
| | | <xs:sequence> |
| | | <xs:element xmlns:q19="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="WriteScanValidateACKResult" nillable="true" type="q19:SdaResEntity" /> |
| | | <xs:element xmlns:q21="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="WriteScanValidateACKResult" nillable="true" type="q21:SdaResEntity" /> |
| | | </xs:sequence> |
| | | </xs:complexType> |
| | | </xs:element> |
| | |
| | | <xs:element name="WriteStation_XigangGetDataForOutResponse"> |
| | | <xs:complexType> |
| | | <xs:sequence> |
| | | <xs:element xmlns:q20="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="WriteStation_XigangGetDataForOutResult" nillable="true" type="q20:SdaResEntity" /> |
| | | <xs:element xmlns:q22="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="WriteStation_XigangGetDataForOutResult" nillable="true" type="q22:SdaResEntity" /> |
| | | </xs:sequence> |
| | | </xs:complexType> |
| | | </xs:element> |
| | |
| | | <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="R_State" type="xs:short" /> |
| | | <xs:element minOccurs="0" name="R_SurrouondTaskFinish" type="xs:boolean" /> |
| | | <xs:element minOccurs="0" name="R_SurrouondTaskNo" type="xs:short" /> |
| | | <xs:element minOccurs="0" name="R_TaskID" type="xs:int" /> |
| | | <xs:element minOccurs="0" name="StationCode" nillable="true" type="xs:string" /> |
| | | </xs:sequence> |
| | |
| | | <xs:element minOccurs="0" name="W_Destination_In" type="xs:int" /> |
| | | <xs:element minOccurs="0" name="W_Destination_Out" type="xs:int" /> |
| | | <xs:element minOccurs="0" name="W_EndMark" type="xs:boolean" /> |
| | | <xs:element minOccurs="0" name="W_FirstMark" 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:short" /> |
| | |
| | | <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_PalletizingPlaceZ" 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_SurroundTaskFinish" type="xs:boolean" /> |
| | | <xs:element minOccurs="0" name="W_SurroundTaskNo" type="xs:int" /> |
| | | <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.StationService; |
| | | using iWareCC.ThreadService; |
| | | using iWareCC.ThreadService._03_BZ12_æºå¨äººç å
å·¥ä½_; |
| | | using iWareCC.ThreadService._04_BZ21_æ¬è¿æ´åæºå¨äºº_; |
| | | using iWareCC.WCF; |
| | | using iWareCommon.Common.Globle; |
| | | using iWareCommon.Utils; |
| | |
| | | new Thread(DataProcess_BZ12.Hander).Start(); |
| | | new Thread(DataProcess_BZ12_FinishTask.Handler).Start(); |
| | | |
| | | new Thread(DataProcess_BZ21.Hander).Start(); |
| | | new Thread(DataProcess_BZ21_FinishTask.Handler).Start(); |
| | | new Thread(DeleteData).Start(); |
| | | |
| | | new Thread(PrintHandler.Handler).Start(); |
| | |
| | | } |
| | | var upiCode = result.Replace("/r", ""); ; |
| | | bool islast = false;//æ¯å¦æ«æ¿ |
| | | bool isfirst = false;//æ¯å¦æ«æ¿ |
| | | short isrotate = 0;//æ¯å¦æè½¬ |
| | | short placeX = 0; |
| | | short placeY = 0; |
| | | short placeZ = 0; |
| | | string place = ""; |
| | | using (WmsDBModel wmsDB = new WmsDBModel()) |
| | | { |
| | | //è¦æ¯æå·²ä¸åçä»»å¡ï¼å°±ä¸è¦æ§è¡ |
| | | var isValidate = TaskHandler.ValidateIssueTaskForBZ12(wmsDB); |
| | | var isValidate = TaskHandler.ValidateIssueTaskForBZ12(wmsDB,result); |
| | | if (!isValidate) |
| | | { |
| | | SystemWarningMsg._lbl_alert_DataProcess_BZ12 = $"{rgvLocation.ToString()}-æâå·²ä¸åâçä»»å¡ï¼ä¸è½å¤ç,æ¤æ¬¡å¾ªç¯ç»æ"; |
| | |
| | | isrotate = 1; |
| | | placeX = (short)upiObj.MachineXCenter; |
| | | placeY = (short)upiObj.MachineYCenter; |
| | | placeZ = (short)upiObj.MachineZCenter; |
| | | |
| | | //æ¥å¤è¿å
ææçæ°é |
| | | var upiList = wmsDB.mes_batchOrderUPI_new.Where(x => x.PackageCode == upiObj.PackageCode).ToList(); |
| | | //æ¥è¯¢æ¯å¦æ«æ¿å¹¶ä¸å¤æææ²¡ææ··æ¹ |
| | |
| | | } |
| | | else |
| | | { |
| | | isfirst = true; |
| | | wms_rbline_runmode.PalletizingUPI = upiObj.PackageCode; |
| | | if (obj.R_PalletizingStation1 == 1) |
| | | { |
| | |
| | | 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); |
| | | var res = client.WritePalletizingTaskInfo((int)EDevice.Station, rgvLocation, Convert.ToInt32(task.TaskNo), islast,isfirst, |
| | | (short)upiObj.Length, (short)upiObj.Width, (short)upiObj.Thk, isrotate, short.Parse(task.PlaceCode), placeX, placeY,placeZ); |
| | | if (!res.result) |
| | | { |
| | | SystemWarningMsg._lbl_alert_DataProcess_BZ12 = $"{rgvLocation.ToString()}-ä¸åå
¥åºä»»å¡ 失败,WriteInStoreTaskInfoAsync è¿å:{res.resMsg}"; |
| | |
| | | using (WmsDBModel wmsDB = new WmsDBModel()) |
| | | { |
| | | var task = wmsDB.wms_rbline_task.Where(x => |
| | | x.TaskNo == obj.R_Inbound_TaskID.ToString() |
| | | x.TaskNo == obj.R_PalletizingTaskNo.ToString() |
| | | && x.RbTaskType == (int)RbTaskTypeEnum.ç æ¿ä»»å¡ |
| | | && x.TaskStatus == (int)TaskStatusEnum.å·²ä¸å).FirstOrDefault(); |
| | | if (task == null) |
| | |
| | | SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_FinishTask = $"{rgvLocation.ToString()},æ ¹æ® R_InboundNumber:{obj.R_InboundNumber}æ²¡ææ¾å°å·²ä¸åçä»»å¡ "; |
| | | continue; |
| | | } |
| | | |
| | | var upiobj = wmsDB.mes_batchOrderUPI_new.Where(x => x.UPI == task.UPI).FirstOrDefault(); |
| | | if (upiobj != null) |
| | | { |
| | | upiobj.UpiStatus = 3; |
| | | } |
| | | task.TaskStatus = (int)TaskStatusEnum.已宿; |
| | | task.TaskStatusName = TaskStatusEnum.已宿.ToString(); |
| | | task.FinishedTime = DateTime.Now; |
| | |
| | | using iWareCommon.Utils; |
| | | 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; |
| | |
| | | { |
| | | public class DataProcess_BZ21 |
| | | { |
| | | public static void Hander() |
| | | { |
| | | var alertMsg = ""; |
| | | LogType logType = LogType.DataProcess_BZ21; |
| | | while (true) |
| | | { |
| | | Thread.Sleep(2000);//ä¼ç 2ç§ï¼å°ä¼ç åå°åé¢ï¼æ¯ä¸ºäºä¸é¢çcontinueæ¹æ³æ§è¡å䏿¾ç¤ºé误信æ¯çæç¤ºï¼ï¼ï¼ãEditBy shaocx,2022-05-24ã |
| | | SystemWarningMsg._lbl_alert_DataProcess_BZ21 = string.Empty; |
| | | try |
| | | { |
| | | if (SystemValue.isStartedModel) |
| | | { |
| | | var rgvLocation = StationLocationEnum.BZ21.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_BZ21 = $"{rgvLocation.ToString()}-请æ±äºè§£ç ï¼ä½æ¯ç»ææ¯ç©ºç,æ¤æ¬¡å¾ªç¯ç»æ"; |
| | | continue; |
| | | } |
| | | var upiCode = result.Replace("/r", ""); ; |
| | | short cartonwidth = 0;//æ¯å¦æ«æ¿ |
| | | short cartonhigh = 0;//æ¯å¦æè½¬ |
| | | short placeX = 0; |
| | | short placeY = 0; |
| | | short placeZ = 0; |
| | | string place = ""; |
| | | using (WmsDBModel wmsDB = new WmsDBModel()) |
| | | { |
| | | //è¦æ¯æå·²ä¸åçä»»å¡ï¼å°±ä¸è¦æ§è¡ |
| | | var isValidate = TaskHandler.ValidateIssueTaskForBZ21(wmsDB,result); |
| | | if (!isValidate) |
| | | { |
| | | SystemWarningMsg._lbl_alert_DataProcess_BZ21 = $"{rgvLocation.ToString()}-æâå·²ä¸åâçä»»å¡ï¼ä¸è½å¤ç,æ¤æ¬¡å¾ªç¯ç»æ"; |
| | | continue; |
| | | } |
| | | var upiObj = wmsDB.mes_batchOrderUPI_new.Where(x => x.UPI == upiCode).FirstOrDefault(); |
| | | if (upiObj == null) |
| | | { |
| | | SystemWarningMsg._lbl_alert_DataProcess_BZ21 = $"{rgvLocation.ToString()},æ ¹æ®UPI:{upiCode}æ²¡ææ¾å°å¯¹è±¡ "; |
| | | continue; |
| | | } |
| | | placeX = (short)upiObj.MachineXCenter; |
| | | placeY = (short)upiObj.MachineYCenter; |
| | | placeZ = (short)upiObj.MachineZCenter; |
| | | cartonhigh = (short)upiObj.Info1; |
| | | cartonwidth = (short)upiObj.Info2; |
| | | |
| | | //è®°å½ä»»å¡ |
| | | var _id = Yitter.IdGenerator.YitIdHelper.NextId(); |
| | | var plcTaskNo = BusinessHelper.CreatePlcTaskIdForSrmTask(); |
| | | var putpakegecode = new mes_PushPackageCode() |
| | | { |
| | | Id = _id, |
| | | PackageCode=upiObj.PackageCode, |
| | | PushStatus=0, |
| | | PushNum=0, |
| | | CreateTime = DateTime.Now, |
| | | CreateUserName = "CC", |
| | | UpdateTime = DateTime.Now, |
| | | UpdateUserName = "CC", |
| | | }; |
| | | 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); |
| | | wmsDB.mes_PushPackageCode.Add(putpakegecode); |
| | | using (StationServiceClient client = new StationServiceClient()) |
| | | { |
| | | |
| | | var res = client.WriteSurroundTaskInfo((int)EDevice.Station, rgvLocation, Convert.ToInt32(task.TaskNo), |
| | | (short)upiObj.Info1, (short)upiObj.Info2,cartonhigh,cartonwidth,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); |
| | | } |
| | | } |
| | | } |
| | | public static void PushPackageCode() |
| | | { |
| | | while (true) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace iWareCC.ThreadService._04_BZ21_æ¬è¿æ´åæºå¨äºº_ |
| | | { |
| | | internal class DataProcess_BZ21_FinishTask |
| | | { |
| | | } |
| | | } |
| | |
| | | <Compile Include="ThreadService\03_BZ12%28æºå¨äººç å
å·¥ä½%29\DataProcess_BZ12.cs" /> |
| | | <Compile Include="ThreadService\03_BZ12%28æºå¨äººç å
å·¥ä½%29\DataProcess_BZ12_FinishTask.cs" /> |
| | | <Compile Include="ThreadService\04_BZ21ï¼æ¬è¿æ´åæºå¨äººï¼\DataProcess_BZ21.cs" /> |
| | | <Compile Include="ThreadService\04_BZ21ï¼æ¬è¿æ´åæºå¨äººï¼\DataProcess_BZ21_FinishTask.cs" /> |
| | | <Compile Include="WCF\CCWcfService.cs" /> |
| | | <Compile Include="WCF\ICCWcfService.cs" /> |
| | | <Compile Include="WmsTask\AutoUpdateEngineInfoTask.cs" /> |
| | |
| | | /// ç æ¿ä»»å¡ä¸å |
| | | /// </summary> |
| | | DataProcess_BZ12 = 309, |
| | | DataProcess_BZ21 = 310, |
| | | |
| | | } |
| | | } |
| | |
| | | /// </summary> |
| | | /// <param name="wmsDB"></param> |
| | | /// <returns></returns> |
| | | public static bool ValidateIssueTaskForBZ12(WmsDBModel.WmsDBModel wmsDB) |
| | | public static bool ValidateIssueTaskForBZ12(WmsDBModel.WmsDBModel wmsDB,string str) |
| | | { |
| | | var isExist = wmsDB.wms_rbline_task.Where(x => x.TaskStatus == (int)TaskStatusEnum.å·²ä¸å |
| | | && x.RbTaskType == (int)RbTaskTypeEnum.ç æ¿ä»»å¡).ToList(); |
| | |
| | | } |
| | | return true; |
| | | } |
| | | public static bool ValidateIssueTaskForBZ21(WmsDBModel.WmsDBModel wmsDB,string str) |
| | | { |
| | | 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; |
| | | } |
| | | /// <summary> |
| | | /// éªè¯ æºå¨äººç¼å岿¯å¦åå¨ æªç»æ çåºåºä»»å¡ |
| | | /// </summary> |
| | |
| | | public string UpdateUserName { get; set; } |
| | | |
| | | public bool IsDelete { get; set; } |
| | | /// <summary> |
| | | /// éå®åååå· |
| | | /// </summary> |
| | | public string Info4 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç产åå· |
| | | /// </summary> |
| | | public string Info5 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 第å å
|
| | | /// </summary> |
| | | |
| | | public string Info6 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç»éåºåç§° |
| | | /// </summary> |
| | | public string Info7 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 产ååç§° |
| | | /// </summary> |
| | | public string Info8 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 客æ·åç§° |
| | | /// </summary> |
| | | public string Info10 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å
è£
ç¼ç |
| | | /// </summary> |
| | | public string Info9 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// èªæoråè´§ |
| | | /// </summary> |
| | | public string Info11 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å
è£
é¨ä»¶æ»æ°é |
| | | /// </summary> |
| | | public string Info12 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å
è£
é¢ç§¯ |
| | | /// </summary> |
| | | public string Info13 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// é¨ä»¶åç§° |
| | | /// </summary> |
| | | public string Info14 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// é¨ä»¶æ°é |
| | | /// </summary> |
| | | public int Info15 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// é¨ä»¶å°ºå¯¸ |
| | | /// </summary> |
| | | public string Info16 { get; set; } |
| | | /// <summary> |
| | | /// æºæ¢°èæ¯å¦æè½¬ |
| | | /// </summary> |
| | | public string Info17 { get; set; } |
| | | } |
| | | } |
| | |
| | | /// </summary> |
| | | [Description("ç åæ«æ¿æ å¿")] |
| | | public bool W_EndMark { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç å馿¿æ å¿ |
| | | /// </summary> |
| | | [Description("ç å馿¿æ å¿")] |
| | | public bool W_FirstMark { get; set; } |
| | | /// <summary> |
| | | /// ç åä»»å¡å· |
| | | /// </summary> |
| | |
| | | [Description("ç åä½ç½®åæ Y")] |
| | | public short W_PalletizingPlaceY { get; set; } |
| | | /// <summary> |
| | | /// ç åä½ç½®åæ Z |
| | | /// </summary> |
| | | [Description("ç åä½ç½®åæ Z")] |
| | | public short W_PalletizingPlaceZ { get; set; } |
| | | /// <summary> |
| | | /// ç åä»»å¡å®æç¡®è®¤ |
| | | /// </summary> |
| | | [Description("ç åä»»å¡å®æç¡®è®¤")] |
| | |
| | | /// </summary> |
| | | [Description("模å¼ï¼1ï¼å
¥åºï¼ 2ï¼åºåº 3ï¼å¼ºå¶åºåºï¼")] |
| | | public short W_Mode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// åå
ä»»å¡å®æç¡®è®¤ |
| | | /// </summary> |
| | | [Description("åå
ä»»å¡å®æç¡®è®¤")] |
| | | public bool W_SurroundTaskFinish { get; set; } |
| | | /// <summary> |
| | | /// åå
ä»»å¡å· |
| | | /// </summary> |
| | | [Description("åå
ä»»å¡å·")] |
| | | public int W_SurroundTaskNo { get; set; } |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | [Description("ç åæ«æ¿æ å¿")] |
| | | public string W_EndMark { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç å馿¿æ å¿ |
| | | /// </summary> |
| | | [Description("ç å馿¿æ å¿")] |
| | | public string W_FirstMark { get; set; } |
| | | /// <summary> |
| | | /// ç åä»»å¡å· |
| | | /// </summary> |
| | |
| | | /// </summary> |
| | | [Description("ç åä½ç½®åæ Y")] |
| | | public string W_PalletizingPlaceY { get; set; } |
| | | /// <summary> |
| | | /// ç åä½ç½®åæ Z |
| | | /// </summary> |
| | | [Description("ç åä½ç½®åæ Z")] |
| | | public string W_PalletizingPlaceZ { get; set; } |
| | | /// <summary> |
| | | /// ç åä»»å¡å®æç¡®è®¤ |
| | | /// </summary> |
| | |
| | | [Description("å
¥åºå®æå·²ç¡®è®¤")] |
| | | public string W_InboundFinishConfirm { get; set; } |
| | | |
| | | |
| | | /// <summary> |
| | | /// åå
ä»»å¡å®æç¡®è®¤ |
| | | /// </summary> |
| | | [Description("åå
ä»»å¡å®æç¡®è®¤")] |
| | | public string W_SurroundTaskFinish { get; set; } |
| | | /// <summary> |
| | | /// åå
ä»»å¡å· |
| | | /// </summary> |
| | | [Description("åå
ä»»å¡å·")] |
| | | public string W_SurroundTaskNo { get; set; } |
| | | #region åºåºç¸å
³ |
| | | |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | [Description("强å¶åºåºæ¨¡å¼")] |
| | | public bool R_ForceOutboundMode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// åå
ä»»å¡å®æ |
| | | /// </summary> |
| | | [Description("åå
ä»»å¡å®æ")] |
| | | public bool R_SurrouondTaskFinish { get; set; } |
| | | /// <summary> |
| | | /// åå
ä»»å¡å· |
| | | /// </summary> |
| | | [Description("åå
ä»»å¡å·")] |
| | | public short R_SurrouondTaskNo { get; set; } |
| | | } |
| | | |
| | | public class StationDBForReadComm |
| | |
| | | [Description("强å¶åºåºæ¨¡å¼")] |
| | | public string R_ForceOutboundMode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// åå
ä»»å¡å®æ |
| | | /// </summary> |
| | | [Description("åå
ä»»å¡å®æ")] |
| | | public string R_SurrouondTaskFinish { get; set; } |
| | | /// <summary> |
| | | /// åå
ä»»å¡å· |
| | | /// </summary> |
| | | [Description("åå
ä»»å¡å·")] |
| | | public string R_SurrouondTaskNo { get; set; } |
| | | } |
| | | } |
| | |
| | | /// <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) |
| | | public bool WritePalletizingTaskInfo(string stationCode, int taskID, bool isLast,bool isFirst, short length, short width, short height, short rotate, short toplace, short placeX, short placeY, short placeZ, out string msg) |
| | | { |
| | | try |
| | | { |
| | |
| | | return false; |
| | | } |
| | | |
| | | b2 = this.plcService.WriteValuePoint(stationObj.W_FirstMark, isFirst, view_stationObj.W_FirstMark); |
| | | if (!b2.result) |
| | | { |
| | | msg = string.Format("åStationå°å{0} å æ¯å¦é¦æ¿ " + isFirst + "失败,è¿åç»æ:" + b2.resMsg, |
| | | stationObj.W_Destination_In); |
| | | return false; |
| | | } |
| | | b2 = this.plcService.WriteValuePoint(stationObj.W_Length, length, view_stationObj.W_Length); |
| | | if (!b2.result) |
| | | { |
| | |
| | | stationObj.W_Height); |
| | | return false; |
| | | } |
| | | b2 = this.plcService.WriteValuePoint(stationObj.W_PalletizingPlaceZ, placeZ, view_stationObj.W_PalletizingPlaceZ); |
| | | if (!b2.result) |
| | | { |
| | | msg = string.Format("åStationå°å{0} å Zåæ " + placeZ + "失败,è¿åç»æ:" + 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="taskID"></param> |
| | | /// <param name="length"></param> |
| | | /// <param name="width"></param> |
| | | /// <param name="cartonhigh"></param> |
| | | /// <param name="cartonwidth"></param> |
| | | /// <param name="placex"></param> |
| | | /// <param name="placey"></param> |
| | | /// <param name="msg"></param> |
| | | /// <returns></returns> |
| | | public bool WriteSurroundTaskInfo(string stationCode, int taskID, short length, short width, short cartonhigh, short cartonwidth, 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_SurroundTaskNo, taskID, view_stationObj.W_SurroundTaskNo); |
| | | if (!b2.result) |
| | | { |
| | | msg = string.Format("åStationå°å{0} å åå
ä»»å¡å· " + taskID + "失败,è¿åç»æ:" + b2.resMsg, |
| | | stationObj.W_Inbound_TaskID); |
| | | return false; |
| | | } |
| | | |
| | | b2 = this.plcService.WriteValuePoint(stationObj.W_PackageLength, length, view_stationObj.W_PackageLength); |
| | | if (!b2.result) |
| | | { |
| | | msg = string.Format("åStationå°å{0} å åå
é¿ " + length + "失败,è¿åç»æ:" + b2.resMsg, |
| | | stationObj.W_Destination_In); |
| | | return false; |
| | | } |
| | | |
| | | b2 = this.plcService.WriteValuePoint(stationObj.W_PackageWidth, width, view_stationObj.W_PackageWidth); |
| | | if (!b2.result) |
| | | { |
| | | msg = string.Format("åStationå°å{0} å åå
宽 " + width + "失败,è¿åç»æ:" + b2.resMsg, |
| | | stationObj.W_Destination_In); |
| | | return false; |
| | | } |
| | | b2 = this.plcService.WriteValuePoint(stationObj.W_CartonHeight, cartonhigh, view_stationObj.W_CartonHeight); |
| | | if (!b2.result) |
| | | { |
| | | msg = string.Format("åStationå°å{0} å çº¸ç®±é¿ " + cartonhigh + "失败,è¿åç»æ:" + b2.resMsg, |
| | | stationObj.W_Length); |
| | | return false; |
| | | } |
| | | b2 = this.plcService.WriteValuePoint(stationObj.W_CartonWidth, cartonwidth, view_stationObj.W_CartonWidth); |
| | | if (!b2.result) |
| | | { |
| | | msg = string.Format("åStationå°å{0} å 纸箱宽 " + width + "失败,è¿åç»æ:" + b2.resMsg, |
| | | stationObj.W_Width); |
| | | return false; |
| | | } |
| | | b2 = this.plcService.WriteValuePoint(stationObj.W_X_Offset, placex, view_stationObj.W_X_Offset); |
| | | if (!b2.result) |
| | | { |
| | | msg = string.Format("åStationå°å{0} å æ¾æx " + placex + "失败,è¿åç»æ:" + b2.resMsg, |
| | | stationObj.W_Height); |
| | | return false; |
| | | } |
| | | b2 = this.plcService.WriteValuePoint(stationObj.W_Y_Offset, placey, view_stationObj.W_Y_Offset); |
| | | 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) |
| | |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// åå
¥ç«ç¹ä»»å¡å®æç¡®è®¤ |
| | |
| | | return false; |
| | | } |
| | | } |
| | | public bool WriteSurround_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_SurroundTaskFinish, value, view_stationObj.W_SurroundTaskFinish); |
| | | 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) |
| | | { |
| | | try |
| | |
| | | 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; |
| | | public static string W_DBHeaderWithSeparate_BZ21 = "3004" + WareSdaStruct.PLCDBADDRESS_SEPARATE; |
| | | |
| | | /// <summary> |
| | | /// 读åDB |
| | |
| | | |
| | | W_DataFinish = W_DBHeaderWithSeparate_BZ12 + "0.0", |
| | | W_EndMark = W_DBHeaderWithSeparate_BZ12 + "0.1", |
| | | W_FirstMark= W_DBHeaderWithSeparate_BZ12 + "0.3", |
| | | W_PalletizingPlaceX = W_DBHeaderWithSeparate_BZ12 + "12.0", |
| | | W_PalletizingPlaceY = W_DBHeaderWithSeparate_BZ12 + "14.0", |
| | | W_PalletizingPlaceZ = W_DBHeaderWithSeparate_BZ12 + "16.0", |
| | | |
| | | W_PalletizingTaskID = W_DBHeaderWithSeparate_BZ12 + "16.0", |
| | | W_PalletizingTaskID = W_DBHeaderWithSeparate_BZ12 + "18.0", |
| | | W_Rotate = W_DBHeaderWithSeparate_BZ12 + "8.0", |
| | | |
| | | W_Length = W_DBHeaderWithSeparate_BZ12 + "2.0", |
| | |
| | | W_PalletizingTaskFinish = W_DBHeaderWithSeparate_BZ12 + "0.2", |
| | | }); |
| | | |
| | | _dbBlockForWrite.W_StationForWriteCommList.Add(new StationDBForWriteComm() |
| | | { |
| | | StationCode = StationLocationEnum.BZ21.ToString(), |
| | | |
| | | W_DataFinish = W_DBHeaderWithSeparate_BZ21 + "0.0", |
| | | W_SurroundTaskFinish = W_DBHeaderWithSeparate_BZ21 + "0.1", |
| | | W_X_Offset = W_DBHeaderWithSeparate_BZ21 + "10.0", |
| | | W_Y_Offset = W_DBHeaderWithSeparate_BZ21 + "12.0", |
| | | W_SurroundTaskNo = W_DBHeaderWithSeparate_BZ21 + "14.0", |
| | | |
| | | W_CartonHeight = W_DBHeaderWithSeparate_BZ21 + "6.0", |
| | | W_CartonWidth = W_DBHeaderWithSeparate_BZ21 + "8.0", |
| | | |
| | | W_PackageLength = W_DBHeaderWithSeparate_BZ21 + "2.0", |
| | | W_PackageWidth = W_DBHeaderWithSeparate_BZ21 + "4.0", |
| | | |
| | | }); |
| | | return _dbBlockForWrite; |
| | | } |
| | | |
| | |
| | | //R_Outbound_TaskID = W_DBHeaderWithSeparate_BZ12 + "114.0", |
| | | |
| | | }); |
| | | _dbBlockForRead.R_StationForReadCommList.Add(new StationDBForReadComm() |
| | | { |
| | | StationCode = StationLocationEnum.BZ21.ToString(), |
| | | |
| | | R_ReqParseData = W_DBHeaderWithSeparate_BZ21 + "50.0", |
| | | R_SurrouondTaskFinish = W_DBHeaderWithSeparate_BZ21 + "50.1", |
| | | R_SurrouondTaskNo = W_DBHeaderWithSeparate_BZ21 + "104.0", |
| | | R_ReadCodeResult = W_DBHeaderWithSeparate_BZ21 + "52.0", |
| | | |
| | | |
| | | }); |
| | | |
| | | return _dbBlockForRead; |
| | | |
| | |
| | | /// <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); |
| | | SdaResEntity WritePalletizingTaskInfo(int deviceId, string stationCode, int taskID, bool isLast, bool isFirst, short length, short width, short height, short rotate, short toplace, short placeX, short placeY, short placeZ); |
| | | |
| | | /// <summary> |
| | | /// ç åå®æå·²ç¡®è®¤ |
| | |
| | | [OperationContract] |
| | | SdaResEntity SetPalletizingTaskFinishAck(int deviceId, bool value, string stationCode); |
| | | |
| | | [OperationContract] |
| | | SdaResEntity WriteSurroundTaskInfo(int deviceId, string stationCode, int taskID, short length, short width, short cartonhigh, short cartonwidth, short placex, short placey); |
| | | |
| | | [OperationContract] |
| | | SdaResEntity SetSurroundTaskFinishAck(int deviceId, bool value, string stationCode); |
| | | |
| | | /// <summary> |
| | | /// Stationçä»»å¡å®æACKèµå¼ |
| | | /// </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) |
| | | public SdaResEntity WritePalletizingTaskInfo(int deviceId, string stationCode,int taskID, bool isLast, bool isFirst, short length, short width, short height,short rotate,short toplace,short placeX,short placeY, short placeZ) |
| | | { |
| | | SdaResEntity _SdaResEntity = new SdaResEntity(); |
| | | try |
| | |
| | | var Station = StationResult.resData as StationEntity; |
| | | |
| | | string msg = ""; |
| | | var result = Station.WritePalletizingTaskInfo(stationCode, taskID,isLast, length, width, height,rotate,toplace,placeX,placeY,out msg); |
| | | var result = Station.WritePalletizingTaskInfo(stationCode, taskID,isLast,isFirst, length, width, height,rotate,toplace,placeX,placeY,placeZ, out msg); |
| | | _SdaResEntity.result = result; |
| | | _SdaResEntity.resMsg = msg; |
| | | return _SdaResEntity; |
| | |
| | | return _SdaResEntity; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// åå
¥åå
ä»»å¡ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <param name="deviceId"></param> |
| | | /// <param name="value"></param> |
| | | /// <returns></returns> |
| | | public SdaResEntity WriteSurroundTaskInfo(int deviceId, string stationCode, int taskID, short length, short width, short cartonhigh, short cartonwidth, 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.WriteSurroundTaskInfo(stationCode, taskID, length, width, cartonhigh, cartonwidth, 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 SetSurroundTaskFinishAck(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.WriteSurround_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> |