| | |
| | | using Newtonsoft.Json.Linq; |
| | | using System.ServiceModel; |
| | | using System.IO; |
| | | using NewPdaSqlServer.Dto.Warehouse; |
| | | |
| | | namespace NewPdaSqlServer.Controllers.AGV; |
| | | |
| | |
| | | |
| | | //立库送检 |
| | | [HttpPost("DefineTask_001")] |
| | | public ResponseResult DefineTask_001(dynamic queryObj) |
| | | public ResponseResult DefineTask_001(DefineTask001Dto dto) |
| | | { |
| | | try |
| | | { |
| | |
| | | var factory = new ChannelFactory<IImesInterface>(binding, endpoint); |
| | | |
| | | var channel = factory.CreateChannel(); |
| | | string result = channel.DefineTask_001("GS2025070700001","TEST.01","AGV测试物料名称", "AGV测试物料规格",100,"台",1); |
| | | //string result = channel.DefineTask_001("GS2025070700001","TEST.01","AGV测试物料名称", "AGV测试物料规格",100,"台",1); |
| | | string result = channel.DefineTask_001( |
| | | dto.MesId, |
| | | dto.MatId, |
| | | dto.MatName, |
| | | dto.MatStandard, |
| | | dto.MatNumber, |
| | | dto.MatUnit, |
| | | dto.Postition); |
| | | |
| | | ((IClientChannel)channel).Close(); |
| | | |
| | | return new ResponseResult |
| | |
| | | |
| | | //立库检验 |
| | | [HttpPost("DefineTask_002")] |
| | | public ResponseResult DefineTask_002(dynamic queryObj) |
| | | public ResponseResult DefineTask_002(DefineTask002Dto dto) |
| | | { |
| | | try |
| | | { |
| | |
| | | var factory = new ChannelFactory<IImesInterface>(binding, endpoint); |
| | | |
| | | var channel = factory.CreateChannel(); |
| | | string result = channel.DefineTask_002("GS2025070900010", "合格"); |
| | | //string result = channel.DefineTask_002("GS2025070900010", "合格"); |
| | | string result = channel.DefineTask_002( |
| | | dto.MesId, |
| | | dto.MatStatus); |
| | | |
| | | ((IClientChannel)channel).Close(); |
| | | |
| | | return new ResponseResult |
| | |
| | | |
| | | //立库呼叫 |
| | | [HttpPost("DefineTask_005")] |
| | | public ResponseResult DefineTask_005(dynamic queryObj) |
| | | public ResponseResult DefineTask_005(DefineTask005Dto dto) |
| | | { |
| | | try |
| | | { |
| | |
| | | var factory = new ChannelFactory<IImesInterface>(binding, endpoint); |
| | | |
| | | var channel = factory.CreateChannel(); |
| | | string result = channel.DefineTask_005(2); |
| | | //string result = channel.DefineTask_005(2); |
| | | string result = channel.DefineTask_005( |
| | | dto.Postition); |
| | | ((IClientChannel)channel).Close(); |
| | | |
| | | return new ResponseResult |
| | |
| | | |
| | | //立库入库 |
| | | [HttpPost("DefineTask_006")] |
| | | public ResponseResult DefineTask_006(dynamic queryObj) |
| | | public ResponseResult DefineTask_006(DefineTask006Dto dto) |
| | | { |
| | | try |
| | | { |
| | |
| | | var factory = new ChannelFactory<IImesInterface>(binding, endpoint); |
| | | |
| | | var channel = factory.CreateChannel(); |
| | | string result = channel.DefineTask_006("C2025070400040", "2.02.51.463", "管线饮水机", "C638-1HA(万和VGX-SR-1A-XM白)", 48, "台", 4); |
| | | //string result = channel.DefineTask_006("C2025070400040", "2.02.51.463", "管线饮水机", "C638-1HA(万和VGX-SR-1A-XM白)", 48, "台", 4); |
| | | string result = channel.DefineTask_006( |
| | | dto.MesId, |
| | | dto.MatId, |
| | | dto.MatName, |
| | | dto.MatStandard, |
| | | dto.MatNumber, |
| | | dto.MatUnit, |
| | | dto.Postition); |
| | | ((IClientChannel)channel).Close(); |
| | | |
| | | return new ResponseResult |
| | |
| | | [OperationContract(Action = "http://tempuri.org/ImesInterface/DefineTask_006", |
| | | ReplyAction = "http://tempuri.org/ImesInterface/DefineTask_006Response")] |
| | | string DefineTask_006(string MesId,string MatId,string MatName,string MatStandard,int MatNumber,string MatUnit,int Postition); |
| | | } |
| | | } |