Exemplo n.º 1
0
        private static CommunicationLogType PopulateFromDBDetailsObject(CommunicationLogTypeDetails obj)
        {
            CommunicationLogType objNew = new CommunicationLogType();

            objNew.CommunicationLogTypeId = obj.CommunicationLogTypeId;
            objNew.Name = obj.Name;
            return(objNew);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Get
 /// Calls [usp_select_CommunicationLogType]
 /// </summary>
 public static CommunicationLogType Get(System.Int32?communicationLogTypeId)
 {
     Rebound.GlobalTrader.DAL.CommunicationLogTypeDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.CommunicationLogType.Get(communicationLogTypeId);
     if (objDetails == null)
     {
         return(null);
     }
     else
     {
         CommunicationLogType obj = new CommunicationLogType();
         obj.CommunicationLogTypeId = objDetails.CommunicationLogTypeId;
         obj.Name   = objDetails.Name;
         objDetails = null;
         return(obj);
     }
 }
Exemplo n.º 3
0
        /// <summary>
        /// DropDown
        /// Calls [usp_dropdown_CommunicationLogType]
        /// </summary>
        public static List <CommunicationLogType> DropDown()
        {
            List <CommunicationLogTypeDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.CommunicationLogType.DropDown();

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