Web/Managers/basemanage/ns_add.aspx.cs

(开头部分) 6KB

这里只显示每个文件的开头 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 System.Data;
using Common;

namespace Web.Managers.basemanage
{
    public partial class ns_add : Web.Managers.MasterPage
    {
        BCompanySort ibc = new BCompanySort();
        public int iCanLayer;
        protected void Page_Load(object sender, EventArgs e)
        {
            MTableSet mts = (new BTableSet()).GetModel("CompanySort");
            MSiteSettings mss=base.GetTopSiteSettingsModel();
            iCanLayer = mts.SortLayer;
            if (!base.IsPostBack)
            {
                bindsort();
                AdvanceField(mts.FieldList, mss);
                ltname.Text = base.MenuName;
                if (base.Request.QueryString["id"] != null && Funs.isInt2(base.Request.QueryString["id"].ToString()))
                {
                    lbback.Visible = true;
                    MCompanySort mcs = ibc.GetModel(int.Parse(base.Request.QueryString["id"].ToString()));
                    ltaction.Text = mcs.NS_Id.ToString();
                    base.SelectDropDownList(ref ddlparentid, mcs.NS_ParentId.ToString());
                    tbname.Text = mcs.NS_Name;
                    tbmodel.Text = mcs.NS_Model;
                    tbtitle.Text = mcs.NS_Title;
                    tbkeywords.Text = mcs.NS_Keywords;
                    tbdescription.Text = mcs.NS_Description;
                    uploadUrl0.Value = mcs.NS_Pic;
                    uploadUrl1.Value = mcs.NS_Pic2;
                    tburl.Text = mcs.NS_Url;
                    tbcontent.Text = mcs.NS_Memo;
                }
                else
                {
                    ltaction.Text = "add";
                    tburl.Text = mts.FilePath + (ibc.GetMaxId() + 1).ToString();
                    if (base.Request.QueryString["add"] != null && Funs.isInt2(base.Request.QueryString["add"].ToString()))
                    {
                        base.SelectDropDownList(ref ddlparentid, base.Request.QueryString["add"].ToString());
                    }
                }
            }
        }
        private void bindsort()
        {
            int sortlayer = iCanLayer;
            DataTable dt = null;
            switch (sortlayer)
            {
后面还有 149 行代码,解锁后查看完整代码

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

AI 解读

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

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