コード例 #1
0
        /// <summary>
        /// GetList
        /// Calls [usp_selectAll_CountingMethod]
        /// </summary>
        public static List <CountingMethod> GetList()
        {
            List <CountingMethodDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.CountingMethod.GetList();

            if (lstDetails == null)
            {
                return(new List <CountingMethod>());
            }
            else
            {
                List <CountingMethod> lst = new List <CountingMethod>();
                foreach (CountingMethodDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.CountingMethod obj = new Rebound.GlobalTrader.BLL.CountingMethod();
                    obj.CountingMethodId          = objDetails.CountingMethodId;
                    obj.CountingMethodDescription = objDetails.CountingMethodDescription;
                    obj.Inactive  = objDetails.Inactive;
                    obj.UpdatedBy = objDetails.UpdatedBy;
                    obj.DLUP      = objDetails.DLUP;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }
コード例 #2
0
        private static CountingMethod PopulateFromDBDetailsObject(CountingMethodDetails obj)
        {
            CountingMethod objNew = new CountingMethod();

            objNew.CountingMethodId          = obj.CountingMethodId;
            objNew.CountingMethodDescription = obj.CountingMethodDescription;
            objNew.Inactive  = obj.Inactive;
            objNew.UpdatedBy = obj.UpdatedBy;
            objNew.DLUP      = obj.DLUP;
            return(objNew);
        }
コード例 #3
0
 /// <summary>
 /// Get
 /// Calls [usp_select_CountingMethod]
 /// </summary>
 public static CountingMethod Get(System.Int32?countingMethodId)
 {
     Rebound.GlobalTrader.DAL.CountingMethodDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.CountingMethod.Get(countingMethodId);
     if (objDetails == null)
     {
         return(null);
     }
     else
     {
         CountingMethod obj = new CountingMethod();
         obj.CountingMethodId          = objDetails.CountingMethodId;
         obj.CountingMethodDescription = objDetails.CountingMethodDescription;
         obj.Inactive  = objDetails.Inactive;
         obj.UpdatedBy = objDetails.UpdatedBy;
         obj.DLUP      = objDetails.DLUP;
         objDetails    = null;
         return(obj);
     }
 }
コード例 #4
0
        /// <summary>
        /// DropDown
        /// Calls [usp_dropdown_CountingMethod]
        /// </summary>
        public static List <CountingMethod> DropDown()
        {
            List <CountingMethodDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.CountingMethod.DropDown();

            if (lstDetails == null)
            {
                return(new List <CountingMethod>());
            }
            else
            {
                List <CountingMethod> lst = new List <CountingMethod>();
                foreach (CountingMethodDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.CountingMethod obj = new Rebound.GlobalTrader.BLL.CountingMethod();
                    obj.CountingMethodId          = objDetails.CountingMethodId;
                    obj.CountingMethodDescription = objDetails.CountingMethodDescription;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }