示例#1
0
        private void btnEgresoDevengar_Click(object sender, EventArgs e)
        {
            if (this.dgvGastos.CurrentRow == null)
            {
                return;
            }
            int iContaEgresoID = Util.Entero(this.dgvGastos.CurrentRow.Cells["Gastos_ContaEgresoID"].Value);

            var frmDev = new GastoDevengar(iContaEgresoID);

            if (frmDev.ShowDialog(Principal.Instance) == DialogResult.OK)
            {
                this.LlenarCuentasTotales();
                int iCuentaID = Util.Entero(this.tgvCuentas.CurrentNode.Cells["Cuentas_Id"].Value);
                this.LlenarMovimientosCuenta(iCuentaID);
            }
            frmDev.Dispose();
        }
示例#2
0
        private void btnEgresoDevengar_Click(object sender, EventArgs e)
        {
            if (this.dgvGastos.CurrentRow == null) return;
            int iContaEgresoID = Util.Entero(this.dgvGastos.CurrentRow.Cells["Gastos_ContaEgresoID"].Value);

            var frmDev = new GastoDevengar(iContaEgresoID);
            if (frmDev.ShowDialog(Principal.Instance) == DialogResult.OK)
            {
                this.LlenarCuentasTotales();
                int iCuentaID = Util.Entero(this.tgvCuentas.CurrentNode.Cells["Cuentas_Id"].Value);
                this.LlenarMovimientosCuenta(iCuentaID);
            }
            frmDev.Dispose();
        }