Exemplo n.º 1
0
        /// <summary>
        /// Add Delivery provide name to the from sage and add it to the list of information of shipment.
        /// </summary>
        /// <returns>List<cstShippingInfoBPName> information</returns>
        public List <cstShippingInfoBPName> GetBpinfoOFShippingNum()
        {
            //list with Delivery provider name. to be returened.
            List <cstShippingInfoBPName> _lsretuen = new List <cstShippingInfoBPName>();

            try
            {
                var ship = Service.Get.GetBpinfoOFShippingNum(); //Service.Get.ShippingAllShipping();
                foreach (var item in ship)
                {
                    cstShippingInfoBPName Bpnamecall = new cstShippingInfoBPName();
                    Bpnamecall.BPName         = item.BPName;
                    Bpnamecall.ShippingID     = item.ShippingID;
                    Bpnamecall.ShippingNumner = item.ShippingNumner;
                    Bpnamecall.BusinessPartNo = item.BusinessPartNo;
                    Bpnamecall.ShippingStatus = item.ShippingStatus;
                    _lsretuen.Add(Bpnamecall);
                }
            }
            catch (Exception)
            {}
            return(_lsretuen);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Add Delivery provide name to the from sage and add it to the list of information of shipment.
        /// </summary>
        /// <returns>List<cstShippingInfoBPName> information</returns>
        public List <cstShippingInfoBPName> GetBpinfoOFShippingNum()
        {
            //list with Delivery provider name. to be returened.
            List <cstShippingInfoBPName> _lsretuen = new List <cstShippingInfoBPName>();

            try
            {
                var ship = lent.Shippings;
                foreach (var item in ship)
                {
                    cstShippingInfoBPName Bpnamecall = new cstShippingInfoBPName();
                    Bpnamecall.BPName         = getBPNameFromBPNUM(item.DeliveryProvider);
                    Bpnamecall.ShippingID     = item.ShippingID;
                    Bpnamecall.ShippingNumner = item.ShippingNum;
                    Bpnamecall.BusinessPartNo = item.DeliveryProvider;
                    Bpnamecall.ShippingStatus = item.ShipmentStatus;
                    _lsretuen.Add(Bpnamecall);
                }
            }
            catch (Exception)
            {}
            return(_lsretuen);
        }