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

            if (rowsCount > 0)
            {
                Dianda.Model.Document_Folder_Share model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new Dianda.Model.Document_Folder_Share();
                    if (dt.Rows[n]["ID"].ToString() != "")
                    {
                        model.ID = int.Parse(dt.Rows[n]["ID"].ToString());
                    }
                    if (dt.Rows[n]["FolderID"].ToString() != "")
                    {
                        model.FolderID = int.Parse(dt.Rows[n]["FolderID"].ToString());
                    }
                    model.ShareForUser = dt.Rows[n]["ShareForUser"].ToString();
                    if (dt.Rows[n]["DATETIME"].ToString() != "")
                    {
                        model.DATETIME = DateTime.Parse(dt.Rows[n]["DATETIME"].ToString());
                    }
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public void Update(Dianda.Model.Document_Folder_Share model)
 {
     dal.Update(model);
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int  Add(Dianda.Model.Document_Folder_Share model)
 {
     return(dal.Add(model));
 }