public void controlDatosClienteFactura() { cargoProductosFactura CPF = new cargoProductosFactura(_vf); //-----------------------OPCIONES EN CASO DE SELECCIONAR CLIENTE REGISTRADO-----------------------// if (_vf.cmbBoxTipoCliente.SelectedIndex == 0) { if (_vf.txtSitIVA.Text == "RESPONSABLE INSCRIPTO") { if ((_vf.txtNombreCliente.Text != "") & (_vf.txtDNICliente.Text != "") & (_vf.cmbBoxLetraF.DataSource != null) & (_vf.txtCuit.Text != "") & (_vf.txtDomicilio.Text != "") & (_vf.txtNroDomicilio.Text != "")) { _vf.btnAgregarProducto.Enabled = true; CPF.ShowDialog(); } else { MessageBox.Show("DEBE COMPLETAR TODOS LOS DATOS SOLICITADOS DEL CLIENTE!", "ERROR!", MessageBoxButtons.OK, MessageBoxIcon.Error); } } if (_vf.txtSitIVA.Text == "CONSUMIDOR FINAL") { if ((_vf.txtNombreCliente.Text != "") & (_vf.txtDNICliente.Text != "") & (_vf.cmbBoxLetraF.DataSource != null) & (_vf.txtDomicilio.Text != "") & (_vf.txtNroDomicilio.Text != "")) { if (_vf.txtDNICliente.TextLength == 8) { _vf.btnAgregarProducto.Enabled = true; CPF.ShowDialog(); } else { MessageBox.Show("EL DNI DEBE CONTENER 8 DIGITOS!", "ERROR!", MessageBoxButtons.OK, MessageBoxIcon.Error); } } else { MessageBox.Show("DEBE COMPLETAR TODOS LOS DATOS SOLICITADOS DEL CLIENTE!", "ERROR!", MessageBoxButtons.OK, MessageBoxIcon.Error); } } } else { if (_vf.txtSitIVA.Text == "RESPONSABLE INSCRIPTO") { _vf.btnAgregarProducto.Enabled = true; if ((_vf.txtNombreCliente.Text != "") & (_vf.txtDNICliente.Text != "") & (_vf.cmbBoxLetraF.DataSource != null) & (_vf.txtCuit.Text != "") & (_vf.txtDomicilio.Text != "") & (_vf.txtNroDomicilio.Text != "")) { _vf.btnAgregarProducto.Enabled = true; CPF.ShowDialog(); } else { MessageBox.Show("DEBE COMPLETAR TODOS LOS DATOS SOLICITADOS DEL CLIENTE!", "ERROR!", MessageBoxButtons.OK, MessageBoxIcon.Error); } } if (_vf.txtSitIVA.Text == "CONSUMIDOR FINAL") { if ((_vf.txtNombreCliente.Text != "") & (_vf.txtDNICliente.Text != "") & (_vf.cmbBoxLetraF.DataSource != null) & (_vf.txtDomicilio.Text != "") & (_vf.txtNroDomicilio.Text != "")) { if (_vf.txtDNICliente.TextLength == 8) { _vf.btnAgregarProducto.Enabled = true; CPF.ShowDialog(); } else { MessageBox.Show("EL DNI DEBE CONTENER 8 DIGITOS!", "ERROR!", MessageBoxButtons.OK, MessageBoxIcon.Error); } } else { MessageBox.Show("DEBE COMPLETAR TODOS LOS DATOS SOLICITADOS DEL CLIENTE!", "ERROR!", MessageBoxButtons.OK, MessageBoxIcon.Error); } } } }
public productosFacturaController(cargoProductosFactura cpf) { _cpf = cpf; }