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

            if (rowsCount > 0)
            {
                MobileSoft.Model.HSPR.Tb_HSPR_CorpIncidentType model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new MobileSoft.Model.HSPR.Tb_HSPR_CorpIncidentType();
                    //model.CorpTypeID=dt.Rows[n]["CorpTypeID"].ToString();
                    model.TypeCode = dt.Rows[n]["TypeCode"].ToString();
                    model.TypeName = dt.Rows[n]["TypeName"].ToString();
                    if (dt.Rows[n]["DealLimit"].ToString() != "")
                    {
                        model.DealLimit = int.Parse(dt.Rows[n]["DealLimit"].ToString());
                    }
                    if (dt.Rows[n]["ReserveHint"].ToString() != "")
                    {
                        model.ReserveHint = int.Parse(dt.Rows[n]["ReserveHint"].ToString());
                    }
                    model.TypeMemo = dt.Rows[n]["TypeMemo"].ToString();
                    if (dt.Rows[n]["IsTreeRoot"].ToString() != "")
                    {
                        model.IsTreeRoot = int.Parse(dt.Rows[n]["IsTreeRoot"].ToString());
                    }
                    if (dt.Rows[n]["IsDelete"].ToString() != "")
                    {
                        model.IsDelete = int.Parse(dt.Rows[n]["IsDelete"].ToString());
                    }
                    model.IncidentPlace = dt.Rows[n]["IncidentPlace"].ToString();
                    if (dt.Rows[n]["DealLimit2"].ToString() != "")
                    {
                        model.DealLimit2 = int.Parse(dt.Rows[n]["DealLimit2"].ToString());
                    }
                    if (dt.Rows[n]["ClassID"].ToString() != "")
                    {
                        model.ClassID = int.Parse(dt.Rows[n]["ClassID"].ToString());
                    }
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public void Update(MobileSoft.Model.HSPR.Tb_HSPR_CorpIncidentType model)
 {
     dal.Update(model);
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public void Add(MobileSoft.Model.HSPR.Tb_HSPR_CorpIncidentType model)
 {
     dal.Add(model);
 }