HLW/web/Channel/Edit.aspx.cs

(开头部分) 11KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Maticsoft.DBUtility;//Please add references
using System.IO;
using System.Globalization;
using System.Collections;

namespace HLW.web.ShopCat
{
    public partial class Edit : System.Web.UI.Page
    {
        private BLL.Channel bll = new BLL.Channel();
        private Model.Channel model = new Model.Channel();
        public int kindId; //种类
        public int classId;//ID
        public int pId = 0;
        public string ImgPic = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (int.TryParse(Request.Params["c_id"], out classId))
                {
                    catId.Value = Request.Params["c_id"];
                    model = bll.GetModel(classId);
                    pId = (int)model.c_pid;
                    if (!Page.IsPostBack)
                    {
                        //数据绑定
                        ShowInfo(model);
                    }
                }
                else
                {

                    Coolite.Ext.Web.Ext.MessageBox.Alert("提示", "参数不正确!").Show();
                }
            }
        }
        private string getCatID(int pid)
        {
            string str = "0";
            BLL.Channel bll = new BLL.Channel();
            DataSet ds = bll.GetList(" c_pid=" + pid + " order by c_sort ");
            DataTable dt = ds.Tables[0];
            if (dt.Rows.Count > 0)
            {
                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    if (i == 0)
                    {
                        str = dt.Rows[i]["c_id"].ToString();
                    }
                    else
                    {
后面还有 294 行代码,购买后查看完整代码

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

AI 解读

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

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