Пример #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        LoginCheck.AdminManage();
        if (!IsPostBack)
        {
            bTable bT     = new bTable();
            string Action = Request.QueryString["Action"];
            if (Action == "del")
            {
                mTable mT = new mTable();
                mT.Id = StringDeal.ToInt(Request.QueryString["Id"]);
                if (bT.GetIsSystem(mT))
                {
                    StringDeal.Alter("此模型为系统模型禁止删除!");
                }
                mT.TableName = bT.GetTableName(mT.Id);
                bT.TableDel(mT);
                HXD.ModelField.BLL.Table bt = new HXD.ModelField.BLL.Table();
                bt.DeleteXml(mT);
            }

            DBList.DataSource = bT.TableList();
            DBList.DataBind();
        }
    }
Пример #2
0
    /// <summary>
    /// 栏目模型绑定(获取所需字段)
    /// </summary>
    protected void SetBind()
    {
        DataSet ds = bF.FieldList(mF);//获取此信息模型字段

        DBList.DataSource = ds;
        DBList.DataBind();
    }
Пример #3
0
    /// <summary>
    /// 栏目模型绑定(获取栏目所需字段)
    /// </summary>
    protected void MenuSetBind()
    {
        mMF.Temp = "0";
        DataSet ds = bMF.MenuFieldList(mMF);//获取此栏目的模型字段

        DBList.DataSource = ds;
        DBList.DataBind();
    }
Пример #4
0
    /// <summary>
    /// 栏目模型绑定(获取栏目所需字段)
    /// </summary>
    protected void MenuBind()
    {
        GetFiledId();
        DataSet ds = bMF.MenuFieldList(mMF);//获取此栏目的模型字段

        DBList.DataSource = ds;
        DBList.DataBind();
    }
Пример #5
0
    /// <summUry>
    /// 绑定用户列表
    /// </summUry>
    protected void UserBind()
    {
        SgqPage pg = new SgqPage();

        pg.PageIndex      = Pages;
        pg.PageSize       = 30;
        pg.dt             = bU.UserList(mU).Tables[0];
        DBList.DataSource = pg.DataSource();
        DBList.DataBind();
        this.PageView.Text = pg.PageView1();
    }
Пример #6
0
    public void Databaseler()
    {
        string     query   = "SELECT * FROM DB";
        SqlCommand command = new SqlCommand(query, connection);

        connection.Open();
        SqlDataReader read = command.ExecuteReader();

        DBList.DataSource = read;
        DBList.DataBind();
        connection.Close();
    }
Пример #7
0
    /// <summary>
    /// 绑定管理员列表
    /// </summary>
    protected void AdminBind()
    {
        bAdmin  bA = new bAdmin();
        SgqPage pg = new SgqPage();

        pg.PageIndex      = Pages;
        pg.PageSize       = 30;
        pg.dt             = bA.AdminList().Tables[0];
        DBList.DataSource = pg.DataSource();
        DBList.DataBind();
        this.PageView.Text = pg.PageView1();
    }
Пример #8
0
    protected void Page_Load(object sender, EventArgs e)
    {
        LoginCheck.AdminManage(null);
        int Id = StringDeal.ToInt(Request.QueryString["Id"]);

        if (Id == 0)
        {
            Id = b.GetChannelFirstParentId(Session["AdminManage"].ToString());
        }
        Titles            = b.GetChannelTitle(Id);
        DBList.DataSource = b.GetChannelMenu(Id, Session["AdminManage"].ToString())[0].Tables[0];
        DBList.DataBind();
    }
Пример #9
0
    protected void Page_Load(object sender, EventArgs e)
    {
        LoginCheck.AdminManage();
        TableId = StringDeal.ToInt(Request.QueryString["TableId"]);
        bTable bT = new bTable();

        mF.TableName = bT.GetTableName(TableId);

        if (!IsPostBack)
        {
            Operation();
            DBList.DataSource = bF.FieldList(mF);
            DBList.DataBind();
        }
    }
Пример #10
0
    protected void Page_Load(object sender, EventArgs e)
    {
        LoginCheck.AdminManage(null);
        UserName = Session["AdminManage"].ToString();
        bChannel b = new bChannel();

        DBList.DataSource = b.GetChannelMenu(0, UserName)[0].Tables[0];
        DBList.DataBind();

        mAdmin mA = new mAdmin();
        bAdmin bA = new bAdmin();

        mA.UserName = UserName;
        if (!bA.GetAdminEditPwd(mA))
        {
            this.EditPwdId.Visible = false;
        }
    }