コード例 #1
0
ファイル: OfferStatus.cs プロジェクト: vinay1988/Ang6API
        private static OfferStatus PopulateFromDBDetailsObject(OfferStatusDetails obj)
        {
            OfferStatus objNew = new OfferStatus();

            objNew.OfferStatusId = obj.OfferStatusId;
            objNew.Name          = obj.Name;
            return(objNew);
        }
コード例 #2
0
ファイル: OfferStatus.cs プロジェクト: vinay1988/Ang6API
 /// <summary>
 /// Get
 /// Calls [usp_select_OfferStatus]
 /// </summary>
 public static OfferStatus Get(System.Int32?offerStatusId)
 {
     Rebound.GlobalTrader.DAL.OfferStatusDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.OfferStatus.Get(offerStatusId);
     if (objDetails == null)
     {
         return(null);
     }
     else
     {
         OfferStatus obj = new OfferStatus();
         obj.OfferStatusId = objDetails.OfferStatusId;
         obj.Name          = objDetails.Name;
         objDetails        = null;
         return(obj);
     }
 }
コード例 #3
0
ファイル: OfferStatus.cs プロジェクト: vinay1988/Ang6API
        /// <summary>
        /// DropDown
        /// Calls [usp_dropdown_OfferStatus]
        /// </summary>
        public static List <OfferStatus> DropDown()
        {
            List <OfferStatusDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.OfferStatus.DropDown();

            if (lstDetails == null)
            {
                return(new List <OfferStatus>());
            }
            else
            {
                List <OfferStatus> lst = new List <OfferStatus>();
                foreach (OfferStatusDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.OfferStatus obj = new Rebound.GlobalTrader.BLL.OfferStatus();
                    obj.OfferStatusId = objDetails.OfferStatusId;
                    obj.Name          = objDetails.Name;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }