Пример #1
0
        /// <summary>
        /// GetListRecentForLogin
        /// Calls [usp_selectAll_Quote_recent_for_Login]
        /// </summary>
        public static List <Quote> GetListRecentForLogin(System.Int32?loginId, System.Int32?topToSelect)
        {
            List <QuoteDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Quote.GetListRecentForLogin(loginId, topToSelect);

            if (lstDetails == null)
            {
                return(new List <Quote>());
            }
            else
            {
                List <Quote> lst = new List <Quote>();
                foreach (QuoteDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.Quote obj = new Rebound.GlobalTrader.BLL.Quote();
                    obj.QuoteNumber = objDetails.QuoteNumber;
                    obj.DateQuoted  = objDetails.DateQuoted;
                    obj.CompanyNo   = objDetails.CompanyNo;
                    obj.CompanyName = objDetails.CompanyName;
                    obj.CreditLimit = objDetails.CreditLimit;
                    obj.Balance     = objDetails.Balance;
                    obj.Salesman    = objDetails.Salesman;
                    obj.QuoteId     = objDetails.QuoteId;
                    obj.IsImportant = objDetails.IsImportant;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }
Пример #2
0
        /// <summary>
        /// GetListOpenForCompany
        /// Calls [usp_selectAll_Quote_open_for_Company]
        /// </summary>
        public static List <Quote> GetListOpenForCompany(System.Int32?companyId)
        {
            List <QuoteDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Quote.GetListOpenForCompany(companyId);

            if (lstDetails == null)
            {
                return(new List <Quote>());
            }
            else
            {
                List <Quote> lst = new List <Quote>();
                foreach (QuoteDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.Quote obj = new Rebound.GlobalTrader.BLL.Quote();
                    obj.QuoteId             = objDetails.QuoteId;
                    obj.ClientNo            = objDetails.ClientNo;
                    obj.QuoteNumber         = objDetails.QuoteNumber;
                    obj.Notes               = objDetails.Notes;
                    obj.Instructions        = objDetails.Instructions;
                    obj.CompanyNo           = objDetails.CompanyNo;
                    obj.ContactNo           = objDetails.ContactNo;
                    obj.DateQuoted          = objDetails.DateQuoted;
                    obj.CurrencyNo          = objDetails.CurrencyNo;
                    obj.Salesman            = objDetails.Salesman;
                    obj.TermsNo             = objDetails.TermsNo;
                    obj.DivisionNo          = objDetails.DivisionNo;
                    obj.Freight             = objDetails.Freight;
                    obj.Closed              = objDetails.Closed;
                    obj.IncotermNo          = objDetails.IncotermNo;
                    obj.UpdatedBy           = objDetails.UpdatedBy;
                    obj.DLUP                = objDetails.DLUP;
                    obj.CompanyName         = objDetails.CompanyName;
                    obj.CompanyOnStop       = objDetails.CompanyOnStop;
                    obj.CompanySOApproved   = objDetails.CompanySOApproved;
                    obj.ContactName         = objDetails.ContactName;
                    obj.CurrencyCode        = objDetails.CurrencyCode;
                    obj.CurrencyDescription = objDetails.CurrencyDescription;
                    obj.SalesmanName        = objDetails.SalesmanName;
                    obj.DivisionName        = objDetails.DivisionName;
                    obj.QuoteValue          = objDetails.QuoteValue;
                    obj.TermsName           = objDetails.TermsName;
                    obj.OpenLines           = objDetails.OpenLines;
                    obj.IncotermName        = objDetails.IncotermName;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }
Пример #3
0
        /// <summary>
        /// GetListForSourcingResult
        /// Calls [usp_selectAll_Quote_for_SourcingResult]
        /// </summary>
        public static List <Quote> GetListForSourcingResult(System.Int32?sourcingResultNo)
        {
            List <QuoteDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Quote.GetListForSourcingResult(sourcingResultNo);

            if (lstDetails == null)
            {
                return(new List <Quote>());
            }
            else
            {
                List <Quote> lst = new List <Quote>();
                foreach (QuoteDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.Quote obj = new Rebound.GlobalTrader.BLL.Quote();
                    obj.QuoteId     = objDetails.QuoteId;
                    obj.QuoteNumber = objDetails.QuoteNumber;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }