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

            if (rowsCount > 0)
            {
                MobileSoft.Model.HSPR.Tb_HSPR_IncidentRegional model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new MobileSoft.Model.HSPR.Tb_HSPR_IncidentRegional();
                    //model.RegionalID=dt.Rows[n]["RegionalID"].ToString();
                    if (dt.Rows[n]["CommID"].ToString() != "")
                    {
                        model.CommID = int.Parse(dt.Rows[n]["CommID"].ToString());
                    }
                    if (dt.Rows[n]["RegionalNum"].ToString() != "")
                    {
                        model.RegionalNum = int.Parse(dt.Rows[n]["RegionalNum"].ToString());
                    }
                    model.RegionalPlace = dt.Rows[n]["RegionalPlace"].ToString();
                    model.RegionalName  = dt.Rows[n]["RegionalName"].ToString();
                    model.RegionalMemo  = dt.Rows[n]["RegionalMemo"].ToString();
                    if (dt.Rows[n]["IsDelete"].ToString() != "")
                    {
                        model.IsDelete = int.Parse(dt.Rows[n]["IsDelete"].ToString());
                    }
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public void Update(MobileSoft.Model.HSPR.Tb_HSPR_IncidentRegional model)
 {
     dal.Update(model);
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public void Add(MobileSoft.Model.HSPR.Tb_HSPR_IncidentRegional model)
 {
     dal.Add(model);
 }