Web/Managers/basemanage/BBPic_add.aspx.cs

(开头部分) 4KB

这里只显示每个文件的开头 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 BBPic_add : Web.Managers.MasterPage
    {
        BBaoBaoPicAdmin ibp = new BBaoBaoPicAdmin();
        public int iCanlayer;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!base.IsPostBack)
            {
                MTableSet mts = (new BTableSet()).GetModel("BaoBaoPicAdmin");
                if (mts != null)
                {
                    //Product
                    MTableSet mtso = new BTableSet().GetModel("BaoBaoPicAdmin");
                    if (mtso != null)
                    {
                        iCanlayer = mtso.SortLayer;
                    }
                    AdvanceField(mts.FieldList, base.GetTopSiteSettingsModel());
                }
                bindsort();
                ltname.Text = base.MenuName;

                if (base.Request.QueryString["id"] != null && Funs.isInt2(base.Request.QueryString["id"].ToString()))
                {
                    ltaction.Text = base.Request.QueryString["id"].ToString();
                    MBaoBaoPicAdmin mpt = ibp.GetModel(int.Parse(base.Request.QueryString["id"].ToString()));
                    if (mpt == null)
                    {
                        base.ShowMsg(this, "不存在的项!");
                        return;
                    }
                    base.SelectDropDownList(ref ddlparentid, mpt.BB_BaoBaoId.ToString());
                    this.uploadUrl0.Value = mpt.BB_Pic;

                }
                else
                {
                    ltaction.Text = "add";
                }
            }
        }
        public bool GetValue(MBaoBaoPicAdmin model)
        {
            if ((ddlparentid.SelectedValue == null) || (ddlparentid.SelectedValue == string.Empty))
            {
                base.ShowMsg(this, "请选择分类!");
                return false;
后面还有 88 行代码,解锁后查看完整代码

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

AI 解读

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

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