using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Newtonsoft.Json; using AyaNova.Biz; namespace AyaNova.Models { public class dtWorkOrderItem : ICoreBizObjectModel { public dtWorkOrderItem() { Tags = new List(); } public long Id { get; set; } public uint Concurrency { get; set; } public string Notes { get; set; } public string Wiki { get; set; } public string CustomFields { get; set; } public List Tags { get; set; } //Principle [Required] public long WorkOrderId { get; set; } [NotMapped, JsonIgnore] public AyaType AyaType { get => AyaType.WorkOrderItem; } }//eoc public class WorkOrderItem : ICoreBizObjectModel { public WorkOrderItem() { Tags = new List(); //dependents Expenses = new List(); Labors = new List(); Loans = new List(); Parts = new List(); PartRequests = new List(); ScheduledUsers = new List(); Tasks = new List(); Travels = new List(); Units = new List(); } public long Id { get; set; } public uint Concurrency { get; set; } public string Notes { get; set; } public string Wiki { get; set; } public string CustomFields { get; set; } public List Tags { get; set; } //Principle [Required] public long WorkOrderId { get; set; } [JsonIgnore] public WorkOrder WorkOrder { get; set; } //dependents public List Expenses { get; set; } public List Labors { get; set; } public List Loans { get; set; } public List Parts { get; set; } public List PartRequests { get; set; } public List ScheduledUsers { get; set; } public List Tasks { get; set; } public List Travels { get; set; } public List Units { get; set; } [NotMapped, JsonIgnore] public AyaType AyaType { get => AyaType.WorkOrderItem; } }//eoc }//eons