| | |
| | | private bool W_InboundFinishConfirmField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private int W_Inbound_TaskIDField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private bool W_IsRotateField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | |
| | | private short W_LengthField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private bool W_OutboundFinishConfirmField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private int W_Outbound_TaskIDField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private string W_PackageLengthField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private bool W_ReqOutField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private string W_TaskIDField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private short W_WidthField; |
| | |
| | | } |
| | | |
| | | [System.Runtime.Serialization.DataMemberAttribute()] |
| | | public int W_Inbound_TaskID { |
| | | get { |
| | | return this.W_Inbound_TaskIDField; |
| | | } |
| | | set { |
| | | if ((this.W_Inbound_TaskIDField.Equals(value) != true)) { |
| | | this.W_Inbound_TaskIDField = value; |
| | | this.RaisePropertyChanged("W_Inbound_TaskID"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | [System.Runtime.Serialization.DataMemberAttribute()] |
| | | public bool W_IsRotate { |
| | | get { |
| | | return this.W_IsRotateField; |
| | |
| | | } |
| | | |
| | | [System.Runtime.Serialization.DataMemberAttribute()] |
| | | public bool W_OutboundFinishConfirm { |
| | | get { |
| | | return this.W_OutboundFinishConfirmField; |
| | | } |
| | | set { |
| | | if ((this.W_OutboundFinishConfirmField.Equals(value) != true)) { |
| | | this.W_OutboundFinishConfirmField = value; |
| | | this.RaisePropertyChanged("W_OutboundFinishConfirm"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | [System.Runtime.Serialization.DataMemberAttribute()] |
| | | public int W_Outbound_TaskID { |
| | | get { |
| | | return this.W_Outbound_TaskIDField; |
| | | } |
| | | set { |
| | | if ((this.W_Outbound_TaskIDField.Equals(value) != true)) { |
| | | this.W_Outbound_TaskIDField = value; |
| | | this.RaisePropertyChanged("W_Outbound_TaskID"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | [System.Runtime.Serialization.DataMemberAttribute()] |
| | | public string W_PackageLength { |
| | | get { |
| | | return this.W_PackageLengthField; |
| | |
| | | if ((this.W_ReqOutField.Equals(value) != true)) { |
| | | this.W_ReqOutField = value; |
| | | this.RaisePropertyChanged("W_ReqOut"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | [System.Runtime.Serialization.DataMemberAttribute()] |
| | | public string W_TaskID { |
| | | get { |
| | | return this.W_TaskIDField; |
| | | } |
| | | set { |
| | | if ((object.ReferenceEquals(this.W_TaskIDField, value) != true)) { |
| | | this.W_TaskIDField = value; |
| | | this.RaisePropertyChanged("W_TaskID"); |
| | | } |
| | | } |
| | | } |
| | |
| | | [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IStationService/InboundFinishConfirm", ReplyAction="http://tempuri.org/IStationService/InboundFinishConfirmResponse")] |
| | | System.Threading.Tasks.Task<iWareCC.StationService.SdaResEntity> InboundFinishConfirmAsync(int deviceId, string stationCode); |
| | | |
| | | [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IStationService/WriteInStoreTaskInfo", ReplyAction="http://tempuri.org/IStationService/WriteInStoreTaskInfoResponse")] |
| | | iWareCC.StationService.SdaResEntity WriteInStoreTaskInfo(int deviceId, string stationCode, string toPlaceNo, short length, short width, short height); |
| | | [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IStationService/OutboundFinishConfirm", ReplyAction="http://tempuri.org/IStationService/OutboundFinishConfirmResponse")] |
| | | iWareCC.StationService.SdaResEntity OutboundFinishConfirm(int deviceId, string stationCode); |
| | | |
| | | [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IStationService/OutboundFinishConfirm", ReplyAction="http://tempuri.org/IStationService/OutboundFinishConfirmResponse")] |
| | | System.Threading.Tasks.Task<iWareCC.StationService.SdaResEntity> OutboundFinishConfirmAsync(int deviceId, string stationCode); |
| | | |
| | | [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IStationService/WriteInStoreTaskInfo", ReplyAction="http://tempuri.org/IStationService/WriteInStoreTaskInfoResponse")] |
| | | System.Threading.Tasks.Task<iWareCC.StationService.SdaResEntity> WriteInStoreTaskInfoAsync(int deviceId, string stationCode, string toPlaceNo, short length, short width, short height); |
| | | iWareCC.StationService.SdaResEntity WriteInStoreTaskInfo(int deviceId, string stationCode, string toPlaceNo, short length, short width, short height, int inbound_TaskID); |
| | | |
| | | [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IStationService/WriteInStoreTaskInfo", ReplyAction="http://tempuri.org/IStationService/WriteInStoreTaskInfoResponse")] |
| | | System.Threading.Tasks.Task<iWareCC.StationService.SdaResEntity> WriteInStoreTaskInfoAsync(int deviceId, string stationCode, string toPlaceNo, short length, short width, short height, int inbound_TaskID); |
| | | |
| | | [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IStationService/WriteOutStoreTaskInfo", ReplyAction="http://tempuri.org/IStationService/WriteOutStoreTaskInfoResponse")] |
| | | iWareCC.StationService.SdaResEntity WriteOutStoreTaskInfo(int deviceId, string stationCode, string sourcePlaceNo, int outbound_TaskID); |
| | | |
| | | [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/WriteStation_FinishACK", ReplyAction="http://tempuri.org/IStationService/WriteStation_FinishACKResponse")] |
| | | iWareCC.StationService.SdaResEntity WriteStation_FinishACK(int deviceId, bool value, int plcTaskId); |
| | |
| | | return base.Channel.InboundFinishConfirmAsync(deviceId, stationCode); |
| | | } |
| | | |
| | | public iWareCC.StationService.SdaResEntity WriteInStoreTaskInfo(int deviceId, string stationCode, string toPlaceNo, short length, short width, short height) { |
| | | return base.Channel.WriteInStoreTaskInfo(deviceId, stationCode, toPlaceNo, length, width, height); |
| | | public iWareCC.StationService.SdaResEntity OutboundFinishConfirm(int deviceId, string stationCode) { |
| | | return base.Channel.OutboundFinishConfirm(deviceId, stationCode); |
| | | } |
| | | |
| | | public System.Threading.Tasks.Task<iWareCC.StationService.SdaResEntity> WriteInStoreTaskInfoAsync(int deviceId, string stationCode, string toPlaceNo, short length, short width, short height) { |
| | | return base.Channel.WriteInStoreTaskInfoAsync(deviceId, stationCode, toPlaceNo, length, width, height); |
| | | public System.Threading.Tasks.Task<iWareCC.StationService.SdaResEntity> OutboundFinishConfirmAsync(int deviceId, string stationCode) { |
| | | return base.Channel.OutboundFinishConfirmAsync(deviceId, stationCode); |
| | | } |
| | | |
| | | public iWareCC.StationService.SdaResEntity WriteInStoreTaskInfo(int deviceId, string stationCode, string toPlaceNo, short length, short width, short height, int inbound_TaskID) { |
| | | return base.Channel.WriteInStoreTaskInfo(deviceId, stationCode, toPlaceNo, length, width, height, inbound_TaskID); |
| | | } |
| | | |
| | | public System.Threading.Tasks.Task<iWareCC.StationService.SdaResEntity> WriteInStoreTaskInfoAsync(int deviceId, string stationCode, string toPlaceNo, short length, short width, short height, int inbound_TaskID) { |
| | | return base.Channel.WriteInStoreTaskInfoAsync(deviceId, stationCode, toPlaceNo, length, width, height, inbound_TaskID); |
| | | } |
| | | |
| | | public iWareCC.StationService.SdaResEntity WriteOutStoreTaskInfo(int deviceId, string stationCode, string sourcePlaceNo, int outbound_TaskID) { |
| | | return base.Channel.WriteOutStoreTaskInfo(deviceId, stationCode, sourcePlaceNo, outbound_TaskID); |
| | | } |
| | | |
| | | public System.Threading.Tasks.Task<iWareCC.StationService.SdaResEntity> WriteOutStoreTaskInfoAsync(int deviceId, string stationCode, string sourcePlaceNo, int outbound_TaskID) { |
| | | return base.Channel.WriteOutStoreTaskInfoAsync(deviceId, stationCode, sourcePlaceNo, outbound_TaskID); |
| | | } |
| | | |
| | | public iWareCC.StationService.SdaResEntity WriteStation_FinishACK(int deviceId, bool value, int plcTaskId) { |
| | |
| | | <wsdl:message name="IStationService_InboundFinishConfirm_OutputMessage"> |
| | | <wsdl:part name="parameters" element="tns:InboundFinishConfirmResponse" /> |
| | | </wsdl:message> |
| | | <wsdl:message name="IStationService_OutboundFinishConfirm_InputMessage"> |
| | | <wsdl:part name="parameters" element="tns:OutboundFinishConfirm" /> |
| | | </wsdl:message> |
| | | <wsdl:message name="IStationService_OutboundFinishConfirm_OutputMessage"> |
| | | <wsdl:part name="parameters" element="tns:OutboundFinishConfirmResponse" /> |
| | | </wsdl:message> |
| | | <wsdl:message name="IStationService_WriteInStoreTaskInfo_InputMessage"> |
| | | <wsdl:part name="parameters" element="tns:WriteInStoreTaskInfo" /> |
| | | </wsdl:message> |
| | | <wsdl:message name="IStationService_WriteInStoreTaskInfo_OutputMessage"> |
| | | <wsdl:part name="parameters" element="tns:WriteInStoreTaskInfoResponse" /> |
| | | </wsdl:message> |
| | | <wsdl:message name="IStationService_WriteOutStoreTaskInfo_InputMessage"> |
| | | <wsdl:part name="parameters" element="tns:WriteOutStoreTaskInfo" /> |
| | | </wsdl:message> |
| | | <wsdl:message name="IStationService_WriteOutStoreTaskInfo_OutputMessage"> |
| | | <wsdl:part name="parameters" element="tns:WriteOutStoreTaskInfoResponse" /> |
| | | </wsdl:message> |
| | | <wsdl:message name="IStationService_WriteStation_FinishACK_InputMessage"> |
| | | <wsdl:part name="parameters" element="tns:WriteStation_FinishACK" /> |
| | |
| | | <wsdl:input wsaw:Action="http://tempuri.org/IStationService/InboundFinishConfirm" message="tns:IStationService_InboundFinishConfirm_InputMessage" /> |
| | | <wsdl:output wsaw:Action="http://tempuri.org/IStationService/InboundFinishConfirmResponse" message="tns:IStationService_InboundFinishConfirm_OutputMessage" /> |
| | | </wsdl:operation> |
| | | <wsdl:operation name="OutboundFinishConfirm"> |
| | | <wsdl:input wsaw:Action="http://tempuri.org/IStationService/OutboundFinishConfirm" message="tns:IStationService_OutboundFinishConfirm_InputMessage" /> |
| | | <wsdl:output wsaw:Action="http://tempuri.org/IStationService/OutboundFinishConfirmResponse" message="tns:IStationService_OutboundFinishConfirm_OutputMessage" /> |
| | | </wsdl:operation> |
| | | <wsdl:operation name="WriteInStoreTaskInfo"> |
| | | <wsdl:input wsaw:Action="http://tempuri.org/IStationService/WriteInStoreTaskInfo" message="tns:IStationService_WriteInStoreTaskInfo_InputMessage" /> |
| | | <wsdl:output wsaw:Action="http://tempuri.org/IStationService/WriteInStoreTaskInfoResponse" message="tns:IStationService_WriteInStoreTaskInfo_OutputMessage" /> |
| | | </wsdl:operation> |
| | | <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="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="OutboundFinishConfirm"> |
| | | <soap:operation soapAction="http://tempuri.org/IStationService/OutboundFinishConfirm" style="document" /> |
| | | <wsdl:input> |
| | | <soap:body use="literal" /> |
| | | </wsdl:input> |
| | | <wsdl:output> |
| | | <soap:body use="literal" /> |
| | | </wsdl:output> |
| | | </wsdl:operation> |
| | | <wsdl:operation name="WriteInStoreTaskInfo"> |
| | | <soap:operation soapAction="http://tempuri.org/IStationService/WriteInStoreTaskInfo" style="document" /> |
| | | <wsdl:input> |
| | |
| | | <soap:body use="literal" /> |
| | | </wsdl:output> |
| | | </wsdl:operation> |
| | | <wsdl:operation name="WriteOutStoreTaskInfo"> |
| | | <soap:operation soapAction="http://tempuri.org/IStationService/WriteOutStoreTaskInfo" 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="OutboundFinishConfirm"> |
| | | <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:sequence> |
| | | </xs:complexType> |
| | | </xs:element> |
| | | <xs:element name="OutboundFinishConfirmResponse"> |
| | | <xs:complexType> |
| | | <xs:sequence> |
| | | <xs:element xmlns:q12="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="OutboundFinishConfirmResult" nillable="true" type="q12:SdaResEntity" /> |
| | | </xs:sequence> |
| | | </xs:complexType> |
| | | </xs:element> |
| | | <xs:element name="WriteInStoreTaskInfo"> |
| | | <xs:complexType> |
| | | <xs:sequence> |
| | |
| | | <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="inbound_TaskID" type="xs:int" /> |
| | | </xs:sequence> |
| | | </xs:complexType> |
| | | </xs:element> |
| | | <xs:element name="WriteInStoreTaskInfoResponse"> |
| | | <xs:complexType> |
| | | <xs:sequence> |
| | | <xs:element xmlns:q12="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="WriteInStoreTaskInfoResult" nillable="true" type="q12:SdaResEntity" /> |
| | | <xs:element xmlns:q13="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="WriteInStoreTaskInfoResult" nillable="true" type="q13:SdaResEntity" /> |
| | | </xs:sequence> |
| | | </xs:complexType> |
| | | </xs:element> |
| | | <xs:element name="WriteOutStoreTaskInfo"> |
| | | <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="sourcePlaceNo" nillable="true" type="xs:string" /> |
| | | <xs:element minOccurs="0" name="outbound_TaskID" type="xs:int" /> |
| | | </xs:sequence> |
| | | </xs:complexType> |
| | | </xs:element> |
| | | <xs:element name="WriteOutStoreTaskInfoResponse"> |
| | | <xs:complexType> |
| | | <xs:sequence> |
| | | <xs:element xmlns:q14="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="WriteOutStoreTaskInfoResult" nillable="true" type="q14:SdaResEntity" /> |
| | | </xs:sequence> |
| | | </xs:complexType> |
| | | </xs:element> |
| | |
| | | <xs:element name="WriteStation_FinishACKResponse"> |
| | | <xs:complexType> |
| | | <xs:sequence> |
| | | <xs:element xmlns:q13="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="WriteStation_FinishACKResult" nillable="true" type="q13:SdaResEntity" /> |
| | | <xs:element xmlns:q15="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="WriteStation_FinishACKResult" nillable="true" type="q15:SdaResEntity" /> |
| | | </xs:sequence> |
| | | </xs:complexType> |
| | | </xs:element> |
| | |
| | | <xs:element name="WriteScanValidateACKResponse"> |
| | | <xs:complexType> |
| | | <xs:sequence> |
| | | <xs:element xmlns:q14="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="WriteScanValidateACKResult" nillable="true" type="q14:SdaResEntity" /> |
| | | <xs:element xmlns:q16="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="WriteScanValidateACKResult" nillable="true" type="q16:SdaResEntity" /> |
| | | </xs:sequence> |
| | | </xs:complexType> |
| | | </xs:element> |
| | |
| | | <xs:element name="WriteStation_XigangGetDataForOutResponse"> |
| | | <xs:complexType> |
| | | <xs:sequence> |
| | | <xs:element xmlns:q15="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="WriteStation_XigangGetDataForOutResult" nillable="true" type="q15:SdaResEntity" /> |
| | | <xs:element xmlns:q17="http://schemas.datacontract.org/2004/07/iWareSda" minOccurs="0" name="WriteStation_XigangGetDataForOutResult" nillable="true" type="q17:SdaResEntity" /> |
| | | </xs:sequence> |
| | | </xs:complexType> |
| | | </xs:element> |
| | |
| | | <xs:element minOccurs="0" name="W_Destination_Out" nillable="true" type="xs:string" /> |
| | | <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_IsRotate" type="xs:boolean" /> |
| | | <xs:element minOccurs="0" name="W_KittingInfo" nillable="true" type="xs:string" /> |
| | | <xs:element minOccurs="0" name="W_Length" type="xs:short" /> |
| | | <xs:element minOccurs="0" name="W_OutboundFinishConfirm" type="xs:boolean" /> |
| | | <xs:element minOccurs="0" name="W_Outbound_TaskID" type="xs:int" /> |
| | | <xs:element minOccurs="0" name="W_PackageLength" nillable="true" type="xs:string" /> |
| | | <xs:element minOccurs="0" name="W_PackageWidth" nillable="true" type="xs:string" /> |
| | | <xs:element minOccurs="0" name="W_ReqOut" type="xs:boolean" /> |
| | | <xs:element minOccurs="0" name="W_TaskID" nillable="true" type="xs:string" /> |
| | | <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" /> |
| | |
| | | continue; |
| | | } |
| | | |
| | | upiObj.AreaCode = (int)AreaCodeEnum.ç¼å忣åº; |
| | | upiObj.AreaCode = (int)AreaCodeEnum.å¾
ç¼å忣åº; |
| | | |
| | | wmsDB.SaveChanges(); |
| | | } |
| | |
| | | } |
| | | //æ¥è¯¢æ¯å¦é½å
|
| | | var allList = wmsDB.mes_batchOrderUPI_new.Where(x => x.PackageCode == upiObj.PackageCode).ToList(); |
| | | var isQiTaoList = allList.Where(x => x.AreaCode == (int)AreaCodeEnum.ç¼å忣åº).ToList(); |
| | | var isQiTaoList = allList.Where(x => x.AreaCode == (int)AreaCodeEnum.å¾
ç¼ååæ£åº |
| | | || |
| | | x.AreaCode == (int)AreaCodeEnum.ç¼ååæ£åº |
| | | || |
| | | x.AreaCode == (int)AreaCodeEnum.ç ååºå |
| | | || |
| | | x.AreaCode == (int)AreaCodeEnum.æºå¨äººå²ç¼ååºå |
| | | ).ToList(); |
| | | if (isQiTaoList.Count() != allList.Count()) |
| | | {//ä¸é½å
|
| | | qitaoReault = false; |
| | | upiObj.AreaCode = (int)AreaCodeEnum.ç¼å忣åº; |
| | | } |
| | | else |
| | | {//é½å
|
| | | qitaoReault = true; |
| | | upiObj.AreaCode = (int)AreaCodeEnum.ç ååºå; |
| | | } |
| | | |
| | | using (StationServiceClient client = new StationServiceClient()) |
| | | { |
| | | var res = await client.WriteQiTaoInfoAsync((int)EDevice.Station, rgvLocation, qitaoReault); |
| | | if (!res.result) |
| | | { |
| | | SystemWarningMsg._lbl_alert_DataProcess_BZ01 = $"{rgvLocation.ToString()}-æ¨éé½å¥ç»æå¤±è´¥,WriteQiTaoInfoAsyncè¿å:{res.resMsg}"; |
| | | continue; |
| | | } |
| | | else |
| | | { |
| | | Log4NetHelper.WriteInfoLog(logType, $"{rgvLocation.ToString()}-æ¨éé½å¥ç»ææå,WriteQiTaoInfoAsyncï¼åæ°: ç«ç¹{rgvLocation},é½å¥ç»æ:{qitaoReault}"); |
| | | } |
| | | } |
| | | |
| | | //æ´æ°UPIç¶æ |
| | | var upiObjList = wmsDB.mes_batchOrderUPI_new.Where(x => x.UPI == upiCode).ToList(); |
| | | foreach (var item in upiObjList) |
| | | { |
| | | if (qitaoReault) |
| | | { |
| | | item.UpiStatus = (int)UpiStatusEnum.å·²é½å
; |
| | | } |
| | | else |
| | | { |
| | | item.UpiStatus = (int)UpiStatusEnum.ä¸é½å
; |
| | | } |
| | | } |
| | | //æ´æ° æå䏿¬¡å¨ BZ_01çç³»ç»å¤ççæ¿ä»¶ æ°æ® |
| | | var rbRunMode = wmsDB.wms_rbline_runmode.FirstOrDefault(); |
| | | rbRunMode.PlanNo = upiObj.PlanNo; |
| | | rbRunMode.OrderId = upiObj.OrderId; |
| | | rbRunMode.PackageCode = upiObj.PackageCode; |
| | | |
| | | wmsDB.SaveChanges(); |
| | | } |
| | | |
| | | using (StationServiceClient client = new StationServiceClient()) |
| | | { |
| | | var res = await client.WriteQiTaoInfoAsync((int)EDevice.Station, rgvLocation, qitaoReault); |
| | | if (!res.result) |
| | | { |
| | | SystemWarningMsg._lbl_alert_DataProcess_BZ01 = $"{rgvLocation.ToString()}-æ¨éé½å¥ç»æå¤±è´¥,WriteQiTaoInfoAsyncè¿å:{res.resMsg}"; |
| | | continue; |
| | | } |
| | | else |
| | | { |
| | | Log4NetHelper.WriteInfoLog(logType, $"{rgvLocation.ToString()}-æ¨éé½å¥ç»ææå,WriteQiTaoInfoAsyncï¼åæ°: ç«ç¹{rgvLocation},é½å¥ç»æ:{qitaoReault}"); |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using Admin.NET.Application; |
| | | using iWareCC.Common.Helper; |
| | | using iWareCC.StationService; |
| | | using iWareCommon.Common.Globle; |
| | | using iWareCommon.Utils; |
| | | using iWareModel; |
| | | using iWareSql.DataAccess; |
| | | using iWareSql.DBModel; |
| | | using iWareSql.WmsDBModel; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.ServiceModel.Configuration; |
| | | using System.Text; |
| | | using System.Threading; |
| | | using System.Threading.Tasks; |
| | | using WZ.Useful.Commons; |
| | | using XiGang.Core.Model; |
| | | |
| | | namespace iWareCC.ThreadService |
| | | { |
| | | /// <summary> |
| | | /// æºå¨äººç¼åå² æ¨¡å¼åæ¢ å¤ç |
| | | /// </summary> |
| | | public static class DataProcess_RobotBuffer_ModeChange |
| | | { |
| | | public static async void Handler() |
| | | { |
| | | var alertMsg = ""; |
| | | LogType logType = LogType.DataProcess_BZ39; |
| | | while (true) |
| | | { |
| | | Thread.Sleep(2000);//ä¼ç 2ç§ï¼å°ä¼ç åå°åé¢ï¼æ¯ä¸ºäºä¸é¢çcontinueæ¹æ³æ§è¡å䏿¾ç¤ºé误信æ¯çæç¤ºï¼ï¼ï¼ãEditBy shaocx,2022-05-24ã |
| | | SystemWarningMsg._lbl_alert_DataProcess_BZ39 = string.Empty; |
| | | try |
| | | { |
| | | if (SystemValue.isAllowRuning_DataProcess_BZ39 && SystemValue.isStartedModel) |
| | | { |
| | | var rgvLocation = StationLocationEnum.BZ39.ToString(); |
| | | /* |
| | | * 1ã妿 bz01 çæ¿ææ¯æ°å
ï¼å¹¶ä¸æè¦åºåºçéæ±ï¼å°±åæ¢å°åºåºæ¨¡å¼ï¼å¦åæ¯å
¥åºæ¨¡å¼ |
| | | * 2ã |
| | | */ |
| | | |
| | | |
| | | var obj = FormCC.stationView.R_StationForReadCommList.Where(x => x.StationCode == rgvLocation.ToString()).FirstOrDefault(); |
| | | if (obj.R_ReqParseData) |
| | | { |
| | | var result = obj.R_ReadCodeResult; |
| | | if (string.IsNullOrEmpty(result)) |
| | | { |
| | | SystemWarningMsg._lbl_alert_DataProcess_BZ39 = $"{rgvLocation.ToString()}-请æ±äºè§£ç ï¼ä½æ¯ç»ææ¯ç©ºç,æ¤æ¬¡å¾ªç¯ç»æ"; |
| | | continue; |
| | | } |
| | | var upiCode = result; |
| | | var qitaoReault = false; |
| | | using (WmsDBModel wmsDB = new WmsDBModel()) |
| | | { |
| | | var rbRunMode = wmsDB.wms_rbline_runmode.FirstOrDefault(); |
| | | var lastUpi = rbRunMode.UPI; |
| | | var lastPackageCode = rbRunMode.PackageCode; |
| | | |
| | | var rgvLocation_BZ01 = StationLocationEnum.BZ01.ToString(); |
| | | var currUpi_BZ01 = ""; |
| | | var obj_BZ01 = FormCC.stationView.R_StationForReadCommList.Where(x => x.StationCode == rgvLocation_BZ01.ToString()).FirstOrDefault(); |
| | | if (obj.R_ReqParseData) |
| | | { |
| | | currUpi_BZ01 = obj_BZ01.R_ReadCodeResult; |
| | | } |
| | | if (string.IsNullOrEmpty(currUpi_BZ01)) |
| | | { |
| | | |
| | | } |
| | | |
| | | var rgvLocation22 = StationLocationEnum.BZ01.ToString(); |
| | | /* |
| | | * 1ã仿°æ®åºä¸å¤ææ¯å¦é½å¥ |
| | | * 2ãæ ¹æ®é½å¥ç»æï¼æ¨éç»PLC |
| | | */ |
| | | |
| | | |
| | | //è¦æ¯æå·²ä¸åçä»»å¡ï¼å°±ä¸è¦æ§è¡ |
| | | var isValidate = TaskHandler.ValidateIssueTaskForRobotBuffer(wmsDB); |
| | | if (!isValidate) |
| | | { |
| | | SystemWarningMsg._lbl_alert_DataProcess_BZ39 = $"{rgvLocation.ToString()}-æâå·²ä¸åâçä»»å¡ï¼ä¸è½å¤ç,æ¤æ¬¡å¾ªç¯ç»æ"; |
| | | continue; |
| | | } |
| | | |
| | | |
| | | |
| | | var taskList = wmsDB.wms_rbline_task.Where(x => x.PlaceCode == obj.R_OutboundNumber |
| | | && x.RbTaskType == (int)RbTaskTypeEnum.åºåºä»»å¡ |
| | | && x.TaskStatus == (int)TaskStatusEnum.æ°å»º).OrderBy(x => x.PackageCode).ToList(); |
| | | if (taskList == null) |
| | | { |
| | | SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_FinishTaskForOutbound = $"{rgvLocation.ToString()},æ ¹æ® R_OutboundNumber:{obj.R_OutboundNumber}æ²¡ææ¾å°å·²ä¸åçä»»å¡ "; |
| | | continue; |
| | | } |
| | | |
| | | var doTask = taskList.FirstOrDefault(); |
| | | |
| | | var upiObj = wmsDB.mes_batchOrderUPI_new.Where(x => x.UPI == upiCode).FirstOrDefault(); |
| | | if (upiObj == null) |
| | | { |
| | | SystemWarningMsg._lbl_alert_DataProcess_BZ39 = $"{rgvLocation.ToString()},æ ¹æ®UPI:{upiCode}æ²¡ææ¾å°å¯¹è±¡ "; |
| | | continue; |
| | | } |
| | | |
| | | //è¿éæ¹ä¸º ä¸å åºåºä»»å¡ |
| | | using (StationServiceClient client = new StationServiceClient()) |
| | | { |
| | | var res = await client.WriteOutStoreTaskInfoAsync((int)EDevice.Station, rgvLocation, doTask.PlaceCode, Convert.ToInt32(doTask.TaskNo)); |
| | | if (!res.result) |
| | | { |
| | | SystemWarningMsg._lbl_alert_DataProcess_BZ39 = $"{rgvLocation.ToString()}-ä¸ååºåºä»»å¡ 失败,WriteOutStoreTaskInfoAsync è¿å:{res.resMsg}"; |
| | | continue; |
| | | } |
| | | else |
| | | { |
| | | Log4NetHelper.WriteInfoLog(logType, $"{rgvLocation.ToString()}-ä¸ååºåºä»»å¡ æå,WriteOutStoreTaskInfoAsyncï¼åæ°: ç«ç¹{rgvLocation}"); |
| | | } |
| | | } |
| | | |
| | | wmsDB.SaveChanges(); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | SystemWarningMsg._lbl_alert_DataProcess_BZ39 += " åºç°å¼å¸¸:" + ex.Message + SysGloble.SPLIT_STR; |
| | | Log4NetHelper.WriteErrorLog(logType, " åºç°å¼å¸¸ï¼" + ex.Message, ex); |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | continue; |
| | | } |
| | | |
| | | using (StationServiceClient client = new StationServiceClient()) |
| | | { |
| | | var res = await client.WriteInStoreTaskInfoAsync((int)EDevice.Station, rgvLocation, place.PlaceCode, (short)upiObj.Length, |
| | | (short)upiObj.Width, (short)upiObj.Thk); |
| | | if (!res.result) |
| | | { |
| | | SystemWarningMsg._lbl_alert_DataProcess_BZ39 = $"{rgvLocation.ToString()}-ä¸åå
¥åºä»»å¡ 失败,WriteInStoreTaskInfoAsync è¿å:{res.resMsg}"; |
| | | continue; |
| | | } |
| | | else |
| | | { |
| | | Log4NetHelper.WriteInfoLog(logType, $"{rgvLocation.ToString()}-ä¸åå
¥åºä»»å¡ æå,WriteInStoreTaskInfoAsyncï¼åæ°: ç«ç¹{rgvLocation}"); |
| | | } |
| | | } |
| | | |
| | | //è®°å½ä»»å¡ |
| | | var _id = Yitter.IdGenerator.YitIdHelper.NextId(); |
| | |
| | | |
| | | wmsDB.wms_rbline_task.Add(task); |
| | | |
| | | using (StationServiceClient client = new StationServiceClient()) |
| | | { |
| | | var res = await client.WriteInStoreTaskInfoAsync((int)EDevice.Station, rgvLocation, place.PlaceCode, |
| | | (short)upiObj.Length, |
| | | (short)upiObj.Width, (short)upiObj.Thk, Convert.ToInt32(task.TaskNo)); |
| | | if (!res.result) |
| | | { |
| | | SystemWarningMsg._lbl_alert_DataProcess_BZ39 = $"{rgvLocation.ToString()}-ä¸åå
¥åºä»»å¡ 失败,WriteInStoreTaskInfoAsync è¿å:{res.resMsg}"; |
| | | continue; |
| | | } |
| | | else |
| | | { |
| | | Log4NetHelper.WriteInfoLog(logType, $"{rgvLocation.ToString()}-ä¸åå
¥åºä»»å¡ æå,WriteInStoreTaskInfoAsyncï¼åæ°: ç«ç¹{rgvLocation}"); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | place.PlaceStatus = (int)PlaceStatusEnum.éå®; |
| | | |
| | | wmsDB.SaveChanges(); |
| | |
| | | SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_FinishTaskForOutbound = $"{rgvLocation.ToString()},æ ¹æ® R_OutboundNumber:{obj.R_OutboundNumber}æ²¡ææ¾å°å·²ä¸åçä»»å¡ "; |
| | | continue; |
| | | } |
| | | var groups = taskList.GroupBy(x => x.PackageCode).ToList(); |
| | | foreach (var gg in groups) |
| | | { |
| | | |
| | | } |
| | | var doTask = taskList.FirstOrDefault(); |
| | | |
| | | var upiObj = wmsDB.mes_batchOrderUPI_new.Where(x => x.UPI == upiCode).FirstOrDefault(); |
| | | if (upiObj == null) |
| | |
| | | //è¿éæ¹ä¸º ä¸å åºåºä»»å¡ |
| | | using (StationServiceClient client = new StationServiceClient()) |
| | | { |
| | | var res = await client.WriteInStoreTaskInfoAsync((int)EDevice.Station, rgvLocation, "", (short)upiObj.Length, |
| | | (short)upiObj.Width, (short)upiObj.Thk); |
| | | var res = await client.WriteOutStoreTaskInfoAsync((int)EDevice.Station, rgvLocation, doTask.PlaceCode, Convert.ToInt32(doTask.TaskNo)); |
| | | if (!res.result) |
| | | { |
| | | SystemWarningMsg._lbl_alert_DataProcess_BZ39 = $"{rgvLocation.ToString()}-ä¸åå
¥åºä»»å¡ 失败,WriteInStoreTaskInfoAsync è¿å:{res.resMsg}"; |
| | | SystemWarningMsg._lbl_alert_DataProcess_BZ39 = $"{rgvLocation.ToString()}-ä¸ååºåºä»»å¡ 失败,WriteOutStoreTaskInfoAsync è¿å:{res.resMsg}"; |
| | | continue; |
| | | } |
| | | else |
| | | { |
| | | Log4NetHelper.WriteInfoLog(logType, $"{rgvLocation.ToString()}-ä¸åå
¥åºä»»å¡ æå,WriteInStoreTaskInfoAsyncï¼åæ°: ç«ç¹{rgvLocation}"); |
| | | Log4NetHelper.WriteInfoLog(logType, $"{rgvLocation.ToString()}-ä¸ååºåºä»»å¡ æå,WriteOutStoreTaskInfoAsyncï¼åæ°: ç«ç¹{rgvLocation}"); |
| | | } |
| | | } |
| | | |
| | |
| | | <Compile Include="DeviceThreadFactory\DeviceThreadService\SrmThreadService\SrmTaskThreadService.cs" /> |
| | | <Compile Include="ThreadService\00_269å·¥ä½\DataProcess_269.cs" /> |
| | | <Compile Include="ThreadService\01_BZ01å·¥ä½ï¼æ¸
ç°ï¼æ´æ¿åå·¥ä½ï¼\DataProcess_BZ01.cs" /> |
| | | <Compile Include="ThreadService\02_BZ39å·¥ä½ï¼è¡¥æ¿åå·¥ä½ï¼\DataProcess_RobotBuffer_ModeChange.cs" /> |
| | | <Compile Include="ThreadService\02_BZ39å·¥ä½ï¼è¡¥æ¿åå·¥ä½ï¼\Outbound\2ãDataProcess_RobotBuffer_IssueOutboundTask.cs" /> |
| | | <Compile Include="ThreadService\02_BZ39å·¥ä½ï¼è¡¥æ¿åå·¥ä½ï¼\Outbound\1ãDataProcess_RobotBuffer_AutoQiTaoOutbound.cs" /> |
| | | <Compile Include="ThreadService\02_BZ39å·¥ä½ï¼è¡¥æ¿åå·¥ä½ï¼\Outbound\3ãDataProcess_RobotBuffer_FinishTaskForOutbound.cs" /> |
| | |
| | | public enum AreaCodeEnum |
| | | { |
| | | /// <summary> |
| | | /// å¾
ç¼ååæ£åº |
| | | /// </summary> |
| | | [Description("å¾
ç¼å忣åº")] |
| | | å¾
ç¼ååæ£åº = 1, |
| | | |
| | | /// <summary> |
| | | /// ç¼ååæ£åº |
| | | /// </summary> |
| | | [Description("ç¼å忣åº")] |
| | | ç¼ååæ£åº = 1, |
| | | ç¼ååæ£åº = 2, |
| | | |
| | | /// <summary> |
| | | /// æºå¨äººå²ç¼ååºå |
| | | /// </summary> |
| | | [Description("æºå¨äººå²ç¼ååºå")] |
| | | æºå¨äººå²ç¼ååºå = 2, |
| | | æºå¨äººå²ç¼ååºå = 3, |
| | | |
| | | /// <summary> |
| | | /// ç ååºå |
| | | /// </summary> |
| | | [Description("ç ååºå")] |
| | | |
| | | ç ååºå = 3, |
| | | ç ååºå = 4, |
| | | |
| | | /// <summary> |
| | | /// åå
è£ååº |
| | | /// </summary> |
| | | [Description("åå
è£ååº")] |
| | | |
| | | åå
è£ååº = 4, |
| | | åå
è£ååº = 5, |
| | | |
| | | /// <summary> |
| | | /// å
è£
线åºå |
| | | /// </summary> |
| | | [Description("å
è£
线åºå")] |
| | | |
| | | å
è£
线åºå = 5 |
| | | å
è£
线åºå = 6 |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | |  |
| | | |
| | | using System.ComponentModel; |
| | | |
| | | namespace Admin.NET.Application |
| | | { |
| | | |
| | | /// <summary> |
| | | /// æºå¨äººç¼åå²è¿è¡æ¨¡å¼ |
| | | /// </summary> |
| | | [Description("æºå¨äººç¼åå²è¿è¡æ¨¡å¼")] |
| | | public enum RbRunModeEnum |
| | | { |
| | | /// <summary> |
| | | /// å
¥åºæ¨¡å¼ |
| | | /// </summary> |
| | | [Description("å
¥åºæ¨¡å¼")] |
| | | å
¥åºæ¨¡å¼ = 1, |
| | | |
| | | /// <summary> |
| | | /// åºåºæ¨¡å¼ |
| | | /// </summary> |
| | | [Description("åºåºæ¨¡å¼")] |
| | | åºåºæ¨¡å¼ = 2, |
| | | |
| | | /// <summary> |
| | | /// 强å¶åºåºæ¨¡å¼ |
| | | /// </summary> |
| | | [Description("强å¶åºåºæ¨¡å¼")] |
| | | 强å¶åºåºæ¨¡å¼ = 3, |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | |  |
| | | |
| | | using System.ComponentModel; |
| | | |
| | | namespace Admin.NET.Application { |
| | | |
| | | /// <summary> |
| | | /// æ¿æç¶ææä¸¾ |
| | | /// </summary> |
| | | [Description("æ¿æç¶ææä¸¾")] |
| | | public enum UpiStatusEnum |
| | | { |
| | | /// <summary> |
| | | /// åå§ |
| | | /// </summary> |
| | | [Description("åå§")] |
| | | åå§ = 0, |
| | | |
| | | /// <summary> |
| | | /// ä¸é½å
|
| | | /// </summary> |
| | | [Description("ä¸é½å
")] |
| | | ä¸é½å
= 1, |
| | | |
| | | /// <summary> |
| | | /// å·²é½å
|
| | | /// </summary> |
| | | [Description("å·²é½å
")] |
| | | å·²é½å
= 2, |
| | | |
| | | /// <summary> |
| | | /// å·²ç å |
| | | /// </summary> |
| | | [Description("å·²ç å")] |
| | | å·²ç å = 3, |
| | | |
| | | /// <summary> |
| | | /// å·²åå
|
| | | /// </summary> |
| | | [Description("å·²åå
")] |
| | | å·²åå
= 4 |
| | | |
| | | } |
| | | } |
| | |
| | | <Compile Include="EnumType\TaskExcuteTypeEnum.cs" /> |
| | | <Compile Include="EnumType\ThreadDirectionEnum.cs" /> |
| | | <Compile Include="EnumType\WMS\AreaCodeEnum.cs" /> |
| | | <Compile Include="EnumType\WMS\RbRunModeEnum.cs" /> |
| | | <Compile Include="EnumType\WMS\RbTaskTypeEnum.cs" /> |
| | | <Compile Include="EnumType\WMS\StockStatusEnum.cs" /> |
| | | <Compile Include="EnumType\WMS\TaskStatusEnum.cs" /> |
| | | <Compile Include="EnumType\WMS\UpiStatusEnum.cs" /> |
| | | <Compile Include="EnumType\WMS\WmsPlaceEnum.cs" /> |
| | | <Compile Include="EnumType\XiGangPublicCommon\AddTransferTaskEnum.cs" /> |
| | | <Compile Include="EnumType\XiGangPublicCommon\MainInOutFlagEnum.cs" /> |
| | |
| | | public virtual DbSet<wms_config_serial_sn> wms_config_serial_sn { get; set; } |
| | | public virtual DbSet<wms_config_sncode_rule> wms_config_sncode_rule { get; set; } |
| | | public virtual DbSet<wms_log_action> wms_log_action { get; set; } |
| | | public virtual DbSet<wms_rbline_runmode> wms_rbline_runmode { get; set; } |
| | | public virtual DbSet<wms_rbline_task> wms_rbline_task { get; set; } |
| | | public virtual DbSet<wms_record_print> wms_record_print { get; set; } |
| | | public virtual DbSet<wms_record_trans> wms_record_trans { get; set; } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace iWareSql.WmsDBModel |
| | | { |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel.DataAnnotations; |
| | | using System.ComponentModel.DataAnnotations.Schema; |
| | | using System.Data.Entity.Spatial; |
| | | |
| | | public partial class wms_rbline_runmode |
| | | { |
| | | [DatabaseGenerated(DatabaseGeneratedOption.None)] |
| | | public long Id { get; set; } |
| | | |
| | | [StringLength(50)] |
| | | public string UPI { get; set; } |
| | | |
| | | [StringLength(50)] |
| | | public string PlanNo { get; set; } |
| | | |
| | | [StringLength(50)] |
| | | public string OrderId { get; set; } |
| | | |
| | | [StringLength(50)] |
| | | public string PackageCode { get; set; } |
| | | |
| | | public int? LineRunMode { get; set; } |
| | | |
| | | [StringLength(50)] |
| | | public string LineRunModeName { get; set; } |
| | | |
| | | public DateTime? CreateTime { get; set; } |
| | | |
| | | public DateTime? UpdateTime { get; set; } |
| | | |
| | | public long? CreateUserId { get; set; } |
| | | |
| | | [StringLength(64)] |
| | | public string CreateUserName { get; set; } |
| | | |
| | | public long? UpdateUserId { get; set; } |
| | | |
| | | [StringLength(64)] |
| | | public string UpdateUserName { get; set; } |
| | | |
| | | public bool IsDelete { get; set; } |
| | | } |
| | | } |
| | |
| | | |
| | | public DateTime? LastUnLineTime { get; set; } |
| | | |
| | | [StringLength(50)] |
| | | public string OperationRemark { get; set; } |
| | | |
| | | public DateTime? CreateTime { get; set; } |
| | | |
| | | public DateTime? UpdateTime { get; set; } |
| | |
| | | public string UpdateUserName { get; set; } |
| | | |
| | | public bool IsDelete { get; set; } |
| | | |
| | | |
| | | [StringLength(50)] |
| | | public string OperationRemark { get; set; } |
| | | } |
| | | } |
| | |
| | | <Compile Include="WmsDBModel\wms_config_serial_sn.cs" /> |
| | | <Compile Include="WmsDBModel\wms_config_sncode_rule.cs" /> |
| | | <Compile Include="WmsDBModel\wms_log_action.cs" /> |
| | | <Compile Include="WmsDBModel\wms_rbline_runmode.cs" /> |
| | | <Compile Include="WmsDBModel\wms_rbline_task.cs" /> |
| | | <Compile Include="WmsDBModel\wms_record_print.cs" /> |
| | | <Compile Include="WmsDBModel\wms_record_trans.cs" /> |
| | |
| | | 0 |
| | | ); |
| | | |
| | | |
| | | DELETE wms_rbline_runmode ; |
| | | INSERT INTO wms_rbline_runmode( |
| | | [id], |
| | | [CreateUserName], |
| | | [CreateTime], |
| | | [UpdateUserName], |
| | | [UpdateTime], |
| | | [IsDelete] |
| | | ) |
| | | VALUES |
| | | ( |
| | | '613664349835335', |
| | | 'sys', |
| | | getdate(), |
| | | 'sys', |
| | | getdate(), |
| | | 0 |
| | | ); |
| | | |
| | |
| | | "$schema": "https://gitee.com/dotnetchina/Furion/raw/v4/schemas/v4/furion-schema.json", |
| | | |
| | | "SpecificationDocumentSettings": { |
| | | "DocumentTitle": "iWareWMSåæåº(æ åç)", |
| | | "DocumentTitle": "é²ä¸½æ¨ä¸å
è£
线", |
| | | "GroupOpenApiInfos": [ |
| | | { |
| | | "Group": "Default", |
| | | "Title": "iWareWMSåæåº(æ åç)", |
| | | "Title": "é²ä¸½æ¨ä¸å
è£
线", |
| | | "Description": "帮å©ä¸å½å¶é ä¸å®ç°èªå¨åãæºè½åã", |
| | | "Version": "1.0.0", |
| | | "Order": 1000 |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using Admin.NET.Core; |
| | | |
| | | /* |
| | | * @author : åæå¥ |
| | | * @date : 2024/5/29ä¸å10:26:39 |
| | | * @desc : è°åº¦ä»»å¡ |
| | | */ |
| | | namespace Admin.NET.Application.Entity |
| | | { |
| | | /// <summary> |
| | | /// æºå¨äººç¼åå²è¿è¡æ¨¡å¼ |
| | | /// </summary> |
| | | [SugarTable("wms_rbline_runmode", "æºå¨äººç¼åå²è¿è¡æ¨¡å¼")] |
| | | public class WmsRbLineRunMode : EntityBase |
| | | { |
| | | /// <summary> |
| | | /// æå䏿¬¡å¨ BZ_01çç³»ç»å¤ççæ¿ä»¶ |
| | | [SugarColumn(ColumnName = "UPI", ColumnDescription = "é¨ä»¶æ¡ç ", Length = 50)] |
| | | public string? UPI { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æå䏿¬¡å¨ BZ_01çç³»ç»å¤ççæ¿ä»¶ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "PlanNo", ColumnDescription = "æ¹æ¬¡å·", Length = 50)] |
| | | public string? PlanNo { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æå䏿¬¡å¨ BZ_01çç³»ç»å¤ççæ¿ä»¶ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "OrderId", ColumnDescription = "订åå·", Length = 50)] |
| | | public string? OrderId { get; set; } |
| | | |
| | | |
| | | /// <summary> |
| | | /// æå䏿¬¡å¨ BZ_01çç³»ç»å¤ççæ¿ä»¶ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "PackageCode", ColumnDescription = "å
è£
å·", Length = 50)] |
| | | public string? PackageCode { get; set; } |
| | | |
| | | |
| | | /// <summary> |
| | | /// è¿è¡æ¨¡å¼ |
| | | /// </summary> |
| | | |
| | | [SugarColumn(ColumnName = "LineRunMode", ColumnDescription = "è¿è¡æ¨¡å¼")] |
| | | public RbRunModeEnum? LineRunMode { get; set; } |
| | | |
| | | |
| | | /// <summary> |
| | | /// è¿è¡æ¨¡å¼åç§° |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "LineRunModeName", ColumnDescription = "è¿è¡æ¨¡å¼åç§°", Length = 50)] |
| | | |
| | | public string? LineRunModeName { get; set; } |
| | | |
| | | |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | |  |
| | | |
| | | namespace Admin.NET.Application; |
| | | |
| | | /// <summary> |
| | | /// æºå¨äººç¼åå²è¿è¡æ¨¡å¼ |
| | | /// </summary> |
| | | [Description("æºå¨äººç¼åå²è¿è¡æ¨¡å¼")] |
| | | public enum RbRunModeEnum |
| | | { |
| | | /// <summary> |
| | | /// å
¥åºæ¨¡å¼ |
| | | /// </summary> |
| | | [Description("å
¥åºæ¨¡å¼")] |
| | | å
¥åºæ¨¡å¼ = 1, |
| | | |
| | | /// <summary> |
| | | /// åºåºæ¨¡å¼ |
| | | /// </summary> |
| | | [Description("åºåºæ¨¡å¼")] |
| | | åºåºæ¨¡å¼ = 2, |
| | | |
| | | /// <summary> |
| | | /// 强å¶åºåºæ¨¡å¼ |
| | | /// </summary> |
| | | [Description("强å¶åºåºæ¨¡å¼")] |
| | | 强å¶åºåºæ¨¡å¼ = 3, |
| | | |
| | | } |
| | |
| | | public enum AreaCodeEnum |
| | | { |
| | | /// <summary> |
| | | /// å¾
ç¼ååæ£åº |
| | | /// </summary> |
| | | [Description("å¾
ç¼å忣åº")] |
| | | å¾
ç¼ååæ£åº = 1, |
| | | |
| | | /// <summary> |
| | | /// ç¼ååæ£åº |
| | | /// </summary> |
| | | [Description("ç¼å忣åº")] |
| | | ç¼ååæ£åº = 1, |
| | | ç¼ååæ£åº = 2, |
| | | |
| | | /// <summary> |
| | | /// æºå¨äººå²ç¼ååºå |
| | | /// </summary> |
| | | [Description("æºå¨äººå²ç¼ååºå")] |
| | | æºå¨äººå²ç¼ååºå = 2, |
| | | æºå¨äººå²ç¼ååºå = 3, |
| | | |
| | | /// <summary> |
| | | /// ç ååºå |
| | | /// </summary> |
| | | [Description("ç ååºå")] |
| | | |
| | | ç ååºå = 3, |
| | | ç ååºå = 4, |
| | | |
| | | /// <summary> |
| | | /// åå
è£ååº |
| | | /// </summary> |
| | | [Description("åå
è£ååº")] |
| | | |
| | | åå
è£ååº = 4, |
| | | åå
è£ååº = 5, |
| | | |
| | | /// <summary> |
| | | /// å
è£
线åºå |
| | | /// </summary> |
| | | [Description("å
è£
线åºå")] |
| | | |
| | | å
è£
线åºå = 5 |
| | | å
è£
线åºå = 6 |
| | | |
| | | } |
| | |
| | | åå§ = 0, |
| | | |
| | | /// <summary> |
| | | /// ä¸é½å
|
| | | /// </summary> |
| | | [Description("ä¸é½å
")] |
| | | ä¸é½å
= 1, |
| | | |
| | | /// <summary> |
| | | /// å·²é½å
|
| | | /// </summary> |
| | | [Description("å·²é½å
")] |
| | | å·²é½å
= 1, |
| | | å·²é½å
= 2, |
| | | |
| | | /// <summary> |
| | | /// å·²ç å |
| | | /// </summary> |
| | | [Description("å·²ç å")] |
| | | å·²ç å = 2, |
| | | å·²ç å = 3, |
| | | |
| | | /// <summary> |
| | | /// å·²åå
|
| | | /// </summary> |
| | | [Description("å·²åå
")] |
| | | å·²åå
= 3, |
| | | å·²åå
= 4, |
| | | |
| | | } |
| | |
| | | public int W_Destination_In { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä»»å¡å· |
| | | /// å
¥åºä»»å¡å· |
| | | /// </summary> |
| | | [Description("ä»»å¡å·")] |
| | | public string W_TaskID { get; set; } |
| | | [Description("å
¥åºä»»å¡å·")] |
| | | public int W_Inbound_TaskID { get; set; } |
| | | |
| | | /// <summary> |
| | | /// åºåºä»»å¡å· |
| | | /// </summary> |
| | | [Description("åºåºä»»å¡å·")] |
| | | public int W_Outbound_TaskID { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¥æé¿åº¦ |
| | |
| | | /// </summary> |
| | | [Description("å
¥åºå®æå·²ç¡®è®¤")] |
| | | public bool W_InboundFinishConfirm { get; set; } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// åºåºå®æå·²ç¡®è®¤ |
| | | /// </summary> |
| | | [Description("åºåºå®æå·²ç¡®è®¤")] |
| | | public bool W_OutboundFinishConfirm { get; set; } |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | [Description("å
¥åºä»»å¡å·")] |
| | | public string W_Inbound_TaskID { get; set; } |
| | | |
| | | /// <summary> |
| | | /// åºåºä»»å¡å· |
| | | /// </summary> |
| | | [Description("åºåºä»»å¡å·")] |
| | | public string W_Outbound_TaskID { get; set; } |
| | | |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// æ¥æé¿åº¦ |
| | |
| | | /// </summary> |
| | | [Description("æ¥æé«åº¦")] |
| | | public string W_Height { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 请æ±åºåº |
| | | /// </summary> |
| | | [Description("请æ±åºåº")] |
| | | public string W_ReqOut { get; set; } |
| | | |
| | | /// <summary> |
| | | /// åé
åºåºåºä½å· |
| | | /// </summary> |
| | | [Description("åé
åºåºåºä½å·")] |
| | | public string W_Destination_Out { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 模å¼ï¼1ï¼å
¥åºï¼ 2ï¼åºåº 3ï¼å¼ºå¶åºåºï¼ |
| | |
| | | /// </summary> |
| | | [Description("å
¥åºå®æå·²ç¡®è®¤")] |
| | | public string W_InboundFinishConfirm { get; set; } |
| | | ///// <summary> |
| | | ///// ä»»å¡å· |
| | | ///// </summary> |
| | | //[Description("ä»»å¡å·")] |
| | | //public string W_TaskID { get; set; } |
| | | |
| | | |
| | | #region åºåºç¸å
³ |
| | | |
| | | /// <summary> |
| | | /// åºåºä»»å¡å· |
| | | /// </summary> |
| | | [Description("åºåºä»»å¡å·")] |
| | | public string W_Outbound_TaskID { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 请æ±åºåº |
| | | /// </summary> |
| | | [Description("请æ±åºåº")] |
| | | public string W_ReqOut { get; set; } |
| | | |
| | | /// <summary> |
| | | /// åé
åºåºåºä½å· |
| | | /// </summary> |
| | | [Description("åé
åºåºåºä½å·")] |
| | | public string W_Destination_Out { get; set; } |
| | | |
| | | /// <summary> |
| | | /// åºåºå®æå·²ç¡®è®¤ |
| | | /// </summary> |
| | | [Description("åºåºå®æå·²ç¡®è®¤")] |
| | | public string W_OutboundFinishConfirm { get; set; } |
| | | |
| | | #endregion |
| | | |
| | | } |
| | | |
| | |
| | | [Description("æºå¨äººåºåºåºä½å·")] |
| | | public string R_OutboundNumber { get; set; } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// å
¥åºä»»å¡å· |
| | | /// </summary> |
| | | [Description("å
¥åºä»»å¡å·")] |
| | | public string R_Inbound_TaskID { get; set; } |
| | | |
| | | /// <summary> |
| | | /// åºåºä»»å¡å· |
| | | /// </summary> |
| | | [Description("åºåºä»»å¡å·")] |
| | | public string R_Outbound_TaskID { get; set; } |
| | | |
| | | } |
| | | } |
| | |
| | | MessageModel b2 = this.plcService.WriteValuePoint(stationObj.W_InboundFinishConfirm, true, view_stationObj.W_DataFinish); |
| | | if (!b2.result) |
| | | { |
| | | msg = string.Format("åStationå°å{0} å " + true + "失败,è¿åç»æ:" + b2.resMsg, |
| | | msg = string.Format("åStationå°å{0} å
¥åºå®æç¡®è®¤ å " + true + "失败,è¿åç»æ:" + b2.resMsg, |
| | | stationObj.W_InboundFinishConfirm); |
| | | return false; |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | public bool WriteInStoreTaskInfo(string stationCode, string toPlaceNo, short length, short width, short height, out string msg) |
| | | public bool OutboundFinishConfirm(string stationCode, 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_OutboundFinishConfirm, true, view_stationObj.W_OutboundFinishConfirm); |
| | | if (!b2.result) |
| | | { |
| | | msg = string.Format("åStation åºåºä»»å¡å®æç¡®è®¤ å°å{0} å " + true + "失败,è¿åç»æ:" + 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 WriteInStoreTaskInfo(string stationCode, string toPlaceNo, short length, short width, short height, out string msg, int inbound_TaskID) |
| | | { |
| | | try |
| | | { |
| | |
| | | { |
| | | msg = string.Format("åStationå°å{0} å 读ç è§£æå®æ " + true + "失败,è¿åç»æ:" + b2.resMsg, |
| | | stationObj.W_DataFinish); |
| | | return false; |
| | | } |
| | | |
| | | |
| | | b2 = this.plcService.WriteValuePoint(stationObj.W_Inbound_TaskID, inbound_TaskID, view_stationObj.W_Inbound_TaskID); |
| | | if (!b2.result) |
| | | { |
| | | msg = string.Format("åStationå°å{0} å å
¥åºä»»å¡å· " + inbound_TaskID + "失败,è¿åç»æ:" + b2.resMsg, |
| | | stationObj.W_Inbound_TaskID); |
| | | return false; |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | public bool WriteOutStoreTaskInfo(string stationCode, string sourcePlaceNo, out string msg, int outbound_TaskID) |
| | | { |
| | | 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_Outbound_TaskID, true, view_stationObj.W_Outbound_TaskID); |
| | | if (!b2.result) |
| | | { |
| | | msg = string.Format("åStationå°å{0} å åºåºä»»å¡å· " + true + "失败,è¿åç»æ:" + b2.resMsg, |
| | | stationObj.W_Outbound_TaskID); |
| | | return false; |
| | | } |
| | | |
| | | |
| | | b2 = this.plcService.WriteValuePoint(stationObj.W_ReqOut, true, view_stationObj.W_ReqOut); |
| | | if (!b2.result) |
| | | { |
| | | msg = string.Format("åStationå°å{0} å 请æ±åºåº " + true + "失败,è¿åç»æ:" + b2.resMsg, |
| | | stationObj.W_ReqOut); |
| | | return false; |
| | | } |
| | | |
| | | b2 = this.plcService.WriteValuePoint(stationObj.W_Destination_Out, Convert.ToInt32(sourcePlaceNo), view_stationObj.W_Destination_Out); |
| | | if (!b2.result) |
| | | { |
| | | msg = string.Format("åStationå°å{0} å åºä½å· " + sourcePlaceNo + "失败,è¿åç»æ:" + b2.resMsg, |
| | | stationObj.W_Destination_Out); |
| | | return false; |
| | | } |
| | | |
| | | |
| | | return true; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | msg = ex.Message; |
| | | var logcontext = string.Format("WriteOutStoreTaskInfo åºç°å¼å¸¸:" + JsonConvert.SerializeObject(ex), |
| | | ""); |
| | | Log4NetHelper.WriteErrorLog(Station_CacheEntity.curLogType, logcontext, ex); |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// Stationçä»»å¡å®æACKèµå¼ |
| | | /// </summary> |
| | |
| | | W_InboundFinishConfirm = W_DBHeaderWithSeparate_BZ39 + "0.1", |
| | | W_Destination_In = W_DBHeaderWithSeparate_BZ39 + "2.0", |
| | | |
| | | W_Inbound_TaskID = W_DBHeaderWithSeparate_BZ39 + "",//TODOï¼?è¿æ²¡æé
ç½®å¢ |
| | | W_Outbound_TaskID = W_DBHeaderWithSeparate_BZ39 + "",//TODOï¼?è¿æ²¡æé
ç½®å¢ |
| | | |
| | | W_Length = W_DBHeaderWithSeparate_BZ39 + "6.0", |
| | | W_Width = W_DBHeaderWithSeparate_BZ39 + "8.0", |
| | | W_Height = W_DBHeaderWithSeparate_BZ39 + "10.0", |
| | |
| | | W_ReqOut = W_DBHeaderWithSeparate_BZ39 + "12.0", |
| | | W_Destination_Out = W_DBHeaderWithSeparate_BZ39 + "14.0", |
| | | W_Mode = W_DBHeaderWithSeparate_BZ39 + "18.0", |
| | | W_OutboundFinishConfirm = W_DBHeaderWithSeparate_BZ39 + "" //TODOï¼?è¿æ²¡æé
ç½®å¢ |
| | | |
| | | }); |
| | | |
| | |
| | | R_OutboundFinish = W_DBHeaderWithSeparate_BZ39 + "50.2", |
| | | R_ReadCodeResult = W_DBHeaderWithSeparate_BZ39 + "52.0", |
| | | R_InboundNumber = W_DBHeaderWithSeparate_BZ39 + "104.0", |
| | | R_OutboundNumber = W_DBHeaderWithSeparate_BZ39 + "108.0" |
| | | R_OutboundNumber = W_DBHeaderWithSeparate_BZ39 + "108.0", |
| | | |
| | | R_Inbound_TaskID = W_DBHeaderWithSeparate_BZ39 + "",//TODOï¼?è¿æ²¡æé
ç½®å¢ |
| | | R_Outbound_TaskID = W_DBHeaderWithSeparate_BZ39 + "",//TODOï¼?è¿æ²¡æé
ç½®å¢ |
| | | |
| | | }); |
| | | |
| | | |
| | |
| | | SdaResEntity InboundFinishConfirm(int deviceId, string stationCode); |
| | | |
| | | /// <summary> |
| | | /// åºåºå®æå·²ç¡®è®¤ |
| | | /// </summary> |
| | | /// <param name="deviceId"></param> |
| | | /// <param name="value"></param> |
| | | /// <returns></returns> |
| | | [OperationContract] |
| | | SdaResEntity OutboundFinishConfirm(int deviceId, string stationCode); |
| | | |
| | | /// <summary> |
| | | /// åå
¥å
¥åºä»»å¡ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <param name="deviceId"></param> |
| | | /// <param name="value"></param> |
| | | /// <returns></returns> |
| | | [OperationContract] |
| | | SdaResEntity WriteInStoreTaskInfo(int deviceId, string stationCode, string toPlaceNo, short length, short width, short height); |
| | | SdaResEntity WriteInStoreTaskInfo(int deviceId, string stationCode, string toPlaceNo, short length, short width, short height, int inbound_TaskID); |
| | | |
| | | /// <summary> |
| | | /// åå
¥åºåºä»»å¡ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <param name="deviceId"></param> |
| | | /// <param name="stationCode"></param> |
| | | /// <param name="sourcePlaceNo"></param> |
| | | /// <param name="outbound_TaskID"></param> |
| | | /// <returns></returns> |
| | | [OperationContract] |
| | | SdaResEntity WriteOutStoreTaskInfo(int deviceId, string stationCode, string sourcePlaceNo, int outbound_TaskID); |
| | | |
| | | /// <summary> |
| | | /// Stationçä»»å¡å®æACKèµå¼ |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// åå
¥å
¥åºä»»å¡ä¿¡æ¯ |
| | | /// åºåºå®æå·²ç¡®è®¤ |
| | | /// </summary> |
| | | /// <param name="deviceId"></param> |
| | | /// <param name="value"></param> |
| | | /// <returns></returns> |
| | | public SdaResEntity WriteInStoreTaskInfo(int deviceId, string stationCode, string toPlaceNo, short length, short width, short height) |
| | | public SdaResEntity OutboundFinishConfirm(int deviceId, string stationCode) |
| | | { |
| | | SdaResEntity _SdaResEntity = new SdaResEntity(); |
| | | try |
| | |
| | | var Station = StationResult.resData as StationEntity; |
| | | |
| | | string msg = ""; |
| | | var result = Station.WriteInStoreTaskInfo(stationCode, toPlaceNo, length, width, height, out msg); |
| | | var result = Station.OutboundFinishConfirm(stationCode, 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 WriteInStoreTaskInfo(int deviceId, string stationCode, string toPlaceNo, short length, short width, short height, int inbound_TaskID) |
| | | { |
| | | 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.WriteInStoreTaskInfo(stationCode, toPlaceNo, length, width, height, out msg, inbound_TaskID); |
| | | _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="stationCode"></param> |
| | | /// <param name="sourcePlaceNo"></param> |
| | | /// <param name="outbound_TaskID"></param> |
| | | /// <returns></returns> |
| | | public SdaResEntity WriteOutStoreTaskInfo(int deviceId, string stationCode, string sourcePlaceNo, int outbound_TaskID) |
| | | { |
| | | 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.WriteOutStoreTaskInfo(stationCode, sourcePlaceNo, out msg, outbound_TaskID); |
| | | _SdaResEntity.result = result; |
| | | _SdaResEntity.resMsg = msg; |
| | | return _SdaResEntity; |