private void btnAceptar_Click(object sender, EventArgs e) { if (txt_NroDoc.Text == "") { Mensaje("Debe ingresar un número de documento"); return; } if (txt_Apellido.Text == "") { Mensaje("Debe ingresar un apellido"); return; } if (txt_Nombre.Text == "") { Mensaje("Debe ingresar un nombre"); return; } if (txtCodDocente.Text == "") { fun.GuardarNuevoGenerico(this, "Docente"); } else { // if (txt_Ruta.Text != "") // txt_Ruta.Text = txt_Ruta.Text.Replace("\\", "\\\\"); fun.ModificarGenerico(this, "Docente", "IdDocente", txtCodDocente.Text); } Mensaje("Datos grabados correctamente"); fun.LimpiarGenerico(this); Grupo.Enabled = false; Botonera(1); }
private void btnAceptar_Click(object sender, EventArgs e) { if (txtCodigo.Text == "") { fun.GuardarNuevoGenerico(this, "Vendedor"); } else { fun.ModificarGenerico(this, "Vendedor", "CodVendedor", txtCodigo.Text); } Mensaje("Datos grabados correctamente"); Botonera(1); fun.LimpiarGenerico(this); }
private void btnAceptar_Click(object sender, EventArgs e) { if (txt_Descripcion.Text == "") { MessageBox.Show("Debe ingresar un nomre para continuar"); return; } if (txtCodigo.Text == "") { fun.GuardarNuevoGenerico(this, "Convocatoria"); } else { // if (txt_Ruta.Text != "") // txt_Ruta.Text = txt_Ruta.Text.Replace("\\", "\\\\"); fun.ModificarGenerico(this, "Convocatoria", "IdConvocatoria", txtCodigo.Text); } Mensaje("Datos grabados correctamente"); txtCodigo.Text = ""; }
private void btnAceptar_Click(object sender, EventArgs e) { if (txt_Nombre.Text == "") { Mensaje("Debe ingresar una descripción para continuar"); return; } if (txtCodigo.Text == "") { fun.GuardarNuevoGenerico(this, "Marca"); } else { // if (txt_Ruta.Text != "") // txt_Ruta.Text = txt_Ruta.Text.Replace("\\", "\\\\"); fun.ModificarGenerico(this, "Marca", "CodMarca", txtCodigo.Text); } MessageBox.Show("Datos grabados correctamente"); fun.LimpiarGenerico(this); Botonera(1); }