| | |
| | | { |
| | | ContractResolver = new CamelCasePropertyNamesContractResolver() |
| | | }; |
| | | |
| | | /// <summary> |
| | | /// MESé
éåºåéç¥ |
| | | /// </summary> |
| | | /// <param name="mESDispatchModel"></param> |
| | | /// <returns></returns> |
| | | public string MESDispatchUp(MESDispatchModel mESDispatchModel) |
| | | { |
| | | Dt_ApiInfo apiInfo = _apiInfoRepository.QueryFirst(x => x.ApiCode == APIEnum.MESDispatchUp.ToString()); |
| | | |
| | | string response = HttpMesHelper.Post(apiInfo.ApiAddress, JsonConvert.SerializeObject(mESDispatchModel)); |
| | | |
| | | return response; |
| | | } |
| | | /// <summary> |
| | | /// MESé
éå°è¾¾éç¥ |
| | | /// </summary> |
| | | /// <param name="mESDeliveryModel"></param> |
| | | /// <returns></returns> |
| | | public string MESDelivery(MESDeliveryModel mESDeliveryModel) |
| | | { |
| | | Dt_ApiInfo apiInfo = _apiInfoRepository.QueryFirst(x => x.ApiCode == APIEnum.MESDelivery.ToString()); |
| | | |
| | | string response = HttpMesHelper.Post(apiInfo.ApiAddress, JsonConvert.SerializeObject(mESDeliveryModel)); |
| | | |
| | | return response; |
| | | } |
| | | /// <summary> |
| | | /// MESéæç©ºææ¥æ¶éç¥ |
| | | /// </summary> |
| | | /// <param name="mESRecepNoticeModel"></param> |
| | | /// <returns></returns> |
| | | public string MESRecepNotice(MESRecepNoticeModel mESRecepNoticeModel) |
| | | { |
| | | Dt_ApiInfo apiInfo = _apiInfoRepository.QueryFirst(x => x.ApiCode == APIEnum.MESRecepNotice.ToString()); |
| | | |
| | | string response = HttpMesHelper.Post(apiInfo.ApiAddress, JsonConvert.SerializeObject(mESRecepNoticeModel)); |
| | | |
| | | return response; |
| | | } |
| | | /// <summary> |
| | | /// MESå°è½¦å°è¾¾éç¥ |
| | | /// </summary> |
| | | /// <param name="mESAvgArriveNoticeModel"></param> |
| | | /// <returns></returns> |
| | | public string MESAvgArriveNotice(MESAvgArriveNoticeModel mESAvgArriveNoticeModel) |
| | | { |
| | | Dt_ApiInfo apiInfo = _apiInfoRepository.QueryFirst(x => x.ApiCode == APIEnum.MESAvgArriveNotice.ToString()); |
| | | |
| | | string response = HttpMesHelper.Post(apiInfo.ApiAddress, JsonConvert.SerializeObject(mESAvgArriveNoticeModel)); |
| | | |
| | | return response; |
| | | } |
| | | /// <summary> |
| | | /// MES产éåä¼ |
| | | /// </summary> |
| | | /// <param name="boxCode">æåç®±ç </param> |
| | | /// <returns></returns> |
| | | public string MESBoxCodeNotice(string boxCode) |
| | | { |
| | | Dt_ApiInfo apiInfo = _apiInfoRepository.QueryFirst(x => x.ApiCode == APIEnum.MESBoxCodeNotice.ToString()); |
| | | |
| | | string response = HttpMesHelper.Post(apiInfo.ApiAddress+ "?boxCode="+boxCode); |
| | | |
| | | return response; |
| | | } |
| | | } |
| | | } |