Beispiel #1
0
        /// <summary>
        /// Obtiene la descripcion del ubigeo de forma horizontal
        /// </summary>
        /// <param name="codRegistroUbigeo"></param>
        /// <returns></returns>
        public string ObtenerUbigeo(string codRegistroUbigeo)
        {
            string desUbigeoGenerado = String.Empty;

            try
            {
                using (_DBMLMaestrosDataContext tablaDetalleDC = new _DBMLMaestrosDataContext(conexion))
                {
                    tablaDetalleDC.omgc_P_Registro_Ubigeo
                    (
                        codRegistroUbigeo,
                        ref desUbigeoGenerado
                    );
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(desUbigeoGenerado);
        }
Beispiel #2
0
        /// <summary>
        /// Obtiene todos los nombres de ubigeos por el codigo de argumento ingresado
        /// </summary>
        /// <param name="prm_CodigoArgumento">Código ARGUMENTO de la Tabla</param>
        /// <param name="prm_Idioma">Tipo de Idioma</param>
        public string ObtenerUbigeo(string prm_CodigoUBIGEO)
        {
            string UBIGEOGenerado = String.Empty;

            try
            {
                using (_DBMLMaestrosDataContext tablaDetalleDC = new _DBMLMaestrosDataContext(conexion))
                {
                    tablaDetalleDC.omgc_P_Registro_Ubigeo
                    (
                        prm_CodigoUBIGEO,
                        ref UBIGEOGenerado
                    );    //
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(UBIGEOGenerado);
        }