Hidistro.UI.Web/Admin/Goods/EditMemberPrices.cs
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
namespace Hidistro.UI.Web.Admin.Goods
{
using Hidistro.ControlPanel.Commodities;
using Hidistro.ControlPanel.Store;
using Hidistro.Core;
using Hidistro.Entities.Store;
using Hidistro.UI.Common.Controls;
using Hidistro.UI.ControlPanel.Utility;
using System;
using System.Data;
using System.Web.UI.WebControls;
using System.Xml;
[PrivilegeCheck(Privilege.EditProducts)]
public class EditMemberPrices : AdminPage
{
protected Button btnOperationOK;
protected Button btnSavePrice;
protected Button btnTargetOK;
protected MemberPriceDropDownList ddlMemberPrice;
protected MemberPriceDropDownList ddlMemberPrice2;
protected OperationDropDownList ddlOperation;
protected MemberPriceDropDownList ddlSalePrice;
private string productIds;
protected TextBox txtOperationPrice;
protected TrimTextBox txtPrices;
protected TextBox txtTargetPrice;
protected EditMemberPrices() : base("m01", "00000")
{
this.productIds = string.Empty;
}
private void btnOperationOK_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(this.productIds))
{
this.ShowMsgToTarget("没有要修改的商品", false, "parent");
}
else if (!this.ddlMemberPrice2.SelectedValue.HasValue)
{
this.ShowMsgToTarget("请选择要修改的价格", false, "parent");
}
else if (((this.ddlMemberPrice2.SelectedValue.Value == -2) || (this.ddlMemberPrice2.SelectedValue.Value == -3)) && ((this.ddlSalePrice.SelectedValue.Value != -2) && (this.ddlSalePrice.SelectedValue.Value != -3)))
{
this.ShowMsgToTarget("一口价或成本价不能用会员等级价作为标准来按公式计算", false, "parent");
}
else
{
decimal result = 0M;
if (!decimal.TryParse(this.txtOperationPrice.Text.Trim(), out result))
{
this.ShowMsgToTarget("请输入正确的价格", false, "parent");
}
else if ((this.ddlOperation.SelectedValue == "*") && (result <= 0M))
{
this.ShowMsgToTarget("必须乘以一个正数", false, "parent");
}
else
{
后面还有 135 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
