Ejemplo n.º 1
0
        /// <summary>
        /// GetListForClient
        /// Calls [usp_selectAll_localCurrency_for_Client]
        /// </summary>
        public static List <Currency> GetLocalListForClient(System.Int32?clientId, out string clientLocalCurrencyDescription, out System.Int32?clientLocalCurrencyNo)
        {
            List <CurrencyDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Currency.GetLocalListForClient(clientId, out clientLocalCurrencyDescription, out clientLocalCurrencyNo);

            if (lstDetails == null)
            {
                return(new List <Currency>());
            }
            else
            {
                List <Currency> lst = new List <Currency>();
                foreach (CurrencyDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.Currency obj = new Rebound.GlobalTrader.BLL.Currency();
                    obj.LocalCurrencyId     = objDetails.LocalCurrencyId;
                    obj.LocalExchangeRate   = objDetails.LocalExchangeRate;
                    obj.CurrencyId          = objDetails.CurrencyId;
                    obj.CurrencyCode        = objDetails.CurrencyCode;
                    obj.CurrencyDescription = objDetails.CurrencyDescription;
                    obj.Symbol   = objDetails.Symbol;
                    obj.ClientNo = objDetails.ClientNo;
                    obj.DLUP     = objDetails.DLUP;
                    obj.Inactive = objDetails.Inactive;
                    obj.ClientDefaultLocalCurrencyDesc = objDetails.ClientDefaultLocalCurrencyDesc;
                    obj.ClientDefaultLocalCurrencyNo   = objDetails.ClientDefaultLocalCurrencyNo;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// DropDownLinkMultiCurrency
        /// Calls [usp_dropdown_LinkMultiCurrency]
        /// </summary>
        public static List <Currency> DropDownLinkMultiCurrency(System.Int32?hubClientNo, System.Int32?customerClientNo, System.Int32?buyCurrencyNo)
        {
            List <CurrencyDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Currency.DropDownLinkMultiCurrency(hubClientNo, customerClientNo, buyCurrencyNo);

            if (lstDetails == null)
            {
                return(new List <Currency>());
            }
            else
            {
                List <Currency> lst = new List <Currency>();
                foreach (CurrencyDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.Currency obj = new Rebound.GlobalTrader.BLL.Currency();
                    obj.CurrencyId          = objDetails.CurrencyId;
                    obj.CurrencyDescription = objDetails.CurrencyDescription;
                    obj.CurrencyCode        = objDetails.CurrencyCode;
                    obj.LinkMultiCurrencyId = objDetails.LinkMultiCurrencyId;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// GetListForClient
        /// Calls [usp_selectAll_Currency_for_Client]
        /// </summary>
        public static List <Currency> GetListForClient(System.Int32?clientId, System.Boolean?includeInactive)
        {
            List <CurrencyDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Currency.GetListForClient(clientId, includeInactive);

            if (lstDetails == null)
            {
                return(new List <Currency>());
            }
            else
            {
                List <Currency> lst = new List <Currency>();
                foreach (CurrencyDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.Currency obj = new Rebound.GlobalTrader.BLL.Currency();
                    obj.CurrencyId          = objDetails.CurrencyId;
                    obj.GlobalCurrencyNo    = objDetails.GlobalCurrencyNo;
                    obj.CurrencyCode        = objDetails.CurrencyCode;
                    obj.CurrencyDescription = objDetails.CurrencyDescription;
                    obj.Symbol    = objDetails.Symbol;
                    obj.ClientNo  = objDetails.ClientNo;
                    obj.Buy       = objDetails.Buy;
                    obj.Sell      = objDetails.Sell;
                    obj.Inactive  = objDetails.Inactive;
                    obj.UpdatedBy = objDetails.UpdatedBy;
                    obj.DLUP      = objDetails.DLUP;
                    obj.ClientDefaultCurrencyCode = objDetails.ClientDefaultCurrencyCode;
                    obj.ClientDefaultCurrencyNo   = objDetails.ClientDefaultCurrencyNo;
                    //[001] code start
                    obj.Notes = objDetails.Notes;
                    //[001] code end
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }
Ejemplo n.º 4
0
        /// <summary>
        /// DropDownSellForClient
        /// Calls [usp_dropdown_Currency_Sell_For_Client]
        /// </summary>
        public static List <Currency> DropDownSellForClient(System.Int32?clientId)
        {
            List <CurrencyDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Currency.DropDownSellForClient(clientId);

            if (lstDetails == null)
            {
                return(new List <Currency>());
            }
            else
            {
                List <Currency> lst = new List <Currency>();
                foreach (CurrencyDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.Currency obj = new Rebound.GlobalTrader.BLL.Currency();
                    obj.CurrencyId          = objDetails.CurrencyId;
                    obj.CurrencyDescription = objDetails.CurrencyDescription;
                    obj.CurrencyCode        = objDetails.CurrencyCode;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }