This commit is contained in:
2021-07-23 20:10:03 +00:00
parent a7b466bc0f
commit cac7d4f47d
7 changed files with 469 additions and 29 deletions

View File

@@ -0,0 +1,52 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
using AyaNova.Biz;
namespace AyaNova.Models
{
public class QuoteItemScheduledUser : ICoreBizObjectModel
{
public long Id { get; set; }
public uint Concurrency { get; set; }
public long? UserId { get; set; }
[NotMapped]
public string UserViz { get; set; }
public decimal EstimatedQuantity { get; set; }
public DateTime? StartDate { get; set; }
public DateTime? StopDate { get; set; }
public long? ServiceRateId { get; set; }
[NotMapped]
public string ServiceRateViz { get; set; }
//workaround for notification
[NotMapped, JsonIgnore]
public List<string> Tags { get; set; } = new List<string>();
[NotMapped, JsonIgnore]
public string Name { get; set; }
[Required]
public long QuoteItemId { get; set; }
[JsonIgnore]
public QuoteItem QuoteItem { get; set; }
[NotMapped, JsonIgnore]
public AyaType AyaType { get => AyaType.QuoteItemScheduledUser; }
}//eoc
}//eons
/*
CREATE TABLE [dbo].[AQuoteITEMSCHEDULEDUSER](
[AID] [uniqueidentifier] NOT NULL,
[AQuoteITEMID] [uniqueidentifier] NOT NULL,
[ACREATOR] [uniqueidentifier] NOT NULL,
[AMODIFIER] [uniqueidentifier] NOT NULL,
[ACREATED] [datetime] NOT NULL,
[AMODIFIED] [datetime] NOT NULL,
[AUSERID] [uniqueidentifier] NULL,
[AESTIMATEDQUANTITY] [decimal](19, 5) NULL,
[ASTARTDATE] [datetime] NULL,
[ASTOPDATE] [datetime] NULL,
[ASERVICERATEID] [uniqueidentifier] NULL
*/