/// <summary>
    /// 获取档案文件目录
    /// </summary>
    /// <returns></returns>
    protected string getFileInfo()
    {
        TOaArchivesDirectoryVo objArchiverDirectory = new TOaArchivesDirectoryVo();

        objArchiverDirectory.IS_USE = "0";
        DataTable dtDirectory = new TOaArchivesDirectoryLogic().SelectByTable(objArchiverDirectory);

        return(LigerGridTreeDataToJson(dtDirectory, "PARENT_ID='0'", "ID", "PARENT_ID", "DIRECTORY_NAME"));
    }
    /// <summary>
    /// 更新节点
    /// </summary>
    /// <returns></returns>
    protected string editRoot()
    {
        TOaArchivesDirectoryVo    objArchiverDirectory      = new TOaArchivesDirectoryVo();
        TOaArchivesDirectoryLogic objArchiverDirectoryLogic = new TOaArchivesDirectoryLogic();

        objArchiverDirectory.ID             = Request.QueryString["id"];
        objArchiverDirectory.IS_USE         = "0";
        objArchiverDirectory.DIRECTORY_NAME = Request.QueryString["name"];
        if (objArchiverDirectoryLogic.Edit(objArchiverDirectory))
        {
            WriteLog("编辑文件目录", "", LogInfo.UserInfo.USER_NAME + "编辑文件目录" + objArchiverDirectory.ID);
            return("true");
        }
        return("false");
    }
 /// <summary>
 /// 删除文档目录(级联删除其所有子目录)
 /// </summary>
 /// <returns></returns>
 protected string delRoot()
 {
     if (!string.IsNullOrEmpty(Request.QueryString["id"]))
     {
         TOaArchivesDirectoryVo objArchiverDirectory = new TOaArchivesDirectoryVo();
         objArchiverDirectory.IS_USE = "0";
         DataTable dtDirectory = new TOaArchivesDirectoryLogic().SelectByTable(objArchiverDirectory);
         string    strAllID    = GetAllSonByParent(dtDirectory, "PARENT_ID='" + Request.QueryString["id"] + "'", "ID", "PARENT_ID", "DIRECTORY_NAME");
         strAllID = strAllID.Length > 0 ? (Request.QueryString["id"] + "," + strAllID) : Request.QueryString["id"];
         if (strAllID != "" && new TOaArchivesDirectoryLogic().DeleteTran(strAllID))
         {
             WriteLog("删除文档目录及其子目录", "", LogInfo.UserInfo.USER_NAME + "删除文档目录及其子目录");
             return("true");
         }
     }
     return("false");
 }
    /// <summary>
    /// 添加文档目录
    /// </summary>
    /// <returns>返回Json</returns>
    protected string addRoot()
    {
        TOaArchivesDirectoryVo    objArchiverDirectory      = new TOaArchivesDirectoryVo();
        TOaArchivesDirectoryLogic objArchiverDirectoryLogic = new TOaArchivesDirectoryLogic();

        objArchiverDirectory.PARENT_ID = Request.QueryString["parent_id"];
        objArchiverDirectory.IS_USE    = "0";
        //生成子目录序号
        try
        {
            objArchiverDirectory.NUM = (Int32.Parse(objArchiverDirectoryLogic.getNum(objArchiverDirectory)) + 1).ToString();
        }
        catch
        {
            objArchiverDirectory.NUM = "1";
        }
        objArchiverDirectory.DIRECTORY_NAME = "新建文件夹" + objArchiverDirectory.NUM;
        objArchiverDirectory.ID             = GetSerialNumber("t_oa_archives_directoty_id");
        if (objArchiverDirectoryLogic.Create(objArchiverDirectory))
        {
            WriteLog("添加文件目录", "", LogInfo.UserInfo.USER_NAME + "添加文件目录" + objArchiverDirectory.ID);
        }
        return(ToJson(objArchiverDirectory));
    }