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

            if (rowsCount > 0)
            {
                LYSC.CompanyWeb.Model.HKSJ_Employees model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new LYSC.CompanyWeb.Model.HKSJ_Employees();
                    if (dt.Rows[n]["ID"] != null && dt.Rows[n]["ID"].ToString() != "")
                    {
                        model.ID = int.Parse(dt.Rows[n]["ID"].ToString());
                    }
                    if (dt.Rows[n]["title"] != null && dt.Rows[n]["title"].ToString() != "")
                    {
                        model.title = dt.Rows[n]["title"].ToString();
                    }
                    if (dt.Rows[n]["content"] != null && dt.Rows[n]["content"].ToString() != "")
                    {
                        model.content = dt.Rows[n]["content"].ToString();
                    }
                    if (dt.Rows[n]["people"] != null && dt.Rows[n]["people"].ToString() != "")
                    {
                        model.people = dt.Rows[n]["people"].ToString();
                    }
                    if (dt.Rows[n]["date"] != null && dt.Rows[n]["date"].ToString() != "")
                    {
                        model.date = DateTime.Parse(dt.Rows[n]["date"].ToString());
                    }
                    if (dt.Rows[n]["status"] != null && dt.Rows[n]["status"].ToString() != "")
                    {
                        model.status = int.Parse(dt.Rows[n]["status"].ToString());
                    }
                    if (dt.Rows[n]["MainPeople"] != null && dt.Rows[n]["MainPeople"].ToString() != "")
                    {
                        model.MainPeople = dt.Rows[n]["MainPeople"].ToString();
                    }
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(LYSC.CompanyWeb.Model.HKSJ_Employees model)
 {
     return(dal.Update(model));
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int  Add(LYSC.CompanyWeb.Model.HKSJ_Employees model)
 {
     return(dal.Add(model));
 }