/// <summary>
        /// 获得数据列表
        /// </summary>
        public List <ROYcms.Sys.Model.ROYcms_Dissertation> GetModelList(string strWhere)
        {
            DataSet ds = dal.GetList(strWhere);
            List <ROYcms.Sys.Model.ROYcms_Dissertation> modelList = new List <ROYcms.Sys.Model.ROYcms_Dissertation>();
            int rowsCount = ds.Tables[0].Rows.Count;

            if (rowsCount > 0)
            {
                ROYcms.Sys.Model.ROYcms_Dissertation model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new ROYcms.Sys.Model.ROYcms_Dissertation();
                    if (ds.Tables[0].Rows[n]["id"].ToString() != "")
                    {
                        model.id = int.Parse(ds.Tables[0].Rows[n]["id"].ToString());
                    }
                    model.dissertation_name    = ds.Tables[0].Rows[n]["dissertation_name"].ToString();
                    model.dissertation_content = ds.Tables[0].Rows[n]["dissertation_content"].ToString();
                    model.templet_url          = ds.Tables[0].Rows[n]["templet_url"].ToString();
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public void Update(ROYcms.Sys.Model.ROYcms_Dissertation model)
 {
     dal.Update(model);
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int  Add(ROYcms.Sys.Model.ROYcms_Dissertation model)
 {
     return(dal.Add(model));
 }