EasyShop/siteAdmin/Goods/ProductClass.aspx.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using OpSql;
using Ftion;
using System.Data;
using System.Data.SqlClient;
using System.IO;
using conn;
using System.Linq;
using System.Text;

namespace Mall.siteAdmin.Goods
{
    public partial class ProductClass : System.Web.UI.Page
    {
        DbConn conn = new DbConn();
        public string jsString = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            //Ftion.Function.CheckState();
            if (!IsPostBack)
            {
                LoadData();
            }
        }
        private void LoadData()
        {
            RpProduct.DataSource = CompanyInfo.GetProMainClassList();
            RpProduct.DataBind();
        }
        protected void RpProduct_ItemCommand(object source, RepeaterCommandEventArgs e)
        {
            if (e.CommandName == "Del")
            {
                if (CompanyInfo.DelProMainClassMes((e.CommandArgument.ToString())))
                {
                    //Common.ShowMessage.Show(Page, "seuss", "分类信息删除成功...", "myProductClass.aspx");

                    //jsString = "dlg.Msg.Cor(\"删除成功\");";
                    //Response.Redirect("ProductClass.aspx");
                    jsString = "dlg.Msg.Cor(\"删除成功\");setTimeout('Go(\"ProductClass.aspx\")', 2000);";

                }
                else
                {
                    //jsString = "dlg.Msg.Err(\"删除成功\");";
                    //Response.Redirect("ProductClass.aspx");
                    jsString = "dlg.Msg.Err(\"删除失败\");setTimeout('Go(\"ProductClass.aspx\")', 2000);";
                    //Common.ShowMessage.Show(Page, "seuss", "分类信息删除失败,请重试或联系技术人员...", "myProductClass.aspx");
                }
            }
        }
    }
}

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

AI 解读 AI

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

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