コード例 #1
0
        public new void Print(bool isOpen)
        {
            ToPdf.AddPage(PdfSharp.PageSize.Letter);

            PrintHeader();
            PrintInfo();
            double lastItemY = PrintPayrolls();

            lastItemY = PrintDetails(lastItemY);
            if (Payroll.Deductions.Count > 0)
            {
                lastItemY = PrintDeductions(lastItemY);
            }
            lastItemY = PrintReinmburstments(lastItemY);
            if (Payroll.Reimbursements.Count > 0)
            {
                _initialYTotals = lastItemY;
            }
            PrintTotals();

            ToPdf.Print();

            if (isOpen)
            {
                PdfFile.Open();
            }
        }
コード例 #2
0
        public void Print(bool isOpen)
        {
            ToPdf.AddPage(PdfSharp.PageSize.Letter);

            PrintHeader();
            PrintInfo();
            PrintDetails();
            PrintTotals();

            ToPdf.Print();

            if (isOpen)
            {
                PdfFile.Open();
            }
        }