using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using WIDESEA_Core.Helper; using WIDESEA_External.Model; namespace WIDESEA_External.ERPService { /// /// 调用ERP接口 /// public class InvokeERPService : IInvokeERPService { string serviceIp = ""; /// /// ERP收货单接口调用 /// /// /// public string InvokeMatReceiveApi(ERPReceiveModel receiveModel) { string serviceAddress = ""; ERPBaseModel model = new ERPBaseModel() { Data = receiveModel, Desc = "收货单", Type = "toTCWMSReceive", SecurityCode = "" }; string response = HttpHelper.Post(serviceIp + serviceAddress, model.Serialize()); return response; } /// /// ERP物料IQC检验单接口调用 /// /// /// public string InvokeCheckOrderApi(ERPCheckModel checkModel) { string serviceAddress = ""; ERPBaseModel model = new ERPBaseModel() { Data = checkModel, Desc = "收货单", Type = "toTCWMSIQCTest", SecurityCode = "" }; string response = HttpHelper.Post(serviceIp + serviceAddress, model.Serialize()); return response; } /// /// ERP物料入库单接口调用 /// /// /// public string InvokeInboundOrderApi(ERPInboundModel inboundModel) { string serviceAddress = ""; ERPBaseModel model = new ERPBaseModel() { Data = inboundModel, Desc = "收货单", Type = "toTCWMSMaterialWarehousing", SecurityCode = "" }; string response = HttpHelper.Post(serviceIp + serviceAddress, model.Serialize()); return response; } } }