63 lines
1.8 KiB
C#
63 lines
1.8 KiB
C#
using System;
|
|
using ceTe.DynamicPDF;
|
|
using System.Data;
|
|
using Consulenza.ReportWriter.Business.OBJ_PDF;
|
|
using Consulenza.ReportWriter.Business;
|
|
|
|
namespace Consulenza.ReportWriter.Manager.Section.Base.Proposta
|
|
{
|
|
public class T12 : Entity.Section
|
|
{
|
|
public T12(EnvironmentFacade environmentFacade, int idSection)
|
|
: base(environmentFacade, idSection)
|
|
{
|
|
try
|
|
{
|
|
Draw();
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
SectionLogger.Write("T12", ex.Message, SectionLoggerMessageLevel.E, base.EnvironmentFacade.ReportEnvironment);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Disegna l'oggetto T12
|
|
/// </summary>
|
|
protected override sealed void Draw()
|
|
{
|
|
var dtT12 = GetText();
|
|
|
|
if (dtT12.Rows.Count <= 0) return;
|
|
|
|
var stringaTestoIntroduttivo = dtT12.Rows[0]["Testo1"].ToString();
|
|
|
|
var testoIntroduttivo = new FormattedTextAreaPDF(stringaTestoIntroduttivo, base.EnvironmentFacade.RendererFacade.XLeftLimit + 5)
|
|
{
|
|
TextHorizontalAlign = TextAlign.Justify
|
|
};
|
|
|
|
base.AddElement(testoIntroduttivo);
|
|
base.AddElement(new SpacePDF(20));
|
|
}
|
|
|
|
/// <summary>
|
|
/// Recupera i dati necessari alla Section restituendo un DataTable.
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
protected sealed override DataTable GetDataTable()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Recupera i dati necessari alla Section restituendo un DataSet.
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
protected sealed override DataSet GetDataSet()
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
}
|