using System.Collections.Generic;
using System.Reflection;
using System.Data;
partial class ViewFolder: System.Web.UI.Page
{
protected void Page_Load(object sender, System.EventArgs e)
{
if (!Page.IsPostBack)
{
GetNotes();
}
}
private void GetNotes()
{
//根節點
TreeNode tn=new TreeNode("我的文檔", "0", this.ControlPath + "images/folder0.gif");
int FolderControlID = DocumentController.GetTabId(this.PortalId, "ViewDocument");
tn.NavigateUrl = Globals.NavigateURL(FolderControlID, "", "FolderId=0");
TreeFolder.Nodes.Add(tn);
DataTable dt=null;
try
{
dt = DocumentController.GetListFolder(UserId);
}
catch (Exception exc)
{
//Module failed to load
Exceptions.ProcessModuleLoadException(this, exc);
}
//增加子節點
IntiTree(TreeFolder.Nodes , dt, 0);
TreeNode dustbin = new TreeNode("垃圾箱", "-1");
dustbin.ImageUrl = this.ControlPath + "images/Dustbin.gif