/// <summary> /// 采购记录上传 /// </summary> /// <param name="address"></param> /// <param name="qyCode"></param> /// <param name="comRequest"></param> /// <param name="sgdRequest"></param> /// <returns></returns> public async Task <GdCommonResponse> UploadSgd(string address, string qyCode, GdCommonRequest comRequest, UploadSgdRequest sgdRequest) { var url = $"{address}baseService/uploadSgd?data=<data><agency>{PropertyInfoToXml(comRequest)}</agency><dataInfo>{PropertyInfoToXml(sgdRequest)}</dataInfo></data>&wbqyCode={qyCode}"; var result = await _httpClient.GetStringAsync(url); return(SerializerHelper.DeserializeXml <GdCommonResponse>(FilteringData(result))); }
/// <summary> /// 获取地区信息 /// </summary> /// <param name="address"></param> /// <param name="qyCode"></param> /// <returns></returns> public async Task <GetAreasResponse> GetAreas(string address, string qyCode) { var url = $"{address}baseService/getAreas?wbqyCode={qyCode}"; var result = await _httpClient.GetStringAsync(url); return(SerializerHelper.DeserializeXml <GetAreasResponse>(FilteringData(result))); }
/// <summary> /// 经销商数据上传 /// </summary> /// <param name="address"></param> /// <param name="qyCode"></param> /// <param name="request"></param> /// <returns></returns> public async Task <GdAddShopResponse> AddShopInfo(string address, string qyCode, GdAddShopRequest request) { var url = $"{address}baseService/addShopInfo?data=<gldxshop>{PropertyInfoToXml(request)}</gldxshop>&wbqyCode={qyCode}"; var result = await _httpClient.GetStringAsync(url); return(SerializerHelper.DeserializeXml <GdAddShopResponse>(FilteringData(result))); }
/// <summary> /// 更改采购单状态 /// </summary> /// <param name="address"></param> /// <param name="qyCode"></param> /// <param name="nos"></param> /// <param name="type"></param> /// <returns></returns> public async Task <GdCommonResponse> UpdSgdStatus(string address, string qyCode, string nos, string type) { var url = $"{address}baseService/updSgdStatus?nos={nos}&type={type}&wbqyCode={qyCode}"; var result = await _httpClient.GetStringAsync(url); return(SerializerHelper.DeserializeXml <GdCommonResponse>(FilteringData(result))); }