This commit is contained in:
2021-03-02 17:15:24 +00:00
parent c1cccba712
commit 068da11715
14 changed files with 95 additions and 32 deletions

View File

@@ -7,14 +7,18 @@ using Newtonsoft.Json;
namespace AyaNova.Models
{
public class CustomerNote: ICoreBizObjectModel
public class CustomerNote : ICoreBizObjectModel
{
public long Id { get; set; }
public uint Concurrency { get; set; }
[Required]
public long CustomerId { get; set; }
[NotMapped]
public string CustomerViz { get; set; }
[Required]
public long UserId { get; set; }
[NotMapped]
public string UserViz { get; set; }
[Required]
public DateTime NoteDate { get; set; }
public string Notes { get; set; }
@@ -35,7 +39,7 @@ namespace AyaNova.Models
[JsonIgnore]
public User User { get; set; }
string ICoreBizObjectModel.CustomFields { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
}//eoc

View File

@@ -26,7 +26,11 @@ namespace AyaNova.Models
public bool Viewed { get; set; }
public bool Replied { get; set; }
public long? FromId { get; set; }
[NotMapped]
public string FromViz { get; set; }
public long? ToId { get; set; }
[NotMapped]
public string ToViz { get; set; }
public DateTime Sent { get; set; }//redundant but displayed all over the place in the UI so properly redundant
public Memo()

View File

@@ -12,17 +12,17 @@ namespace AyaNova.Models
[Required]
public long PartAssemblyId { get; set; }
[Required]
public long PartId { get; set; }
[NotMapped]
public string PartViz { get; set; }
[Required]
public decimal Quantity { get; set; }
[JsonIgnore]
public PartAssembly PartAssembly { get; set; }
[NotMapped]
public string PartDisplay { get; set; }
}//eoc
}//eons

View File

@@ -23,11 +23,19 @@ namespace AyaNova.Models
public DateTime? LastEntryDate { get; set; }
[Required]
public long PartId { get; set; }
[NotMapped]
public string PartViz { get; set; }
[Required]
public long PartWarehouseId { get; set; }
[NotMapped]
public string PartWarehouseViz { get; set; }
public long? SourceId { get; set; }
[NotMapped]
public string SourceViz { get; set; }
public AyaType? SourceType { get; set; }
[NotMapped]
public string SourceTypeViz { get; set; }
[Required]
public decimal Quantity { get; set; }

View File

@@ -29,8 +29,12 @@ namespace AyaNova.Models
public string CompletionNotes { get; set; }
[Required]
public long UserId { get; set; }
[NotMapped]
public string UserViz { get; set; }
[Required]
public long AssignedByUserId { get; set; }
[NotMapped]
public string AssignedByUserViz { get; set; }
[Required]
public long ObjectId { get; set; }