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();
        }
    }
    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();
        }
    }
Example #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     LoginCheck.AdminManage();
     mM.Id        = StringDeal.ToInt(Request.QueryString["Id"]);
     mM.Temp      = "Model_Field";
     Arry_Field   = bM.GetMenuField(mM, mM.Id).Split('|');                         //获取此信息编辑所需字段
     mM.Temp      = "Model_List";
     Arry_List    = bM.GetMenuField(mM, mM.Id).Split('|');                         //获取此信息列表所显示字段
     mM.Temp      = "Model";
     mF.TableName = bT.GetTableName(StringDeal.ToInt(bM.GetMenuField(mM, mM.Id))); //获取模型表名
     if (!IsPostBack)
     {
         SetBind();
     }
     else
     {
         SetSave();
     }
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        LoginCheck.AdminManage();
        TableId = StringDeal.ToInt(Request.QueryString["TableId"]);
        Id      = StringDeal.ToInt(Request.QueryString["Id"]);
        mF.Id   = Id;
        bTable bT = new bTable();

        mF.TableName = bT.GetTableName(TableId);
        if (!IsPostBack)
        {
            this.TableName.Text = mF.TableName;
            FieldRead();
        }
        else
        {
            FieldSave();
        }
    }