当前位置: 首页>>代码示例>>C#>>正文


C# ERPStore类代码示例

本文整理汇总了C#中ERPStore的典型用法代码示例。如果您正苦于以下问题:C# ERPStore类的具体用法?C# ERPStore怎么用?C# ERPStore使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ERPStore类属于命名空间,在下文中一共展示了ERPStore类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ApplyBestPrice

 public void ApplyBestPrice(IList<ERPStore.Models.Product> productList, ERPStore.Models.User user)
 {
     foreach (var item in productList)
     {
         ApplyBestPrice(item, user);
     }
 }
开发者ID:hhariri,项目名称:ReSharper8Demo,代码行数:7,代码来源:CatalogService.cs

示例2: Save

 public void Save(ERPStore.Models.Address address)
 {
     if (!m_AddressList.Contains(address))
     {
         m_AddressList.Add(address);
     }
 }
开发者ID:hhariri,项目名称:ReSharper8Demo,代码行数:7,代码来源:AddressRepository.cs

示例3: SettingsService

        public SettingsService(ERPStore.Services.ICacheService cacheService
			, Logging.ILogger logger
			, Microsoft.Practices.Unity.IUnityContainer container)
        {
            this.CacheService = cacheService;
            this.Logger = logger;
            this.Container = container;
        }
开发者ID:hhariri,项目名称:ReSharper8Demo,代码行数:8,代码来源:SettingsService.cs

示例4: PluginInit

        public PluginInit(System.Web.HttpContextBase context
			, Microsoft.Practices.Unity.IUnityContainer container
			, ERPStore.Models.WebSiteSettings webSiteSettings)
        {
            this.HttpContext = context;
            this.Container = container;
            this.WebSiteSettings = webSiteSettings;
        }
开发者ID:hhariri,项目名称:ReSharper8Demo,代码行数:8,代码来源:PluginInit.cs

示例5: ChangeCurrent

 public void ChangeCurrent(string cartId, ERPStore.Models.CartType cartType, ERPStore.Models.UserPrincipal user)
 {
     var cart = GetCartById(cartId);
     if (cart != null)
     {
         m_List.Remove(cart);
         m_List.Insert(0, cart);
     }
 }
开发者ID:hhariri,项目名称:ReSharper8Demo,代码行数:9,代码来源:MockCartRepository.cs

示例6: EmailerService

        public EmailerService(Logging.ILogger logger
			, ERPStore.Services.IConnectorService connectorService
			, ERPStore.Services.IAccountService accountService
			, ERPStore.Services.CryptoService cryptoService
			, ERPStore.Services.IScheduledTaskService taskService
			)
            : base(logger, connectorService, accountService, cryptoService, taskService)
        {
        }
开发者ID:hhariri,项目名称:ReSharper8Demo,代码行数:9,代码来源:EmailerService.cs

示例7: CreateOrderFromCart

 public override ERPStore.Models.ISaleDocument CreateOrderFromCart(ERPStore.Models.User user, ERPStore.Models.OrderCart cart)
 {
     var order = new Models.Order();
     order.Id = 1;
     order.Code = Guid.NewGuid().ToString();
     order.User = user;
     order.PaymentModeName = cart.PaymentModeName;
     m_OrderList.Add(order);
     return order;
 }
开发者ID:hhariri,项目名称:ReSharper8Demo,代码行数:10,代码来源:SalesService.cs

示例8: ValidateOrderCart

        public override List<ERPStore.Models.BrokenRule> ValidateOrderCart(ERPStore.Models.OrderCart cart, System.Web.HttpContextBase context)
        {
            var result = new List<ERPStore.Models.BrokenRule>();

            if (ERPStore.ERPStoreApplication.WebSiteSettings.Payment.MinimalOrderAmount != null
                && cart.GrandTotal < ERPStore.ERPStoreApplication.WebSiteSettings.Payment.MinimalOrderAmount)
            {
                ERPStore.IEnumerableExtension.AddBrokenRule(result, "GrandTotal", string.Format("Vous n'avez pas atteint le montant minimal de commande qui est de {0:F2} Euros", ERPStore.ERPStoreApplication.WebSiteSettings.Payment.MinimalOrderAmount));
            }

            return result;
        }
开发者ID:hhariri,项目名称:ReSharper8Demo,代码行数:12,代码来源:SalesService.cs

示例9: GetCurrentCartId

 public string GetCurrentCartId(ERPStore.Models.CartType cartType, ERPStore.Models.UserPrincipal user)
 {
     switch (cartType)
     {
         case ERPStore.Models.CartType.Order:
             if (m_List.IsNotNullOrEmpty())
             {
                 return GetOrderList(user).First().Code;
             }
             break;
         case ERPStore.Models.CartType.Quote:
             if (m_List.IsNotNullOrEmpty())
             {
                 return GetQuoteList(user).First().Code;
             }
             break;
         default:
             break;
     }
     return Guid.NewGuid().ToString();
 }
开发者ID:hhariri,项目名称:ReSharper8Demo,代码行数:21,代码来源:MockCartRepository.cs

示例10: GetProductKeywords

 public string GetProductKeywords(ERPStore.Models.Product product)
 {
     return m_ContreteCatalogService.GetProductKeywords(product);
 }
开发者ID:hhariri,项目名称:ReSharper8Demo,代码行数:4,代码来源:CatalogService.cs

示例11: GetProductListBySearch

 //public IList<ERPStore.Models.Product> GetDestockedProductList()
 //{
 //    return m_ContreteCatalogService.GetDestockedProductList();
 //}
 //public IList<ERPStore.Models.Product> GetTopSellProductList()
 //{
 //    return m_ContreteCatalogService.GetTopSellProductList();
 //}
 //public IList<ERPStore.Models.Product> GetFirstPriceProductList()
 //{
 //    return m_ContreteCatalogService.GetFirstPriceProductList();
 //}
 public IList<ERPStore.Models.Product> GetProductListBySearch(ERPStore.Models.ProductListFilter filter, int index, int pageSize, out int count)
 {
     return m_ContreteCatalogService.GetProductListBySearch(filter, index, pageSize, out count);
 }
开发者ID:hhariri,项目名称:ReSharper8Demo,代码行数:16,代码来源:CatalogService.cs

示例12: GetProductCategoryListBySearch

 public IList<ERPStore.Models.ProductCategory> GetProductCategoryListBySearch(ERPStore.Models.ProductListFilter search)
 {
     return m_ContreteCatalogService.GetProductCategoryListBySearch(search);
 }
开发者ID:hhariri,项目名称:ReSharper8Demo,代码行数:4,代码来源:CatalogService.cs

示例13: GetProductExtendedPropertyListBySearch

 public IList<ERPStore.Models.PropertyGroup> GetProductExtendedPropertyListBySearch(ERPStore.Models.ProductListFilter searchFilter)
 {
     return m_ContreteCatalogService.GetProductExtendedPropertyListBySearch(searchFilter);
 }
开发者ID:hhariri,项目名称:ReSharper8Demo,代码行数:4,代码来源:CatalogService.cs

示例14: QuoteCanceled

 public ViewResult QuoteCanceled(ERPStore.Models.Quote quote, Models.CancelQuoteReason reason,  string message)
 {
     ViewData.Model = quote;
     ViewData["message"] = message;
     ViewBag.Message = message;
     ViewData["reason"] = reason;
     ViewBag.Reason = reason;
     ViewBag.WebSiteSettings = ERPStore.ERPStoreApplication.WebSiteSettings;
     return View();
 }
开发者ID:hhariri,项目名称:ReSharper8Demo,代码行数:10,代码来源:EmailerController.cs

示例15: GetProductSalePrice

 public override ERPStore.Models.Price GetProductSalePrice(ERPStore.Models.Product product, ERPStore.Models.User user, int Quantity, out bool isCustomerPriceApplied)
 {
     isCustomerPriceApplied = false;
     return product.SalePrice;
 }
开发者ID:hhariri,项目名称:ReSharper8Demo,代码行数:5,代码来源:SalesService.cs


注:本文中的ERPStore类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。