本文整理汇总了C#中SKUInfo类的典型用法代码示例。如果您正苦于以下问题:C# SKUInfo类的具体用法?C# SKUInfo怎么用?C# SKUInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SKUInfo类属于命名空间,在下文中一共展示了SKUInfo类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
// Mark selected tab
UIContext.ProductTab = ProductTabEnum.Options;
if (ProductID > 0)
{
sku = SKUInfoProvider.GetSKUInfo(ProductID);
EditedObject = sku;
if (sku != null)
{
// Check site ID
CheckEditedObjectSiteID(sku.SKUSiteID);
ucOptions.ProductID = ProductID;
ucOptions.UniSelector.OnSelectionChanged += new EventHandler(UniSelector_OnSelectionChanged);
}
}
// Set master title
if (DisplayTitle)
{
CurrentMaster.Title.TitleText = GetString("optioncategory_edit.itemlistlink");
CurrentMaster.Title.TitleImage = GetImageUrl("Objects/Ecommerce_OptionCategory/object.png");
CurrentMaster.Title.HelpTopicName = "cms_ecommerce_products_options";
}
}
开发者ID:hollycooper,项目名称:Sportscar-Standings,代码行数:29,代码来源:Product_Edit_Options.aspx.cs
示例2: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
// Get current product info
product = SKUInfoProvider.GetSKUInfo(ProductID);
if (product != null)
{
// Allow site selector for global admins
if (!CMSContext.CurrentUser.IsGlobalAdministrator)
{
filterDocuments.LoadSites = false;
filterDocuments.SitesPlaceHolder.Visible = false;
}
// Get no data message text
string productNameLocalized = ResHelper.LocalizeString(product.SKUName);
string noDataMessage = string.Format(GetString("ProductDocuments.Documents.nodata"), HTMLHelper.HTMLEncode(productNameLocalized));
if (filterDocuments.FilterIsSet)
{
noDataMessage = GetString("ProductDocuments.Documents.noresults");
}
else if (filterDocuments.SelectedSite != TreeProvider.ALL_SITES)
{
SiteInfo si = SiteInfoProvider.GetSiteInfo(filterDocuments.SelectedSite);
if (si != null)
{
noDataMessage = string.Format(GetString("ProductDocuments.Documents.nodataforsite"), HTMLHelper.HTMLEncode(productNameLocalized), HTMLHelper.HTMLEncode(si.DisplayName));
}
}
docElem.ZeroRowsText = noDataMessage;
docElem.SiteName = filterDocuments.SelectedSite;
docElem.UniGrid.OnBeforeDataReload += new OnBeforeDataReload(UniGrid_OnBeforeDataReload);
docElem.UniGrid.OnAfterDataReload += new OnAfterDataReload(UniGrid_OnAfterDataReload);
}
}
开发者ID:KuduApps,项目名称:Kentico,代码行数:35,代码来源:ProductDocuments.ascx.cs
示例3: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
// Check UI personalization for product / product option separately
if (QueryHelper.GetInteger("categoryid", 0) > 0)
{
if (!CMSContext.CurrentUser.IsAuthorizedPerUIElement("CMS.Ecommerce", "ProductOptions.Options.TaxClasses"))
{
RedirectToCMSDeskUIElementAccessDenied("CMS.Ecommerce", "ProductOptions.Options.TaxClasses");
}
}
else
{
if (!CMSContext.CurrentUser.IsAuthorizedPerUIElement("CMS.Ecommerce", "Products.TaxClasses"))
{
RedirectToCMSDeskUIElementAccessDenied("CMS.Ecommerce", "Products.TaxClasses");
}
}
if (ProductID > 0)
{
sku = SKUInfoProvider.GetSKUInfo(ProductID);
EditedObject = sku;
if (sku != null)
{
// Check products site id
CheckEditedObjectSiteID(sku.SKUSiteID);
taxForm.ProductID = ProductID;
taxForm.UniSelector.OnSelectionChanged += UniSelector_OnSelectionChanged;
}
}
}
开发者ID:hollycooper,项目名称:Sportscar-Standings,代码行数:33,代码来源:Product_Edit_Tax.aspx.cs
示例4: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
product = SKUInfoProvider.GetSKUInfo(ProductID);
// Mark selected tab
UIContext.ProductTab = ProductTabEnum.VolumeDiscounts;
EditedObject = product;
if (product != null)
{
// Check site id
CheckEditedObjectSiteID(product.SKUSiteID);
// Load product currency
productCurrency = CurrencyInfoProvider.GetMainCurrency(product.SKUSiteID);
// Display product price
lblProductPrice.Text = CurrencyInfoProvider.GetFormattedPrice(product.SKUPrice, productCurrency);
}
// Set unigrid properties
SetUnigridProperties();
// Initialize the master page elements
InitializeMasterPage();
}
开发者ID:hollycooper,项目名称:Sportscar-Standings,代码行数:27,代码来源:Product_Edit_VolumeDiscount_List.aspx.cs
示例5: OnInit
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
// Get product name ane option category ID
if (ProductID > 0)
{
sku = SKUInfoProvider.GetSKUInfo(ProductID);
if (sku != null)
{
productName = ResHelper.LocalizeString(sku.SKUName);
optionCategoryId = sku.SKUOptionCategoryID;
siteId = sku.SKUSiteID;
// Check if edited object belongs to configured site
CheckEditedObjectSiteID(siteId);
}
}
dialogMode = QueryHelper.GetBoolean("dialogmode", false);
nodeId = QueryHelper.GetInteger("nodeId", 0);
// Display tabs separator
CurrentMaster.PanelSeparator.Visible = true;
AddMenuButtonSelectScript("Products", string.Empty);
}
开发者ID:hollycooper,项目名称:Sportscar-Standings,代码行数:27,代码来源:Product_Edit_Header.aspx.cs
示例6: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
if (!CMSContext.CurrentUser.IsAuthorizedPerUIElement("CMS.Ecommerce", "Products.VolumeDiscounts"))
{
RedirectToCMSDeskUIElementAccessDenied("CMS.Ecommerce", "Products.VolumeDiscounts");
}
productId = QueryHelper.GetInteger("productId", 0);
product = SKUInfoProvider.GetSKUInfo(productId);
EditedObject = product;
if (product != null)
{
// Check site id
CheckEditedObjectSiteID(product.SKUSiteID);
// Load product currency
productCurrency = CurrencyInfoProvider.GetMainCurrency(product.SKUSiteID);
}
// Set unigrid properties
SetUnigridProperties();
// Initialize the master page elements
InitializeMasterPage();
}
开发者ID:v-jli,项目名称:jean0407large,代码行数:27,代码来源:Product_Edit_VolumeDiscount_List.aspx.cs
示例7: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
product = SKUInfoProvider.GetSKUInfo(ProductID);
// Setup help
object options = new
{
helpName = "lnkProductEditHelp",
helpUrl = UIContextHelper.GetDocumentationTopicUrl(HELP_TOPIC_LINK)
};
ScriptHelper.RegisterModule(this, "CMS/DialogContextHelpChange", options);
EditedObject = product;
if (product != null)
{
// Check site id
CheckEditedObjectSiteID(product.SKUSiteID);
// Load product currency
productCurrency = CurrencyInfoProvider.GetMainCurrency(product.SKUSiteID);
// Display product price
headProductPriceInfo.Text = string.Format(GetString("com_sku_volume_discount.skupricelabel"), CurrencyInfoProvider.GetFormattedPrice(product.SKUPrice, productCurrency));
}
// Set unigrid properties
SetUnigridProperties();
// Initialize the master page elements
InitializeMasterPage();
}
开发者ID:dlnuckolls,项目名称:pfh-paypalintegration,代码行数:32,代码来源:Product_Edit_VolumeDiscount_List.aspx.cs
示例8: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
// Setup help
object options = new
{
helpName = "lnkProductEditHelp",
helpUrl = UIContextHelper.GetDocumentationTopicUrl(HELP_TOPIC_LINK)
};
ScriptHelper.RegisterModule(this, "CMS/DialogContextHelpChange", options);
// Check UI personalization for product / product option separately
if (OptionCategoryID > 0)
{
// Check elements in product options categories subtree
CheckUIElementAccessHierarchical("CMS.Ecommerce", "ProductOptions.Options.TaxClasses");
}
else
{
CheckUIElementAccessHierarchical("CMS.Ecommerce", "Products.TaxClasses");
}
if (ProductID > 0)
{
sku = SKUInfoProvider.GetSKUInfo(ProductID);
EditedObject = sku;
if (sku != null)
{
// Check products site id
CheckEditedObjectSiteID(sku.SKUSiteID);
taxForm.ProductID = ProductID;
taxForm.UniSelector.OnSelectionChanged += UniSelector_OnSelectionChanged;
if (sku.IsProductOption)
{
var categoryInfo = OptionCategoryInfoProvider.GetOptionCategoryInfo(sku.SKUOptionCategoryID);
if (categoryInfo != null)
{
CreateBreadcrumbs(sku);
if (categoryInfo.CategoryType != OptionCategoryTypeEnum.Products)
{
ShowError(GetString("com.taxesNotSupportedForOptionType"));
taxForm.Visible = false;
}
}
}
}
}
}
开发者ID:dlnuckolls,项目名称:pfh-paypalintegration,代码行数:51,代码来源:Product_Edit_Tax.aspx.cs
示例9: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
// Setup help
object options = new
{
helpName = "lnkProductEditHelp",
helpUrl = UIContextHelper.GetDocumentationTopicUrl(HELP_TOPIC_LINK)
};
ScriptHelper.RegisterModule(this, "CMS/DialogContextHelpChange", options);
if (ProductID > 0)
{
sku = SKUInfoProvider.GetSKUInfo(ProductID);
EditedObject = sku;
if (sku != null)
{
// Check site ID
CheckEditedObjectSiteID(sku.SKUSiteID);
ucOptions.ProductID = ProductID;
// Add new category button in HeaderAction
CurrentMaster.HeaderActions.ActionsList.Add(new HeaderAction
{
Text = GetString("com.productoptions.select"),
OnClientClick = ucOptions.GetAddCategoryJavaScript(),
Enabled = ECommerceContext.IsUserAuthorizedToModifySKU(sku.IsGlobal)
});
// New button is active in editing of global product only if global option categories are allowed and user has GlobalModifyPermission permission
bool enabledButton = (sku.IsGlobal) ? ECommerceSettings.AllowGlobalProductOptions(CurrentSiteName) && ECommerceContext.IsUserAuthorizedToModifyOptionCategory(true)
: ECommerceContext.IsUserAuthorizedToModifyOptionCategory(false);
// Create new enabled/disabled category button in HeaderAction
var dialogUrl = URLHelper.ResolveUrl("~/CMSModules/Ecommerce/Pages/Tools/ProductOptions/OptionCategory_New.aspx?ProductID=" + sku.SKUID + "&dialog=1");
dialogUrl = UIContextHelper.AppendDialogHash(dialogUrl);
CurrentMaster.HeaderActions.ActionsList.Add(new HeaderAction
{
Text = GetString("com.productoptions.new"),
Enabled = enabledButton,
ButtonStyle = ButtonStyle.Default,
OnClientClick = "modalDialog('" + dialogUrl + "','NewOptionCategoryDialog', 1000, 800);"
});
}
}
}
开发者ID:dlnuckolls,项目名称:pfh-paypalintegration,代码行数:49,代码来源:Product_Edit_Options.aspx.cs
示例10: OnInit
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
SKU = SKUInfoProvider.GetSKUInfo(ProductID);
if (SKU != null)
{
CheckEditedObjectSiteID(SKU.SKUSiteID);
}
// Redirected from another page with saved flag
if ((QueryHelper.GetInteger("saved", 0) == 1) && !URLHelper.IsPostback())
{
ShowChangesSaved();
}
}
开发者ID:dlnuckolls,项目名称:pfh-paypalintegration,代码行数:16,代码来源:Product_Edit_General.aspx.cs
示例11: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
// Get product info
if (ProductID > 0)
{
sku = SKUInfoProvider.GetSKUInfo(ProductID);
}
CMSMasterPage master = (CMSMasterPage)CurrentMaster;
master.Tabs.OnTabCreated += Tabs_OnTabCreated;
selectedTab = DataHelper.GetNotEmpty(QueryHelper.GetString("tab", String.Empty).ToLowerCSafe(), ProductTabCode.ToString(UIContext.ProductTab).ToLowerCSafe());
master.PanelBody.CssClass += " Separator";
master.SetRTL();
}
开发者ID:hollycooper,项目名称:Sportscar-Standings,代码行数:16,代码来源:Product_Edit_Advanced_Header.aspx.cs
示例12: OnInit
/// <summary>
/// Initializes the extender
/// </summary>
public override void OnInit()
{
base.OnInit();
siteId = QueryHelper.GetInteger("siteId", SiteContext.CurrentSiteID);
// Get SKUID from querystring or from edited document
var skuId = QueryHelper.GetInteger("productId", 0);
if ((skuId <= 0) && (documentManager.Node != null))
{
skuId = documentManager.Node.NodeSKUID;
}
// Get product info
if (skuId > 0)
{
sku = SKUInfoProvider.GetSKUInfo(skuId);
}
}
开发者ID:dlnuckolls,项目名称:pfh-paypalintegration,代码行数:22,代码来源:ProductAdvancedTabsExtender.cs
示例13: OnInit
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
// Initialize DataForm
if (productId > 0)
{
skuObj = SKUInfoProvider.GetSKUInfo(productId);
EditedObject = skuObj;
formProductCustomFields.Info = skuObj;
formProductCustomFields.OnBeforeSave += formProductCustomFields_OnBeforeSave;
formProductCustomFields.OnAfterSave += formProductCustomFields_OnAfterSave;
}
else
{
formProductCustomFields.Enabled = false;
}
}
开发者ID:v-jli,项目名称:jean0407large,代码行数:19,代码来源:Product_Edit_CustomFields.aspx.cs
示例14: GetSKUPriceInternal
/// <summary>
/// Returns catalogue price of the given product based on the SKU data and shopping cart data.
/// By default price is loaded from the SKUPrice field.
/// </summary>
/// <param name="sku">SKU dta</param>
/// <param name="cart">Shopping cart data</param>
protected override double GetSKUPriceInternal(SKUInfo sku, ShoppingCartInfo cart)
{
double price = 0;
// 1) Get base SKU price according to the shopping cart data (current culture)
if (cart != null)
{
switch (cart.ShoppingCartCulture.ToLower())
{
case "en-us":
// Get price form SKUEnUsPrice field
price = ValidationHelper.GetDouble(sku.GetValue("SKUEnUsPrice"), 0);
break;
case "cs-cz":
// Get price form SKUCsCzPrice field
price = ValidationHelper.GetDouble(sku.GetValue("SKUCsCzPrice"), 0);
break;
}
}
//// 2) Get base SKU price according to the product properties (product status)
//PublicStatusInfo status = PublicStatusInfoProvider.GetPublicStatusInfo(sku.SKUPublicStatusID);
//if ((status != null) && (status.PublicStatusName.ToLower() == "discounted"))
//{
// // Get price form SKUDiscountedPrice field
// price = ValidationHelper.GetDouble(sku.GetValue("SKUDiscountedPrice"), 0);
//}
if (price == 0)
{
// Get price from the SKUPrice field by default
return base.GetSKUPriceInternal(sku, cart);
}
else
{
// Return custom price
return price;
}
}
开发者ID:KuduApps,项目名称:Kentico,代码行数:46,代码来源:CustomSKUInfoProvider.cs
示例15: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
if (!CMSContext.CurrentUser.IsAuthorizedPerUIElement("CMS.Content", "ContentProduct.TaxClasses"))
{
RedirectToCMSDeskUIElementAccessDenied("CMS.Content", "ContentProduct.TaxClasses");
}
if (this.Node != null)
{
sku = SKUInfoProvider.GetSKUInfo(productId);
EditedObject = sku;
if (sku != null)
{
// Check site ID
CheckProductSiteID(sku.SKUSiteID);
taxForm.ProductID = productId;
this.taxForm.UniSelector.OnSelectionChanged += UniSelector_OnSelectionChanged;
}
}
}
开发者ID:v-jli,项目名称:jean0407large,代码行数:23,代码来源:Product_Edit_Tax.aspx.cs
示例16: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
// Set help topic
CurrentMaster.HeaderActions.HelpTopicName = "CMS_Ecommerce_Products_TaxClasses";
if (Node != null)
{
sku = SKUInfoProvider.GetSKUInfo(Node.NodeSKUID);
EditedObject = sku;
if (sku != null)
{
// Check site ID
CheckProductSiteID(sku.SKUSiteID);
taxForm.ProductID = sku.SKUID;
taxForm.UniSelector.OnSelectionChanged += UniSelector_OnSelectionChanged;
}
}
// Mark selected tab
UIContext.ProductTab = ProductTabEnum.TaxClasses;
}
开发者ID:hollycooper,项目名称:Sportscar-Standings,代码行数:24,代码来源:Product_Edit_Tax.aspx.cs
示例17: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
if (!CMSContext.CurrentUser.IsAuthorizedPerUIElement("CMS.Ecommerce", "Products.Options"))
{
RedirectToCMSDeskUIElementAccessDenied("CMS.Ecommerce", "Products.Options");
}
int productId = QueryHelper.GetInteger("productId", 0);
if (productId > 0)
{
sku = SKUInfoProvider.GetSKUInfo(productId);
EditedObject = sku;
if (sku != null)
{
// Check site ID
CheckEditedObjectSiteID(sku.SKUSiteID);
ucOptions.ProductID = productId;
ucOptions.UniSelector.OnSelectionChanged += new EventHandler(UniSelector_OnSelectionChanged);
}
}
}
开发者ID:v-jli,项目名称:jean0407large,代码行数:24,代码来源:Product_Edit_Options.aspx.cs
示例18: gridData_OnExternalDataBound
private object gridData_OnExternalDataBound(object sender, string sourceName, object parameter)
{
DataRowView row = parameter as DataRowView;
if (DocumentListingDisplayed)
{
switch (sourceName.ToLowerCSafe())
{
case "skunumber":
case "skuavailableitems":
case "publicstatusid":
case "allowforsale":
case "skusiteid":
case "typename":
case "skuprice":
if (ShowSections && (row["NodeSKUID"] == DBNull.Value))
{
return NO_DATA_CELL_VALUE;
}
break;
case "edititem":
row = ((GridViewRow)parameter).DataItem as DataRowView;
if ((row != null) && ((row["NodeSKUID"] == DBNull.Value) || showProductsInTree))
{
CMSGridActionButton btn = sender as CMSGridActionButton;
if (btn != null)
{
int currentNodeId = ValidationHelper.GetInteger(row["NodeID"], 0);
int nodeParentId = ValidationHelper.GetInteger(row["NodeParentID"], 0);
if (row["NodeSKUID"] == DBNull.Value)
{
btn.IconCssClass = "icon-eye";
btn.IconStyle = GridIconStyle.Allow;
btn.ToolTip = GetString("com.sku.viewproducts");
}
// Go to the selected document
btn.OnClientClick = "EditItem(" + currentNodeId + ", " + nodeParentId + "); return false;";
}
}
break;
}
}
switch (sourceName.ToLowerCSafe())
{
case "skunumber":
string skuNumber = ValidationHelper.GetString(row["SKUNumber"], null);
return HTMLHelper.HTMLEncode(ResHelper.LocalizeString(skuNumber) ?? "");
case "skuavailableitems":
var sku = new SKUInfo(row.Row);
int availableItems = sku.SKUAvailableItems;
// Inventory tracked by variants
if (sku.SKUTrackInventory == TrackInventoryTypeEnum.ByVariants)
{
return GetString("com.inventory.trackedbyvariants");
}
// Inventory tracking disabled
if (sku.SKUTrackInventory == TrackInventoryTypeEnum.Disabled)
{
return GetString("com.inventory.nottracked");
}
// Ensure correct values for unigrid export
if (sender == null)
{
return availableItems;
}
// Tracking by products
InlineEditingTextBox inlineAvailableItems = new InlineEditingTextBox();
inlineAvailableItems.Text = availableItems.ToString();
inlineAvailableItems.DelayedReload = DocumentListingDisplayed;
inlineAvailableItems.EnableEncode = false;
inlineAvailableItems.Formatting += (s, e) =>
{
var reorderAt = sku.SKUReorderAt;
// Emphasize the number when product needs to be reordered
if (availableItems <= reorderAt)
{
// Format message informing about insufficient stock level
string reorderMsg = string.Format(GetString("com.sku.reorderatTooltip"), reorderAt);
string message = string.Format("<span class=\"alert-status-error\" onclick=\"UnTip()\" onmouseout=\"UnTip()\" onmouseover=\"Tip('{1}')\">{0}</span>", availableItems, reorderMsg);
inlineAvailableItems.FormattedText = message;
}
};
// Unigrid with delayed reload in combination with inline edit control requires additional postback to sort data.
// Update data only if external data bound is called for the first time.
//.........这里部分代码省略.........
开发者ID:dlnuckolls,项目名称:pfh-paypalintegration,代码行数:101,代码来源:Product_List.aspx.cs
示例19: GetSKUPriceSaving
/// <summary>
/// Returns amount of saved money based on the difference between product seller price and product retail price.
/// </summary>
/// <param name="discounts">Indicates if discounts should be applied to the seller price before the saved amount is calculated</param>
/// <param name="taxes">Indicates if taxes should be applied to both retail price and seller price before the saved amount is calculated</param>
/// <param name="column1">Name of the column from which the seller price is retrieved, if empty SKUPrice column is used</param>
/// <param name="column2">Name of the column from which the retail price is retrieved, if empty SKURetailPrice column is used</param>
/// <param name="percentage">True - result is percentage, False - result is in the current currency</param>
public static double GetSKUPriceSaving(SKUInfo sku, bool discounts, bool taxes, string column1, string column2, bool percentage)
{
// Do not process
if (sku == null)
{
return 0;
}
// Ensure columns
column1 = string.IsNullOrEmpty(column1) ? "SKUPrice" : column1;
column2 = string.IsNullOrEmpty(column2) ? "SKURetailPrice" : column2;
// Prices
double price = SKUInfoProvider.GetSKUPrice(sku, null, discounts, taxes, false, column1);
double retailPrice = SKUInfoProvider.GetSKUPrice(sku, null, false, taxes, false, column2);
// Saved amount
double savedAmount = retailPrice - price;
// When seller price is greater than retail price
if (((price > 0) && (savedAmount < 0)) || ((price < 0) && (savedAmount > 0)))
{
// Zero saved amount
savedAmount = 0;
}
else if (percentage)
{
// Percentage saved amount
savedAmount = ((retailPrice == 0) ? 0 : Math.Round(100 * savedAmount / retailPrice));
}
return savedAmount;
}
开发者ID:hollycooper,项目名称:Sportscar-Standings,代码行数:41,代码来源:EcommerceFunctions.cs
示例20: GetSKUIndicatorProperty
/// <summary>
/// Returns value of the specified product public status column.
/// If the product is evaluated as a new product in the store, public status set by 'CMSStoreNewProductStatus' setting is used, otherwise product public status is used.
/// </summary>
/// <param name="sku">SKU data</param>
/// <param name="column">Name of the product public status column the value should be retrieved from</param>
public static object GetSKUIndicatorProperty(SKUInfo sku, string column)
{
// Do not process
if (sku == null)
{
return null;
}
PublicStatusInfo status = null;
string siteName = SiteInfoProvider.GetSiteName(sku.SKUSiteID);
string statusName = ECommerceSettings.NewProductStatus(siteName);
if (!string.IsNullOrEmpty(statusName) && SKUInfoProvider.IsSKUNew(sku))
{
// Get 'new product' status
status = PublicStatusInfoProvider.GetPublicStatusInfo(statusName, siteName);
}
else
{
// Get product public status
if (sku.SKUPublicStatusID > 0)
{
status = PublicStatusInfoProvider.GetPublicStatusInfo(sku.SKUPublicStatusID);
}
}
// Get specified column value
return GetColumnValue(status, column);
}
开发者ID:hollycooper,项目名称:Sportscar-Standings,代码行数:35,代码来源:EcommerceFunctions.cs
注:本文中的SKUInfo类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论