This commit is contained in:
@@ -49,6 +49,10 @@ namespace AyaNova.Biz
|
||||
_ayaType = (AyaType)Enum.Parse(typeof(AyaType), sATypeNumeral);
|
||||
}
|
||||
|
||||
public AyaTypeId()
|
||||
{
|
||||
}
|
||||
|
||||
public bool Equals(AyaTypeId x, AyaTypeId y)
|
||||
{
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user