Esempio n. 1
0
 public void LoadFromNode(XmlNode customerNode)
 {
     this.CustomerID      = XmlNodeHelper.GetNodeAttributeI(customerNode, XMLCustomerAttributeID);
     this.Name            = XmlNodeHelper.GetNodeAttribute(customerNode, XMLCustomerAttributeName);
     this.Surname         = XmlNodeHelper.GetNodeAttribute(customerNode, XMLCustomerAttributeSurname);
     this.Country         = XmlNodeHelper.GetNodeAttribute(customerNode, XMLCustomerAttributeCountry);
     this.DateOfAgreement = XmlNodeHelper.GetNodeAttributeDT(customerNode, XMLCustomerAttributeDateAgreement, DateFormat);
 }
Esempio n. 2
0
 public void LoadFromNode(XmlNode employeeNode)
 {
     this.EmployeeID       = XmlNodeHelper.GetNodeAttributeI(employeeNode, XMLEmployeeAttributeID);
     this.Name             = XmlNodeHelper.GetNodeAttribute(employeeNode, XMLEmployeeAttributeName);
     this.Surname          = XmlNodeHelper.GetNodeAttribute(employeeNode, XMLEmployeeAttributeSurname);
     this.DateOfEmployment = XmlNodeHelper.GetNodeAttributeDT(employeeNode, XMLEmployeeAttributeDateOfEmployeement, DateFormat);
     this.Salary           = XmlNodeHelper.GetNodeAttributeF(employeeNode, XMLEmployeeAttributeSalary);
 }
Esempio n. 3
0
 public void LoadFromNode(XmlNode projectNode)
 {
     this.ProjectID     = XmlNodeHelper.GetNodeAttributeI(projectNode, XMLNodeAttributeID);
     this.Name          = XmlNodeHelper.GetNodeAttribute(projectNode, XMLProjectAttributeName);
     this.DateAgreement = XmlNodeHelper.GetNodeAttributeDT(projectNode, XMLProjectAttributeDateAgreement, DateFormat);
     this.Cost          = XmlNodeHelper.GetNodeAttributeF(projectNode, XMLProjectAttributeCost);
     this.Status        = (ProjestStatus)Enum.Parse(typeof(ProjestStatus), XmlNodeHelper.GetNodeAttribute(projectNode, XMLProjectAttributeStatus).ToString());
     this.CustomerID    = XmlNodeHelper.GetNodeAttributeI(projectNode, XMLProjectAttributeCustomer);
     for (XmlNode node = projectNode.FirstChild; node != null; node = node.NextSibling)
     {
         this.EmployeesID.Add(XmlNodeHelper.GetNodeAttributeI(node, XmlAttributeEmployeeID));
     }
 }