This commit is contained in:
2021-07-27 18:43:32 +00:00
parent 9e62ff9006
commit 4cd151f88b
4 changed files with 18 additions and 1 deletions

2
.vscode/launch.json vendored
View File

@@ -53,7 +53,7 @@
"AYANOVA_FOLDER_USER_FILES": "c:\\temp\\RavenTestData\\userfiles",
"AYANOVA_FOLDER_BACKUP_FILES": "c:\\temp\\RavenTestData\\backupfiles",
"AYANOVA_FOLDER_TEMPORARY_SERVER_FILES": "c:\\temp\\RavenTestData\\tempfiles",
"AYANOVA_SERVER_TEST_MODE": "true",
"AYANOVA_SERVER_TEST_MODE": "false",
"AYANOVA_SERVER_TEST_MODE_SEEDLEVEL": "small",
"AYANOVA_SERVER_TEST_MODE_TZ_OFFSET": "-7",
"AYANOVA_BACKUP_PG_DUMP_PATH": "C:\\data\\code\\postgres_13\\bin\\"

View File

@@ -49,6 +49,10 @@ namespace AyaNova.Biz
_ayaType = (AyaType)Enum.Parse(typeof(AyaType), sATypeNumeral);
}
public AyaTypeId()
{
}
public bool Equals(AyaTypeId x, AyaTypeId y)
{

View File

@@ -165,6 +165,12 @@ namespace AyaNova.Biz
await WorkOrderPopulateVizFields(newObject, true, false);
await WorkOrderHandlePotentialNotificationEvent(AyaEvent.Created, newObject);
if (!newObject.GenCopyAttachmentsFrom.IsEmpty)
{
//copy attachment from existing object
}
return newObject;
}
}
@@ -346,6 +352,9 @@ namespace AyaNova.Biz
await TagBiz.ProcessUpdateTagsInRepositoryAsync(ct, putObject.Tags, dbObject.Tags);
await WorkOrderPopulateVizFields(putObject, true, false);//doing this here ahead of notification because notification may require the viz field lookup anyway and afaict no harm in it
await WorkOrderHandlePotentialNotificationEvent(AyaEvent.Modified, putObject, dbObject);
return putObject;
}

View File

@@ -115,6 +115,10 @@ namespace AyaNova.Models
[NotMapped]
public bool UserCanViewLoanerCosts { get; set; }
[NotMapped]
public AyaTypeId GenCopyAttachmentsFrom { get; set; }//INTERNAL, USED TO SIGNIFY ATTACHMENTS NEED TO BE COPIED ON SAVE
[NotMapped, JsonIgnore]
public AyaType AyaType { get => AyaType.WorkOrder; }