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

            if (rowsCount > 0)
            {
                Dianda.Model.FaceShowMessage model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new Dianda.Model.FaceShowMessage();
                    if (dt.Rows[n]["ID"].ToString() != "")
                    {
                        model.ID = int.Parse(dt.Rows[n]["ID"].ToString());
                    }
                    model.URLS     = dt.Rows[n]["URLS"].ToString();
                    model.NewsType = dt.Rows[n]["NewsType"].ToString();
                    if (dt.Rows[n]["DATETIME"].ToString() != "")
                    {
                        model.DATETIME = DateTime.Parse(dt.Rows[n]["DATETIME"].ToString());
                    }
                    if (dt.Rows[n]["ReadTime"].ToString() != "")
                    {
                        model.ReadTime = DateTime.Parse(dt.Rows[n]["ReadTime"].ToString());
                    }
                    if (dt.Rows[n]["IsRead"].ToString() != "")
                    {
                        model.IsRead = int.Parse(dt.Rows[n]["IsRead"].ToString());
                    }
                    model.Receive   = dt.Rows[n]["Receive"].ToString();
                    model.FromTable = dt.Rows[n]["FromTable"].ToString();
                    model.NewsID    = dt.Rows[n]["NewsID"].ToString();
                    if (dt.Rows[n]["ProjectID"].ToString() != "")
                    {
                        model.ProjectID = int.Parse(dt.Rows[n]["ProjectID"].ToString());
                    }
                    if (dt.Rows[n]["DELFLAG"].ToString() != "")
                    {
                        model.DELFLAG = int.Parse(dt.Rows[n]["DELFLAG"].ToString());
                    }
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public void Update(Dianda.Model.FaceShowMessage model)
 {
     dal.Update(model);
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int  Add(Dianda.Model.FaceShowMessage model)
 {
     return(dal.Add(model));
 }