Exemplo n.º 1
0
		/// <summary>
		/// Get
		/// Calls [usp_select_QuoteStatus]
		/// </summary>
		public static QuoteStatus Get(System.Int32? quoteStatusId) {
			Rebound.GlobalTrader.DAL.QuoteStatusDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.QuoteStatus.Get(quoteStatusId);
			if (objDetails == null) {
				return null;
			} else {
				QuoteStatus obj = new QuoteStatus();
				obj.QuoteStatusId = objDetails.QuoteStatusId;
				obj.Name = objDetails.Name;
				objDetails = null;
				return obj;
			}
		}
Exemplo n.º 2
0
		/// <summary>
		/// GetList
		/// Calls [usp_selectAll_QuoteStatus]
		/// </summary>
		public static List<QuoteStatus> GetList() {
			List<QuoteStatusDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.QuoteStatus.GetList();
			if (lstDetails == null) {
				return new List<QuoteStatus>();
			} else {
				List<QuoteStatus> lst = new List<QuoteStatus>();
				foreach (QuoteStatusDetails objDetails in lstDetails) {
					Rebound.GlobalTrader.BLL.QuoteStatus obj = new Rebound.GlobalTrader.BLL.QuoteStatus();
					obj.QuoteStatusId = objDetails.QuoteStatusId;
					obj.Name = objDetails.Name;
					lst.Add(obj);
					obj = null;
				}
				lstDetails = null;
				return lst;
			}
		}
Exemplo n.º 3
0
        private static QuoteStatus PopulateFromDBDetailsObject(QuoteStatusDetails obj) {
            QuoteStatus objNew = new QuoteStatus();
			objNew.QuoteStatusId = obj.QuoteStatusId;
			objNew.Name = obj.Name;
            return objNew;
        }