Exemplo n.º 1
0
        /// <summary>
        /// GetList
        /// Calls [usp_selectAll_IndustryType]
        /// </summary>
        public static List <IndustryType> GetList()
        {
            List <IndustryTypeDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.IndustryType.GetList();

            if (lstDetails == null)
            {
                return(new List <IndustryType>());
            }
            else
            {
                List <IndustryType> lst = new List <IndustryType>();
                foreach (IndustryTypeDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.IndustryType obj = new Rebound.GlobalTrader.BLL.IndustryType();
                    obj.IndustryTypeId = objDetails.IndustryTypeId;
                    obj.Name           = objDetails.Name;
                    obj.Inactive       = objDetails.Inactive;
                    obj.UpdatedBy      = objDetails.UpdatedBy;
                    obj.DLUP           = objDetails.DLUP;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }
Exemplo n.º 2
0
        private static IndustryType PopulateFromDBDetailsObject(IndustryTypeDetails obj)
        {
            IndustryType objNew = new IndustryType();

            objNew.IndustryTypeId = obj.IndustryTypeId;
            objNew.Name           = obj.Name;
            objNew.Inactive       = obj.Inactive;
            objNew.UpdatedBy      = obj.UpdatedBy;
            objNew.DLUP           = obj.DLUP;
            return(objNew);
        }
Exemplo n.º 3
0
 /// <summary>
 /// Get
 /// Calls [usp_select_IndustryType]
 /// </summary>
 public static IndustryType Get(System.Int32?industryTypeId)
 {
     Rebound.GlobalTrader.DAL.IndustryTypeDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.IndustryType.Get(industryTypeId);
     if (objDetails == null)
     {
         return(null);
     }
     else
     {
         IndustryType obj = new IndustryType();
         obj.IndustryTypeId = objDetails.IndustryTypeId;
         obj.Name           = objDetails.Name;
         obj.Inactive       = objDetails.Inactive;
         obj.UpdatedBy      = objDetails.UpdatedBy;
         obj.DLUP           = objDetails.DLUP;
         objDetails         = null;
         return(obj);
     }
 }
Exemplo n.º 4
0
        /// <summary>
        /// DropDown
        /// Calls [usp_dropdown_IndustryType]
        /// </summary>
        public static List <IndustryType> DropDown()
        {
            List <IndustryTypeDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.IndustryType.DropDown();

            if (lstDetails == null)
            {
                return(new List <IndustryType>());
            }
            else
            {
                List <IndustryType> lst = new List <IndustryType>();
                foreach (IndustryTypeDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.IndustryType obj = new Rebound.GlobalTrader.BLL.IndustryType();
                    obj.IndustryTypeId = objDetails.IndustryTypeId;
                    obj.Name           = objDetails.Name;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }