예제 #1
0
        private void asientosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmVoucher _frmVoucher = new frmVoucher(cDatos.EstablecimientoID, cDatos.Establecimiento, cDatos.HotelID, cDatos.Hotel, cDatos.Periodo);

            _frmVoucher.MdiParent = this;
            _frmVoucher.Show();
        }
예제 #2
0
        private void btnAsientos_Click(object sender, EventArgs e)
        {
            frmVoucher _frmVoucher = new frmVoucher(cDatos.EstablecimientoID, cDatos.Establecimiento, cDatos.HotelID, cDatos.Hotel, cDatos.Periodo);

            _frmVoucher.MdiParent = this.MdiParent;
            _frmVoucher.Show();
        }
예제 #3
0
        private void btnVoucher1_Click(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(txtPeriodo.Text) && cbxEmpresa.SelectedValue != null && cbxSucursal.SelectedValue != null)
            {
                Int32  empresaId  = Convert.ToInt32(cbxEmpresa.SelectedValue);
                String empresa    = cbxEmpresa.Text;
                Int32  sucursalId = Convert.ToInt32(cbxSucursal.SelectedValue);
                String sucursal   = cbxSucursal.Text;
                Int32  periodoId  = Convert.ToInt32(txtPeriodo.Text);

                frmVoucher _frmVoucher = new frmVoucher(empresaId, empresa, sucursalId, sucursal, periodoId);
                _frmVoucher.MdiParent = this.MdiParent;
                _frmVoucher.Height    = this.Height;
                _frmVoucher.Width     = (Int32)(this.Width * 0.90);
                _frmVoucher.ShowDialog();
            }
        }