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); } } /// /// Disegna l'oggetto T12 /// 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)); } /// /// Recupera i dati necessari alla Section restituendo un DataTable. /// /// protected sealed override DataTable GetDataTable() { return null; } /// /// Recupera i dati necessari alla Section restituendo un DataSet. /// /// protected sealed override DataSet GetDataSet() { return null; } } }