• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# ERPStore类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: AddPaymentToOrder

 public override void AddPaymentToOrder(ERPStore.Models.Order order, string paymentModeName, string transactionId, object message)
 {
 }
开发者ID:hhariri,项目名称:ReSharper8Demo,代码行数:3,代码来源:SalesService.cs


示例17: GetBrandListBySearch

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


示例18: ShowOrderDocuments

 public ActionResult ShowOrderDocuments(ERPStore.Models.Order order, string viewName)
 {
     var list = DocumentService.GetMediaList(order);
     ViewData.Model = list;
     return PartialView(viewName);
 }
开发者ID:hhariri,项目名称:ReSharper8Demo,代码行数:6,代码来源:OrderController.cs


示例19: CalculateShippingFee

 public override void CalculateShippingFee(ERPStore.Models.OrderCart cart, ERPStore.Models.User principal)
 {
     // Do nothing
 }
开发者ID:hhariri,项目名称:ReSharper8Demo,代码行数:4,代码来源:SalesService.cs


示例20: ValidateQuoteCart

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

            var form = context.Request.Form;
            var lastNameForm = form["lastname"];
            var emailForm = form["email"];

            if (lastNameForm.IsNullOrTrimmedEmpty())
            {
                ERPStore.IEnumerableExtension.AddBrokenRule(result, "lastname", "Le nom doit etre indiqué");
            }

            if (!ERPStore.Services.EmailValidator.IsValidEmail(emailForm))
            {
                ERPStore.IEnumerableExtension.AddBrokenRule(result, "email", "L'email est invalide");
            }

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



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# EResult类代码示例发布时间:2022-05-24
下一篇:
C# EPersistenceID类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap