using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Consulenza.ReportArchive.Entity { public class DocumentoPdf { public long IdPdf {get;set;} public int IdModello {get;set;} public string IdStato {get;set;} public string IdArchivio {get;set;} public string CodicePB {get;set;} public string Note {get;set;} public byte[] Image {get;set;} public long ChiaveNucleo{get;set;} public List Clienti { get; set; } public DateTime dtCreazione {get;set;} public DateTime dtRestore {get;set;} public DateTime dtEliminato { get; set; } public List logPdf {get;set;} public static string ChiaveClientePb(List clienti) { string ris=""; string token = ""; if(clienti!=null) foreach (Cliente cliente in clienti) { ris += token + cliente.ChiaveClientePb; token = ","; } return ris; } public static string codiceContratto(List clienti) { string ris=""; string token = ""; if (clienti != null) foreach (Cliente cliente in clienti) { ris += token + cliente.CodiceContratto; token = ","; } return ris; } public static string ChiaveProposta(List clienti) { string ris = ""; string token = ""; if (clienti != null) foreach (Cliente cliente in clienti) { ris += token + cliente.ChiaveProposta; token = ","; } return ris; } public static string PropostaBase(List clienti) { string ris = ""; string token = ""; if (clienti != null) foreach (Cliente cliente in clienti) { ris += token + cliente.PropostaBase; token = ","; } return ris; } } }