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