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); }
/// <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); }
/// <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())); }
/// <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)); }
/// <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())); }
/// <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)); }
/// <summary> /// Gets the catalog dto. /// </summary> /// <returns></returns> public CatalogDto GetCatalogDto() { return(CatalogManager.GetCatalogDto(Guid.Empty, new CatalogResponseGroup())); }