From b7e06c1b13278fb7ed6671c2a8b17022a5d62a93 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 23 Jul 2021 22:18:15 +0000 Subject: [PATCH] --- server/AyaNova/models/Quote.cs | 42 +++++++++++++++++++--------------- 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/server/AyaNova/models/Quote.cs b/server/AyaNova/models/Quote.cs index 701ffd1a..8ea7363b 100644 --- a/server/AyaNova/models/Quote.cs +++ b/server/AyaNova/models/Quote.cs @@ -7,7 +7,7 @@ using AyaNova.Biz; namespace AyaNova.Models { - + public class Quote : ICoreBizObjectModel { public long Id { get; set; } @@ -21,6 +21,17 @@ namespace AyaNova.Models public string CustomFields { get; set; } public List Tags { get; set; } = new List(); + //---- + public long? PreparedById { get; set; } + public string Introduction { get; set; } + public DateTime? Requested { get; set; } + public DateTime? ValidUntil { get; set; } + public DateTime? Submitted { get; set; } + public DateTime? Approved { get; set; } + public bool CopyWiki { get; set; } + public bool CopyAttachments { get; set; } + //---- + [Required] public long CustomerId { get; set; } [NotMapped] @@ -35,18 +46,18 @@ namespace AyaNova.Models public string InternalReferenceNumber { get; set; } public string CustomerReferenceNumber { get; set; } public string CustomerContactName { get; set; } - + public DateTime CreatedDate { get; set; } = DateTime.UtcNow; - public DateTime? ServiceDate { get; set; } - public DateTime? CompleteByDate { get; set; } - public TimeSpan DurationToCompleted { get; set; } = TimeSpan.Zero; - public string InvoiceNumber { get; set; } - public string CustomerSignature { get; set; } - public string CustomerSignatureName { get; set; } - public DateTime? CustomerSignatureCaptured { get; set; } - public string TechSignature { get; set; } - public string TechSignatureName { get; set; } - public DateTime? TechSignatureCaptured { get; set; } + + //public DateTime? CompleteByDate { get; set; } + //public TimeSpan DurationToCompleted { get; set; } = TimeSpan.Zero; + // public string InvoiceNumber { get; set; } + //public string CustomerSignature { get; set; } + // public string CustomerSignatureName { get; set; } + // public DateTime? CustomerSignatureCaptured { get; set; } + // public string TechSignature { get; set; } + // public string TechSignatureName { get; set; } + // public DateTime? TechSignatureCaptured { get; set; } public bool Onsite { get; set; } public long? ContractId { get; set; } [NotMapped] @@ -81,12 +92,7 @@ namespace AyaNova.Models public bool IsLockedAtServer { get; set; } = false;//signal to client that it came from the server in a locked state [NotMapped] public string AlertViz { get; set; } = null; - [NotMapped] - public string FromQuoteViz { get; set; } - [NotMapped] - public string FromPMViz { get; set; } - [NotMapped] - public string FromCSRViz { get; set; } + [NotMapped] public bool IsCompleteRecord { get; set; } = true;//indicates if some items were removed due to user role / type restrictions (i.e. woitems they are not scheduled on)