예제 #1
0
        /// <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)));
        }
예제 #2
0
        /// <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)));
        }
예제 #3
0
        /// <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)));
        }
예제 #4
0
        /// <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)));
        }