예제 #1
0
        //Constructor - Llamada desde facturas.
        public FrmPagos(Facturas _ctrlFacturas)
        {
            InitializeComponent();

            //Asigna datos sobre el usuario.
            this.ctrlFacturas = _ctrlFacturas;
            this.IdUsuario    = ctrlFacturas.IdUsuario;

            //Carga los bancos en los combobox.
            this.CargarBancos();

            //Inserta la factura seleccionada para que sea cancelada.
            this.txtNumFactura.Text = String.Format("{0:#,##0.00}", Convert.ToString(ctrlFacturas.ObtenerFila().
                                                                                     Cells["N° FACTURA"].Value));

            //Establece los conbobox en cero.
            this.cbxPago1.SelectedIndex = 0;
            this.cbxPago2.SelectedIndex = 0;
            this.cbxPago3.SelectedIndex = 0;
            this.cbxPago4.SelectedIndex = 0;

            //Busca el cliente seleccionado.
            this.txtNumFactura_Leave(null, null);
        }