Пример #1
0
        /// <summary>
        /// GetListForClient
        /// Calls [usp_selectAll_Warehouse_for_Client]
        /// </summary>
        public static List <Warehouse> GetListForClient(System.Int32?clientId)
        {
            List <WarehouseDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Warehouse.GetListForClient(clientId);

            if (lstDetails == null)
            {
                return(new List <Warehouse>());
            }
            else
            {
                List <Warehouse> lst = new List <Warehouse>();
                foreach (WarehouseDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.Warehouse obj = new Rebound.GlobalTrader.BLL.Warehouse();
                    obj.WarehouseId      = objDetails.WarehouseId;
                    obj.ClientNo         = objDetails.ClientNo;
                    obj.WarehouseName    = objDetails.WarehouseName;
                    obj.Inactive         = objDetails.Inactive;
                    obj.AddressNo        = objDetails.AddressNo;
                    obj.UpdatedBy        = objDetails.UpdatedBy;
                    obj.DLUP             = objDetails.DLUP;
                    obj.VirtualWarehouse = objDetails.VirtualWarehouse;
                    obj.AddressName      = objDetails.AddressName;
                    obj.Line1            = objDetails.Line1;
                    obj.Line2            = objDetails.Line2;
                    obj.Line3            = objDetails.Line3;
                    obj.County           = objDetails.County;
                    obj.City             = objDetails.City;
                    obj.State            = objDetails.State;
                    obj.ZIP              = objDetails.ZIP;
                    obj.CountryName      = objDetails.CountryName;
                    obj.CountryNo        = objDetails.CountryNo;
                    obj.DefaultWarehouse = objDetails.DefaultWarehouse;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }
Пример #2
0
        /// <summary>
        /// DropDownForClient
        /// Calls [usp_dropdown_Warehouse_for_Client]
        /// </summary>
        public static List <Warehouse> DropDownForClient(System.Int32?clientId, System.Boolean?includeVirtual)
        {
            List <WarehouseDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Warehouse.DropDownForClient(clientId, includeVirtual);

            if (lstDetails == null)
            {
                return(new List <Warehouse>());
            }
            else
            {
                List <Warehouse> lst = new List <Warehouse>();
                foreach (WarehouseDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.Warehouse obj = new Rebound.GlobalTrader.BLL.Warehouse();
                    obj.WarehouseId   = objDetails.WarehouseId;
                    obj.WarehouseName = objDetails.WarehouseName;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }