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) { } }
private void btnGuardar_Click(object sender, EventArgs e) { try { Entidades.SubCliente _subCliente = CargarEntidad(); bool Exito = ClienteNeg.GuardarNotaDeCredito(_subCliente, idEmpresa); if (Exito == true) { ProgressBar(); const string message2 = "Se registro la nota de credito exitosamente."; const string caption2 = "Éxito"; var result2 = MessageBox.Show(message2, caption2, MessageBoxButtons.OK, MessageBoxIcon.Asterisk); LimpiarCampos(); } else { } } catch (Exception ex) { } }