60 lines
1.8 KiB
C#
60 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 PDFGenerator.BusinessLayer.DataSection;
|
|
using PDFGenerator.BusinessLayer;
|
|
using System.Collections.Generic;
|
|
|
|
|
|
namespace PDFGenerator.BusinessLayer.DataSection
|
|
{
|
|
class DSS139Scadenze : IDataSection
|
|
{
|
|
|
|
|
|
#region IDataSection Members
|
|
public DataSectionResult getDataSection(List<SessionStruct> tabelleSessione, string querySql, DataThread dataThread)
|
|
{
|
|
|
|
try
|
|
{
|
|
DataSectionResult dsr = new DataSectionResult();
|
|
|
|
DataTable dt = SectionManager.GetDataSection(tabelleSessione, querySql, dataThread);
|
|
|
|
DataSetS139 ds139 = new DataSetS139();
|
|
|
|
for (int r = 0; r < dt.Rows.Count; r++)
|
|
{
|
|
if (dt.Rows[r]["DESPROD"] == null || dt.Rows[r]["DESPROD"].ToString().Equals(""))
|
|
throw new Exception("DescrizioneScadenze is Null");
|
|
|
|
DataRow dr = ds139.Scadenze.NewRow();
|
|
dr["DESPROD"] = dt.Rows[r]["DESPROD"].ToString();
|
|
dr["TIPMOV"] = dt.Rows[r]["TIPMOV"].ToString();
|
|
dr["DTSCAD"] = dt.Rows[r]["DTSCAD"].ToString().Substring(0, 10);
|
|
ds139.Scadenze.Rows.Add(dr);
|
|
}
|
|
|
|
dsr.DatiSezione = ds139;
|
|
dsr.Esito = ds139.Scadenze.Rows.Count;
|
|
return dsr;
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
}
|
|
|