This commit is contained in:
2021-07-23 22:18:15 +00:00
parent 83618d6559
commit b7e06c1b13

View File

@@ -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<string> Tags { get; set; } = new List<string>();
//----
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)