Exemple #1
0
        private void BtnGuardar_Click(object sender, EventArgs e)
        {
            if (ValidarCampos())
            {
                Cursor = Cursors.WaitCursor;
                AsignarValores();
                if (EsNuevo)
                {
                    NominaEmpleado();
                    GuardarEmpleado();
                    Soporte.MsgInformacion("El Registro se ha Guardado Correctamenet");
                    MostrarRegistros();
                    radPageView1.SelectedPage = RadpgvListaEmppleado;
                }
                else
                {
                    ActualizarEmpleados();
                    Soporte.MsgInformacion("Los Datos se han Actualizado correctamente");
                    MostrarRegistros();
                    Soporte.AlertaNotifiacion(RadAlerta, "Actualizado", "El registro se ha Actualizado correctamente", Properties.Resources.guardar);
                    radPageView1.SelectedPage = RadpgvListaEmppleado;
                }

                RestablecerControles();
                Cursor = Cursors.Default;
            }
        }
Exemple #2
0
 private void BtnGuardar_Click(object sender, EventArgs e)
 {
     if (RadgvLista.Rows.Count > 0)
     {
         GuardarEntreda();
         Soporte.AlertaNotifiacion(radDesktopAlert1, "Registro Guardado", "La Lista de Articulos se han guardado Correctamente.", Properties.Resources.guardar);
         LimpiarTextos();
     }
     else
     {
         Soporte.Msg_Alerta("Ingrese al menos un Articulo a la Lista para poder Guardar un Registro.", "Sin Registros");
     }
 }