/// <summary>
        /// 得到一个对象实体
        /// </summary>
        public MobileSoft.Model.HSPR.Tb_HSPR_IncidentLocation GetModel(long LocationID)
        {
            SqlParameter[] parameters =
            {
                new SqlParameter("@LocationID", SqlDbType.BigInt)
            };
            parameters[0].Value = LocationID;

            MobileSoft.Model.HSPR.Tb_HSPR_IncidentLocation model = new MobileSoft.Model.HSPR.Tb_HSPR_IncidentLocation();
            DataSet ds = DbHelperSQL.RunProcedure("Proc_Tb_HSPR_IncidentLocation_GetModel", parameters, "ds");

            if (ds.Tables[0].Rows.Count > 0)
            {
                if (ds.Tables[0].Rows[0]["LocationID"].ToString() != "")
                {
                    model.LocationID = long.Parse(ds.Tables[0].Rows[0]["LocationID"].ToString());
                }
                if (ds.Tables[0].Rows[0]["CommID"].ToString() != "")
                {
                    model.CommID = int.Parse(ds.Tables[0].Rows[0]["CommID"].ToString());
                }
                model.LocationName = ds.Tables[0].Rows[0]["LocationName"].ToString();
                if (ds.Tables[0].Rows[0]["LocationNum"].ToString() != "")
                {
                    model.LocationNum = int.Parse(ds.Tables[0].Rows[0]["LocationNum"].ToString());
                }
                if (ds.Tables[0].Rows[0]["RegionalID"].ToString() != "")
                {
                    model.RegionalID = long.Parse(ds.Tables[0].Rows[0]["RegionalID"].ToString());
                }
                if (ds.Tables[0].Rows[0]["IsDelete"].ToString() != "")
                {
                    model.IsDelete = int.Parse(ds.Tables[0].Rows[0]["IsDelete"].ToString());
                }
                return(model);
            }
            else
            {
                return(null);
            }
        }
        /// <summary>
        ///  更新一条数据
        /// </summary>
        public void Update(MobileSoft.Model.HSPR.Tb_HSPR_IncidentLocation model)
        {
            int rowsAffected;

            SqlParameter[] parameters =
            {
                new SqlParameter("@LocationID",   SqlDbType.BigInt,    8),
                new SqlParameter("@CommID",       SqlDbType.Int,       4),
                new SqlParameter("@LocationName", SqlDbType.NVarChar, 50),
                new SqlParameter("@LocationNum",  SqlDbType.Int,       4),
                new SqlParameter("@RegionalID",   SqlDbType.BigInt,    8),
                new SqlParameter("@IsDelete",     SqlDbType.Int, 4)
            };
            parameters[0].Value = model.LocationID;
            parameters[1].Value = model.CommID;
            parameters[2].Value = model.LocationName;
            parameters[3].Value = model.LocationNum;
            parameters[4].Value = model.RegionalID;
            parameters[5].Value = model.IsDelete;

            DbHelperSQL.RunProcedure("Proc_Tb_HSPR_IncidentLocation_Update", parameters, out rowsAffected);
        }