43 lines
1.4 KiB
C#
43 lines
1.4 KiB
C#
using Consulenza.ReportWriter.Business;
|
|
using Consulenza.ReportWriter.Business.OBJ_PDF;
|
|
using Consulenza.ReportWriter.Business.CUSTOM_PDF.ConsulenzaUnica;
|
|
using Consulenza.ReportCommon;
|
|
|
|
namespace Consulenza.ReportWriter.Manager.Chapter.Unica
|
|
{
|
|
public class S40 : Entity.Chapter
|
|
{
|
|
/// <summary>
|
|
///S40.Adeguatezza idSezione = 83
|
|
/// </summary>
|
|
public S40(EnvironmentFacade environmentFacade, int idChapter)
|
|
: base(environmentFacade, idChapter)
|
|
{
|
|
Draw();
|
|
}
|
|
|
|
public S40(EnvironmentFacade environmentFacade, int idChapter, bool repeatoneachpage)
|
|
: this(environmentFacade, idChapter)
|
|
{
|
|
RepeatOnEachPage = repeatoneachpage;
|
|
}
|
|
|
|
protected override sealed void Draw()
|
|
{
|
|
//Aggiungo la pagina
|
|
AddElement(new PagePDF(PagePDF.PagePDFType.Generic));
|
|
|
|
var testi = GetText();
|
|
|
|
var intestazione = new ChapterHeadingPDF(
|
|
Helper.ReplaceVariables(testi.Rows[0]["testo1"].ToString(), base.EnvironmentFacade.ReportEnvironment),
|
|
EnvironmentFacade.RendererFacade.XLeftLimit,
|
|
EnvironmentFacade.RendererFacade.YUpperLimit,
|
|
EnvironmentFacade.ReportEnvironment.FontFamily);
|
|
|
|
// Aggiungo gli elementi
|
|
AddElement(intestazione.ToElement());
|
|
}
|
|
}
|
|
}
|