コード例 #1
0
ファイル: LabelPath.cs プロジェクト: vinay1988/Ang6API
        /// <summary>
        /// GetListForClient
        /// Calls [usp_selectAll_LabelPath_for_Client]
        /// </summary>
        public static List <LabelPath> GetListForClient(System.Int32?clientId)
        {
            List <LabelPathDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.LabelPath.GetListForClient(clientId);

            if (lstDetails == null)
            {
                return(new List <LabelPath>());
            }
            else
            {
                List <LabelPath> lst = new List <LabelPath>();
                foreach (LabelPathDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.LabelPath obj = new Rebound.GlobalTrader.BLL.LabelPath();
                    obj.LabelPathId   = objDetails.LabelPathId;
                    obj.ClientNo      = objDetails.ClientNo;
                    obj.LabelFullPath = objDetails.LabelFullPath;
                    obj.Description   = objDetails.Description;
                    obj.Inactive      = objDetails.Inactive;
                    obj.UpdatedBy     = objDetails.UpdatedBy;
                    obj.DLUP          = objDetails.DLUP;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }
コード例 #2
0
ファイル: LabelPath.cs プロジェクト: vinay1988/Ang6API
        /// <summary>
        /// DropDownForClient
        /// Calls [usp_dropdown_LabelPath]
        /// </summary>
        public static List <LabelPath> DropDownForPrinter(System.Int32?clientId)
        {
            List <LabelPathDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.LabelPath.DropDownForPrinter(clientId);

            if (lstDetails == null)
            {
                return(new List <LabelPath>());
            }
            else
            {
                List <LabelPath> lst = new List <LabelPath>();
                foreach (LabelPathDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.LabelPath obj = new Rebound.GlobalTrader.BLL.LabelPath();
                    obj.LabelPathId   = objDetails.LabelPathId;
                    obj.LabelFullPath = objDetails.LabelFullPath;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }