1st commit

This commit is contained in:
2024-03-22 01:35:19 +01:00
parent b224604cd1
commit cd53574fba
18 changed files with 1334 additions and 0 deletions

View File

@@ -0,0 +1,95 @@
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; }
}
}