public void AltaClienteView()
        {
            AltaClientes AC = new AltaClientes(_vc);

            AC.ShowDialog();
        }
 public AltaClientesController(AltaClientes ac)
 {
     _ac = ac;
 }
Exemplo n.º 3
0
 public VistaFacturas(AltaClientes ac)
 {
     _ac = ac;
 }
        //--------------------------------------------------------------------------------------------------------------------------------------------------

        public void muestroTipoDeFactura()
        {
            // CLIENTE EVENTUAL

            if (_vf.cmbBoxTipoCliente.SelectedIndex == 1)
            {
                var result = System.Windows.Forms.MessageBox.Show("DESEA DAR DE ALTA UN CLIENTE? , DE LO CONTRARIO CARGUE UNO YA REGISTRADO EN EL SISTEMA", "DAR DE ALTA CLIENTE", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

                if (result == DialogResult.Yes)
                {
                    AltaClientes ac = new AltaClientes();

                    ac.btnAltaClienteFactura.Visible = true;
                    ac.btnAltaCliente.Visible        = false;
                    ac.btnSalirACFac.Visible         = true;
                    ac.btnVolver.Visible             = false;

                    _vf.cmbBoxTipoCliente.DataSource = null;

                    ac.ShowDialog();
                }
                else
                {
                    _vf.cmbBoxTipoCliente.SelectedIndex = 0;

                    _vf.txtIDCliente.Enabled       = false;
                    _vf.btnAgregarProducto.Enabled = true;
                    _vf.txtSitIVA.Enabled          = true;

                    _vf.dgvFactura.Rows.Clear();


                    _vf.txtCantProd.Text = _vf.dgvFactura.RowCount.ToString();

                    _vf.label39.Visible = true;
                    _vf.label41.Visible = true;

                    _vf.btnClientes.Enabled = true;

                    _vf.txtNroDomicilio.Enabled   = true;
                    _vf.panelDatosCliente.Enabled = true;
                    _vf.panelBotones.Enabled      = true;

                    _vf.cmbFormaDePago.DataSource = null;

                    _vf.txtNombreCliente.Enabled = false;
                    _vf.txtDNICliente.Enabled    = false;
                    _vf.txtDomicilio.Enabled     = false;
                    _vf.txtCuit.Enabled          = false;
                    _vf.panelTF.Enabled          = true;
                    _vf.txtNroDomicilio.Enabled  = false;

                    _vf.panelTF.Enabled = true;

                    vaciarDatos();
                }
            }

            // CLIENTE REGISTRADO

            if (_vf.cmbBoxTipoCliente.SelectedIndex == 0)
            {
                _vf.dgvFactura.Rows.Clear();

                _vf.txtCantProd.Text = _vf.dgvFactura.RowCount.ToString();

                _vf.label39.Visible = true;
                _vf.label41.Visible = true;

                _vf.btnClientes.Enabled = true;

                _vf.txtNroDomicilio.Enabled   = true;
                _vf.panelDatosCliente.Enabled = true;
                _vf.panelBotones.Enabled      = true;

                _vf.cmbFormaDePago.DataSource = null;

                _vf.txtNombreCliente.Enabled = false;
                _vf.txtDNICliente.Enabled    = false;
                _vf.txtDomicilio.Enabled     = false;
                _vf.txtCuit.Enabled          = false;
                _vf.panelTF.Enabled          = true;
                _vf.txtNroDomicilio.Enabled  = false;

                vaciarDatos();
            }
        }
Exemplo n.º 5
0
        private void btnCliente_Click(object sender, EventArgs e)
        {
            AltaClientes altaCliente = new AltaClientes();

            altaCliente.ShowDialog();
        }