From 44f92d524d049263235c0f91c857bb1633e07049 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 25 Mar 2021 19:25:19 +0000 Subject: [PATCH] --- server/AyaNova/models/WorkOrder.cs | 5 -- server/AyaNova/models/WorkOrderItem.cs | 92 +++++++++++++------------- 2 files changed, 47 insertions(+), 50 deletions(-) diff --git a/server/AyaNova/models/WorkOrder.cs b/server/AyaNova/models/WorkOrder.cs index b8df2663..cf21dc12 100644 --- a/server/AyaNova/models/WorkOrder.cs +++ b/server/AyaNova/models/WorkOrder.cs @@ -17,11 +17,6 @@ namespace AyaNova.Models */ public class WorkOrder : ICoreBizObjectModel { - public WorkOrder() - { - - } - public long Id { get; set; } public uint Concurrency { get; set; } diff --git a/server/AyaNova/models/WorkOrderItem.cs b/server/AyaNova/models/WorkOrderItem.cs index a59bf915..76dac93c 100644 --- a/server/AyaNova/models/WorkOrderItem.cs +++ b/server/AyaNova/models/WorkOrderItem.cs @@ -7,49 +7,19 @@ 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 Notes { get; set; }//Was Summary public string Wiki { get; set; } public string CustomFields { get; set; } - public List Tags { get; set; } + public List Tags { get; set; } = new List(); + +public string TechNotes { get; set; } + //Principle [Required] @@ -58,18 +28,50 @@ namespace AyaNova.Models 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; } + public List Expenses { get; set; } = new List(); + public List Labors { get; set; } = new List(); + public List Loans { get; set; } = new List(); + public List Parts { get; set; } = new List(); + public List PartRequests { get; set; } = new List(); + public List ScheduledUsers { get; set; } = new List(); + public List Tasks { get; set; } = new List(); + public List Travels { get; set; } = new List(); + public List Units { get; set; } = new List(); [NotMapped, JsonIgnore] public AyaType AyaType { get => AyaType.WorkOrderItem; } }//eoc }//eons + + +/* + +CREATE TABLE [dbo].[AWORKORDERITEM]( + [AID] [uniqueidentifier] NOT NULL, + [AWORKORDERID] [uniqueidentifier] NOT NULL, + [ACREATOR] [uniqueidentifier] NOT NULL, + [AMODIFIER] [uniqueidentifier] NOT NULL, + [ACREATED] [datetime] NOT NULL, + [AMODIFIED] [datetime] NOT NULL, + [ATECHNOTES] [ntext] NULL, + [AWORKORDERSTATUSID] [uniqueidentifier] NULL, + [APRIORITYID] [uniqueidentifier] NULL, + [AREQUESTDATE] [datetime] NULL, + [ASUMMARY] [nvarchar](255) NULL,//Now Notes + [ATYPEID] [uniqueidentifier] NULL, + [AUNITID] [uniqueidentifier] NULL, + [AWORKORDERITEMUNITSERVICETYPEID] [uniqueidentifier] NULL, + [AWARRANTYSERVICE] [bit] NOT NULL, + [ACUSTOM1] [ntext] NULL, + [ACUSTOM2] [ntext] NULL, + [ACUSTOM3] [ntext] NULL, + [ACUSTOM4] [ntext] NULL, + [ACUSTOM5] [ntext] NULL, + [ACUSTOM6] [ntext] NULL, + [ACUSTOM7] [ntext] NULL, + [ACUSTOM8] [ntext] NULL, + [ACUSTOM9] [ntext] NULL, + [ACUSTOM0] [ntext] NULL + +*/ \ No newline at end of file