예제 #1
0
    /// <summary>
    /// 删除和移动顺序操作
    /// </summary>
    protected void Operation()
    {
        string Action = Request.QueryString["Action"];

        mF.Id = StringDeal.ToInt(Request.QueryString["Id"]);
        if (!String.IsNullOrEmpty(Action))
        {
            if (Action == "down" || Action == "up")
            {
                bF.FieldMove(mF, Action);
            }
            else if (Action == "del")
            {
                mF = bF.GetTableAndField(mF);//字段名与表名
                bF.FieldDel(mF);
                HXD.ModelField.BLL.Field   bf = new HXD.ModelField.BLL.Field();
                HXD.ModelField.Model.Field mf = new HXD.ModelField.Model.Field();
                mf.TableName = mF.TableName;
                mf.Name      = mF.Field;
                bf.Val       = mf;
                bf.DeleteXml();
            }
            Response.Redirect("Field_Manage.aspx?TableId=" + TableId + "", true);
        }
    }
예제 #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        LoginCheck.AdminManage();
        bField       bF = new bField();
        mField       mF = new mField();
        bMenu        bM = new bMenu();
        GetAttribute ga = new GetAttribute();

        mF.Id = StringDeal.ToInt(Request.QueryString["Id"]); //字段ID
        mF    = bF.GetTableAndField(mF);                     //字段名与表名

        ga.FieldType = Request.QueryString["Type"];          //字段类型
        ga.TableName = mF.TableName;
        ga.Field     = mF.Field;
        ga.dsList    = (DataSet)bM.MenuList(); //.MenuList();
        ga.Attribute();                        //输入字段属性配置信息
    }