Example #1
0
 public geOS_MapEntity(geOS_MapEntity Entidad)
 {
     this._Conexion   = Entidad.Connection;
     this._nIdEntidad = Entidad.Id;
     this._sTheme     = Entidad._sTheme;
     this._sGeocode   = Entidad._sGeocode;
 }
Example #2
0
        /// <summary>
        /// CARGA UN MAPA EN LA VENTANA.
        /// SE CARGAN LAS CAPAS VECTORIALES Y RASTER DE LA VIEW QUE SE PASA COMO PARAMETRO NO LA VIEW DE DEFECTO DEL USUARIO
        /// </summary>
        /// <param name="Connection">HANDLE DE LA CONEXION AL ETG</param>
        /// <param name="bUserEnv">SI SE CARGAN O NO LOS PARÁMETROS DE ENTORNO DEL USUARIO</param>
        /// <param name="sView">CODIGO DE LA VIEW (CAPAS VECTORIALES Y RASTER) A MOSTRAR</param>
        /// <returns></returns>
        public bool AttachView(geOS_EtgConnection Connection, bool bUserEnv, string sView)
        {
            Int16 nEntorno = bUserEnv ? (Int16)1 : (Int16)0;

            this._Conexion = Connection;

            this._nIdMapa = geOS_Gestor.AttachWindowVista(this._Conexion.ConnectionId, this.Handle.ToInt32(), nEntorno, sView);
            return(this._nIdMapa >= 0);
        }
        /// <summary>
        /// LIBERA UN CONJUNTO DE ENTIDADES
        /// </summary>
        public void Free()
        {
            if (this._Conexion != null && this._nIdEntidades >= 0)
            {
                geOS_Gestor.FreeEntidades(this._Conexion.ConnectionId, this._nIdEntidades);
            }

            this._nIdEntidades = -1;
            this._Conexion     = null;
        }
Example #4
0
        public geOS_MapEntity(geOS_EtgConnection Conexion, Int32 nIdEntidad)
        {
            this._Conexion   = Conexion;
            this._nIdEntidad = nIdEntidad;

            string sThemeAux   = new string(' ', 100);
            string sGeocodeAux = new string(' ', 100);

            if (this.GetParams(ref sThemeAux, ref sGeocodeAux))
            {
                this._sTheme   = sThemeAux;
                this._sGeocode = sGeocodeAux;
            }
        }
Example #5
0
        /// <summary>
        /// BORRA UNA ENTIDAD (DEBE PERTENECER AL TEMA QUE SE ESTÁ EDITANDO ACTUALMENTE
        /// </summary>
        /// <param name="Mapa">VENTANA DE MAPA DONDE SE ESTÁ EDITANDO</param>
        /// <param name="bIncTransaction">SI SE DESEA INCREMENTAR LA TRANSACCIÓN DE EDICIÓN</param>
        /// <returns></returns>
        public bool Delete(geOS_MapWindow Mapa, bool bIncTransaction)
        {
            if (this._Conexion.ConnectionId < 0 || this._nIdEntidad < 0 || Mapa.MapId < 0)
            {
                return(false);
            }

            bool bRetorno = geOS_Gestor.BorrarEntidad(this._Conexion.ConnectionId, Mapa.MapId, this._nIdEntidad, bIncTransaction);

            // Una vez borrada la entidad ya no es válida
            this._nIdEntidad = -1;
            this._Conexion   = null;
            return(bRetorno);
        }
Example #6
0
 public geOS_MapWindow()
 {
     this._nIdMapa  = -1;
     this._Conexion = null;
 }
 public geOS_MapEntities(geOS_MapEntities Entidades)
 {
     this._Conexion     = Entidades.Connection;
     this._nIdEntidades = Entidades.Id;
 }
 public geOS_MapEntities(geOS_EtgConnection Conexion, Int32 nIdEntidades)
 {
     this._Conexion     = Conexion;
     this._nIdEntidades = nIdEntidades;
 }