This commit is contained in:
2021-05-25 18:52:10 +00:00
parent 8116bf0139
commit 8a68c2c0e4
4 changed files with 10 additions and 9 deletions

View File

@@ -46,6 +46,7 @@ namespace AyaNova.Biz
//
internal async Task<TaskGroup> CreateAsync(TaskGroup newObject)
{
await ValidateAsync(newObject, null);
if (HasErrors)
return null;

View File

@@ -15,7 +15,7 @@ namespace AyaNova.Models
public int Sequence { get; set; } = 0;
[Required]
public string Task { get; set; }

View File

@@ -24,14 +24,14 @@ namespace AyaNova.Util
internal const long EXPECTED_COLUMN_COUNT = 933;
internal const long EXPECTED_INDEX_COUNT = 141;
internal const long EXPECTED_CHECK_CONSTRAINTS = 423;
internal const long EXPECTED_CHECK_CONSTRAINTS = 421;
internal const long EXPECTED_FOREIGN_KEY_CONSTRAINTS = 118;
internal const long EXPECTED_VIEWS = 6;
internal const long EXPECTED_ROUTINES = 2;
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImporting WHEN NEW TABLES ADDED!!!!
///////////////////////////////////////////////////////////////// C933:I141:CC423:FC118:V6:R2
///////////////////////////////////////////////////////////////// C933:I141:CC421:FC118:V6:R2
/*
@@ -743,7 +743,7 @@ $BODY$ LANGUAGE PLPGSQL STABLE");
//TASKGROUPITEM
await ExecQueryAsync("CREATE TABLE ataskgroupitem (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, taskgroupid BIGINT NOT NULL REFERENCES ataskgroup ON DELETE CASCADE, "
+ "sequence INTEGER NOT NULL DEFAULT 0, task TEXT NOT NULL)");
+ "sequence INTEGER DEFAULT 0, task TEXT)");
//WORKORDER STATUS
await ExecQueryAsync("CREATE TABLE aworkorderstatus (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, name TEXT NOT NULL UNIQUE, active BOOL NOT NULL, "

View File

@@ -1319,12 +1319,12 @@ namespace AyaNova.Util
t.Name = "Aerostat monitor standard refurb";
t.Active = true;
t.Notes = Fake.Lorem.Sentence();
t.Items.Add(new TaskGroupItem() { Sequence = 0, Task = "Power down unit" });
t.Items.Add(new TaskGroupItem() { Sequence = 1, Task = "Power down unit" });
t.Items.Add(new TaskGroupItem() { Sequence = 2, Task = "Open seals" });
t.Items.Add(new TaskGroupItem() { Sequence = 4, Task = "Replace central core" });
t.Items.Add(new TaskGroupItem() { Sequence = 6, Task = "Test point B, verify +.25" });
t.Items.Add(new TaskGroupItem() { Sequence = 8, Task = "Replace seals" });
t.Items.Add(new TaskGroupItem() { Sequence = 10, Task = "Confirm power up" });
t.Items.Add(new TaskGroupItem() { Sequence = 3, Task = "Replace central core" });
t.Items.Add(new TaskGroupItem() { Sequence = 4, Task = "Test point B, verify +.25" });
t.Items.Add(new TaskGroupItem() { Sequence = 5, Task = "Replace seals" });
t.Items.Add(new TaskGroupItem() { Sequence = 6, Task = "Confirm power up" });
using (AyContext ct = ServiceProviderProvider.DBContext)