| | |
| | | using HH.WCS.Hexafluo; |
| | | using HH.WCS.Hexafluo.util; |
| | | using HH.WCS.Hexafluo.wms; |
| | | using HH.WCS.SJML.Bll; |
| | | using HH.WCS.SJML.Comm; |
| | | using HH.WCS.SJML.Dto; |
| | | using HH.WCS.ZCQTJ.Entitys; |
| | | using Newtonsoft.Json; |
| | |
| | | return returnEntity; |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// WCS设备信息查询 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public List<WcsCarryMsg> WcsdataBoard() |
| | | { |
| | | List<WcsCarryMsg> WcsCarry = new List<WcsCarryMsg>(); |
| | | try |
| | | { |
| | | var interact = new |
| | | { |
| | | requestPk = BLLCreator.Create<IdWorker>().nextId("CX"), |
| | | reqTime = DateTime.Now |
| | | }; |
| | | LogHelper.Info("立库", "查询立库设备信息 参数为:" + JsonConvert.SerializeObject(interact)); |
| | | var result = apiHelper.Post(baseUrl + "/wcs-admin/api/dataBoard", JsonConvert.SerializeObject(interact)); |
| | | LogHelper.Info("立库", "给立库下达安全请求 立库返回参数为:" + result); |
| | | if (string.IsNullOrEmpty(result)) |
| | | { |
| | | return WcsCarry; |
| | | } |
| | | var data = JsonConvert.DeserializeObject<List<WcsCarryMsg>>(result); |
| | | return data; |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | LogHelper.Info("立库", "查询立库设备信息 报错:" + ex.Message); |
| | | return WcsCarry; |
| | | } |
| | | } |
| | | public OperateResult WcsCallbackAnyc(string JsonValue) |
| | | { |
| | | try |
| | | { |
| | | |
| | | var result = apiHelper.Post(baseUrl + "/wcs-admin/api/agvCallback", JsonValue); |
| | | LogHelper.Info("立库", "给立库下达安全请求 立库返回参数为:" + result); |
| | | if (string.IsNullOrEmpty(result)) |