private void CajaVentasCambios_Load(object sender, EventArgs e) { // Se carga la parte del cobro this.ctlCobro = new Cobro(); this.ctlCobro.HabilitarTipoDePago = false; this.ctlCobro.MostrarFacturar = false; this.ctlCobro.HabilitarRetroceso = false; this.oVentasCaja.pnlEnTotales.Controls.Add(this.ctlCobro); // Se llenan los datos this.ActualizarDatos(); }
private void CajaVentasPorCobrar_Load(object sender, EventArgs e) { // Se carga la parte del cobro this.ctlDetalle = new cVentaDetalle() { Dock = DockStyle.Fill }; this.ctlCobro = new Cobro() { Dock = DockStyle.Fill }; this.oVentasCaja.pnlEnTotales.Controls.Add(this.pnlParaDetalle = new Panel()); this.pnlParaDetalle.Controls.Add(this.ctlDetalle); this.pnlParaDetalle.Controls.Add(this.ctlCobro); // Se llenan los datos this.ActualizarDatos(); }
public override void Inicializar() { base.Inicializar(); // Se crean los objetos necesarios this.ctlCobro = new Cobro(); this.ctlPartes = new c9500Partes(); // Se configuran las propiedades necesarias de los objetos this.ctlCobro.HabilitarTipoDePago = false; this.ctlCobro.MostrarFacturar = false; this.ctlCobro.HabilitarRetroceso = false; this.ctlCobro.HabilitarFormasDePago = false; this.ctlCobro.CambiarCliente(this.Cliente.ClienteID); this.ctlPartes.o9500 = this; this.ctlPartes.CambiarCliente(this.Cliente); // Se agregan a los paneles (esto desencadena el evento "Load" de cada control) this.pnlEnTotales.Controls.Add(this.ctlCobro); this.pnlEnContenido.Controls.Add(this.ctlPartes); }
private void LimpiarVenta() { // Se restaura el cliente this.tacCliente.ValorSel = Cat.Clientes.Mostrador; this.ctlError.LimpiarErrores(); // this.cmbCliente.SelectedValue = Cat.Clientes.Mostrador; // Se limpian los datos del vehículo Control oControlAct = this.ActiveControl; this.cmbVehiculo.Focus(); this.cmbVehiculo.SelectedIndex = -1; if (oControlAct != null) oControlAct.Focus(); this.tacVechiculo.Texto = ""; this.cmbMarca.SelectedIndex = -1; this.cmbModelo.SelectedIndex = -1; this.cmbModelo.Text = ""; this.cmbAnio.SelectedIndex = -1; this.cmbMotor.SelectedIndex = -1; this.cmbMotor.Text = ""; this.txtVIN.Clear(); // Se limpia la parte del cobro if (this.ctlCobro != null) { this.pnlContenidoDetalle.Controls.Remove(this.ctlCobro); this.ctlCobro.Dispose(); this.ctlCobro = null; } // Se limpia lo de cotización this.chkCotizacion.Checked = false; this.chkCotizacion.Enabled = true; // Se limpia la parte de la venta this.ListaVenta.Clear(); this.ActualizarListaVenta(); if (this.oAplicaciones != null) this.oAplicaciones.Clear(); // Se restaura la búsqueda avanzada this.LimpiarBusquedaAvanzada(); // this.dgvCodigosAlternos.Rows.Clear(); this.dgvCaracteristicas.Rows.Clear(); this.dgvAplicaciones.Rows.Clear(); }