Esempio n. 1
0
        /// <summary>
        /// GetList
        /// Calls [usp_selectAll_GlobalProduct]
        /// </summary>
        /// // Adding parameterProductNameId to get record on basis of selected ProductNameId from Global product name (Suhail )
        public static List <Product> GetListGlobalProduct(System.Int32?GlobalProductNameId)
        {
            List <ProductDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Product.GetListGlobalProduct(GlobalProductNameId);

            if (lstDetails == null)
            {
                return(new List <Product>());
            }
            else
            {
                List <Product> lst = new List <Product>();
                foreach (ProductDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.Product obj = new Rebound.GlobalTrader.BLL.Product();
                    obj.ProductId = objDetails.ProductId;
                    //  obj.ProductName = objDetails.ProductName;
                    obj.ProductDescription = objDetails.ProductDescription;
                    obj.ClientNo           = objDetails.ClientNo;
                    obj.Inactive           = objDetails.Inactive;
                    obj.UpdatedBy          = objDetails.UpdatedBy;
                    obj.DLUP            = objDetails.DLUP;
                    obj.DutyCode        = objDetails.DutyCode;
                    obj.CurrentDutyRate = objDetails.CurrentDutyRate;
                    obj.Hazarders       = objDetails.Hazarders;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }
Esempio n. 2
0
        public static List <Product> AutoSearch(System.String nameSearch, System.Int32?clientId)
        {
            List <ProductDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Product.AutoSearch(nameSearch, clientId);

            if (lstDetails == null)
            {
                return(new List <Product>());
            }
            else
            {
                List <Product> lst = new List <Product>();
                foreach (ProductDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.Product obj = new Rebound.GlobalTrader.BLL.Product();
                    obj.ProductId          = objDetails.ProductId;
                    obj.ProductName        = objDetails.ProductName;
                    obj.ProductDescription = objDetails.ProductDescription;
                    obj.Hazarders          = objDetails.Hazarders;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }
Esempio n. 3
0
        /// <summary>
        /// GetList
        /// Calls [usp_selectAll_GlobalProductName]
        /// </summary>
        public static List <Product> GetListGlobalProductName()
        {
            List <ProductDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Product.GetListGlobalProductName();

            if (lstDetails == null)
            {
                return(new List <Product>());
            }
            else
            {
                List <Product> lst = new List <Product>();
                foreach (ProductDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.Product obj = new Rebound.GlobalTrader.BLL.Product();
                    obj.GlobalProductNameId = objDetails.GlobalProductNameId;
                    obj.GlobalProductName   = objDetails.GlobalProductName;
                    obj.Inactive            = objDetails.Inactive;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }
Esempio n. 4
0
        /// <summary>
        /// DropDownForClient
        /// Calls [usp_dropdown_Product_for_Client]
        /// </summary>
        public static List <Product> DropDownForClient(System.Int32?clientId)
        {
            List <ProductDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Product.DropDownForClient(clientId);

            if (lstDetails == null)
            {
                return(new List <Product>());
            }
            else
            {
                List <Product> lst = new List <Product>();
                foreach (ProductDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.Product obj = new Rebound.GlobalTrader.BLL.Product();
                    obj.ProductId          = objDetails.ProductId;
                    obj.ProductName        = objDetails.ProductName;
                    obj.ProductDescription = objDetails.ProductDescription;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }