diff --git a/BTD Calibration Certificate EXAMPLE.pdf b/BTD Calibration Certificate EXAMPLE.pdf new file mode 100644 index 0000000..50416b2 Binary files /dev/null and b/BTD Calibration Certificate EXAMPLE.pdf differ diff --git a/BenchtopPDF/BenchtopPDF/Program.cs b/BenchtopPDF/BenchtopPDF/Program.cs index d12e631..207d08b 100644 --- a/BenchtopPDF/BenchtopPDF/Program.cs +++ b/BenchtopPDF/BenchtopPDF/Program.cs @@ -4,7 +4,6 @@ using QuestPDF.Helpers; using QuestPDF.Infrastructure; - namespace BenchtopPDF { internal class Program @@ -19,8 +18,7 @@ namespace BenchtopPDF var model = JsonConvert.DeserializeObject(data); var document = new SheetDocument(model); - document.GeneratePdfAndShow(); - + document.GeneratePdfAndShow(); } } } \ No newline at end of file diff --git a/BenchtopPDF/BenchtopPDF/SheetModel.cs b/BenchtopPDF/BenchtopPDF/SheetModel.cs index 7fd120a..023aef4 100644 --- a/BenchtopPDF/BenchtopPDF/SheetModel.cs +++ b/BenchtopPDF/BenchtopPDF/SheetModel.cs @@ -10,43 +10,34 @@ namespace BenchtopPDF { public int Value { get; set; } - [JsonProperty("In Range")] - public bool InRange { get; set; } + [JsonProperty("In Range")] public bool InRange { get; set; } public int Delta { get; set; } } public class MasterValue { - [JsonProperty("Low Limit")] - public int LowLimit { get; set; } - - [JsonProperty("Master Value")] - public int Value { get; set; } + [JsonProperty("Low Limit")] public int LowLimit { get; set; } - [JsonProperty("High Limit")] - public int HighLimit { get; set; } + [JsonProperty("Master Value")] public int Value { get; set; } + + [JsonProperty("High Limit")] public int HighLimit { get; set; } } public class Sheet { public string Instrument { get; set; } - [JsonProperty("Customer Name")] - public string CustomerName { get; set; } + [JsonProperty("Customer Name")] public string CustomerName { get; set; } - [JsonProperty("Customer Address")] - public string CustomerAddress { get; set; } + [JsonProperty("Customer Address")] public string CustomerAddress { get; set; } - [JsonProperty("Control Number")] - public string ControlNumber { get; set; } + [JsonProperty("Control Number")] public string ControlNumber { get; set; } - [JsonProperty("Serial Number")] - public string SerialNumber { get; set; } + [JsonProperty("Serial Number")] public string SerialNumber { get; set; } public double Accuracy { get; set; } - [JsonProperty("Barometric Pressure")] - public double BarometricPressure { get; set; } + [JsonProperty("Barometric Pressure")] public double BarometricPressure { get; set; } public double Temperature { get; set; } public int Humidity { get; set; } public List Transducers { get; set; } @@ -56,38 +47,24 @@ namespace BenchtopPDF { public double Accuracy { get; set; } - [JsonProperty("Part Number")] - public string PartNumber { get; set; } - + [JsonProperty("Part Number")] public string PartNumber { get; set; } + public int Value { get; set; } - + public string Unit { get; set; } - - [JsonProperty("Limit ABS")] - public int LimitABS { get; set; } - [JsonProperty("Transducer Name")] - public string TransducerName { get; set; } + [JsonProperty("Limit ABS")] public int LimitABS { get; set; } - [JsonProperty("Transducer Type")] - public string TransducerType { get; set; } + [JsonProperty("Transducer Name")] public string TransducerName { get; set; } - [JsonProperty("Gauge Reading")] - public List GaugeReading { get; set; } + [JsonProperty("Transducer Type")] public string TransducerType { get; set; } - [JsonProperty("Master Value")] - public List MasterValue { get; set; } + [JsonProperty("Gauge Reading")] public List GaugeReading { get; set; } - [JsonProperty("Verify Date")] - public string VerifyDate { get; set; } + [JsonProperty("Master Value")] public List MasterValue { get; set; } - [JsonProperty("Verify Time")] - public string VerifyTime { get; set; } + [JsonProperty("Verify Date")] public string VerifyDate { get; set; } + [JsonProperty("Verify Time")] public string VerifyTime { get; set; } } - - - - - } \ No newline at end of file