pdf fixes

This commit is contained in:
Tyrel Souza 2023-10-06 23:57:48 -04:00
parent ad870290e9
commit 30ea75468f
No known key found for this signature in database
GPG Key ID: F3614B02ACBE438E
3 changed files with 21 additions and 46 deletions

Binary file not shown.

View File

@ -4,7 +4,6 @@ using QuestPDF.Helpers;
using QuestPDF.Infrastructure; using QuestPDF.Infrastructure;
namespace BenchtopPDF namespace BenchtopPDF
{ {
internal class Program internal class Program
@ -19,8 +18,7 @@ namespace BenchtopPDF
var model = JsonConvert.DeserializeObject<Sheet>(data); var model = JsonConvert.DeserializeObject<Sheet>(data);
var document = new SheetDocument(model); var document = new SheetDocument(model);
document.GeneratePdfAndShow(); document.GeneratePdfAndShow();
} }
} }
} }

View File

@ -10,43 +10,34 @@ namespace BenchtopPDF
{ {
public int Value { get; set; } public int Value { get; set; }
[JsonProperty("In Range")] [JsonProperty("In Range")] public bool InRange { get; set; }
public bool InRange { get; set; }
public int Delta { get; set; } public int Delta { get; set; }
} }
public class MasterValue public class MasterValue
{ {
[JsonProperty("Low Limit")] [JsonProperty("Low Limit")] public int LowLimit { get; set; }
public int LowLimit { get; set; }
[JsonProperty("Master Value")]
public int Value { get; set; }
[JsonProperty("High Limit")] [JsonProperty("Master Value")] public int Value { get; set; }
public int HighLimit { get; set; }
[JsonProperty("High Limit")] public int HighLimit { get; set; }
} }
public class Sheet public class Sheet
{ {
public string Instrument { get; set; } public string Instrument { get; set; }
[JsonProperty("Customer Name")] [JsonProperty("Customer Name")] public string CustomerName { get; set; }
public string CustomerName { get; set; }
[JsonProperty("Customer Address")] [JsonProperty("Customer Address")] public string CustomerAddress { get; set; }
public string CustomerAddress { get; set; }
[JsonProperty("Control Number")] [JsonProperty("Control Number")] public string ControlNumber { get; set; }
public string ControlNumber { get; set; }
[JsonProperty("Serial Number")] [JsonProperty("Serial Number")] public string SerialNumber { get; set; }
public string SerialNumber { get; set; }
public double Accuracy { get; set; } public double Accuracy { get; set; }
[JsonProperty("Barometric Pressure")] [JsonProperty("Barometric Pressure")] public double BarometricPressure { get; set; }
public double BarometricPressure { get; set; }
public double Temperature { get; set; } public double Temperature { get; set; }
public int Humidity { get; set; } public int Humidity { get; set; }
public List<Transducer> Transducers { get; set; } public List<Transducer> Transducers { get; set; }
@ -56,38 +47,24 @@ namespace BenchtopPDF
{ {
public double Accuracy { get; set; } public double Accuracy { get; set; }
[JsonProperty("Part Number")] [JsonProperty("Part Number")] public string PartNumber { get; set; }
public string PartNumber { get; set; }
public int Value { get; set; } public int Value { get; set; }
public string Unit { get; set; } public string Unit { get; set; }
[JsonProperty("Limit ABS")]
public int LimitABS { get; set; }
[JsonProperty("Transducer Name")] [JsonProperty("Limit ABS")] public int LimitABS { get; set; }
public string TransducerName { get; set; }
[JsonProperty("Transducer Type")] [JsonProperty("Transducer Name")] public string TransducerName { get; set; }
public string TransducerType { get; set; }
[JsonProperty("Gauge Reading")] [JsonProperty("Transducer Type")] public string TransducerType { get; set; }
public List<GaugeReading> GaugeReading { get; set; }
[JsonProperty("Master Value")] [JsonProperty("Gauge Reading")] public List<GaugeReading> GaugeReading { get; set; }
public List<MasterValue> MasterValue { get; set; }
[JsonProperty("Verify Date")] [JsonProperty("Master Value")] public List<MasterValue> MasterValue { get; set; }
public string VerifyDate { get; set; }
[JsonProperty("Verify Time")] [JsonProperty("Verify Date")] public string VerifyDate { get; set; }
public string VerifyTime { get; set; }
[JsonProperty("Verify Time")] public string VerifyTime { get; set; }
} }
} }