Web/Managers/basemanage/p_add.aspx.cs

(开头部分) 13KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Bll;
using Model;
using Common;

namespace Web.Managers.basemanage
{
    public partial class p_add : Web.Managers.MasterPage
    {
        BProduct ibp = new BProduct();
        public int iCanlayer;
        
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!base.IsPostBack)
            {
                MTableSet mts = (new BTableSet()).GetModel("Product");
                if (mts != null)
                {
                   
                    MTableSet mtso=new BTableSet().GetModel("ProductSort");
                    if(mtso!=null)
                    {
                        iCanlayer=mtso.SortLayer;
                    }
                    AdvanceField(mts.FieldList, base.GetTopSiteSettingsModel());
                }
                bindsort();
                ltname.Text = base.MenuName;
                tburl.Text = base.GetFileName();
                if(base.Request.QueryString["id"] != null && Funs.isInt2(base.Request.QueryString["id"].ToString()))
                {
                    ltaction.Text = base.Request.QueryString["id"].ToString();
                    MProduct mpt = ibp.GetModel(int.Parse(base.Request.QueryString["id"].ToString()));
                    if (mpt == null)
                    {
                        base.ShowMsg(this,"不存在的项!");
                        return;
                    }

                    base.SelectDropDownList(ref ddlparentid, mpt.P_SortId.ToString());
                    this.tbname.Text = mpt.P_Name;
                    this.tbname2.Text = mpt.P_Name2;
                    this.tbtitle.Text = mpt.P_Title;
                    this.tbkeywords.Text = mpt.P_Keywords;
                    this.tbdescription.Text = mpt.P_Description;
                    this.uploadSize0.Value = mpt.P_Size;
                    this.uploadUrl0.Value = mpt.P_Pic;
                    this.uploadSize1.Value = mpt.P_Size2;
                    this.uploadUrl1.Value = mpt.P_Pic2;
                    this.uploadSize2.Value = mpt.P_AttachSize;
                    this.uploadUrl2.Value = mpt.P_AttachName;
                    this.tbclick.Text = mpt.P_Click.ToString();
                    this.tbkey.Text = mpt.P_Key;
                    this.tbprice.Text = mpt.P_Price.ToString();
后面还有 365 行代码,解锁后查看完整代码

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

AI 解读

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

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