33 lines
1.3 KiB
C#
33 lines
1.3 KiB
C#
using System;
|
|
using Consulenza.ReportCommon;
|
|
using Consulenza.ReportWriter.Business.OBJ_PDF;
|
|
using Consulenza.ReportWriter.Business;
|
|
|
|
namespace Consulenza.ReportWriter.Manager.Chapter.Base.Proposta
|
|
{
|
|
public class IntestazioneAdeguatezza : Entity.Chapter
|
|
{
|
|
public IntestazioneAdeguatezza(EnvironmentFacade environmentFacade, int idChapter)
|
|
: base(environmentFacade, idChapter)
|
|
{
|
|
Draw();
|
|
}
|
|
|
|
public IntestazioneAdeguatezza(EnvironmentFacade environmentFacade, int idChapter, bool repeatoneachpage)
|
|
: this(environmentFacade, idChapter)
|
|
{
|
|
RepeatOnEachPage = repeatoneachpage;
|
|
}
|
|
|
|
protected override sealed void Draw()
|
|
{
|
|
var data = new FormattedTextAreaPDF("Report prodotto il " + Helper.FormatDateMonthName(DateTime.Now), 340, 250, ceTe.DynamicPDF.TextAlign.Left) { Y = 62, FontSize = 11, AbsolutePosition = true, AutoIncrementYWritable = false };
|
|
var intestazione = new FormattedTextAreaPDF("ADEGUATEZZA", 340, 250, ceTe.DynamicPDF.TextAlign.Left) { Y = 75, FontSize = 13, FontBold = true, AbsolutePosition = true, AutoIncrementYWritable = false };
|
|
|
|
AddElement(new PagePDF(PagePDF.PagePDFType.Generic));
|
|
AddElement(data);
|
|
AddElement(intestazione);
|
|
}
|
|
}
|
|
}
|