public LibroDiarioForm(LibroDiario libroDiario)
        {
            InitializeComponent();

            idLibroDiario   = libroDiario.IdLibroDiario;
            lblPeriodo.Text = libroDiario.Periodo;

            partidasController = new PartidasController();

            llenarTabla();
            Totales();

            partidaAux = new Partida();
            partidaAux.ListaCuentasPartida = new List <CuentaPartida>();

            disableButtons();

            // texto para el documento en pdf
            Font titleFont   = FontFactory.GetFont("Arial", 22);
            Font periodoFont = FontFactory.GetFont("Arial", 16);

            title              = new Paragraph(lblTitulo.Text, titleFont);
            title.Alignment    = Element.ALIGN_CENTER;
            title.SpacingAfter = 20;

            periodo              = new Paragraph(lblPeriodo.Text, periodoFont);
            periodo.Alignment    = Element.ALIGN_CENTER;
            periodo.SpacingAfter = 20;
        }
Exemplo n.º 2
0
        public AgregarPartidaForm(PartidasController partidasController, int libroDiario, int numeroPartida, string accion)
        {
            InitializeComponent();

            llenarCuentas();

            this.partidasController = partidasController;

            this.libroDiario = libroDiario;

            fecha = FormatoFecha();
            this.numeroPartida = numeroPartida;

            VerificarAccion(accion);

            this.lblPartida.Text += this.numeroPartida;
        }