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

            if (rowsCount > 0)
            {
                Hownet.Model.SumReoprtMain model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new Hownet.Model.SumReoprtMain();
                    if (dt.Rows[n]["ID"] != null && dt.Rows[n]["ID"].ToString() != "")
                    {
                        model.ID = int.Parse(dt.Rows[n]["ID"].ToString());
                    }
                    if (dt.Rows[n]["TypeID"] != null && dt.Rows[n]["TypeID"].ToString() != "")
                    {
                        model.TypeID = int.Parse(dt.Rows[n]["TypeID"].ToString());
                    }
                    if (dt.Rows[n]["DateTime"] != null && dt.Rows[n]["DateTime"].ToString() != "")
                    {
                        model.DateTime = DateTime.Parse(dt.Rows[n]["DateTime"].ToString());
                    }
                    if (dt.Rows[n]["OneDate"] != null && dt.Rows[n]["OneDate"].ToString() != "")
                    {
                        model.OneDate = DateTime.Parse(dt.Rows[n]["OneDate"].ToString());
                    }
                    if (dt.Rows[n]["TwoDate"] != null && dt.Rows[n]["TwoDate"].ToString() != "")
                    {
                        model.TwoDate = DateTime.Parse(dt.Rows[n]["TwoDate"].ToString());
                    }
                    model.Remark = dt.Rows[n]["Remark"].ToString();
                    if (dt.Rows[n]["UpData"] != null && dt.Rows[n]["UpData"].ToString() != "")
                    {
                        model.UpData = int.Parse(dt.Rows[n]["UpData"].ToString());
                    }
                    if (dt.Rows[n]["VerifyMan"] != null && dt.Rows[n]["VerifyMan"].ToString() != "")
                    {
                        model.VerifyMan = int.Parse(dt.Rows[n]["VerifyMan"].ToString());
                    }
                    if (dt.Rows[n]["VerifyDate"] != null && dt.Rows[n]["VerifyDate"].ToString() != "")
                    {
                        model.VerifyDate = DateTime.Parse(dt.Rows[n]["VerifyDate"].ToString());
                    }
                    if (dt.Rows[n]["FillMan"] != null && dt.Rows[n]["FillMan"].ToString() != "")
                    {
                        model.FillMan = int.Parse(dt.Rows[n]["FillMan"].ToString());
                    }
                    if (dt.Rows[n]["IsVerify"] != null && dt.Rows[n]["IsVerify"].ToString() != "")
                    {
                        model.IsVerify = int.Parse(dt.Rows[n]["IsVerify"].ToString());
                    }
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(Hownet.Model.SumReoprtMain model)
 {
     return(dal.Update(model));
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int Add(Hownet.Model.SumReoprtMain model)
 {
     return(dal.Add(model));
 }