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

            objNew.PartSearchID = obj.PartSearchID;
            objNew.SearchPart   = obj.SearchPart;
            objNew.LoginNo      = obj.LoginNo;
            objNew.DLUP         = obj.DLUP;
            return(objNew);
        }
示例#2
0
        /// <summary>
        /// GetListForLogin
        /// Calls [usp_selectAll_PartSearch_for_Login]
        /// </summary>
        public static List <PartSearch> GetListForLogin(System.Int32?loginNo, System.String partSearch)
        {
            List <PartSearchDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.PartSearch.GetListForLogin(loginNo, partSearch);

            if (lstDetails == null)
            {
                return(new List <PartSearch>());
            }
            else
            {
                List <PartSearch> lst = new List <PartSearch>();
                foreach (PartSearchDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.PartSearch obj = new Rebound.GlobalTrader.BLL.PartSearch();
                    obj.LoginNo    = objDetails.LoginNo;
                    obj.SearchPart = objDetails.SearchPart;
                    obj.DLUP       = objDetails.DLUP;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }