96 lines
3.2 KiB
C#
96 lines
3.2 KiB
C#
using System;
|
|
using System.Linq;
|
|
using System.Xml;
|
|
using System.Xml.Serialization;
|
|
|
|
namespace xmlserializetest
|
|
{
|
|
public class MetaData
|
|
{
|
|
[XmlAttribute("job")]
|
|
public string Job { get; set; }
|
|
[XmlAttribute("batch")]
|
|
public string Batch { get; set; }
|
|
[XmlAttribute("batch_size")]
|
|
public string BatchSize { get; set; }
|
|
[XmlAttribute("TesterIDN")]
|
|
public string TesterIDN { get; set; }
|
|
|
|
[XmlElement("report", Namespace = "")]
|
|
public Report Report { get; set; }
|
|
|
|
}
|
|
|
|
|
|
public class Report
|
|
{
|
|
[XmlAttribute("Customer")]
|
|
public string Customer { get; set; }
|
|
[XmlAttribute("CustomerAddress")]
|
|
public string CustomerAddress { get; set; }
|
|
[XmlAttribute("Caption")]
|
|
public string Caption { get; set; }
|
|
[XmlAttribute("CalibrationLocation")]
|
|
public string CalibrationLocation { get; set; }
|
|
[XmlAttribute("PassFail")]
|
|
public string PassFail { get; set; }
|
|
[XmlAttribute("CertificateNo")]
|
|
public string CertificateNo { get; set; }
|
|
[XmlAttribute("TestedBy")]
|
|
public string TestedBy { get; set; }
|
|
[XmlAttribute("CalDate")]
|
|
public string CalDate { get; set; }
|
|
[XmlAttribute("ApprovedBy")]
|
|
public string ApprovedBy { get; set; }
|
|
[XmlAttribute("ApprovedDate")]
|
|
public string ApprovedDate { get; set; }
|
|
[XmlAttribute("PrintDataReport")]
|
|
public string PrintDataReport { get; set; }
|
|
[XmlAttribute("PrintCalCertificate")]
|
|
public string PrintCalCertificate { get; set; }
|
|
[XmlAttribute("IncludeGraphs")]
|
|
public string IncludeGraphs { get; set; }
|
|
[XmlAttribute("IncludeTolerance")]
|
|
public string IncludeTolerance { get; set; }
|
|
[XmlAttribute("HideRepetetiveTestNames")]
|
|
public string HideRepetetiveTestNames { get; set; }
|
|
[XmlAttribute("AlwaysPrintCalEquipmentTable")]
|
|
public string AlwaysPrintCalEquipmentTable { get; set; }
|
|
[XmlAttribute("IsAClassCertificate")]
|
|
public string IsAClassCertificate { get; set; }
|
|
[XmlAttribute("ProcedureUsed")]
|
|
public string ProcedureUsed { get; set; }
|
|
[XmlAttribute("Temperature")]
|
|
public string Temperature { get; set; }
|
|
[XmlAttribute("Humidity")]
|
|
public string Humidity { get; set; }
|
|
[XmlAttribute("CalDueDate")]
|
|
public string CalDueDate { get; set; }
|
|
[XmlAttribute("ReceivedDate")]
|
|
public string ReceivedDate { get; set; }
|
|
[XmlAttribute("Comments")]
|
|
public string Comments { get; set; }
|
|
[XmlAttribute("xmlns")]
|
|
public string Xmlns { get; set; }
|
|
|
|
[XmlElement("tester")]
|
|
public Tester Tester { get; set; }
|
|
|
|
}
|
|
|
|
public class Tester
|
|
{
|
|
[XmlAttribute("ModelNo")]
|
|
public string ModelNo { get; set; }
|
|
[XmlAttribute("SerialNo")]
|
|
public string SerialNo { get; set; }
|
|
[XmlAttribute("Options")]
|
|
public string Options { get; set; }
|
|
[XmlAttribute("AsReceivedCondition")]
|
|
public string AsReceivedCondition { get; set; }
|
|
[XmlAttribute("AsLeftCondition")]
|
|
public string AsLeftCondition { get; set; }
|
|
|
|
}
|
|
}
|