Example #1
0
        }                       /// <summary>

        /// DataListNugget
        /// Calls [usp_datalistnugget_Manufacturer]
        /// </summary>
        public static List <Manufacturer> DataListNugget(System.Int32?orderBy, System.Int32?sortDir, System.Int32?pageIndex, System.Int32?pageSize, System.String nameSearch, System.String codeSearch)
        {
            List <ManufacturerDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Manufacturer.DataListNugget(orderBy, sortDir, pageIndex, pageSize, nameSearch, codeSearch);

            if (lstDetails == null)
            {
                return(new List <Manufacturer>());
            }
            else
            {
                List <Manufacturer> lst = new List <Manufacturer>();
                foreach (ManufacturerDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.Manufacturer obj = new Rebound.GlobalTrader.BLL.Manufacturer();
                    obj.ManufacturerId   = objDetails.ManufacturerId;
                    obj.ManufacturerCode = objDetails.ManufacturerCode;
                    obj.ManufacturerName = objDetails.ManufacturerName;
                    obj.Inactive         = objDetails.Inactive;
                    obj.URL              = objDetails.URL;
                    obj.RowNum           = objDetails.RowNum;
                    obj.RowCnt           = objDetails.RowCnt;
                    obj.ConflictResource = objDetails.ConflictResource;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }
Example #2
0
        /// <summary>
        /// DropDown
        /// Calls [usp_dropdown_Manufacturer]
        /// </summary>
        public static List <Manufacturer> DropDown()
        {
            List <ManufacturerDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Manufacturer.DropDown();

            if (lstDetails == null)
            {
                return(new List <Manufacturer>());
            }
            else
            {
                List <Manufacturer> lst = new List <Manufacturer>();
                foreach (ManufacturerDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.Manufacturer obj = new Rebound.GlobalTrader.BLL.Manufacturer();
                    obj.ManufacturerId   = objDetails.ManufacturerId;
                    obj.ManufacturerName = objDetails.ManufacturerName;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }
Example #3
0
        /// <summary>
        /// AutoSearch
        /// Calls [usp_autosearch_Manufacturer]
        /// </summary>
        public static List <Manufacturer> AutoSearch(System.String nameSearch, Boolean?showInactive)
        {
            List <ManufacturerDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Manufacturer.AutoSearch(nameSearch, showInactive);

            if (lstDetails == null)
            {
                return(new List <Manufacturer>());
            }
            else
            {
                List <Manufacturer> lst = new List <Manufacturer>();
                foreach (ManufacturerDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.Manufacturer obj = new Rebound.GlobalTrader.BLL.Manufacturer();
                    obj.ManufacturerId   = objDetails.ManufacturerId;
                    obj.ManufacturerName = objDetails.ManufacturerName;
                    obj.FullName         = objDetails.FullName;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }