Hidistro.UI.Web/Admin/Goods/EditSaleCounts.cs

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

namespace Hidistro.UI.Web.Admin.Goods
{
    using ASPNET.WebControls;
    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;

    [PrivilegeCheck(Privilege.EditProducts)]
    public class EditSaleCounts : AdminPage
    {
        protected Button btnAddOK;
        protected Button btnOperationOK;
        protected Button btnSaveInfo;
        protected OperationDropDownList ddlOperation;
        protected Grid grdSelectedProducts;
        private string productIds;
        protected TextBox txtOperationSaleCounts;
        protected TextBox txtSaleCounts;

        protected EditSaleCounts() : base("m01", "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)
        {
            int result = 0;
            if (!int.TryParse(this.txtSaleCounts.Text.Trim(), out result) || (result < 0))
            {
                this.ShowMsgToTarget("销售数量只能是正整数,请输入正确的销售数量", false, "parent");
            }
            else
            {
                if (ProductHelper.UpdateShowSaleCounts(this.productIds, result))
                {
                    this.ShowMsgToTarget("成功调整了前台显示的销售数量", true, "parent");
                }
                else
                {
                    this.ShowMsgToTarget("调整前台显示的销售数量失败", false, "parent");
                }
                this.BindProduct();
            }
        }
后面还有 75 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。