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

            if (rowsCount > 0)
            {
                MobileSoft.Model.Common.Tb_Common_CommunityService model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new MobileSoft.Model.Common.Tb_Common_CommunityService();
                    //model.InfoId=dt.Rows[n]["InfoId"].ToString();
                    model.OrganCode = dt.Rows[n]["OrganCode"].ToString();
                    model.DepCode   = dt.Rows[n]["DepCode"].ToString();
                    model.Title     = dt.Rows[n]["Title"].ToString();
                    model.Content   = dt.Rows[n]["Content"].ToString();
                    model.UserCode  = dt.Rows[n]["UserCode"].ToString();
                    if (dt.Rows[n]["IssueDate"].ToString() != "")
                    {
                        model.IssueDate = DateTime.Parse(dt.Rows[n]["IssueDate"].ToString());
                    }
                    model.InfoTypeName = dt.Rows[n]["InfoTypeName"].ToString();
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public void Update(MobileSoft.Model.Common.Tb_Common_CommunityService model)
 {
     dal.Update(model);
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int  Add(MobileSoft.Model.Common.Tb_Common_CommunityService model)
 {
     return(dal.Add(model));
 }