Beispiel #1
0
        private void AltaUsuario_Load(object sender, EventArgs e)
        {
            txtUsername.Text     = username;
            txtUsername.ReadOnly = true;

            interfaz.agregarElementoTextoAChequear(txtUsername);
            interfaz.agregarElementoTextoAChequear(txtContrasenia);
        }
 private void MedicoCancelarTurno_Load(object sender, EventArgs e)
 {
     dateTimeFechaInicio.Visible  = false;
     dateTimeFechaFin.Visible     = false;
     labelFechaEspecifica.Visible = true;
     Box_fechaACancelar.Visible   = true;
     dateTimeFechaInicio.MinDate  = Convert.ToDateTime(ConfigurationManager.AppSettings["FechaSistema"]);
     dateTimeFechaInicio.Value    = Convert.ToDateTime(ConfigurationManager.AppSettings["FechaSistema"]);
     Box_fechaACancelar.MinDate   = Convert.ToDateTime(ConfigurationManager.AppSettings["FechaSistema"]);
     Box_fechaACancelar.Value     = Convert.ToDateTime(ConfigurationManager.AppSettings["FechaSistema"]);
     dateTimeFechaFin.Value       = dateTimeFechaInicio.Value.AddDays(30);
     interfaz.cargarComboIDValor(comboBox1, "select t.Id_tipo_cancelacion id, t.Descripcion valor from TRIGGER_EXPLOSION.TipoCancelacion t");
     interfaz.agregarElementoTextoAChequear(richTextMotivo);
     interfaz.agregarElementoComboBoxAChequear(comboBox1);
 }
Beispiel #3
0
        private void AltaUsuario_Load(object sender, EventArgs e)
        {
            if (mode == "familiar")
            {
                Box_cantidadFamiliares.Text = "0";
                Box_cantidadFamiliares.Hide();
                labelCantFamiliares.Hide();
            }
            else
            {
                interfaz.agregarElementoTextoAChequear(Box_cantidadFamiliares);
            }

            this.Box_fechaNac.MaxDate = DateTime.Now;
            String getTiposDeDocumento = "select Id_tipo_documento id, Descripcion valor from TRIGGER_EXPLOSION.TipoDocumento";

            interfaz.cargarComboIDValor(this.comboBox1, getTiposDeDocumento);
            String getEstadoCivil = "select Id_estado_civil id, Descripcion valor from TRIGGER_EXPLOSION.EstadoCivil";

            interfaz.cargarComboIDValor(this.comboBox3, getEstadoCivil);
            String getPlanesMedicos = "select Id_plan id, Descripcion valor from TRIGGER_EXPLOSION.PlanMedico";

            interfaz.cargarComboIDValor(this.comboBox4, getPlanesMedicos);
            this.comboBox2.Text = "Seleccione una opción ....";
            this.comboBox2.Items.Add("Seleccione una opción ....");
            this.comboBox2.Items.Add("masculino");
            this.comboBox2.Items.Add("femenino");

            //Agrego todos los campos que son obligatorios
            interfaz.agregarElementoTextoAChequear(textBoxUsername);
            interfaz.agregarElementoTextoAChequear(Box_apellido);
            interfaz.agregarElementoTextoAChequear(Box_direccion);
            interfaz.agregarElementoTextoAChequear(Box_documento);
            interfaz.agregarElementoTextoAChequear(Box_mail);
            interfaz.agregarElementoTextoAChequear(Box_nombre);
            interfaz.agregarElementoTextoAChequear(Box_telefono);
            interfaz.agregarElementoComboBoxAChequear(comboBox2);
            interfaz.agregarElementoComboBoxAChequear(comboBox3);
            interfaz.agregarElementoComboBoxAChequear(comboBox1);
            interfaz.agregarElementoComboBoxAChequear(comboBox4);
        }
Beispiel #4
0
        private void AfiliadoCancelarTurno_Load(object sender, EventArgs e)
        {
            List <SqlParameter> parametros = new List <SqlParameter>();

            parametros.Add(new SqlParameter("username", Repositorio.getUserActual().getUserId()));
            parametros.Add(new SqlParameter("fecha_actual", Convert.ToDateTime(ConfigurationManager.AppSettings["FechaSistema"])));
            Interfaz.Interfaz.cargarGrillaSP(dataGridTurnos, "TRIGGER_EXPLOSION.turnos_dia_siguiente", parametros);

            if (dataGridTurnos.RowCount <= 0)
            {
                MessageBox.Show("No tiene turnos programados. Recuerde no puede cancelar turnos el mismo dia de la consulta");
                this.Close();
            }


            interfaz.cargarComboIDValor(comboBox1, "select t.Id_tipo_cancelacion id, t.Descripcion valor from TRIGGER_EXPLOSION.TipoCancelacion t");
            interfaz.agregarElementoTextoAChequear(richTextMotivo);
            interfaz.agregarElementoComboBoxAChequear(comboBox1);
        }