Example #1
0
 public void ProcessRequest(HttpContext context)
 {
     treeJson = DatabaseMng.GetTreeJson();
     context.Response.Clear();
     context.Response.Write(treeJson);
     context.Response.End();
 }
Example #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            #region 接收参数
            strModelGuid = Request["ModelGuid"] == null ? "" : Request["ModelGuid"];
            strOpt       = Request["Opt"] == null ? "" : Request["Opt"];
            #endregion
            treeJson = "";
            #region 初始化
            GetDBConnection();
            treeJson = DatabaseMng.GetTreeJson();

            #endregion

            switch (strOpt)
            {
            case "buildtable":
                BuildTable();
                break;

            case "inserttable":
                InsertTable();
                break;

            case "updatetable":
                UpdateTable();
                break;

            case "tableattr":
                TableAttr();
                break;

            case "insertcolumn":
                InsertColumn();
                break;

            case "updatecolumn":
                UpdateColumn();
                break;

            case "columnattr":
                ColumnAttr();
                break;
            }
        }