This commit is contained in:
2021-03-25 20:42:48 +00:00
parent 0c8d8ac8ac
commit e33c94bf24
5 changed files with 126 additions and 21 deletions

View File

@@ -1,3 +1,4 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
@@ -10,20 +11,24 @@ namespace AyaNova.Models
public class WorkOrderItem : ICoreBizObjectModel
{
public long Id { get; set; }
public uint Concurrency { get; set; }
public string Notes { get; set; }//Was Summary
public string Wiki { get; set; }
public string CustomFields { get; set; }
public List<string> Tags { get; set; } = new List<string>();
public string TechNotes { get; set; }
//Principle
[Required]
public long WorkOrderId { get; set; }
public string TechNotes { get; set; }
public long WorkorderItemStatusId { get; set; }
public long WorkorderItemPriorityId { get; set; }
public DateTime RequestDate { get; set; }
public bool WarrantyService { get; set; } = false;
//Principle
[JsonIgnore]
public WorkOrder WorkOrder { get; set; }
@@ -59,9 +64,9 @@ CREATE TABLE [dbo].[AWORKORDERITEM](
[APRIORITYID] [uniqueidentifier] NULL,
[AREQUESTDATE] [datetime] NULL,
[ASUMMARY] [nvarchar](255) NULL,//Now Notes
[ATYPEID] [uniqueidentifier] NULL,
[AUNITID] [uniqueidentifier] NULL,
[AWORKORDERITEMUNITSERVICETYPEID] [uniqueidentifier] NULL,
[ATYPEID] [uniqueidentifier] NULL,//Now a tag
[AUNITID] [uniqueidentifier] NULL,//MOVED TO WOITEMUNITS COLLECTION
[AWORKORDERITEMUNITSERVICETYPEID] [uniqueidentifier] NULL,//MOVE TO WOITEMUNITS COLLECTION?
[AWARRANTYSERVICE] [bit] NOT NULL,
[ACUSTOM1] [ntext] NULL,
[ACUSTOM2] [ntext] NULL,