awaiting-disposition-header-attachment-id

This commit is contained in:
2024-06-18 10:55:12 -07:00
parent da3e839a48
commit e7b721fdb3
35 changed files with 311 additions and 273 deletions

View File

@ -8,7 +8,7 @@ public record Cleans(
// [property: JsonPropertyName("cleanTools")] object[] cleanTools
);
[JsonSourceGenerationOptions(WriteIndented = true)]
[JsonSourceGenerationOptions(WriteIndented = true, NumberHandling = JsonNumberHandling.AllowReadingFromString)]
[JsonSerializable(typeof(Cleans))]
public partial class CleansSourceGenerationContext : JsonSerializerContext
{

View File

@ -11,7 +11,7 @@ public record Inspection(
// [property: JsonPropertyName("backSide")] BackSide BackSide
);
[JsonSourceGenerationOptions(WriteIndented = true)]
[JsonSourceGenerationOptions(WriteIndented = true, NumberHandling = JsonNumberHandling.AllowReadingFromString)]
[JsonSerializable(typeof(Inspection))]
public partial class InspectionSourceGenerationContext : JsonSerializerContext
{

View File

@ -19,7 +19,7 @@ public record ProdSpec(
[property: JsonPropertyName("prsStages")] PrsStage[] PrsStages
);
[JsonSourceGenerationOptions(WriteIndented = true)]
[JsonSourceGenerationOptions(WriteIndented = true, NumberHandling = JsonNumberHandling.AllowReadingFromString)]
[JsonSerializable(typeof(ProdSpec))]
public partial class ProdSpecSourceGenerationContext : JsonSerializerContext
{

View File

@ -8,7 +8,7 @@ public record ProdSpecRoot(
// [property: JsonPropertyName("_class")] string Class
);
[JsonSourceGenerationOptions(WriteIndented = true)]
[JsonSourceGenerationOptions(WriteIndented = true, NumberHandling = JsonNumberHandling.AllowReadingFromString)]
[JsonSerializable(typeof(ProdSpecRoot))]
public partial class ProdSpecRootSourceGenerationContext : JsonSerializerContext
{

View File

@ -12,7 +12,7 @@ public record PrsStage(
[property: JsonPropertyName("qaMetTests")] QaMetTest[] QaMetTests
);
[JsonSourceGenerationOptions(WriteIndented = true)]
[JsonSourceGenerationOptions(WriteIndented = true, NumberHandling = JsonNumberHandling.AllowReadingFromString)]
[JsonSerializable(typeof(PrsStage))]
public partial class PrsStageSourceGenerationContext : JsonSerializerContext
{

View File

@ -20,7 +20,7 @@ public record QaMetTest(
[property: JsonPropertyName("sequence")] string Sequence
);
[JsonSourceGenerationOptions(WriteIndented = true)]
[JsonSourceGenerationOptions(WriteIndented = true, NumberHandling = JsonNumberHandling.AllowReadingFromString)]
[JsonSerializable(typeof(QaMetTest))]
public partial class QaMetTestSourceGenerationContext : JsonSerializerContext
{

View File

@ -14,5 +14,6 @@ public interface IAwaitingDispoController<T>
T Index();
T MarkAsReviewed(long headerid, int tooltypeid);
T MarkAsAwaiting(long headerid, int tooltypeid);
T GetHeaderAttachmentID(int toolTypeId, long headerid);
}

View File

@ -7,7 +7,7 @@ public record Surfscan(
[property: JsonPropertyName("surfscanRecipes")] SurfscanRecipe[] SurfscanRecipes
);
[JsonSourceGenerationOptions(WriteIndented = true)]
[JsonSourceGenerationOptions(WriteIndented = true, NumberHandling = JsonNumberHandling.AllowReadingFromString)]
[JsonSerializable(typeof(Surfscan))]
public partial class SurfscanSourceGenerationContext : JsonSerializerContext
{

View File

@ -9,7 +9,7 @@ public record SurfscanRecipe(
[property: JsonPropertyName("sampleSize")] int? SampleSize
);
[JsonSourceGenerationOptions(WriteIndented = true)]
[JsonSourceGenerationOptions(WriteIndented = true, NumberHandling = JsonNumberHandling.AllowReadingFromString)]
[JsonSerializable(typeof(SurfscanRecipe))]
public partial class SurfscanRecipeSourceGenerationContext : JsonSerializerContext
{