/// <summary>
        /// 获得数据列表
        /// </summary>
        public List <Dianda.Model.Document_Folder> DataTableToList(DataTable dt)
        {
            List <Dianda.Model.Document_Folder> modelList = new List <Dianda.Model.Document_Folder>();
            int rowsCount = dt.Rows.Count;

            if (rowsCount > 0)
            {
                Dianda.Model.Document_Folder model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new Dianda.Model.Document_Folder();
                    if (dt.Rows[n]["ID"].ToString() != "")
                    {
                        model.ID = int.Parse(dt.Rows[n]["ID"].ToString());
                    }
                    model.FolderName = dt.Rows[n]["FolderName"].ToString();
                    if (dt.Rows[n]["UpID"].ToString() != "")
                    {
                        model.UpID = int.Parse(dt.Rows[n]["UpID"].ToString());
                    }
                    model.Types  = dt.Rows[n]["Types"].ToString();
                    model.UserID = dt.Rows[n]["UserID"].ToString();
                    if (dt.Rows[n]["ProjectID"].ToString() != "")
                    {
                        model.ProjectID = int.Parse(dt.Rows[n]["ProjectID"].ToString());
                    }
                    if (dt.Rows[n]["IsShare"].ToString() != "")
                    {
                        model.IsShare = int.Parse(dt.Rows[n]["IsShare"].ToString());
                    }
                    if (dt.Rows[n]["DELFLAG"].ToString() != "")
                    {
                        model.DELFLAG = int.Parse(dt.Rows[n]["DELFLAG"].ToString());
                    }
                    if (dt.Rows[n]["DATETIME"].ToString() != "")
                    {
                        model.DATETIME = DateTime.Parse(dt.Rows[n]["DATETIME"].ToString());
                    }
                    model.COLUMNSPATH = dt.Rows[n]["COLUMNSPATH"].ToString();
                    if (dt.Rows[n]["SHUNXU"].ToString() != "")
                    {
                        model.SHUNXU = int.Parse(dt.Rows[n]["SHUNXU"].ToString());
                    }
                    model.IMAGEURL = dt.Rows[n]["IMAGEURL"].ToString();
                    model.PNAMES   = dt.Rows[n]["PNAMES"].ToString();
                    model.SizeOf   = dt.Rows[n]["SizeOf"].ToString();
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public void Update(Dianda.Model.Document_Folder model)
 {
     dal.Update(model);
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int  Add(Dianda.Model.Document_Folder model)
 {
     return(dal.Add(model));
 }