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 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: "); }