| | |
| | | private string StationCodeField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private string W_CartonHeightField; |
| | | private short W_CartonHeightField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private string W_CartonWidthField; |
| | | private short W_CartonWidthField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private bool W_DataFinishField; |
| | |
| | | private short W_Outbound_TaskIDField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private string W_PackageLengthField; |
| | | private short W_PackageLengthField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private string W_PackageWidthField; |
| | | private short W_PackageWidthField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private short W_PalletizingBucketTypeField; |
| | |
| | | private bool W_SurroundTaskFinishField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private int W_SurroundTaskNoField; |
| | | private short W_SurroundTaskNoField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private short W_WidthField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private string W_X_OffsetField; |
| | | private short W_X_OffsetField; |
| | | |
| | | [System.Runtime.Serialization.OptionalFieldAttribute()] |
| | | private string W_Y_OffsetField; |
| | | private short W_Y_OffsetField; |
| | | |
| | | [global::System.ComponentModel.BrowsableAttribute(false)] |
| | | public System.Runtime.Serialization.ExtensionDataObject ExtensionData { |
| | |
| | | } |
| | | |
| | | [System.Runtime.Serialization.DataMemberAttribute()] |
| | | public string W_CartonHeight { |
| | | public short W_CartonHeight { |
| | | get { |
| | | return this.W_CartonHeightField; |
| | | } |
| | | set { |
| | | if ((object.ReferenceEquals(this.W_CartonHeightField, value) != true)) { |
| | | if ((this.W_CartonHeightField.Equals(value) != true)) { |
| | | this.W_CartonHeightField = value; |
| | | this.RaisePropertyChanged("W_CartonHeight"); |
| | | } |
| | |
| | | } |
| | | |
| | | [System.Runtime.Serialization.DataMemberAttribute()] |
| | | public string W_CartonWidth { |
| | | public short W_CartonWidth { |
| | | get { |
| | | return this.W_CartonWidthField; |
| | | } |
| | | set { |
| | | if ((object.ReferenceEquals(this.W_CartonWidthField, value) != true)) { |
| | | if ((this.W_CartonWidthField.Equals(value) != true)) { |
| | | this.W_CartonWidthField = value; |
| | | this.RaisePropertyChanged("W_CartonWidth"); |
| | | } |
| | |
| | | } |
| | | |
| | | [System.Runtime.Serialization.DataMemberAttribute()] |
| | | public string W_PackageLength { |
| | | public short W_PackageLength { |
| | | get { |
| | | return this.W_PackageLengthField; |
| | | } |
| | | set { |
| | | if ((object.ReferenceEquals(this.W_PackageLengthField, value) != true)) { |
| | | if ((this.W_PackageLengthField.Equals(value) != true)) { |
| | | this.W_PackageLengthField = value; |
| | | this.RaisePropertyChanged("W_PackageLength"); |
| | | } |
| | |
| | | } |
| | | |
| | | [System.Runtime.Serialization.DataMemberAttribute()] |
| | | public string W_PackageWidth { |
| | | public short W_PackageWidth { |
| | | get { |
| | | return this.W_PackageWidthField; |
| | | } |
| | | set { |
| | | if ((object.ReferenceEquals(this.W_PackageWidthField, value) != true)) { |
| | | if ((this.W_PackageWidthField.Equals(value) != true)) { |
| | | this.W_PackageWidthField = value; |
| | | this.RaisePropertyChanged("W_PackageWidth"); |
| | | } |
| | |
| | | } |
| | | |
| | | [System.Runtime.Serialization.DataMemberAttribute()] |
| | | public int W_SurroundTaskNo { |
| | | public short W_SurroundTaskNo { |
| | | get { |
| | | return this.W_SurroundTaskNoField; |
| | | } |
| | |
| | | } |
| | | |
| | | [System.Runtime.Serialization.DataMemberAttribute()] |
| | | public string W_X_Offset { |
| | | public short W_X_Offset { |
| | | get { |
| | | return this.W_X_OffsetField; |
| | | } |
| | | set { |
| | | if ((object.ReferenceEquals(this.W_X_OffsetField, value) != true)) { |
| | | if ((this.W_X_OffsetField.Equals(value) != true)) { |
| | | this.W_X_OffsetField = value; |
| | | this.RaisePropertyChanged("W_X_Offset"); |
| | | } |
| | |
| | | } |
| | | |
| | | [System.Runtime.Serialization.DataMemberAttribute()] |
| | | public string W_Y_Offset { |
| | | public short W_Y_Offset { |
| | | get { |
| | | return this.W_Y_OffsetField; |
| | | } |
| | | set { |
| | | if ((object.ReferenceEquals(this.W_Y_OffsetField, value) != true)) { |
| | | if ((this.W_Y_OffsetField.Equals(value) != true)) { |
| | | this.W_Y_OffsetField = value; |
| | | this.RaisePropertyChanged("W_Y_Offset"); |
| | | } |
| | |
| | | System.Threading.Tasks.Task<iWareCC.StationService.SdaResEntity> InboundFinishConfirmAsync(int deviceId, bool value, string stationCode); |
| | | |
| | | [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IStationService/OutboundFinishConfirm", ReplyAction="http://tempuri.org/IStationService/OutboundFinishConfirmResponse")] |
| | | iWareCC.StationService.SdaResEntity OutboundFinishConfirm(int deviceId, bool value, string stationCode); |
| | | iWareCC.StationService.SdaResEntity OutboundFinishConfirm(int deviceId, bool value, string stationCode, bool isClearData); |
| | | |
| | | [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IStationService/OutboundFinishConfirm", ReplyAction="http://tempuri.org/IStationService/OutboundFinishConfirmResponse")] |
| | | System.Threading.Tasks.Task<iWareCC.StationService.SdaResEntity> OutboundFinishConfirmAsync(int deviceId, bool value, string stationCode); |
| | | System.Threading.Tasks.Task<iWareCC.StationService.SdaResEntity> OutboundFinishConfirmAsync(int deviceId, bool value, string stationCode, bool isClearData); |
| | | |
| | | [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IStationService/ChangeMode", ReplyAction="http://tempuri.org/IStationService/ChangeModeResponse")] |
| | | iWareCC.StationService.SdaResEntity ChangeMode(int deviceId, int value, string stationCode); |
| | |
| | | System.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); |
| | | iWareCC.StationService.SdaResEntity WriteSurroundTaskInfo(int deviceId, string stationCode, short 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.Threading.Tasks.Task<iWareCC.StationService.SdaResEntity> WriteSurroundTaskInfoAsync(int deviceId, string stationCode, short 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); |
| | |
| | | return base.Channel.InboundFinishConfirmAsync(deviceId, value, stationCode); |
| | | } |
| | | |
| | | public iWareCC.StationService.SdaResEntity OutboundFinishConfirm(int deviceId, bool value, string stationCode) { |
| | | return base.Channel.OutboundFinishConfirm(deviceId, value, stationCode); |
| | | public iWareCC.StationService.SdaResEntity OutboundFinishConfirm(int deviceId, bool value, string stationCode, bool isClearData) { |
| | | return base.Channel.OutboundFinishConfirm(deviceId, value, stationCode, isClearData); |
| | | } |
| | | |
| | | public System.Threading.Tasks.Task<iWareCC.StationService.SdaResEntity> OutboundFinishConfirmAsync(int deviceId, bool value, string stationCode) { |
| | | return base.Channel.OutboundFinishConfirmAsync(deviceId, value, stationCode); |
| | | public System.Threading.Tasks.Task<iWareCC.StationService.SdaResEntity> OutboundFinishConfirmAsync(int deviceId, bool value, string stationCode, bool isClearData) { |
| | | return base.Channel.OutboundFinishConfirmAsync(deviceId, value, stationCode, isClearData); |
| | | } |
| | | |
| | | public iWareCC.StationService.SdaResEntity ChangeMode(int deviceId, int 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) { |
| | | public iWareCC.StationService.SdaResEntity WriteSurroundTaskInfo(int deviceId, string stationCode, short 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) { |
| | | public System.Threading.Tasks.Task<iWareCC.StationService.SdaResEntity> WriteSurroundTaskInfoAsync(int deviceId, string stationCode, short 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); |
| | | } |
| | | |
| | |
| | | <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:element minOccurs="0" name="isClearData" type="xs:boolean" /> |
| | | </xs:sequence> |
| | | </xs:complexType> |
| | | </xs:element> |
| | |
| | | <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="taskID" type="xs:short" /> |
| | | <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:complexType name="StationDB2ObjForWriteComm"> |
| | | <xs:sequence> |
| | | <xs:element minOccurs="0" name="StationCode" nillable="true" type="xs:string" /> |
| | | <xs:element minOccurs="0" name="W_CartonHeight" nillable="true" type="xs:string" /> |
| | | <xs:element minOccurs="0" name="W_CartonWidth" nillable="true" type="xs:string" /> |
| | | <xs:element minOccurs="0" name="W_CartonHeight" type="xs:short" /> |
| | | <xs:element minOccurs="0" name="W_CartonWidth" type="xs:short" /> |
| | | <xs:element minOccurs="0" name="W_DataFinish" type="xs:boolean" /> |
| | | <xs:element minOccurs="0" name="W_Destination_In" type="xs:int" /> |
| | | <xs:element minOccurs="0" name="W_Destination_Out" type="xs:int" /> |
| | |
| | | <xs:element minOccurs="0" name="W_Mode" type="xs:short" /> |
| | | <xs:element minOccurs="0" name="W_OutboundFinishConfirm" type="xs:boolean" /> |
| | | <xs:element minOccurs="0" name="W_Outbound_TaskID" type="xs:short" /> |
| | | <xs:element minOccurs="0" name="W_PackageLength" nillable="true" type="xs:string" /> |
| | | <xs:element minOccurs="0" name="W_PackageWidth" nillable="true" type="xs:string" /> |
| | | <xs:element minOccurs="0" name="W_PackageLength" type="xs:short" /> |
| | | <xs:element minOccurs="0" name="W_PackageWidth" type="xs:short" /> |
| | | <xs:element minOccurs="0" name="W_PalletizingBucketType" type="xs:short" /> |
| | | <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_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_SurroundTaskNo" type="xs:short" /> |
| | | <xs:element minOccurs="0" name="W_Width" type="xs:short" /> |
| | | <xs:element minOccurs="0" name="W_X_Offset" nillable="true" type="xs:string" /> |
| | | <xs:element minOccurs="0" name="W_Y_Offset" nillable="true" type="xs:string" /> |
| | | <xs:element minOccurs="0" name="W_X_Offset" type="xs:short" /> |
| | | <xs:element minOccurs="0" name="W_Y_Offset" type="xs:short" /> |
| | | </xs:sequence> |
| | | </xs:complexType> |
| | | <xs:element name="StationDB2ObjForWriteComm" nillable="true" type="tns:StationDB2ObjForWriteComm" /> |
| | |
| | | var doList = upiList.Where(x => x.PackageCode == packageCode).OrderBy(x => x.Shelf).ToList(); |
| | | foreach (var item in doList) |
| | | { |
| | | item.UpiStatus = (int)UpiStatusEnum.å·²é½å
; |
| | | item.UpdateTime = DateTime.Now; |
| | | |
| | | var x = group.ToList().Find(b => b.Upi == item.UPI); |
| | | x.StockStatus = (int)StockStatusEnum.é½å
å¾
åºåº; |
| | | |
| | |
| | | Length = x.Length, |
| | | Width = x.Width, |
| | | Thk = x.Thk, |
| | | IssueTime = DateTime.Now, |
| | | |
| | | PlanNo = x.PlanNo, |
| | | OrderId = x.OrderId, |
| | | PackageCode = x.PackageCode, |
| | |
| | | { |
| | | if (task.TaskStatus == (int)TaskStatusEnum.已宿) |
| | | { |
| | | //using (StationServiceClient client = new StationServiceClient()) |
| | | //{ |
| | | // var res = await client.OutboundFinishConfirmAsync((int)EDevice.Station, true, rgvLocation); |
| | | //} |
| | | using (StationServiceClient client = new StationServiceClient()) |
| | | { |
| | | var res = await client.OutboundFinishConfirmAsync((int)EDevice.Station, true, rgvLocation, false); |
| | | } |
| | | continue; |
| | | } |
| | | |
| | |
| | | //ç»PLCæ¨éä»»å¡å®æç¡®è®¤ä¿¡å· |
| | | using (StationServiceClient client = new StationServiceClient()) |
| | | { |
| | | var res = await client.OutboundFinishConfirmAsync((int)EDevice.Station, true, rgvLocation); |
| | | var res = await client.OutboundFinishConfirmAsync((int)EDevice.Station, true, rgvLocation, true); |
| | | if (!res.result) |
| | | { |
| | | SystemWarningMsg._lbl_Alert_DataProcess_RobotBuffer_FinishTaskForOutbound = $"{rgvLocation.ToString()}-ä¸ååºåºä»»å¡ 失败,OutboundFinishConfirmAsync è¿å:{res.resMsg}"; |
| | |
| | | } |
| | | else |
| | | { |
| | | |
| | | using (StationServiceClient client = new StationServiceClient()) |
| | | { |
| | | var res = await client.OutboundFinishConfirmAsync((int)EDevice.Station, false, rgvLocation, false); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | Length = x.Length, |
| | | Width = x.Width, |
| | | Thk = x.Thk, |
| | | IssueTime = DateTime.Now, |
| | | |
| | | PlanNo = x.PlanNo, |
| | | OrderId = x.OrderId, |
| | | PackageCode = x.PackageCode, |
| | |
| | | continue; |
| | | } |
| | | //string upi = "LS070700101B0001GS"; |
| | | ////è°ç¨åºçº¸æºæ¥å£ |
| | | //var res =new HTTPService("http://172.17.1.22:44374/api/LuLi/").getContent<Respone>("cartons-machine?PackageCode="+upi, Guid.NewGuid(),10000); |
| | | //if (res.iState == 0) |
| | | //{ |
| | | // var papertable = wmsDB.mes_push_papercut.Where(x => x.PackageCode == upiObj.PackageCode).OrderByDescending(x => x.Id).FirstOrDefault(); |
| | | // if (papertable != null) |
| | | // { |
| | | // papertable.PushStatus = (int)PushStatusEnum.PushSuccess; |
| | | // papertable.ApiMessage = res.message; |
| | | // papertable.PushNum++; |
| | | // } |
| | | // else |
| | | // { |
| | | // var papercut = ClassHelper.RotationMapping<mes_push_papercut, mes_batchOrderUPI_new>(upiObj); |
| | | // papercut.Id = Yitter.IdGenerator.YitIdHelper.NextId(); |
| | | // papercut.ApiMessage = res.message; |
| | | // papercut.PushNum = 0; |
| | | // papercut.PushStatus = (int)PushStatusEnum.PushSuccess; |
| | | // wmsDB.mes_push_papercut.Add(papercut); |
| | | // } |
| | | //} |
| | | //else |
| | | //{ |
| | | // var papertable = wmsDB.mes_push_papercut.Where(x => x.PackageCode == upiObj.PackageCode).OrderByDescending(x => x.Id).FirstOrDefault(); |
| | | // if (papertable != null) |
| | | // { |
| | | // papertable.PushStatus = (int)PushStatusEnum.PushFail; |
| | | // papertable.ApiMessage = res.message; |
| | | // papertable.PushNum++; |
| | | // } |
| | | // else |
| | | // { |
| | | // var papercut = ClassHelper.RotationMapping<mes_push_papercut, mes_batchOrderUPI_new>(upiObj); |
| | | // papercut.Id = Yitter.IdGenerator.YitIdHelper.NextId(); |
| | | // papercut.ApiMessage = res.message; |
| | | // papercut.PushNum = 0; |
| | | // papercut.PushStatus = (int)PushStatusEnum.PushFail; |
| | | // wmsDB.mes_push_papercut.Add(papercut); |
| | | // } |
| | | // continue; |
| | | //} |
| | | //è°ç¨åºçº¸æºæ¥å£ |
| | | var res = new HTTPService("http://172.17.1.22:44374/api/LuLi/").getContent<Respone>("cartons-machine?PackageCode=" + upiObj.PackageCode, Guid.NewGuid(), 10000); |
| | | if (res.iState == 0) |
| | | { |
| | | /* |
| | | var papertable = wmsDB.mes_push_papercut.Where(x => x.PackageCode == upiObj.PackageCode).OrderByDescending(x => x.Id).FirstOrDefault(); |
| | | if (papertable != null) |
| | | { |
| | | papertable.PushStatus = (int)PushStatusEnum.PushSuccess; |
| | | papertable.ApiMessage = res.message; |
| | | papertable.PushNum++; |
| | | } |
| | | else |
| | | { |
| | | var papercut = ClassHelper.RotationMapping<mes_push_papercut, mes_batchOrderUPI_new>(upiObj); |
| | | papercut.Id = Yitter.IdGenerator.YitIdHelper.NextId(); |
| | | papercut.ApiMessage = res.message; |
| | | papercut.PushNum = 1; |
| | | papercut.PushStatus = (int)PushStatusEnum.PushSuccess; |
| | | wmsDB.mes_push_papercut.Add(papercut); |
| | | } |
| | | //*/ |
| | | var papercut = ClassHelper.RotationMapping<mes_push_papercut, mes_batchOrderUPI_new>(upiObj); |
| | | papercut.Id = Yitter.IdGenerator.YitIdHelper.NextId(); |
| | | papercut.ApiMessage = res.message; |
| | | papercut.PushNum = 1; |
| | | papercut.PushStatus = (int)PushStatusEnum.PushSuccess; |
| | | wmsDB.mes_push_papercut.Add(papercut); |
| | | } |
| | | else |
| | | { |
| | | /* |
| | | var papertable = wmsDB.mes_push_papercut.Where(x => x.PackageCode == upiObj.PackageCode).OrderByDescending(x => x.Id).FirstOrDefault(); |
| | | if (papertable != null) |
| | | { |
| | | papertable.PushStatus = (int)PushStatusEnum.PushFail; |
| | | papertable.ApiMessage = res.message; |
| | | papertable.PushNum++; |
| | | } |
| | | else |
| | | { |
| | | var papercut = ClassHelper.RotationMapping<mes_push_papercut, mes_batchOrderUPI_new>(upiObj); |
| | | papercut.Id = Yitter.IdGenerator.YitIdHelper.NextId(); |
| | | papercut.ApiMessage = res.message; |
| | | papercut.PushNum = 1; |
| | | papercut.PushStatus = (int)PushStatusEnum.PushFail; |
| | | wmsDB.mes_push_papercut.Add(papercut); |
| | | } |
| | | //*/ |
| | | var papercut = ClassHelper.RotationMapping<mes_push_papercut, mes_batchOrderUPI_new>(upiObj); |
| | | papercut.Id = Yitter.IdGenerator.YitIdHelper.NextId(); |
| | | papercut.ApiMessage = res.message; |
| | | papercut.PushNum = 1; |
| | | papercut.PushStatus = (int)PushStatusEnum.PushFail; |
| | | wmsDB.mes_push_papercut.Add(papercut); |
| | | continue; |
| | | } |
| | | //æ´æ°è¡¨ |
| | | var mesgather = wmsDB.mes_package_gather.Where(x => x.PackageCode == upiObj.PackageCode).FirstOrDefault(); |
| | | if (mesgather != null) |
| | |
| | | |
| | | using System.ComponentModel; |
| | | |
| | | namespace Admin.NET.Application { |
| | | namespace Admin.NET.Application |
| | | { |
| | | |
| | | /// <summary> |
| | | /// æ¿æç¶ææä¸¾ |
| | |
| | | å·²åå
= 5, |
| | | |
| | | /// <summary> |
| | | /// å·²æ ¸éª |
| | | /// </summary> |
| | | [Description("å·²æ ¸éª")] |
| | | å·²æ ¸éª = 6, |
| | | |
| | | /// <summary> |
| | | /// å·²ä¸çº¿ |
| | | /// </summary> |
| | | [Description("å·²ä¸çº¿")] |
| | | å·²ä¸çº¿ = 6 |
| | | å·²ä¸çº¿ = 7 |
| | | } |
| | | } |
| | |
| | | "VITE_OPEN_CDN": "false", |
| | | "VITE_PUBLIC_PATH": "", |
| | | "VITE_SM_PUBLIC_KEY": "0484C7466D950E120E5ECE5DD85D0C90EAA85081A3A2BD7C57AE6DC822EFCCBD66620C67B0103FC8DD280E36C3B282977B722AAEC3C56518EDCEBAFB72C5A05312", |
| | | "VITE_API_URL": "http://localhost:5005" |
| | | //"VITE_API_URL": "http://172.17.1.111:5005" //æ£å¼å°å |
| | | //"VITE_API_URL": "http://localhost:5005" |
| | | "VITE_API_URL": "http://172.17.1.111:5005" //æ£å¼å°å |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using Admin.NET.Core; |
| | | |
| | | /* |
| | | * @author : åæå¥ |
| | | * @date : 2024/5/29ä¸å10:26:39 |
| | | * @desc : è°åº¦ä»»å¡ |
| | | */ |
| | | namespace Admin.NET.Application.Entity |
| | | { |
| | | /// <summary> |
| | | /// å
è¿ç¨å±¥åæ°æ® |
| | | /// </summary> |
| | | [SugarTable("wms_record_package_process", "å
è¿ç¨å±¥åæ°æ®")] |
| | | public class WmsRecordPackageProcess : EntityBaseForRecord |
| | | { |
| | | |
| | | [Required] |
| | | [SugarColumn(ColumnName = "PackageCode", ColumnDescription = "å
è£
å·", Length = 50)] |
| | | public string PackageCode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç产åå· |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "Info5", ColumnDescription = "ç产åå·", Length = 60)] |
| | | public string? Info5 { get; set; } |
| | | |
| | | |
| | | [Required] |
| | | [SugarColumn(ColumnName = "PlanNo", ColumnDescription = "æ¹æ¬¡å·", Length = 50)] |
| | | public string PlanNo { get; set; } |
| | | |
| | | [Required] |
| | | [SugarColumn(ColumnName = "OrderId", ColumnDescription = "订åå·", Length = 50)] |
| | | public string OrderId { get; set; } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// å
ç¶æ |
| | | /// </summary> |
| | | [Required] |
| | | [SugarColumn(ColumnName = "UpiStatus", ColumnDescription = "å
ç¶æ")] |
| | | public UpiStatusEnum UpiStatus { get; set; } = UpiStatusEnum.åå§; |
| | | |
| | | /// <summary> |
| | | /// æ è®° |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "UpiFlag", ColumnDescription = "æ è®°")] |
| | | public UpiFlagEnum? UpiFlag { get; set; } = UpiFlagEnum.æ£å¸¸; |
| | | |
| | | /// <summary> |
| | | /// ä½ç½® |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "Location", ColumnDescription = "ä½ç½®")] |
| | | public string? Location { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 夿³¨ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "OperRemark", ColumnDescription = "夿³¨", Length = 100)] |
| | | public string? OperRemark { get; set; } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using Admin.NET.Core; |
| | | |
| | | /* |
| | | * @author : åæå¥ |
| | | * @date : 2024/5/29ä¸å10:26:39 |
| | | * @desc : è°åº¦ä»»å¡ |
| | | */ |
| | | namespace Admin.NET.Application.Entity |
| | | { |
| | | /// <summary> |
| | | /// æ¿ä»¶è¿ç¨å±¥åæ°æ® |
| | | /// </summary> |
| | | [SugarTable("wms_record_upi_process", "æ¿ä»¶è¿ç¨å±¥åæ°æ®")] |
| | | public class WmsRecordUpiProcess : EntityBaseForRecord |
| | | { |
| | | |
| | | [Required] |
| | | [SugarColumn(ColumnName = "Upi", ColumnDescription = "é¨ä»¶æ¡ç ", Length = 50)] |
| | | public string Upi { get; set; } |
| | | |
| | | [Required] |
| | | [SugarColumn(ColumnName = "PackageCode", ColumnDescription = "å
è£
å·", Length = 50)] |
| | | public string PackageCode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç产åå· |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "Info5", ColumnDescription = "ç产åå·", Length = 60)] |
| | | public string? Info5 { get; set; } |
| | | |
| | | [Required] |
| | | [SugarColumn(ColumnName = "PlanNo", ColumnDescription = "æ¹æ¬¡å·", Length = 50)] |
| | | public string PlanNo { get; set; } |
| | | |
| | | [Required] |
| | | [SugarColumn(ColumnName = "OrderId", ColumnDescription = "订åå·", Length = 50)] |
| | | public string OrderId { get; set; } |
| | | |
| | | |
| | | /// <summary> |
| | | /// æ¿æç¶æ |
| | | /// </summary> |
| | | [Required] |
| | | [SugarColumn(ColumnName = "UpiStatus", ColumnDescription = "æ¿æç¶æ")] |
| | | public UpiStatusEnum UpiStatus { get; set; } = UpiStatusEnum.åå§; |
| | | |
| | | /// <summary> |
| | | /// æ è®° |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "UpiFlag", ColumnDescription = "æ è®°")] |
| | | public UpiFlagEnum? UpiFlag { get; set; } = UpiFlagEnum.æ£å¸¸; |
| | | |
| | | /// <summary> |
| | | /// ä½ç½® |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "Location", ColumnDescription = "ä½ç½®")] |
| | | public string? Location { get; set; } |
| | | |
| | | [Required] |
| | | [SugarColumn(ColumnName = "DetailName", ColumnDescription = "é¨ä»¶åç§°", Length = 50)] |
| | | public string DetailName { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ææ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "Info18", ColumnDescription = "ææ", Length = 60)] |
| | | public string? Info18 { get; set; } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 夿³¨ |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "OperRemark", ColumnDescription = "夿³¨", Length = 100)] |
| | | public string? OperRemark { get; set; } |
| | | } |
| | | } |
| | |
| | | å·²åå
= 5, |
| | | |
| | | /// <summary> |
| | | /// å·²æ ¸éª |
| | | /// </summary> |
| | | [Description("å·²æ ¸éª")] |
| | | å·²æ ¸éª = 6, |
| | | |
| | | /// <summary> |
| | | /// å·²ä¸çº¿ |
| | | /// </summary> |
| | | [Description("å·²ä¸çº¿")] |
| | | å·²ä¸çº¿ = 6 |
| | | å·²ä¸çº¿ = 7 |
| | | |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | public bool OutboundFinishConfirm(string stationCode, bool value, out string msg) |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | /// <param name="stationCode"></param> |
| | | /// <param name="value"></param> |
| | | /// <param name="msg"></param> |
| | | /// <param name="isClearData">æ¯å¦éè¦æ¸
çæ°æ®</param> |
| | | /// <returns></returns> |
| | | public bool OutboundFinishConfirm(string stationCode, bool value, out string msg, bool isClearData) |
| | | { |
| | | try |
| | | { |
| | |
| | | return false; |
| | | } |
| | | |
| | | if (value) |
| | | if (value && isClearData) |
| | | { |
| | | b2 = this.plcService.WriteValuePoint(stationObj.W_ReqOut, false, view_stationObj.W_ReqOut); |
| | | if (!b2.result) |
| | |
| | | /// <param name="value"></param> |
| | | /// <returns></returns> |
| | | [OperationContract] |
| | | SdaResEntity OutboundFinishConfirm(int deviceId, bool value, string stationCode); |
| | | SdaResEntity OutboundFinishConfirm(int deviceId, bool value, string stationCode, bool isClearData); |
| | | |
| | | |
| | | /// <summary> |
| | |
| | | /// <param name="deviceId"></param> |
| | | /// <param name="value"></param> |
| | | /// <returns></returns> |
| | | public SdaResEntity OutboundFinishConfirm(int deviceId, bool value, string stationCode) |
| | | public SdaResEntity OutboundFinishConfirm(int deviceId, bool value, string stationCode, bool isClearData) |
| | | { |
| | | SdaResEntity _SdaResEntity = new SdaResEntity(); |
| | | try |
| | |
| | | var Station = StationResult.resData as StationEntity; |
| | | |
| | | string msg = ""; |
| | | var result = Station.OutboundFinishConfirm(stationCode, value, out msg); |
| | | var result = Station.OutboundFinishConfirm(stationCode, value, out msg,isClearData); |
| | | _SdaResEntity.result = result; |
| | | _SdaResEntity.resMsg = msg; |
| | | return _SdaResEntity; |