本文整理汇总了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);
}
}
示例2: Save
public void Save(ERPStore.Models.Address address)
{
if (!m_AddressList.Contains(address))
{
m_AddressList.Add(address);
}
}
示例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;
}
示例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;
}
示例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);
}
}
示例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)
{
}
示例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;
}
示例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;
}
示例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();
}
示例10: GetProductKeywords
public string GetProductKeywords(ERPStore.Models.Product product)
{
return m_ContreteCatalogService.GetProductKeywords(product);
}
示例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);
}
示例12: GetProductCategoryListBySearch
public IList<ERPStore.Models.ProductCategory> GetProductCategoryListBySearch(ERPStore.Models.ProductListFilter search)
{
return m_ContreteCatalogService.GetProductCategoryListBySearch(search);
}
示例13: GetProductExtendedPropertyListBySearch
public IList<ERPStore.Models.PropertyGroup> GetProductExtendedPropertyListBySearch(ERPStore.Models.ProductListFilter searchFilter)
{
return m_ContreteCatalogService.GetProductExtendedPropertyListBySearch(searchFilter);
}
示例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();
}
示例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;
}