Пример #1
0
        private void DrawReportFooterSummary(PagingSetup pagingSetup, PdfDocument document,
                                             RemovalNote removalNote, string removalUser)
        {
            ReportUtils.DrawParagraphLine(pagingSetup, document,
                                          pagingSetup.RegularFont, XParagraphAlignment.Justify,
                                          pagingSetup.RegularLineHeight,
                                          string.Format("Người hủy: {0} Ngày hủy: {1}",
                                                        removalUser, removalNote.RemovalDate.ToString(CommonConstant.DateFormatDisplay)));

            ReportUtils.DrawParagraphLine(pagingSetup, document,
                                          pagingSetup.RegularFont, XParagraphAlignment.Justify,
                                          pagingSetup.RegularLineHeight,
                                          string.Format("Lý do hủy: {0}", removalNote.RemovalReason));

            ReportUtils.DrawParagraphLine(pagingSetup, document,
                                          pagingSetup.RegularFont, XParagraphAlignment.Left,
                                          pagingSetup.RegularLineHeight,
                                          string.Format("Phương pháp hủy mẫu:.............................................................................................................................................."));

            ReportUtils.DrawParagraphLine(pagingSetup, document,
                                          pagingSetup.RegularFont, XParagraphAlignment.Justify,
                                          pagingSetup.RegularLineHeight,
                                          string.Format("Quản lý mẫu kiểm tra:..........................................................................................................Ngày.....tháng.....năm....."));

            ReportUtils.DrawParagraphLine(pagingSetup, document,
                                          pagingSetup.RegularFont, XParagraphAlignment.Justify,
                                          pagingSetup.RegularLineHeight,
                                          string.Format("Quản lý an toàn:..................................................................................................................Ngày.....tháng.....năm....."));

            ReportUtils.DrawParagraphLine(pagingSetup, document,
                                          pagingSetup.RegularFont, XParagraphAlignment.Justify,
                                          pagingSetup.RegularLineHeight,
                                          string.Format("Trưởng PTN phê duyệt:........................................................................................................Ngày.....tháng.....năm....."));
        }
Пример #2
0
        private void DrawReportSummary(PagingSetup pagingSetup, PdfDocument document,
                                       SampleSpecInfo sampleSpecInfo)
        {
            ReportUtils.IncreaseLineHeight(pagingSetup, document, pagingSetup.RegularLineHeight);

            ReportUtils.DrawParagraphLine(pagingSetup, document, PagingSetup.CreateDefaultPDFRegularFont(),
                                          XParagraphAlignment.Left, pagingSetup.RegularLineHeight,
                                          string.Format("Mã bệnh phẩm: {0}", sampleSpecInfo.SampleSpecId));

            ReportUtils.DrawParagraphLine(pagingSetup, document, PagingSetup.CreateDefaultPDFRegularFont(),
                                          XParagraphAlignment.Left, pagingSetup.RegularLineHeight,
                                          string.Format("Tên bệnh nhân: {0}", sampleSpecInfo.PatientName));

            ReportUtils.DrawParagraphLine(pagingSetup, document, PagingSetup.CreateDefaultPDFRegularFont(),
                                          XParagraphAlignment.Left, pagingSetup.RegularLineHeight,
                                          string.Format("Giới tính: {0}", sampleSpecInfo.SexDisplay));

            ReportUtils.DrawParagraphLine(pagingSetup, document, PagingSetup.CreateDefaultPDFRegularFont(),
                                          XParagraphAlignment.Left, pagingSetup.RegularLineHeight,
                                          string.Format("Năm sinh: {0}", sampleSpecInfo.YearOfBirth));

            ReportUtils.DrawParagraphLine(pagingSetup, document, PagingSetup.CreateDefaultPDFRegularFont(),
                                          XParagraphAlignment.Left, pagingSetup.RegularLineHeight,
                                          string.Format("Nguồn: {0}", sampleSpecInfo.LocationId));

            ReportUtils.DrawParagraphLine(pagingSetup, document, PagingSetup.CreateDefaultPDFRegularFont(),
                                          XParagraphAlignment.Left, pagingSetup.RegularLineHeight,
                                          string.Format("Thời gian nhập: {0}", sampleSpecInfo.DateInputDisplay));

            ReportUtils.DrawParagraphLine(pagingSetup, document, PagingSetup.CreateDefaultPDFRegularFont(),
                                          XParagraphAlignment.Left, pagingSetup.RegularLineHeight,
                                          string.Format("Danh sách nhập"));
        }
        private void ExportHistoryDrawReportSummary(PagingSetup pagingSetup, PdfDocument document,
                                                    DateTime startDate, DateTime endDate)
        {
            var options = new XPdfFontOptions(PdfFontEncoding.Unicode, PdfFontEmbedding.Always);

            ReportUtils.DrawParagraphLine(pagingSetup, document, new XFont("Tahoma", 12, XFontStyle.Bold, options),
                                          XParagraphAlignment.Center, pagingSetup.RegularLineHeight,
                                          string.Format("Từ ngày: {0} - Đến ngày: {1}",
                                                        startDate.ToString(CommonConstant.DateFormatDisplay),
                                                        endDate.ToString(CommonConstant.DateFormatDisplay)));

            ReportUtils.IncreaseLineHeight(pagingSetup, document, pagingSetup.RegularLineHeight);
        }
Пример #4
0
        private void DrawReportSummary(PagingSetup pagingSetup, PdfDocument document,
                                       RemovalNote removalNote)
        {
            var options = new XPdfFontOptions(PdfFontEncoding.Unicode, PdfFontEmbedding.Always);

            ReportUtils.DrawParagraphLine(pagingSetup, document, new XFont("Tahoma", 12, XFontStyle.Bold, options),
                                          XParagraphAlignment.Center, pagingSetup.RegularLineHeight,
                                          string.Format("Mã hủy: {0}", removalNote.RemovalId));

            ReportUtils.IncreaseLineHeight(pagingSetup, document, pagingSetup.RegularLineHeight);

            ReportUtils.DrawParagraphLine(pagingSetup, document, PagingSetup.CreateDefaultPDFRegularFont(),
                                          XParagraphAlignment.Left, pagingSetup.RegularLineHeight,
                                          "Danh sách hủy: ");
        }
        private void DrawReportFooterSummary(PagingSetup pagingSetup, PdfDocument document,
                                             ExportNote exportNote)
        {
            ReportUtils.DrawParagraphLine(pagingSetup, document,
                                          pagingSetup.RegularFont, XParagraphAlignment.Left,
                                          pagingSetup.RegularLineHeight,
                                          string.Format("Mục đích sử dụng: {0}", exportNote.ExportReason));

            ReportUtils.DrawParagraphLine(pagingSetup, document,
                                          pagingSetup.RegularFont, XParagraphAlignment.Left,
                                          pagingSetup.RegularLineHeight,
                                          string.Format("Ngày xuất mẫu: {0}", exportNote.ExportDateDisplay));

            ReportUtils.DrawParagraphLine(pagingSetup, document,
                                          pagingSetup.RegularFont, XParagraphAlignment.Left,
                                          pagingSetup.RegularLineHeight,
                                          string.Format("Ngày in: {0}",
                                                        DateTime.Now.ToString(CommonConstant.DateTimeFormatDisplay)));
        }