private void Cargar(Acciones accion)
    {
        switch (accion)
        {
        case Acciones.Inicio:
            configurarCaracteresAceptadosBusqueda(true, true);

            ConfigurarAreaRseGlobal();

            HiddenField_TIPO_BUSQUEDA_ACTUAL.Value = "INICIAL";
            HiddenField_FILTRO_DROP.Value          = String.Empty;
            HiddenField_FILTRO_DATO.Value          = String.Empty;

            iniciar_seccion_de_busqueda();

            cargar_GridView_RESULTADOS_BUSQUEDA();
            break;

        case Acciones.Cargar:
            Cargar_DropDownList_Tipo(DropDownList_Tipo);
            Cargar_DropDownList_Sector(DropDownList_Sector);
            Cargar_DropDownList_EstadoActividad(DropDownList_EstadoActividad);
            break;

        case Acciones.Nuevo:
            Cargar_DropDownList_Tipo(DropDownList_Tipo);
            Cargar_DropDownList_Sector(DropDownList_Sector);
            break;
        }
    }
Exemplo n.º 2
0
    private void Activar(Acciones accion)
    {
        switch (accion)
        {
        case Acciones.Nuevo:
            RadioButtonList_TIPO_GARGO.Enabled    = true;
            DropDownList_EMPRESA_USUARIA.Enabled  = true;
            DropDownList_GRUPOS_PRIMARIOS.Enabled = true;
            TextBox_NOMBRE_CARGO_NUEVO.Enabled    = true;
            TextBox_FUNCIONES_CARGO.Enabled       = true;
            TextBox_RESPONSABILIDADES.Enabled     = true;
            TextBox_OBLIGACIONES.Enabled          = true;
            CheckBox_COMISIONA.Enabled            = true;
            break;

        case Acciones.Modificar:
            RadioButtonList_TIPO_GARGO.Enabled   = true;
            DropDownList_EMPRESA_USUARIA.Enabled = true;

            DropDownList_GRUPOS_PRIMARIOS.Enabled = true;

            TextBox_NOMBRE_CARGO_NUEVO.Enabled = true;
            TextBox_FUNCIONES_CARGO.Enabled    = true;
            TextBox_RESPONSABILIDADES.Enabled  = true;
            TextBox_OBLIGACIONES.Enabled       = true;
            CheckBox_COMISIONA.Enabled         = true;

            DropDownList_ESTADO.Enabled = true;
            break;
        }
    }
Exemplo n.º 3
0
 private void abmPagoRecibo(Acciones accion)
 {
     if (accion == Acciones.agregar)
     {
         if (!gt.agregarPagoRecibo(getPagoReciboDelForm()))
         {
             MessageBox.Show("Ocurrió un error al generar el recibo");
         }
         else
         {
             MessageBox.Show("Recibo agregado correctamente");
         }
     }
     //else if (accion == Acciones.modificar)
     //{
     //    if (!gi.modificarInscripcion(getInscripcionDelForm()))
     //        MessageBox.Show("Ocurrió un error al modificar la inscripción");
     //    else
     //        MessageBox.Show("Datos modificados correctamente");
     //}
     //else if (accion == Acciones.eliminar)
     //{
     //    if (!gi.eliminarInscripcion(getInscripcionDelForm()))
     //        MessageBox.Show("Ocurrió un error al eliminar la inscripción");
     //    else
     //        MessageBox.Show("Inscripción eliminado correctamente");
     //}
 }
Exemplo n.º 4
0
        private void CrearAccion(ref Acciones acciones)
        {
            try
            {
                acciones.Etapa             = cmbATipo.SelectedValue;
                acciones.EtapaStr          = cmbATipo.Text;
                acciones.Dias              = txtADias.Value;
                acciones.Tipo_Respuesta    = cmbTPregunta.SelectedValue;
                acciones.Tipo_RespuestaStr = cmbTPregunta.Text;
                acciones.Pregunta          = txtPregunta.Text;
                acciones.Respuestas        = new ArrayList();
                acciones.RespuestasStr     = "";

                int columna_respuesta = rgRespuestas.Columns.FindByUniqueName("Respuesta").OrderIndex - 2;
                foreach (GridDataItem gdi in rgRespuestas.Items)
                {
                    acciones.Respuestas.Add((gdi.Cells[columna_respuesta].FindControl("lblRespuesta") as Label).Text);
                    acciones.RespuestasStr += (gdi.Cells[columna_respuesta].FindControl("lblRespuesta") as Label).Text + ", ";
                }
                if (acciones.RespuestasStr != null)
                {
                    if (acciones.RespuestasStr != "")
                    {
                        acciones.RespuestasStr = acciones.RespuestasStr.Substring(0, acciones.RespuestasStr.Length - 2);
                    }
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemplo n.º 5
0
        protected void imgAgregar_Click(object sender, ImageClickEventArgs e)
        {
            try
            {
                Acciones acciones;
                if (rgRespuestas.Items.Count == 0 && cmbTPregunta.SelectedValue == "M")
                {
                    Alerta("No se han capturado respuestas");
                    return;
                }

                if (txtGUIDAccion.Text == "")
                {
                    acciones      = new Acciones();
                    acciones.GUID = Guid.NewGuid().ToString();
                    CrearAccion(ref acciones);
                    list_acciones.Add(acciones);
                }
                else
                {
                    acciones = list_acciones.Where(Acciones => Acciones.GUID == txtGUIDAccion.Text).ToList()[0];
                    CrearAccion(ref acciones);
                }


                rgAcciones.Rebind();
                LimpiarAcciones();
            }
            catch (Exception ex)
            {
                ErrorManager(ex, new System.Diagnostics.StackTrace().GetFrame(0).GetMethod().Name);
            }
        }
Exemplo n.º 6
0
    private void Desactivar(Acciones accion)
    {
        switch (accion)
        {
        case Acciones.Inicio:
            TextBox_FCH_CRE.Enabled = false;
            TextBox_FCH_MOD.Enabled = false;
            TextBox_HOR_CRE.Enabled = false;
            TextBox_HOR_MOD.Enabled = false;
            TextBox_USU_CRE.Enabled = false;
            TextBox_USU_MOD.Enabled = false;

            RadioButtonList_TIPO_GARGO.Enabled    = false;
            DropDownList_EMPRESA_USUARIA.Enabled  = false;
            DropDownList_GRUPOS_PRIMARIOS.Enabled = false;

            TextBox_NOMBRE_CARGO_NUEVO.Enabled = false;
            TextBox_FUNCIONES_CARGO.Enabled    = false;

            TextBox_RESPONSABILIDADES.Enabled = false;
            TextBox_OBLIGACIONES.Enabled      = false;

            CheckBox_COMISIONA.Enabled = false;

            DropDownList_ESTADO.Enabled = false;
            break;
        }
    }
    private void Cargar(Acciones accion)
    {
        switch (accion)
        {
        case Acciones.Inicio:
            cargar_GridView_RESULTADOS_BUSQUEDA();
            break;

        case Acciones.NuevoContrato:
            HiddenField_REGISTRO_CONTRATO.Value = "";

            TextBox_NUMERO_CONTRATO.Text = "";

            cargar_DropDownList_TIPO_SERVICIO_RESPECTIVO();
            TextBox_DetalleServicioRespectivo.Text = "";

            CheckBox_FIRMADO.Checked = false;

            CheckBox_ENVIO_CTE.Checked      = false;
            HiddenField_ACCION_GRILLA.Value = AccionesGrilla.Ninguna.ToString();

            GridView_HistorialEnvios.DataSource = null;
            GridView_HistorialEnvios.DataBind();

            HiddenField_ACCION_GRILLA.Value            = AccionesGrilla.Ninguna.ToString();
            HiddenField_FILA_SELECCIONADA_GRILLA.Value = "";
            break;
        }
    }
Exemplo n.º 8
0
        public Boolean editarAcciones(Acciones acciones)
        {
            Boolean       respuesta  = false;
            SqlConnection connection = null;
            DataTable     dt         = new DataTable();

            try
            {
                using (connection = Conexion.ObtieneConexion("ConexionBD"))
                {
                    SqlDataReader consulta;
                    connection.Open();

                    var parametros = new[]
                    {
                        ParametroAcceso.CrearParametro("@idAccion", SqlDbType.VarChar, acciones.idAccion, ParameterDirection.Input),
                        ParametroAcceso.CrearParametro("@descripcion", SqlDbType.VarChar, acciones.descripcion, ParameterDirection.Input)
                    };
                    consulta = Ejecuta.ProcedimientoAlmacenado(connection, "Seguridad.ActualizarAccionesSP", parametros);
                    dt.Load(consulta);
                    connection.Close();
                    respuesta = true;
                }
            }
            catch (Exception e)
            {
                respuesta = false;
                Console.WriteLine(e);
            }
            return(respuesta);
        }
    private void Cargar(Acciones accion)
    {
        DataTable dataTable = new DataTable();

        switch (accion)
        {
        case Acciones.Inicio:
            cliente _cliente = new cliente(Session["idEmpresa"].ToString(), Session["USU_LOG"].ToString());
            dataTable = _cliente.ObtenerTodasLasEmpresasActivas();
            Cargar(dataTable, this.DropDownList_empresas, "ID_EMPRESA", "RAZ_SOCIAL");


            dataTable = _cliente.ObtenerEmpresaConIdEmpresa(Convert.ToDecimal(this.HiddenField_ID_EMPRESA.Value));
            Cargar(dataTable);

            usuario _usuario = new usuario(Session["idEmpresa"].ToString());
            dataTable = _usuario.ObtenerEmpleadosRestriccionEmpresas();
            Cargar(dataTable, this.DropDownList_usuario, "Id_Usuario", "NOMBRE_EMPLEADO");

            parametro _parametro = new parametro(Session["idEmpresa"].ToString());
            dataTable = _parametro.ObtenerParametrosPorTabla(tabla.PARAMETROS_UNIDAD_NEGOCIO);
            Cargar(dataTable, this.DropDownList_unidad_negocio, "codigo", "descripcion");

            Cargar(GridView_unidades_negocio);
            break;
        }
        if (dataTable == null)
        {
            dataTable.Dispose();
        }
    }
Exemplo n.º 10
0
        public Jugadores JugadoresControlerAsync(Acciones accion, Jugadores jugadores)
        {
            JugadoresControler jugadoresControler = new JugadoresControler();
            var Jugador = jugadoresControler.HttpConection(accion, jugadores);

            return(Jugador);
        }
Exemplo n.º 11
0
    private void Cargar(Acciones accion)
    {
        switch (accion)
        {
        case Acciones.Inicio:
            cargarGrillaCategorias();

            HiddenField_ID_CATEGORIA_SEL.Value = "";
            HiddenField_ID_PREGUNTA_SEL.Value  = "";
            HiddenField_PROCESO.Value          = ProcesoForm.Inicio.ToString();
            break;

        case Acciones.ModificarPreg:
            HiddenField_ACCION_GRILLA.Value            = AccionesGrilla.Ninguna.ToString();
            HiddenField_FILA_SELECCIONADA_GRILLA.Value = "";
            HiddenField_ID_PREGUNTA.Value = "";
            HiddenField_PREGUNTA.Value    = "";

            HiddenField_PROCESO.Value         = ProcesoForm.EditarPreg.ToString();
            HiddenField_ID_PREGUNTA_SEL.Value = "";

            break;

        case Acciones.ModificarCat:
            HiddenField_ACCION_GRILLA_CAT.Value = AccionesGrilla.Ninguna.ToString();
            HiddenField_PROCESO.Value           = ProcesoForm.EditarCat.ToString();
            break;
        }
    }
    private void Ocultar(Acciones accion)
    {
        switch (accion)
        {
        case Acciones.Inicio:
            Panel_INFO_ADICIONAL_MODULO.Visible = false;
            Panel_FORM_BOTONES.Visible          = false;
            Button_GUARDAR.Visible   = false;
            Button_MODIFICAR.Visible = false;
            Button_CANCELAR.Visible  = false;

            Panel_DICCIONARIO.Visible           = false;
            Button_NUEVA_COMPETENCIA.Visible    = false;
            Button_GUARDAR_COMPETENCIA.Visible  = false;
            Button_CANCELAR_COMPETENCIA.Visible = false;

            Panel_FORM_BOTONES_ABAJO.Visible = false;
            Button_GUARDAR_1.Visible         = false;
            Button_MODIFICAR_1.Visible       = false;
            Button_CANCELAR_1.Visible        = false;

            GridView_COMPETENCIAS.Columns[0].Visible = false;
            GridView_COMPETENCIAS.Columns[1].Visible = false;
            break;

        case Acciones.Modificar:
            break;
        }
    }
Exemplo n.º 13
0
        private void buttonGuardar_Click(object sender, EventArgs e)
        {
            Model.Usuarios User = new Model.Usuarios();

            User.UserId     = textBoxUsuario.Text;
            User.Nombre     = textBoxNombre.Text;
            User.Apellido   = textBoxApellido.Text;
            User.Contrasena = textBoxPassword.Text;
            User.direccion  = textBoxDireccion.Text;
            User.telefono   = textBoxTelefono.Text;
            if (textBoxStatus.Text == "")
            {
                User.estatus = true;
            }
            else
            {
                User.estatus = status;
            }
            User.Tipo = comboBoxTipo.Text;
            if (Acciones.NuevoUser(User))
            {
                MessageBox.Show("Usuario creado exitosamente");
                limpiar();
            }
            else
            {
            }
        }
Exemplo n.º 14
0
    //se crea una funcion para tomar la distancia player zombie
    public virtual void Reaccionar()
    {
        Vector3 direc;
        int     distMax = 5;
        float   distMin = 1.0f;


        foreach (GameObject go in GameManager.npcList)
        {
            if (go != null)
            {
                float distanceTarget = Vector3.Distance(transform.position, go.transform.position);
                if (go.GetComponent <Player>() || go.GetComponent <Citizen>())
                {
                    if (distanceTarget <= distMax)
                    {
                        if (distanceTarget >= distMin)
                        {
                            StopCoroutine(fade());
                            Actions = Acciones.Reaccionar;
                            direc   = Vector3.Normalize(go.transform.position - gameObject.transform.position);
                            gameObject.transform.position += direc * 0.04f;
                            transform.LookAt(go.transform);
                            target = true;
                        }
                    }
                }
            }
        }
    }
Exemplo n.º 15
0
    private void Limpiar(Acciones accion)
    {
        switch (accion)
        {
        case Acciones.Nuevo:
            HiddenField_ID_FUENTE.Value = "";
            TextBox_NOM_FUENTE.Text     = "";
            TextBox_DIR_FUENTE.Text     = "";
            TextBox_ENCARGADO.Text      = "";
            TextBox_CARGO_ENC.Text      = "";
            TextBox_TEL_FUENTE.Text     = "";
            TextBox_EMAIL_CONTACTO.Text = "";

            DropDownList_REGIONAL.Items.Clear();
            DropDownList_DEPARTAMENTO.Items.Clear();
            DropDownList_CIUDAD.Items.Clear();
            TextBox_Observaciones.Text = "";

            break;

        case Acciones.NuevoCargo:
            TextBox_BUSCADOR_CARGO.Text = "";
            DropDownList_ID_OCUPACION.Items.Clear();
            TextBox_Cargo_Comentario.Text = "";
            break;

        case Acciones.NuevaComunicacion:
            TextBox_fecha.Text = "";
            TextBox_Comentarios_comunicacion.Text = "";
            TextBox_Cargo_Comentario.Text         = "";
            break;
        }
    }
Exemplo n.º 16
0
    private void Cargar(Acciones accion)
    {
        switch (accion)
        {
        case Acciones.Inicio:
            configurarCaracteresAceptadosBusqueda(true, true);

            HiddenField_TIPO_BUSQUEDA_ACTUAL.Value = "SIN_FILTRO";
            HiddenField_FILTRO_DROP.Value          = String.Empty;
            HiddenField_FILTRO_DATO.Value          = String.Empty;

            iniciar_seccion_de_busqueda();

            cargar_GridView_RESULTADOS_BUSQUEDA();
            break;

        case Acciones.Nuevo:
            cargar_DropDownList_REGIONAL();
            inhabilitar_DropDownList_DEPARTAMENTO();
            inhabilitar_DropDownList_CIUDAD();
            break;

        case Acciones.NuevoCargo:
            DropDownList_ID_OCUPACION.Items.Add(new ListItem("Seleccione...", ""));
            break;

        case Acciones.NuevaComunicacion:
            TextBox_fecha.Text = DateTime.Now.ToShortDateString();
            break;
        }
    }
Exemplo n.º 17
0
        static void Main(string[] args)
        {
            var consola = new Consola();
            var lienzo  = new Lienzo();
            var toolbar = new Toolbar();

            var    paint = new Paint(lienzo, toolbar, consola);
            var    exit  = false;
            string input = "";

            do
            {
                paint.Consola.Escribir(paint.MostrarAcciones());
                input = paint.Consola.Leer();
                Acciones accion = (Acciones)Convert.ToInt32(input);

                if (accion == Acciones.Nueva)
                {
                    paint.NuevaFigura();
                }
                else if (accion == Acciones.Ver)
                {
                    var figuras = paint.VerFiguras();
                    paint.Consola.Escribir(figuras);
                }
                else if (accion == Acciones.Salir)
                {
                    exit = true;
                }
            } while (!exit);
        }
Exemplo n.º 18
0
    private void Mostrar(Acciones accion)
    {
        switch (accion)
        {
        case Acciones.Encontrar:
            Panel_RESULTADOS_GRID.Visible = true;
            break;

        case Acciones.Cargar:
            Panel_DATOS_RETIROS.Visible = true;
            Button_CANCELAR.Visible     = true;
            Button_MODIFICAR.Visible    = true;

            if ((string.IsNullOrEmpty(TextBox_fecha_retiro.Text) == false) && (string.IsNullOrEmpty(TextBox_fecha_liquidacion.Text) == true) && (TextBox_activo.Text.ToUpper() == "S"))
            {
                Button_RevertirRetiro.Visible = true;
            }
            else
            {
                Button_RevertirRetiro.Visible = false;
            }
            break;

        case Acciones.Editar:
            Button_CANCELAR.Visible  = true;
            Button_MODIFICAR.Visible = true;
            break;

        case Acciones.Actualizar:
            Panel_DATOS_RETIROS.Visible = true;
            Button_GUARDAR.Visible      = true;
            Button_CANCELAR.Visible     = true;
            break;
        }
    }
Exemplo n.º 19
0
        public List <Acciones> getAllAcciones()
        {
            List <Acciones> acciones   = new List <Acciones>();
            SqlConnection   connection = null;
            DataTable       dt         = new DataTable();

            try
            {
                using (connection = Conexion.ObtieneConexion("ConexionBD"))
                {
                    SqlDataReader consulta;
                    connection.Open();
                    consulta = Ejecuta.ProcedimientoAlmacenado(connection, "Seguridad.ConsultaAccionesSP");

                    dt.Load(consulta);
                    connection.Close();
                }
                foreach (DataRow row in dt.Rows)
                {
                    Acciones acci = new Acciones();
                    acci.idAccion    = Convert.ToInt32(row["idAccion"].ToString());
                    acci.descripcion = row["descripcion"].ToString();
                    acci.estatus     = Convert.ToBoolean(row["estatus"].ToString());

                    acciones.Add(acci);
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
            return(acciones);
        }
Exemplo n.º 20
0
    private void Ocultar(Acciones accion)
    {
        switch (accion)
        {
        case Acciones.Inicio:
            this.Panel_INFO_ADICIONAL_MODULO.Visible   = false;
            this.Panel_FORM_BOTONES_ENCABEZADO.Visible = false;
            this.Panel_RESULTADOS_GRID.Visible         = false;
            this.Panel_CONTROL_REGISTRO.Visible        = false;
            this.Panel_FORMULARIO.Visible       = false;
            this.Panel_requisitos.Visible       = false;
            this.Panel_FORM_BOTONES_PIE.Visible = false;

            Button_GUARDAR.Visible     = false;
            Button_CANCELAR.Visible    = false;
            Button_GUARDAR_1.Visible   = false;
            Button_CANCELAR_1.Visible  = false;
            Button_MODIFICAR.Visible   = true;
            Button_MODIFICAR_1.Visible = false;
            break;

        case Acciones.Modifica:
            Panel_CONTROL_REGISTRO.Visible = false;

            Button_GUARDAR.Visible   = false;
            Button_MODIFICAR.Visible = false;
            Button_CANCELAR.Visible  = false;

            Button_GUARDAR_1.Visible   = false;
            Button_MODIFICAR_1.Visible = false;
            Button_CANCELAR_1.Visible  = false;
            break;
        }
    }
    private void Mostrar(Acciones accion)
    {
        switch (accion)
        {
        case Acciones.Inicio:
            Button_NUEVO.Visible = true;
            break;

        case Acciones.Adicionar:
            Panel_FORMULARIO.Visible     = true;
            Panel_unidad_negocio.Visible = true;

            Button_GUARDAR.Visible  = true;
            Button_CANCELAR.Visible = true;
            break;

        case Acciones.Guardar:
            Panel_FORMULARIO.Visible = true;
            Button_NUEVO.Visible     = true;
            Panel_empresas_unidad_negocio.Visible = true;
            break;

        case Acciones.Cancelar:
            Panel_FORMULARIO.Visible = true;
            Button_NUEVO.Visible     = true;
            Panel_empresas_unidad_negocio.Visible = true;
            break;
        }
    }
        public async System.Threading.Tasks.Task <JObject> EnviarMensajesAsync(JObject data)
        {
            MensajesTexto nuevo = data.ToObject <MensajesTexto>();
            await Acciones.EnviarMensajeTextoAsync(nuevo);

            return(JObject.FromObject(nuevo));
        }
Exemplo n.º 23
0
    private void Cargar(Acciones accion)
    {
        switch (accion)
        {
        case Acciones.Inicio:
            configurarCaracteresAceptadosBusqueda(true, true);

            HiddenField_TIPO_BUSQUEDA_ACTUAL.Value = "SIN_FILTRO";
            HiddenField_FILTRO_DROP.Value          = String.Empty;
            HiddenField_FILTRO_DATO.Value          = String.Empty;

            iniciar_seccion_de_busqueda();
            break;

        case Acciones.Nuevo:
            HiddenField_ID_OCUPACION.Value = String.Empty;

            Cargar_DropDownList_GRUPOS_PRIMARIOS_EnBlanco();

            RadioButtonList_TIPO_GARGO.SelectedIndex = -1;

            TextBox_NOMBRE_CARGO_NUEVO.Text = "";
            TextBox_FUNCIONES_CARGO.Text    = "";

            TextBox_OBLIGACIONES.Text      = "";
            TextBox_RESPONSABILIDADES.Text = "";

            CheckBox_COMISIONA.Checked = false;
            break;

        case Acciones.Modificar:
            TextBox_BUSCADOR_CARGO.Text = "";
            break;
        }
    }
Exemplo n.º 24
0
    private void Activar(Acciones accion)
    {
        switch (accion)
        {
        case Acciones.SeleccionCiudad:
            TextBox_PresupuestoEnero.Enabled      = true;
            TextBox_PresupuestoFebrero.Enabled    = true;
            TextBox_PresupuestoMarzo.Enabled      = true;
            TextBox_PresupuestoAbril.Enabled      = true;
            TextBox_PresupuestoMayo.Enabled       = true;
            TextBox_PresupuestoJunio.Enabled      = true;
            TextBox_PresupuestoJulio.Enabled      = true;
            TextBox_PresupuestoAgosto.Enabled     = true;
            TextBox_PresupuestoSeptiembre.Enabled = true;
            TextBox_PresupuestoOctubre.Enabled    = true;
            TextBox_PresupuestoNoviembre.Enabled  = true;
            TextBox_PresupuestoDiciembre.Enabled  = true;
            break;

        case Acciones.Actualizar:
            TextBox_PresupuestoEnero.Enabled      = true;
            TextBox_PresupuestoFebrero.Enabled    = true;
            TextBox_PresupuestoMarzo.Enabled      = true;
            TextBox_PresupuestoAbril.Enabled      = true;
            TextBox_PresupuestoMayo.Enabled       = true;
            TextBox_PresupuestoJunio.Enabled      = true;
            TextBox_PresupuestoJulio.Enabled      = true;
            TextBox_PresupuestoAgosto.Enabled     = true;
            TextBox_PresupuestoSeptiembre.Enabled = true;
            TextBox_PresupuestoOctubre.Enabled    = true;
            TextBox_PresupuestoNoviembre.Enabled  = true;
            TextBox_PresupuestoDiciembre.Enabled  = true;
            break;
        }
    }
    private void Activar(Acciones accion)
    {
        switch (accion)
        {
        case Acciones.ModificarContrato:
            TextBox_NUMERO_CONTRATO.Enabled = true;
            TextBox_fecha_vencimiento_contrato_comercial.Enabled = true;
            TextBox_inicio_contrato_comercial.Enabled            = true;

            DropDownList_TIPO_SERVICIO_RESPECTIVO.Enabled = true;
            TextBox_DetalleServicioRespectivo.Enabled     = true;

            CheckBox_FIRMADO.Enabled   = true;
            CheckBox_ENVIO_CTE.Enabled = true;
            break;

        case Acciones.NuevoContrato:
            TextBox_NUMERO_CONTRATO.Enabled = true;

            TextBox_fecha_vencimiento_contrato_comercial.Enabled = true;
            TextBox_inicio_contrato_comercial.Enabled            = true;


            DropDownList_TIPO_SERVICIO_RESPECTIVO.Enabled = true;
            TextBox_DetalleServicioRespectivo.Enabled     = true;

            CheckBox_FIRMADO.Enabled   = true;
            CheckBox_ENVIO_CTE.Enabled = true;
            break;
        }
    }
Exemplo n.º 26
0
        public Jugadores HttpConection(Acciones accion, Jugadores jugadores)
        {
            Jugadores ojugadores = new Jugadores();

            try
            {
                var j = JsonConvert.SerializeObject(jugadores);
                switch (accion)
                {
                case Acciones.Get:
                    ojugadores = get(jugadores);
                    break;

                case Acciones.Gets:
                    break;

                case Acciones.Post:
                    ojugadores = Post(jugadores);
                    break;

                case Acciones.Put:
                    break;

                case Acciones.Delete:
                    break;

                default:
                    return(null);
                }
            }catch (Exception ex)
            {
                var j = JsonConvert.SerializeObject(jugadores);
            }
            return(ojugadores);
        }
    private void Desactivar(Acciones accion)
    {
        switch (accion)
        {
        case Acciones.Inicio:
            TextBox_FCH_CRE.Enabled = false;
            TextBox_FCH_MOD.Enabled = false;
            TextBox_HOR_CRE.Enabled = false;
            TextBox_HOR_MOD.Enabled = false;
            TextBox_USU_CRE.Enabled = false;
            TextBox_USU_MOD.Enabled = false;

            TextBox_NUMERO_CONTRATO.Enabled = false;

            TextBox_fecha_vencimiento_contrato_comercial.Enabled = false;
            TextBox_inicio_contrato_comercial.Enabled            = false;

            DropDownList_TIPO_SERVICIO_RESPECTIVO.Enabled = false;
            TextBox_DetalleServicioRespectivo.Enabled     = false;

            CheckBox_FIRMADO.Enabled   = false;
            CheckBox_ENVIO_CTE.Enabled = false;
            break;
        }
    }
Exemplo n.º 28
0
	public IEnumerator SubirDeNivelCartaRoutine(string idCarta)
	{
		WWW www = Acciones.SubirDeNivelCarta(idCarta);
		yield return www;
		if (!string.IsNullOrEmpty(www.error))
		{
			//error.text = www.error;
			//error.color = Color.red;
			//if (error.text.Equals("400 Bad Request"))
			//{
			//	error.text = "Card can't level up more";
			//}
			//else
			//{
			//	error.text = "Error on server";
			//}
			Debug.Log(www.error);
			Debug.Log("EN ERROR SubirDeNivelCartaRoutine");
		}
		else
		{
			//Devuelve nuevamente las cartas del usuario actualizada con el nivel subido
			CartaDTO resultObj = JsonUtility.FromJson<CartaDTO>(www.text);
			for (int i = 0; i < resultObj.cartas.Count; i++)
			{
				Assets.Scripts.ServidorDTO.Carta carta = resultObj.cartas[i];
				//Cargar nuevamente el scroll de cartas
				//GameObject newText = (GameObject)Instantiate(myTextPrefab);
				//newText.transform.SetParent(myPanel);
				//newText.GetComponent<Text>().text = carta.ToString();
				//myNumber++;
			}
		}
	}
    private void Ocultar(Acciones accion)
    {
        switch (accion)
        {
        case Acciones.Inicio:
            Panel_INFO_ADICIONAL_MODULO.Visible = false;

            Panel_FORM_BOTONES.Visible = false;
            Button_NUEVO.Visible       = false;
            Button_MODIFICAR.Visible   = false;
            Button_GUARDAR.Visible     = false;
            Button_CANCELAR.Visible    = false;

            Panel_RESULTADOS_GRID.Visible = false;

            Panel_InformacionActividad.Visible = false;
            Panel_CONTROL_REGISTRO.Visible     = false;
            Panel_Actividad.Visible            = false;
            Panel_Estado.Visible = false;
            break;

        case Acciones.Modificar:
            Button_NUEVO.Visible     = false;
            Button_MODIFICAR.Visible = false;
            Button_GUARDAR.Visible   = false;
            Button_CANCELAR.Visible  = false;

            Panel_CONTROL_REGISTRO.Visible = false;
            break;
        }
    }
    private void Activar(Acciones accion)
    {
        switch (accion)
        {
        case Acciones.SinConf:
            RadioButtonList_TIPO_ENTREGA.Enabled = true;
            break;

        case Acciones.CON_ENTREGA:
            CheckBoxList_DOCUMENTOS_SELECCION.Enabled     = true;
            DropDownList_CONTACTO_SELECCION.Enabled       = true;
            CheckBoxList_DOCUEMENTOS_CONTRATACION.Enabled = true;
            DropDownList_CONTACTO_CONTRATACION.Enabled    = true;
            break;

        case Acciones.SEL_CON_ENTREGA:
            CheckBoxList_DOCUMENTOS_SELECCION.Enabled     = true;
            DropDownList_CONTACTO_SELECCION.Enabled       = true;
            CheckBoxList_DOCUEMENTOS_CONTRATACION.Enabled = true;
            DropDownList_CONTACTO_CONTRATACION.Enabled    = true;
            break;

        case Acciones.Modificar:
            RadioButtonList_TIPO_ENTREGA.Enabled          = true;
            CheckBoxList_DOCUMENTOS_SELECCION.Enabled     = true;
            DropDownList_CONTACTO_SELECCION.Enabled       = true;
            CheckBoxList_DOCUEMENTOS_CONTRATACION.Enabled = true;
            DropDownList_CONTACTO_CONTRATACION.Enabled    = true;
            break;
        }
    }
 private void Cargar(Acciones accion)
 {
     switch (accion)
     {
         case Acciones.Inicio:
             cargar_menu_botones_modulos_internos();
             break;
     }
 }
Exemplo n.º 32
0
 private void cuerpo()
 {
     Acciones acciones = new Acciones();
     System.Collections.ArrayList juegos = acciones.obtenerTodos();
     foreach(Juego juego in juegos){
         this.x = 25;
         this.y += 40;
         this.registro(juego);
     }
 }
Exemplo n.º 33
0
 /// <summary>
 /// Método que crea una Acción
 /// </summary>
 /// <param name="accion">Datos de la Acción</param>
 /// <returns>Id de confirmación</returns>
 public int CrearAccion(Acciones accion)
 {
     try
     {
         _modulOtecEntities.Acciones.Add(accion);
         _modulOtecEntities.SaveChanges();
         return accion.IdAccion;
     }
     catch (Exception)
     {
         return 0;
     }
     finally
     {
         _modulOtecEntities.Dispose();
     }
 }
Exemplo n.º 34
0
 /// <summary>
 /// Método que actualiza una Acción
 /// </summary>
 /// <param name="accion">Datos de la Acción</param>
 /// <returns>Id de confirmación</returns>
 public int ActualizarAccion(Acciones accion)
 {
     try
     {
         var original = _modulOtecEntities.Acciones.Find(accion.IdAccion);
         if (original == null) return 0;
         _modulOtecEntities.Entry(original).CurrentValues.SetValues(accion);
         return _modulOtecEntities.SaveChanges();
     }
     catch (Exception)
     {
         return 0;
     }
     finally
     {
         _modulOtecEntities.Dispose();
     }
 }
    private void Ocultar(Acciones accion)
    {
        switch (accion)
        {
            case Acciones.Inicio:
                Panel_INFO_ADICIONAL_MODULO.Visible = false;

                Panel_PresupuestoRegional.Visible = false;

                Panel_Ciudades.Visible = false;

                Panel_DetallesPorAnio.Visible = false;

                Panel_FORM_BOTONES_PIE.Visible = false;
                Button_MODIFICAR_1.Visible = false;
                Button_GUARDAR_1.Visible = false;
                Button_CANCELAR_1.Visible = false;
                break;
            case Acciones.SeleccionAnio:
                Panel_Ciudades.Visible = false;
                Panel_DetallesPorAnio.Visible = false;
                Panel_FORM_BOTONES_PIE.Visible = false;
                Button_MODIFICAR_1.Visible = false;
                Button_GUARDAR_1.Visible = false;
                Button_CANCELAR_1.Visible = false;
                break;
            case Acciones.SeleccionRegional:
                Panel_DetallesPorAnio.Visible = false;
                Panel_FORM_BOTONES_PIE.Visible = false;
                Button_MODIFICAR_1.Visible = false;
                Button_GUARDAR_1.Visible = false;
                Button_CANCELAR_1.Visible = false;
                break;
            case Acciones.SeleccionCiudad:
                Button_MODIFICAR_1.Visible = false;
                Button_GUARDAR_1.Visible = false;
                Button_CANCELAR_1.Visible = false;
                break;
            case Acciones.Actualizar:
                Button_MODIFICAR_1.Visible = false;
                Button_GUARDAR_1.Visible = false;
                Button_CANCELAR_1.Visible = false;
                break;
        }
    }
    private void Limpiar(Acciones accion)
    {
        switch(accion)
        {
            case Acciones.Nuevo:
                TextBox_NUM_DOC.Text = "";
                TextBox_NOMBRES.Text = "";
                TextBox_APELLIDOS.Text = "";
                TextBox_MOTIVO_REPORTE.Text = "";
                TextBox_MOTIVO_ESTADO.Text = "";

                HiddenField_REGISTRO_ACOSET.Value = "";
                break;
        }
    }
    private void Mostrar(Acciones accion)
    {
        switch (accion)
        {
            case Acciones.Inicio:
                Button_NUEVO.Visible = true;
                break;
            case Acciones.Adicionar:
                Panel_FORMULARIO.Visible = true;
                Panel_unidad_negocio.Visible = true;

                Button_GUARDAR.Visible = true;
                Button_CANCELAR.Visible = true;
                break;
            case Acciones.Guardar:
                Panel_FORMULARIO.Visible = true;
                Button_NUEVO.Visible = true;
                Panel_empresas_unidad_negocio.Visible = true;
                break;
            case Acciones.Cancelar:
                Panel_FORMULARIO.Visible = true;
                Button_NUEVO.Visible = true;
                Panel_empresas_unidad_negocio.Visible = true;
                break;
        }
    }
 private void Inactivar(Acciones accion)
 {
     switch (accion)
     {
         case Acciones.Modifica:
             RequiredFieldValidator_FileUpload_archivo.Enabled = false;
             break;
     }
 }
    private void Cargar(Acciones accion)
    {
        ListItem item = new ListItem("Ninguno", "0");
        parametro _parametro = new parametro(Session["idEmpresa"].ToString());

        switch (accion)
        {
            case Acciones.Inicio:
                DropDownList_BUSCAR.Items.Add(item);
                item = new ListItem("Número de documento", "NUMERO_DOCUMENTO");
                DropDownList_BUSCAR.Items.Add(item);
                item = new ListItem("Nombre", "NOMBRE");
                DropDownList_BUSCAR.Items.Add(item);
                DropDownList_BUSCAR.DataBind();

                Cargar(DropDownList_INC_CARENCIA, tabla.PARAMETROS_PERIODO_CARENCIA);
                Cargar(DropDownList_TIPO_INCA, tabla.PARAMETROS_TIPO_INCAPACIDAD);
                Cargar(DropDownList_SEVERO, tabla.PARAMETROS_CASO_SEVERO);
                Cargar(DropDownList_CLASE_INCA, tabla.PARAMETROS_CLASE_INCAPACIDAD);
                Cargar(DropDownList_PRORROGA, tabla.PARAMETROS_PRORROGA);
                Cargar(DropDownList_estado, tabla.PARAMETROS_ESTADO_INCAPACIDAD);
                Cargar(DropDownList_estado_tramite, tabla.PARAMETROS_ESTADO_INCAPACIDAD_TRAMITE);
                Cargar(DropDownList_tramitada_por, tabla.PARAMETROS_INCAPACIDAD_TRAMITADA_POR);
                break;
        }
    }
 private void Activar(Acciones accion)
 {
     switch (accion)
     {
         case Acciones.Adiciona:
             RequiredFieldValidator_FileUpload_archivo.Enabled = true;
             break;
     }
 }
 private void Ocultar(Acciones accion)
 {
     switch (accion)
     {
         case Acciones.Contratar:
             Panel_informacion_adicinal_contrato_indefinido.Visible = false;
             Panel_informacion_adicional_contrato_integral.Visible = false;
             Panel_informacion_adicional_aprendiz_universitario.Visible = false;
             Panel_informacion_adicinal_contrato_aprendiz_sena.Visible = false;
             break;
     }
 }
    private void Ocultar(Acciones accion)
    {
        switch (accion)
        {
            case Acciones.Inicio:
                Panel_INFO_ADICIONAL_MODULO.Visible = false;

                Panel_FORM_BOTONES_ENCABEZADO.Visible = false;
                Button_GUARDAR.Visible = false;
                Button_MODIFICAR.Visible = false;
                Button_Finalizar.Visible = false;
                Button_CANCELAR.Visible = false;
                Button_Volver.Visible = false;
                Button_CrearActividad.Visible = false;

                Panel_RESULTADOS_GRID.Visible = false;

                Panel_CompromioSeleccionado.Visible = false;
                Panel_SeguimientoCompromiso.Visible = false;
                Panel_NuevoAdjunto.Visible = false;
                Button_NuevoAdjunto.Visible = false;
                Button_GuardarAdjunto.Visible = false;
                Button_CancelarAdjunto.Visible = false;
                Button_FinalizarSeguimiento.Visible = false;

                Panel_FinalizarCompromiso.Visible = false;

                Panel_BOTONES_PIE.Visible = false;
                Button_Guardar_1.Visible = false;
                Button_Actualizar_1.Visible = false;
                Button_Finalizar_1.Visible = false;
                Button_Cancelar_1.Visible = false;
                Button_vOLVER_1.Visible = false;
                Button_CrearActividad_1.Visible = false;

                Panel_InfoActividad.Visible = false;

                break;
            case Acciones.Actualizar:
                Button_MODIFICAR.Visible = false;
                Button_Finalizar.Visible = false;
                Button_Volver.Visible = false;
                Button_GUARDAR.Visible = false;

                Panel_NuevoAdjunto.Visible = false;
                Button_GuardarAdjunto.Visible = false;
                Button_CancelarAdjunto.Visible = false;
                Button_FinalizarSeguimiento.Visible = false;

                Button_Actualizar_1.Visible = false;
                Button_Finalizar_1.Visible = false;
                Button_vOLVER_1.Visible = false;
                Button_Guardar_1.Visible = false;
                break;
            case Acciones.FinalizarCompromiso:
                Button_MODIFICAR.Visible = false;
                Button_Finalizar.Visible = false;
                Button_Volver.Visible = false;

                Button_Actualizar_1.Visible = false;
                Button_Finalizar_1.Visible = false;
                Button_vOLVER_1.Visible = false;

                break;
        }
    }
 private void Desactivar(Acciones accion)
 {
     switch (accion)
     {
         case Acciones.Inicio:
             DropDownList_Tipo.Enabled = false;
             DropDownList_Sector.Enabled = false;
             DropDownList_EstadoActividad.Enabled = false;
             TextBox_DescripcionActividad.Enabled = false;
             break;
     }
 }
    private void Cargar(Acciones accion)
    {
        switch (accion)
        {
            case Acciones.Inicio:

                ConfigurarAreaRseGlobal();

                CargarGrillaCompromisosPendientes();

                break;
        }
    }
    private void Cargar(Acciones accion)
    {
        switch (accion)
        {
            case Acciones.Inicio:
                configurarCaracteresAceptadosBusqueda(true, true);

                iniciar_seccion_de_busqueda();

                HiddenField_TIPO_BUSQUEDA_ACTUAL.Value = "SIN_FILTRO";
                HiddenField_FILTRO_DROP.Value = String.Empty;
                HiddenField_FILTRO_DATO.Value = String.Empty;
                break;
            case Acciones.Nuevo:
                cargar_DropDownList_TIPO_DOC();
                cargar_DropDownList_ENTIDAD_REPORTA();
                break;
        }
    }
    private void Ocultar(Acciones accion)
    {
        switch (accion)
        {
            case Acciones.Inicio:
                Panel_INFO_ADICIONAL_MODULO.Visible = false;

                Panel_FORM_BOTONES.Visible = false;
                Button_NUEVO.Visible = false;
                Button_NUEVO_1.Visible = false;
                Button_MODIFICAR.Visible = false;
                Button_MODIFICAR_1.Visible = false;
                Button_GUARDAR.Visible = false;
                Button_GUARDAR_1.Visible = false;
                Button_CANCELAR.Visible = false;
                Button_CANCELAR_1.Visible = false;
                Button_HABILITAR_SUBIDA_MASIVA.Visible = false;
                Button_HABILITAR_SUBIDA_MASIVA_1.Visible = false;

                Panel_RESULTADOS_GRID.Visible = false;

                Panel_FORMULARIO.Visible = false;
                Panel_CONTROL_REGISTRO.Visible = false;
                Panel_DATOS_CONTACTO.Visible = false;
                Panel_ENTIDAD_REPORTA.Visible = false;
                Panel_MOTIVO_REPORTE.Visible = false;
                Panel_ESTADO_REGISTRO.Visible = false;
                Panel_MOTIVO_ESTADO.Visible = false;

                Panel_FORM_BOTONES_PIE.Visible = false;

                Panel_SUBIDA_NASIVA.Visible = false;
                Panel_INFO_DATOS_SUBIDA_MASIVA.Visible = false;
                Panel_FILEUPLOAD_ARCHIVO_PLANO.Visible = false;
                Button_CONFIRMAR_INFO_aRCHIVP_PLANO.Visible = false;
                Button_GUARDAR_REGISTROS_MASIVOS.Visible = false;
                Button_CANCELAR_SUBIDA_MASIVA.Visible = false;

                Panel_GRILLA_ERRORES_SUBIDA_MASIVA.Visible = false;

                break;
            case Acciones.ModificarRegistro:

                Button_NUEVO.Visible = false;
                Button_NUEVO_1.Visible = false;
                Button_MODIFICAR.Visible = false;
                Button_MODIFICAR_1.Visible = false;
                Button_GUARDAR.Visible = false;
                Button_GUARDAR_1.Visible = false;
                Button_CANCELAR.Visible = false;
                Button_CANCELAR_1.Visible = false;

                Panel_CONTROL_REGISTRO.Visible = true;

                break;
        }
    }
    private void Mostrar(Acciones accion)
    {
        switch (accion)
        {
            case Acciones.Inicio:
                Panel_FORM_BOTONES.Visible = true;
                Button_NUEVO.Visible = true;
                Button_HABILITAR_SUBIDA_MASIVA.Visible = true;
                break;
            case Acciones.Busqueda:
                Panel_FORM_BOTONES.Visible = true;
                Button_NUEVO.Visible = true;
                Button_HABILITAR_SUBIDA_MASIVA.Visible = true;

                Panel_RESULTADOS_GRID.Visible = true;
                break;
            case Acciones.Nuevo:
                Panel_FORM_BOTONES.Visible = true;
                Panel_FORM_BOTONES_PIE.Visible = true;
                Button_GUARDAR.Visible = true;
                Button_GUARDAR_1.Visible = true;
                Button_CANCELAR.Visible = true;
                Button_CANCELAR_1.Visible = true;

                Panel_FORMULARIO.Visible = true;
                Panel_DATOS_CONTACTO.Visible = true;
                Panel_ENTIDAD_REPORTA.Visible = true;
                Panel_MOTIVO_REPORTE.Visible = true;
                break;
            case Acciones.CargarRegistro:
                Panel_FORM_BOTONES.Visible = true;
                Panel_FORM_BOTONES_PIE.Visible = true;
                Button_MODIFICAR.Visible = true;
                Button_MODIFICAR_1.Visible = true;
                Button_CANCELAR.Visible = true;
                Button_CANCELAR_1.Visible = true;

                Panel_FORMULARIO.Visible = true;
                Panel_CONTROL_REGISTRO.Visible = true;
                Panel_DATOS_CONTACTO.Visible = true;
                Panel_ENTIDAD_REPORTA.Visible = true;
                Panel_MOTIVO_REPORTE.Visible = true;
                Panel_ESTADO_REGISTRO.Visible = true;
                Panel_MOTIVO_ESTADO.Visible = true;
                break;
            case Acciones.ModificarRegistro:
                Button_GUARDAR.Visible = true;
                Button_GUARDAR_1.Visible = true;
                Button_CANCELAR.Visible = true;
                Button_CANCELAR_1.Visible = true;
                break;
            case Acciones.SubidaMasiva:
                Panel_FORM_BOTONES.Visible = true;

                Panel_SUBIDA_NASIVA.Visible = true;
                Panel_FILEUPLOAD_ARCHIVO_PLANO.Visible = true;

                Button_CONFIRMAR_INFO_aRCHIVP_PLANO.Visible = true;
                Button_CANCELAR_SUBIDA_MASIVA.Visible = true;
                break;
        }
    }
 private void Desactivar(Acciones accion)
 {
     switch (accion)
     {
         case Acciones.Inicio:
             TextBox_PresupuestoEnero.Enabled = false;
             TextBox_PresupuestoFebrero.Enabled = false;
             TextBox_PresupuestoMarzo.Enabled = false;
             TextBox_PresupuestoAbril.Enabled = false;
             TextBox_PresupuestoMayo.Enabled = false;
             TextBox_PresupuestoJunio.Enabled = false;
             TextBox_PresupuestoJulio.Enabled = false;
             TextBox_PresupuestoAgosto.Enabled = false;
             TextBox_PresupuestoSeptiembre.Enabled = false;
             TextBox_PresupuestoOctubre.Enabled = false;
             TextBox_PresupuestoNoviembre.Enabled = false;
             TextBox_PresupuestoDiciembre.Enabled = false;
             break;
         case Acciones.SeleccionCiudad:
             TextBox_PresupuestoEnero.Enabled = false;
             TextBox_PresupuestoFebrero.Enabled = false;
             TextBox_PresupuestoMarzo.Enabled = false;
             TextBox_PresupuestoAbril.Enabled = false;
             TextBox_PresupuestoMayo.Enabled = false;
             TextBox_PresupuestoJunio.Enabled = false;
             TextBox_PresupuestoJulio.Enabled = false;
             TextBox_PresupuestoAgosto.Enabled = false;
             TextBox_PresupuestoSeptiembre.Enabled = false;
             TextBox_PresupuestoOctubre.Enabled = false;
             TextBox_PresupuestoNoviembre.Enabled = false;
             TextBox_PresupuestoDiciembre.Enabled = false;
             break;
     }
 }
    private void Cargar(Acciones accion)
    {
        switch (accion)
        {
            case Acciones.Inicio:
                this.Title = "PRESUPUESTOS";
                HiddenField_ANIO.Value = "";
                HiddenField_ID_CIUDAD.Value = "";
                HiddenField_ID_REGIONAL.Value = "";

                CargarAnios();

                GridView_Regionales.DataSource = null;
                GridView_Regionales.DataBind();

                GridView_Ciudades.DataSource = null;
                GridView_Ciudades.DataBind();

                TextBox_PresupuestoEnero.Text = "";
                TextBox_PresupuestoFebrero.Text = "";
                TextBox_PresupuestoMarzo.Text = "";
                TextBox_PresupuestoAbril.Text = "";
                TextBox_PresupuestoMayo.Text = "";
                TextBox_PresupuestoJunio.Text = "";
                TextBox_PresupuestoJulio.Text = "";
                TextBox_PresupuestoAgosto.Text = "";
                TextBox_PresupuestoSeptiembre.Text = "";
                TextBox_PresupuestoOctubre.Text = "";
                TextBox_PresupuestoNoviembre.Text = "";
                TextBox_PresupuestoDiciembre.Text = "";

                Label_INFO_ADICIONAL_MODULO.Text = "SELECCIÓN DE PRESUPUESTOS";
                break;
            case Acciones.SeleccionAnio:
                GridView_Ciudades.DataSource = null;
                GridView_Ciudades.DataBind();

                TextBox_PresupuestoEnero.Text = "";
                TextBox_PresupuestoFebrero.Text = "";
                TextBox_PresupuestoMarzo.Text = "";
                TextBox_PresupuestoAbril.Text = "";
                TextBox_PresupuestoMayo.Text = "";
                TextBox_PresupuestoJunio.Text = "";
                TextBox_PresupuestoJulio.Text = "";
                TextBox_PresupuestoAgosto.Text = "";
                TextBox_PresupuestoSeptiembre.Text = "";
                TextBox_PresupuestoOctubre.Text = "";
                TextBox_PresupuestoNoviembre.Text = "";
                TextBox_PresupuestoDiciembre.Text = "";
                break;
            case Acciones.SeleccionRegional:
                TextBox_PresupuestoEnero.Text = "";
                TextBox_PresupuestoFebrero.Text = "";
                TextBox_PresupuestoMarzo.Text = "";
                TextBox_PresupuestoAbril.Text = "";
                TextBox_PresupuestoMayo.Text = "";
                TextBox_PresupuestoJunio.Text = "";
                TextBox_PresupuestoJulio.Text = "";
                TextBox_PresupuestoAgosto.Text = "";
                TextBox_PresupuestoSeptiembre.Text = "";
                TextBox_PresupuestoOctubre.Text = "";
                TextBox_PresupuestoNoviembre.Text = "";
                TextBox_PresupuestoDiciembre.Text = "";
                break;
            case Acciones.SeleccionCiudad:
                TextBox_PresupuestoEnero.Text = "";
                TextBox_PresupuestoFebrero.Text = "";
                TextBox_PresupuestoMarzo.Text = "";
                TextBox_PresupuestoAbril.Text = "";
                TextBox_PresupuestoMayo.Text = "";
                TextBox_PresupuestoJunio.Text = "";
                TextBox_PresupuestoJulio.Text = "";
                TextBox_PresupuestoAgosto.Text = "";
                TextBox_PresupuestoSeptiembre.Text = "";
                TextBox_PresupuestoOctubre.Text = "";
                TextBox_PresupuestoNoviembre.Text = "";
                TextBox_PresupuestoDiciembre.Text = "";
                break;
        }
    }
    private void Cargar(Acciones accion)
    {
        switch (accion)
        {
            case Acciones.Inicio:
                ConfigurarAreaRseGlobal();

                cargarGrillaTipos();
                break;
            case Acciones.Modificar:
                HiddenField_ACCION_GRILLA.Value = AccionesGrilla.Ninguna.ToString();
                break;
        }
    }
 private void Mostrar(Acciones accion)
 {
     switch (accion)
     {
         case Acciones.Inicio:
             this.Panel_FORM_BOTONES_ENCABEZADO.Visible = true;
             break;
         case Acciones.Adiciona:
             Panel_INFO_ADICIONAL_MODULO.Visible = true;
             Panel_FORM_BOTONES_ENCABEZADO.Visible = true;
             Panel_FORMULARIO.Visible = true;
             Panel_DATOS.Visible = true;
             Panel_FORM_BOTONES_PIE.Visible = true;
             Panel_DATOS_CONTRATO.Visible = true;
             Button_GUARDAR.Visible = true;
             Button_CANCELAR.Visible = true;
             Button_GUARDAR_1.Visible = true;
             Button_CANCELAR_1.Visible = true;
             break;
         case Acciones.BusquedaEncontro:
             this.Panel_FORM_BOTONES_ENCABEZADO.Visible = true;
             this.Panel_RESULTADOS_GRID.Visible = true;
             break;
         case Acciones.BusquedaNoEncontro:
             this.Panel_FORM_BOTONES_ENCABEZADO.Visible = true;
             this.Panel_MENSAJES.Visible = true;
             break;
         case Acciones.Guarda:
             this.Panel_INFO_ADICIONAL_MODULO.Visible = true;
             this.Panel_FORM_BOTONES_ENCABEZADO.Visible = true;
             this.Panel_MENSAJES.Visible = true;
             this.Panel_FORMULARIO.Visible = true;
             this.Panel_DATOS_CONTRATO.Visible = true;
             this.Panel_DATOS.Visible = true;
             this.Panel_FORM_BOTONES_PIE.Visible = true;
             this.Button_MODIFICAR.Visible = true;
             this.Button_MODIFICAR_1.Visible = true;
             this.Button_CANCELAR.Visible = true;
             this.Button_CANCELAR_1.Visible = true;
             this.Button_NUEVO.Visible = true;
             break;
         case Acciones.Modifica:
             this.Panel_INFO_ADICIONAL_MODULO.Visible = true;
             this.Panel_FORM_BOTONES_ENCABEZADO.Visible = true;
             this.Panel_CONTROL_REGISTRO.Visible = true;
             this.Panel_FORMULARIO.Visible = true;
             this.Panel_DATOS_CONTRATO.Visible = true;
             this.Panel_DATOS.Visible = true;
             this.Panel_FORM_BOTONES_PIE.Visible = true;
             this.Button_GUARDAR.Visible = true;
             this.Button_GUARDAR_1.Visible = true;
             this.Button_CANCELAR.Visible = true;
             this.Button_CANCELAR_1.Visible = true;
             break;
         case Acciones.Visualiza:
             this.Panel_INFO_ADICIONAL_MODULO.Visible = true;
             this.Panel_FORM_BOTONES_ENCABEZADO.Visible = true;
             this.Panel_CONTROL_REGISTRO.Visible = true;
             this.Panel_DATOS_CONTRATO.Visible = true;
             this.Panel_FORMULARIO.Visible = true;
             this.Panel_DATOS.Visible = true;
             this.Panel_FORM_BOTONES_PIE.Visible = true;
             this.Button_MODIFICAR.Visible = true;
             this.Button_CANCELAR.Visible = true;
             this.Button_CANCELAR_1.Visible = true;
             break;
         case Acciones.BusquedaEncontroIncapacidades:
             this.Panel_INFO_ADICIONAL_MODULO.Visible = true;
             this.Panel_FORM_BOTONES_ENCABEZADO.Visible = true;
             this.Panel_DATOS_CONTRATO.Visible = true;
             this.Panel_RESULTADOS_GRID_INCAPACIDADES.Visible = true;
             this.Panel_FORM_BOTONES_PIE.Visible = true;
             this.Button_NUEVO.Visible = true;
             this.Button_CANCELAR.Visible = true;
             this.Button_CANCELAR_1.Visible = true;
             break;
         case Acciones.BusquedaNoEncontroIncapacidades:
             this.Panel_FORM_BOTONES_ENCABEZADO.Visible = true;
             this.Panel_FORM_BOTONES_PIE.Visible = true;
             this.Panel_DATOS_CONTRATO.Visible = true;
             this.Button_NUEVO.Visible = true;
             this.Panel_MENSAJES.Visible = true;
             break;
         case Acciones.Carencia:
             this.Panel_INFO_ADICIONAL_MODULO.Visible = true;
             this.Panel_FORM_BOTONES_ENCABEZADO.Visible = true;
             this.Panel_DATOS_CONTRATO.Visible = true;
             this.Panel_MENSAJES.Visible = true;
             this.Panel_FORM_BOTONES_PIE.Visible = true;
             this.Button_CANCELAR.Visible = true;
             this.Button_CANCELAR_1.Visible = true;
             break;
     }
 }
 private void Desactivar(Acciones accion)
 {
     switch (accion)
     {
         case Acciones.Inicio:
             break;
     }
 }
 private void Bloquear(Acciones accion)
 {
     switch (accion)
     {
         case Acciones.Inicio:
             this.TextBox_DIAS_INCAP.Enabled = false;
             this.TextBox_VALOR_LIQUIDADO_NOMINA.Enabled = false;
             break;
         case Acciones.Guarda:
             this.Panel_FORMULARIO.Enabled = false;
             break;
         case Acciones.Visualiza:
             this.Panel_FORMULARIO.Enabled = false;
             break;
     }
 }
    private void Mostrar(Acciones accion)
    {
        switch (accion)
        {
            case Acciones.Inicio:
                Panel_FORM_BOTONES.Visible = true;
                Button_MODIFICAR.Visible = true;
                break;
            case Acciones.Nuevo:
                Panel_FORM_BOTONES.Visible = true;
                Button_GUARDAR.Visible = true;
                Button_CANCELAR.Visible = true;

                Panel_TIPOS.Visible = true;

                Button_NUEVO_TIPO.Visible = true;

                Panel_FORM_BOTONES_ABAJO.Visible = true;
                Button_GUARDAR_1.Visible = true;
                Button_CANCELAR_1.Visible = true;

                GridView_Tipos.Columns[0].Visible = true;
                break;
            case Acciones.Cargar:
                Panel_FORM_BOTONES.Visible = true;
                Button_MODIFICAR.Visible = true;

                Panel_TIPOS.Visible = true;

                Panel_FORM_BOTONES_ABAJO.Visible = true;
                Button_MODIFICAR_1.Visible = true;
                break;
            case Acciones.Modificar:
                Panel_FORM_BOTONES.Visible = true;
                Button_GUARDAR.Visible = true;
                Button_CANCELAR.Visible = true;
                Panel_TIPOS.Visible = true;
                Button_NUEVO_TIPO.Visible = true;
                Panel_FORM_BOTONES_ABAJO.Visible = true;
                Button_GUARDAR_1.Visible = true;
                Button_CANCELAR_1.Visible = true;

                GridView_Tipos.Columns[0].Visible = true;
                break;
        }
    }
 private void Desbloquear(Acciones accion)
 {
     switch (accion)
     {
         case Acciones.Adiciona:
             this.Panel_FORMULARIO.Enabled = true;
             break;
         case Acciones.Modifica:
             this.Panel_FORMULARIO.Enabled = true;
             break;
     }
 }
    private void Ocultar(Acciones accion)
    {
        switch (accion)
        {
            case Acciones.Inicio:
                Panel_INFO_ADICIONAL_MODULO.Visible = false;
                Panel_FORM_BOTONES.Visible = false;
                Button_GUARDAR.Visible = false;
                Button_MODIFICAR.Visible = false;
                Button_CANCELAR.Visible = false;

                Panel_TIPOS.Visible = false;
                Button_NUEVO_TIPO.Visible = false;
                Button_GUARDAR_TIPO.Visible = false;
                Button_CANCELAR_TIPO.Visible = false;

                Panel_FORM_BOTONES_ABAJO.Visible = false;
                Button_GUARDAR_1.Visible = false;
                Button_MODIFICAR_1.Visible = false;
                Button_CANCELAR_1.Visible = false;

                GridView_Tipos.Columns[0].Visible = false;
                break;
            case Acciones.Modificar:
                break;
        }
    }
Exemplo n.º 57
0
    public void EjecutarAccion(Acciones accion)
    {
        switch (accion)
        {
            //Se Intenta abrir la puerta del desvan y se consigue
            case Acciones.AbrirPuertaDesvanAcierto:
                {
                    GameCenter.InstanceRef.controladoraSonidos.Lanzar_Fx(GameCenter.InstanceRef.controladoraSonidos.sonidoCerrajeria);
                    GameCenter.InstanceRef.controladoraJuego.jugadorActual.BorrarAccionRealizada(Acciones.AbrirPuertaDesvanFallo);
                    GameCenter.InstanceRef.controladoraJuego.jugadorActual.AddAccionRealizada(Acciones.AbrirPuertaDesvanAcierto);
                    EjecutarAccion(Acciones.AbrirDesvan);
                    break;
                }

            //Se Intenta abrir la puerta del desvan pero la tirada de Cerrajeria Falla
            case Acciones.AbrirPuertaDesvanFallo:
                {
                    GameCenter.InstanceRef.controladoraSonidos.Lanzar_Fx(GameCenter.InstanceRef.controladoraSonidos.sonidoCerrajeriaFallo);
                    break;
                }

            //Se Abre la puerta del Desvan
            case Acciones.AbrirDesvan:
                {
                    GameCenter.InstanceRef.controladoraJuego.escenaActual.Buscar_Camara("CamaraPuertaDesvan").EscenaNorte = "CamaraDesvan";
                    break;
                }

            //Encontramos la llave en el Altar
            case Acciones.EncontrarLlaveAltar:
                {
                    GameCenter.InstanceRef.controladoraGUI.Insertar_Ventana_Inferior_Texto(Interactuables.Llave, colorTexto.amarillo);
                    GameCenter.InstanceRef.controladoraJuego.jugadorActual.AddInventario(Interactuables.Llave);
                    break;
                }
        }
    }
 private void Cargar(Acciones accion)
 {
     switch (accion)
     {
         case Acciones.Inicio:
             cargarGrillaDocumentos();
             break;
         case Acciones.Modificar:
             HiddenField_ACCION_GRILLA.Value = AccionesGrilla.Ninguna.ToString();
             HiddenField_FILA_SELECCIONADA_GRILLA.Value = "";
             HiddenField_ID_SEL_REG_DOCUMENTOS.Value = "";
             HiddenField_NOMBRE.Value = "";
             HiddenField_VIGENCIA.Value = "";
             break;
     }
 }
    private void Activar(Acciones accion)
    {
        switch (accion)
        {
            case Acciones.Nuevo:
                DropDownList_TIP_DOC.Enabled = true;
                TextBox_NUM_DOC.Enabled = true;
                TextBox_NOMBRES.Enabled = true;
                TextBox_APELLIDOS.Enabled = true;
                DropDownList_ENTIDAD_REPORTA.Enabled = true;
                TextBox_MOTIVO_REPORTE.Enabled = true;
                break;
            case Acciones.ModificarRegistro:
                DropDownList_TIP_DOC.Enabled = true;
                TextBox_NUM_DOC.Enabled = true;
                TextBox_NOMBRES.Enabled = true;
                TextBox_APELLIDOS.Enabled = true;
                DropDownList_ENTIDAD_REPORTA.Enabled = true;
                TextBox_MOTIVO_REPORTE.Enabled = true;

                DropDownList_ESTADO_REGISTRO.Enabled = true;
                TextBox_MOTIVO_ESTADO.Enabled = true;
                break;
        }
    }
    private void Desactivar(Acciones accion)
    {
        switch (accion)
        {
            case Acciones.Inicio:
                TextBox_FCH_CRE.Enabled = false;
                TextBox_FCH_MOD.Enabled = false;
                TextBox_HOR_CRE.Enabled = false;
                TextBox_HOR_MOD.Enabled = false;
                TextBox_USU_CRE.Enabled = false;
                TextBox_USU_MOD.Enabled = false;

                DropDownList_TIP_DOC.Enabled = false;
                TextBox_NUM_DOC.Enabled = false;
                TextBox_NOMBRES.Enabled = false;
                TextBox_APELLIDOS.Enabled = false;
                DropDownList_ENTIDAD_REPORTA.Enabled = false;
                TextBox_MOTIVO_REPORTE.Enabled = false;
                DropDownList_ESTADO_REGISTRO.Enabled = false;
                TextBox_MOTIVO_ESTADO.Enabled = false;

                break;
        }
    }