private string GetCatalogDefaultCurrency()
        {
            CatalogDto dto = CatalogManager.GetCatalogDto(this._CatalogId, new CatalogResponseGroup(CatalogResponseGroup.ResponseGroup.CatalogInfo));

            if (dto.Catalog.Count > 0)
            {
                return(dto.Catalog[0].DefaultCurrency);
            }

            return(String.Empty);
        }
Example #2
0
        /// <summary>
        /// Loads the context.
        /// </summary>
        /// <param name="context">The context.</param>
        public void LoadContext(IDictionary context)
        {
            _CatalogEntryDto = (CatalogEntryDto)context[_CatalogEntryDtoString];

            if (ParentCatalogId > 0)
            {
                _CatalogDto = CatalogManager.GetCatalogDto(ParentCatalogId, new CatalogResponseGroup(CatalogResponseGroup.ResponseGroup.CatalogInfo));
            }

            if (_CatalogDto != null && _CatalogDto.Catalog.Count > 0)
            {
                context[_CatalogCurrencyString] = _CatalogDto.Catalog[0].DefaultCurrency;
            }

            SalePriceEditDialog.LoadContext(context);
        }
Example #3
0
 /// <summary>
 /// Gets the catalog dto.
 /// </summary>
 /// <param name="catalogId">The catalog id.</param>
 /// <returns></returns>
 public CatalogDto GetCatalogDto(int catalogId)
 {
     return(CatalogManager.GetCatalogDto(catalogId, new CatalogResponseGroup()));
 }
Example #4
0
 /// <summary>
 /// Gets the catalog dto.
 /// </summary>
 /// <param name="catalogId">The catalog id.</param>
 /// <param name="responseGroup">The response group.</param>
 /// <returns></returns>
 public CatalogDto GetCatalogDto(int catalogId, CatalogResponseGroup responseGroup)
 {
     return(CatalogManager.GetCatalogDto(catalogId, responseGroup));
 }
Example #5
0
 /// <summary>
 /// Gets the catalog dto.
 /// </summary>
 /// <param name="siteId">The site id.</param>
 /// <returns></returns>
 public CatalogDto GetCatalogDto(Guid siteId)
 {
     return(CatalogManager.GetCatalogDto(siteId, new CatalogResponseGroup()));
 }
Example #6
0
 /// <summary>
 /// Gets the catalog dto.
 /// </summary>
 /// <param name="siteId">The site id.</param>
 /// <param name="responseGroup">The response group.</param>
 /// <returns></returns>
 public CatalogDto GetCatalogDto(Guid siteId, CatalogResponseGroup responseGroup)
 {
     return(CatalogManager.GetCatalogDto(siteId, responseGroup));
 }
Example #7
0
 /// <summary>
 /// Gets the catalog dto.
 /// </summary>
 /// <returns></returns>
 public CatalogDto GetCatalogDto()
 {
     return(CatalogManager.GetCatalogDto(Guid.Empty, new CatalogResponseGroup()));
 }