Пример #1
0
 protected void btnGuardar_Click(object sender, EventArgs e)
 {
     try
     {
         string Cuit = lblCuit.Text;
         Sico.Entidades.SubCliente _subCliente = CargarEntidad();
         if (ClienteSeleccionado.Funcion == 0)
         {
             bool Exito = ClienteNeg.GuardarFacturaSubCliente(_subCliente, Cuit);
             if (Exito == true)
             {
                 ShowMessage("Se registro exitosamente la factura cargada.", "Éxito");
                 LimpiarCampos();
             }
             else
             {
             }
         }
         if (ClienteSeleccionado.Funcion == 4)
         {
             bool Exito = ClienteNeg.GuardarNotaDeCredito(_subCliente, Cuit);
             if (Exito == true)
             {
                 ShowMessage("Se registro exitosamente la Nota de Crédito cargada.", "Success");
                 LimpiarCampos();
             }
             else
             {
             }
         }
     }
     catch (Exception ex) { }
 }
Пример #2
0
 private void btnGuardar_Click(object sender, EventArgs e)
 {
     try
     {
         Entidades.SubCliente _subCliente = CargarEntidad();
         bool Exito = ClienteNeg.GuardarFacturaSubCliente(_subCliente, Sesion.UsuarioLogueado.idEmpresaSeleccionado);
         if (Exito == true)
         {
             ProgressBar();
             const string message2 = "Se registro la factura exitosamente.";
             const string caption2 = "Éxito";
             var          result2  = MessageBox.Show(message2, caption2,
                                                     MessageBoxButtons.OK,
                                                     MessageBoxIcon.Asterisk);
             LimpiarCampos();
         }
         else
         {
         }
     }
     catch (Exception ex) { }
 }