66 lines
1.8 KiB
C#
66 lines
1.8 KiB
C#
using System;
|
|
using System.Data;
|
|
using System.Configuration;
|
|
using System.Web;
|
|
using System.Web.Security;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
using System.Web.UI.WebControls.WebParts;
|
|
using System.Web.UI.HtmlControls;
|
|
using System.Collections;
|
|
using ceTe.DynamicPDF;
|
|
using ceTe.DynamicPDF.Text;
|
|
using PDFGenerator.Presentation.Section.Tables;
|
|
using PDFGenerator.BusinessLayer.DataSection;
|
|
using PDFGenerator.Presentation.Section.Charts;
|
|
using PDFGenerator.BusinessLayer;
|
|
|
|
|
|
namespace PDFGenerator.Presentation.Section {
|
|
public class S6 : STorta, ISezione {
|
|
|
|
|
|
public S6() {
|
|
//
|
|
// TODO: Add constructor logic here
|
|
//
|
|
}
|
|
|
|
#region ISezione Members
|
|
|
|
public new void writeSezione(DataThread dataThread)
|
|
{
|
|
document = dataThread.DocumentPDF;
|
|
|
|
DataSetS6 set = new DataSetS6();
|
|
set = (DataSetS6)dataThread.Data.DatiSezione;
|
|
|
|
tabTortaTabella = set.Tables["Intermediario"];
|
|
tabTortaTotali = set.Tables["IntermediarioTotale"];
|
|
//tabTortaContoCorrenteBancaFideuram = set.Tables["ContoCorrenteBancaFideuram"];
|
|
tabTotale = set.Tables["Totale"];
|
|
|
|
base.writeSezione(dataThread);
|
|
|
|
|
|
|
|
if (dataThread.TotalNegativeCurrentAccountValue != 0)
|
|
{
|
|
FormatNum formatter = new FormatNum();
|
|
string ccneg = formatter.ConvertNum(dataThread.TotalNegativeCurrentAccountValue);
|
|
document.setSezFooter(string.Format(Resource.S1_DiagnosesFootNote, ccneg), dim, 0, 7);
|
|
dim += 15;
|
|
}
|
|
|
|
if (dim > ChartHeigth)
|
|
document.setLastPos(dim);
|
|
else
|
|
document.setLastPos(ChartHeigth);
|
|
|
|
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|