示例#1
0
        private static StockLogType PopulateFromDBDetailsObject(StockLogTypeDetails obj)
        {
            StockLogType objNew = new StockLogType();

            objNew.StockLogTypeId       = obj.StockLogTypeId;
            objNew.Name                 = obj.Name;
            objNew.ParentStockLogTypeNo = obj.ParentStockLogTypeNo;
            return(objNew);
        }
示例#2
0
 /// <summary>
 /// Get
 /// Calls [usp_select_StockLogType]
 /// </summary>
 public static StockLogType Get(System.Int32?stockLogTypeId)
 {
     Rebound.GlobalTrader.DAL.StockLogTypeDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.StockLogType.Get(stockLogTypeId);
     if (objDetails == null)
     {
         return(null);
     }
     else
     {
         StockLogType obj = new StockLogType();
         obj.StockLogTypeId       = objDetails.StockLogTypeId;
         obj.Name                 = objDetails.Name;
         obj.ParentStockLogTypeNo = objDetails.ParentStockLogTypeNo;
         objDetails               = null;
         return(obj);
     }
 }
示例#3
0
        /// <summary>
        /// DropDown
        /// Calls [usp_dropdown_StockLogType]
        /// </summary>
        public static List <StockLogType> DropDown()
        {
            List <StockLogTypeDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.StockLogType.DropDown();

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