Ejemplo n.º 1
0
        public void ActualizarGrillaPagos()
        {
            ResultadoOp     resultado       = new ResultadoOp();
            I_MenuPrincipal F_MenuPrincipal = this.Owner as I_MenuPrincipal;

            this.GrillaRegistrosPagos.DataSource = null;

            if (F_MenuPrincipal != null)
            {
                this.GrillaRegistrosPagos.DataSource = F_MenuPrincipal.ObtenerRegistrosPagos();
            }
        }
Ejemplo n.º 2
0
        private void F_RegistrosPagos_Load(object sender, EventArgs e)
        {
            this.GrillaRegistrosPagos.AutoGenerateColumns = false;
            this.GrillaRegistrosPagos.ColumnCount         = 6;

            this.GrillaRegistrosPagos.Columns[0].HeaderText       = "ID";
            this.GrillaRegistrosPagos.Columns[0].DataPropertyName = "ID";
            this.GrillaRegistrosPagos.Columns[0].Width            = 30;
            this.GrillaRegistrosPagos.Columns[1].HeaderText       = "Nombre";
            this.GrillaRegistrosPagos.Columns[1].DataPropertyName = "Cliente";
            this.GrillaRegistrosPagos.Columns[1].Width            = 150;
            this.GrillaRegistrosPagos.Columns[2].HeaderText       = "Fecha";
            this.GrillaRegistrosPagos.Columns[2].DataPropertyName = "FCredito";
            this.GrillaRegistrosPagos.Columns[2].Width            = 80;
            this.GrillaRegistrosPagos.Columns[3].HeaderText       = "Monto del crédito ($)";
            this.GrillaRegistrosPagos.Columns[3].DataPropertyName = "MontoCredito";
            this.GrillaRegistrosPagos.Columns[3].Width            = 137;
            this.GrillaRegistrosPagos.Columns[4].HeaderText       = "Cuotas Pagas";
            this.GrillaRegistrosPagos.Columns[4].DataPropertyName = "CuotasPagadas";
            this.GrillaRegistrosPagos.Columns[4].Width            = 100;
            this.GrillaRegistrosPagos.Columns[5].HeaderText       = "Cuotas Faltantes";
            this.GrillaRegistrosPagos.Columns[5].DataPropertyName = "CuotasFaltantes";
            this.GrillaRegistrosPagos.Columns[5].Width            = 100;

            I_MenuPrincipal owner = this.Owner as I_MenuPrincipal;

            if (owner != null)
            {
                GrillaRegistrosPagos.DataSource = owner.ObtenerRegistrosPagos();
            }

            DataGridViewLinkColumn EfectuarPago = new DataGridViewLinkColumn();

            EfectuarPago.HeaderText = "Efecutar Pago";
            EfectuarPago.Text       = "Pagar";
            EfectuarPago.Width      = 70;
            EfectuarPago.UseColumnTextForLinkValue = true;
            GrillaRegistrosPagos.Columns.Add(EfectuarPago);
        }