protected void Page_Load(object sender, EventArgs e)
        {
            //IndexTemplate
            DataTable dt     = FileSystemObject.GetDTForTemplate();
            DataTable pageDT = pageBll.Sel();//加上design

            if (pageDT.Rows.Count > 0)
            {
                DataRow desdr = dt.NewRow();
                desdr["id"]    = 10000;
                desdr["type"]  = 5;
                desdr["rname"] = "可视设计";
                desdr["name"]  = "可视设计";
                desdr["pid"]   = 0;
                dt.Rows.InsertAt(desdr, 1);
                for (int i = 0; i < pageDT.Rows.Count; i++)
                {
                    DataRow child = dt.NewRow();
                    child["type"]  = 6;
                    child["path"]  = pageDT.Rows[i]["ID"];
                    child["rname"] = "可视设计_" + pageDT.Rows[i]["PageName"];
                    child["name"]  = "可视设计_" + pageDT.Rows[i]["PageName"];
                    child["pid"]   = 10000;
                    dt.Rows.InsertAt(child, 2);
                }
            }
            TempList_RPT.DataSource = dt;
            TempList_RPT.DataBind();
        }
Example #2
0
 private void DPBind()
 {
     TempList_RPT.DataSource = FileSystemObject.GetDTForTemplate();
     TempList_RPT.DataBind();
 }