public StatementHeader ReadHeaderInto() { StatementHeader header = new StatementHeader(); XmlNode d394 = doc.SelectSingleNode("//ds:declaratie394", nsmgr); header.Month = d394.Attributes["luna"].Value; header.Year = d394.Attributes["an"].Value; header.Type = d394.Attributes["tip_D394"].Value[0]; Issuer issuer = new Issuer(); issuer.Name = d394.Attributes["nume_declar"].Value; issuer.Surname = d394.Attributes["prenume_declar"].Value; issuer.Position = d394.Attributes["functie_declar"].Value; header.Issuer = issuer; XmlNode comp = doc.SelectSingleNode("//ds:identificare", nsmgr); Company company = new Company(); company.CUI = comp.Attributes["cui"].Value; company.Name = comp.Attributes["den"].Value; company.Adress = comp.Attributes["adresa"].Value; company.Phone = comp.Attributes["telefon"].Value; company.Fax = comp.Attributes["fax"].Value; company.Email = comp.Attributes["mail"].Value; header.Company = company; return header; }
public Company Clone() { Company clone = new Company(); clone.CUI = this.CUI; clone.Name = this.Name; clone.Adress = this.Adress; clone.Phone = this.Phone; clone.Fax = this.Fax; clone.Email = this.Email; return clone; }
internal void LoadInfoFrom(StatementHeader header) { if (header != null) { this.Month = header.Month; this.Year = header.Year; this.Type = header.Type; this.Issuer = header.Issuer.Clone(); this.Company = header.Company.Clone(); this.Summary = new StatementSummary(); } }