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 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);
        }
Esempio n. 3
0
 public Issuer Clone()
 {
     Issuer clone = new Issuer();
     clone.Name = this.Name;
     clone.Surname = this.Surname;
     clone.Position = this.Position;
     return clone;
 }
Esempio n. 4
0
        public Issuer Clone()
        {
            Issuer clone = new Issuer();

            clone.Name     = this.Name;
            clone.Surname  = this.Surname;
            clone.Position = this.Position;
            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();
     }
 }
Esempio n. 6
0
 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();
     }
 }