Hidistro.UI.Web/Admin/zbGoods/EditBaseInfo.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
namespace Hidistro.UI.Web.Admin.zbGoods
{
using ASPNET.WebControls;
using Hidistro.ControlPanel.zbCommodities;
using Hidistro.ControlPanel.Store;
using Hidistro.Core;
using Hidistro.Entities.Store;
using Hidistro.UI.ControlPanel.Utility;
using System;
using System.Data;
using System.Web.UI.WebControls;
[PrivilegeCheck(Privilege.EditProducts)]
public class EditBaseInfo : AdminPage
{
protected Button btnAddOK;
protected Button btnReplaceOK;
protected Button btnSaveInfo;
protected Grid grdSelectedProducts;
private string productIds;
protected TextBox txtNewWord;
protected TextBox txtOleWord;
protected TextBox txtPrefix;
protected TextBox txtSuffix;
protected EditBaseInfo() : base("m11", "00000")
{
this.productIds = string.Empty;
}
private void BindProduct()
{
string str = this.Page.Request.QueryString["ProductIds"];
if (!string.IsNullOrEmpty(str))
{
this.grdSelectedProducts.DataSource = ProductHelper.GetProductBaseInfo(str);
this.grdSelectedProducts.DataBind();
}
}
private void btnAddOK_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(this.txtPrefix.Text.Trim()) && string.IsNullOrEmpty(this.txtSuffix.Text.Trim()))
{
this.ShowMsgToTarget("前后缀不能同时为空", false, "parent");
}
else
{
if (ProductHelper.UpdateProductNames(this.productIds, this.txtPrefix.Text.Trim(), this.txtSuffix.Text.Trim()))
{
this.ShowMsgToTarget("为商品名称添加前后缀成功", true, "parent");
}
else
{
this.ShowMsgToTarget("为商品名称添加前后缀失败", false, "parent");
}
this.BindProduct();
}
}
后面还有 85 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
