/// <summary> /// DataRow는 core에서 지원안됨.. /// </summary> /// <param name="Dr"></param> /// <returns></returns> public async Task <DoShippingGeneralResponseT> SetDeliveryOrderInfoAsync()/*DataRow Dr*/ { DoShippingGeneralRequestT req = new DoShippingGeneralRequestT(); //req = Generate_SetDeliveryOrderInfoAsync(Dr); DoShippingGeneralResponseT res = new DoShippingGeneralResponseT(); res = await AuctionClient.DoShippingGeneralAsync(req); return(res); }
/// <summary> /// datarow는 core에서 지원안됨 /// </summary> /// <param name="Dr"></param> /// <returns></returns> private async Task <DoShippingGeneralRequestT> Generate_SetDeliveryOrderInfoAsync()/*DataRow Dr*/ { DoShippingGeneralRequestT generalReq = new DoShippingGeneralRequestT(); ShippingMethodT shippingMtd = new ShippingMethodT(); RemittanceMethodT remittance = new RemittanceMethodT(); GetMyAccountRequestT req = new GetMyAccountRequestT(); GetMyAccountResponseT accRes = new GetMyAccountResponseT(); accRes = await AuctionClient.GetMyAccountAsync(req); remittance.RemittanceMethodType = RemittanceMethodCode.Emoney; remittance.RemittanceMethodTypeSpecified = true; remittance.RemittanceAccountName = accRes.MyAccount.AccountName; remittance.RemittanceAccountNumber = accRes.MyAccount.AccountNumber; remittance.RemittanceBankCode = accRes.MyAccount.BankCode; string deliDate = string.Empty; // Dr["Deli_Date"].ToString(); string deliveryNo = string.Empty; // Dr["DeliveryNo"].ToString(); string bpOffNm = string.Empty; // Dr["BpOffNm"].ToString(); string pOrdDId = string.Empty; // Dr["POrdD_ID"].ToString(); if (bpOffNm.Contains("옐로우") || bpOffNm.ToLower().Contains("kg로지스")) { bpOffNm = "동부익스프레스택배"; } // 발송정보 DateTime shippingDate = DateTime.Now; DateTime.TryParse(deliDate, out shippingDate); shippingMtd.SendDate = shippingDate; deliveryNo = Regex.Replace(deliveryNo, "[^0-9]", "", RegexOptions.IgnoreCase); //숫자외에 문자는 삭제처리함 shippingMtd.InvoiceNo = deliveryNo; shippingMtd.MessageForBuyer = ""; shippingMtd.ShippingMethodClassficationType = ShippingMethodClassficationCode.Door2Door; shippingMtd.DeliveryAgency = Get_DeliveryAgency(bpOffNm); //shippingMtd.DeliveryAgencyName = bpOffNm = bpOffNm.Contains("옐로우") ? "동부익스프레스택배" : bpOffNm; //옥션 요청 옐로우택배, KG로지스 인경우 동부택배로 20151127_이호준 shippingMtd.DeliveryAgencyName = bpOffNm; //옥션 요청 옐로우택배, KG로지스 인경우 동부택배로 20151127_이호준 shippingMtd.SendDateSpecified = true; shippingMtd.ShippingMethodClassficationTypeSpecified = true; shippingMtd.DeliveryAgencySpecified = true; shippingMtd.ShippingEtcMethodSpecified = false; // 배송정보 generalReq.OrderNo = Convert.ToInt32(pOrdDId); generalReq.RemittanceMethod = remittance; generalReq.ShippingMethod = shippingMtd; generalReq.OrderNoSpecified = true; return(generalReq); }