From e33460d25f731341ff5dad25fc662653feb7a47c Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Sat, 27 Mar 2021 00:50:52 +0000 Subject: [PATCH] --- server/AyaNova/models/WorkOrderItemUnit.cs | 39 ++++++++++++++++++---- 1 file changed, 33 insertions(+), 6 deletions(-) diff --git a/server/AyaNova/models/WorkOrderItemUnit.cs b/server/AyaNova/models/WorkOrderItemUnit.cs index cb6691a2..b7610ea3 100644 --- a/server/AyaNova/models/WorkOrderItemUnit.cs +++ b/server/AyaNova/models/WorkOrderItemUnit.cs @@ -8,15 +8,12 @@ namespace AyaNova.Models { public class WorkOrderItemUnit : ICoreBizObjectModel { - public WorkOrderItemUnit() - { - Tags = new List(); - } + public long Id { get; set; } public uint Concurrency { get; set; } public string Notes { get; set; } - public string CustomFields { get; set; } - public List Tags { get; set; } +//after much to and fro just code this as planned but definitely consider custom fields adn tags for this and possibly all other grandchildren as well? + [Required] public long WorkOrderItemId { get; set; } [JsonIgnore] @@ -27,3 +24,33 @@ namespace AyaNova.Models }//eoc }//eons +/* +New object that didnt' exist in v7 except as a singleton referenced inside woitem: + +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, + [ATYPEID] [uniqueidentifier] NULL, + [AUNITID] [uniqueidentifier] NULL,//<--------UNIT + [AWORKORDERITEMUNITSERVICETYPEID] [uniqueidentifier] NULL,//<--------UNIT + [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