Пример #1
0
        /// <summary>
        /// DropDownForClient
        /// Calls [usp_dropdown_Division_for_Client]
        /// </summary>
        public static List <Division> DropDownForClient(System.Int32?clientId)
        {
            List <DivisionDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Division.DropDownForClient(clientId);

            if (lstDetails == null)
            {
                return(new List <Division>());
            }
            else
            {
                List <Division> lst = new List <Division>();
                foreach (DivisionDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.Division obj = new Rebound.GlobalTrader.BLL.Division();
                    obj.DivisionId   = objDetails.DivisionId;
                    obj.DivisionName = objDetails.DivisionName;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }
Пример #2
0
        /// <summary>
        /// GetListForClient
        /// Calls [usp_selectAll_Division_for_Client]
        /// </summary>
        public static List <Division> GetListForClient(System.Int32?clientId)
        {
            List <DivisionDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Division.GetListForClient(clientId);

            if (lstDetails == null)
            {
                return(new List <Division>());
            }
            else
            {
                List <Division> lst = new List <Division>();
                foreach (DivisionDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.Division obj = new Rebound.GlobalTrader.BLL.Division();
                    obj.DivisionId      = objDetails.DivisionId;
                    obj.ClientNo        = objDetails.ClientNo;
                    obj.DivisionName    = objDetails.DivisionName;
                    obj.Manager         = objDetails.Manager;
                    obj.ManagerName     = objDetails.ManagerName;
                    obj.Budget          = objDetails.Budget;
                    obj.Telephone       = objDetails.Telephone;
                    obj.Fax             = objDetails.Fax;
                    obj.EMail           = objDetails.EMail;
                    obj.Notes           = objDetails.Notes;
                    obj.URL             = objDetails.URL;
                    obj.Inactive        = objDetails.Inactive;
                    obj.UpdatedBy       = objDetails.UpdatedBy;
                    obj.DLUP            = objDetails.DLUP;
                    obj.NumberOfMembers = objDetails.NumberOfMembers;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }