Esempio n. 1
0
        private void btnAceptar_Click_1(object sender, EventArgs e)
        {
            Clases.cFunciones fun = new Clases.cFunciones();
            if (Validar() == true)
            {
                //se usa por las dudas ingreso ya exista el deni
                //y no grabe repetido el documento
                UbicaAuto();

                if (txtCodAuto.Text == "")
                {
                    fun.GuardarNuevoGenerico(this, "Auto");
                }
                else
                {
                    fun.ModificarGenerico(this, "Auto", "CodAuto", txtCodAuto.Text);
                }
                MessageBox.Show("Datos grabados Correctamente", Clases.cMensaje.Mensaje());
                Botonera(1);
                fun.LimpiarGenerico(this);
                txtCodAuto.Text = "";
                Imagen.Image    = null;
                if (cmbProvincia.Items.Count > 0)
                {
                    cmbProvincia.SelectedIndex = 0;
                }
            }
        }
Esempio n. 2
0
 private void btnAceptar_Click(object sender, EventArgs e)
 {
     if (cmb_CodProvincia.SelectedIndex < 1)
     {
         MessageBox.Show("Debe seleccionar una provincia para continuar", Clases.cMensaje.Mensaje());
         return;
     }
     if (txt_Nombre.Text == "")
     {
         MessageBox.Show("Debe ingresar un nombre para continuar", Clases.cMensaje.Mensaje());
         return;
     }
     Clases.cFunciones fun = new Clases.cFunciones();
     if (txtCodigo.Text == "")
     {
         fun.GuardarNuevoGenerico(this, "Ciudad");
     }
     else
     {
         fun.ModificarGenerico(this, "Ciudad", "CodCiudad", txtCodigo.Text);
     }
     MessageBox.Show("Datos grabados Correctamente", Clases.cMensaje.Mensaje());
     Botonera(1);
     fun.LimpiarGenerico(this);
     txtCodigo.Text = "";
     Grupo.Enabled  = false;
 }
Esempio n. 3
0
 private void btnGrabar_Click(object sender, EventArgs e)
 {
     Clases.cFunciones fun = new Clases.cFunciones();
     if (Validar() == true)
     {
         fun.ModificarGenerico(this, "Cliente", "CodCliente", "1");
         //  if (txtCodCLiente.Text =="")
         //      fun.GuardarNuevoGenerico(this, "Cliente");
     }
 }
Esempio n. 4
0
 private void btnAceptar_Click(object sender, EventArgs e)
 {
     Clases.cFunciones fun = new Clases.cFunciones();
     if (txtCodigo.Text == "")
     {
         fun.GuardarNuevoGenerico(this, "EntidadPrendaria");
     }
     else
     {
         fun.ModificarGenerico(this, "EntidadPrendaria", "CodEntidad", txtCodigo.Text);
     }
     MessageBox.Show("Datos grabados Correctamente", Clases.cMensaje.Mensaje());
     Botonera(1);
     fun.LimpiarGenerico(this);
     txtCodigo.Text = "";
 }
 private void btnAceptar_Click(object sender, EventArgs e)
 {
     if (txt_Descripcion.Text == "")
     {
         MessageBox.Show("Debe ingresar una descripción para continuar", Clases.cMensaje.Mensaje());
         return;
     }
     Clases.cFunciones fun = new Clases.cFunciones();
     if (txtCodigo.Text == "")
     {
         fun.GuardarNuevoGenerico(this, "CategoriaGastoRecepcion");
     }
     else
     {
         fun.ModificarGenerico(this, "CategoriaGastoRecepcion", "Codigo", txtCodigo.Text);
     }
     MessageBox.Show("Datos grabados Correctamente", Clases.cMensaje.Mensaje());
     Botonera(1);
     fun.LimpiarGenerico(this);
     txtCodigo.Text = "";
 }
Esempio n. 6
0
 private void btnAceptar_Click(object sender, EventArgs e)
 {
     Clases.cFunciones fun = new Clases.cFunciones();
     if (Validar() == true)
     {
         //se usa por las dudas ingreso ya exista el deni
         //y no grabe repetido el documento
         // UbicaCliente();
         if (txtCodAuto.Text == "")
         {
             fun.GuardarNuevoGenerico(this, "Auto");
         }
         else
         {
             fun.ModificarGenerico(this, "Cliente", "CodAuto", txtCodAuto.Text);
         }
         MessageBox.Show("Datos grabados Correctamente", Clases.cMensaje.Mensaje());
         Botonera(1);
         fun.LimpiarGenerico(this);
         txtCodAuto.Text = "";
     }
 }