This commit is contained in:
89
server/AyaNova/models/PMItemUnit.cs
Normal file
89
server/AyaNova/models/PMItemUnit.cs
Normal file
@@ -0,0 +1,89 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Newtonsoft.Json;
|
||||
using AyaNova.Biz;
|
||||
|
||||
namespace AyaNova.Models
|
||||
{
|
||||
public class PMItemUnit : ICoreBizObjectModel
|
||||
{
|
||||
|
||||
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<string> Tags { get; set; } = new List<string>();
|
||||
[Required]
|
||||
public long UnitId { get; set; }
|
||||
[NotMapped]
|
||||
public string UnitViz { get; set; }
|
||||
|
||||
[Required]
|
||||
public long PMItemId { get; set; }
|
||||
[JsonIgnore]
|
||||
public PMItem PMItem { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
public string UnitModelNameViz { get; set; }
|
||||
[NotMapped]
|
||||
public string UnitModelVendorViz { get; set; }
|
||||
[NotMapped]
|
||||
public string UnitModelModelNumberViz { get; set; }
|
||||
[NotMapped]
|
||||
public string UnitDescriptionViz { get; set; }
|
||||
|
||||
//PHYSICAL ADDRESS
|
||||
[NotMapped]
|
||||
public string AddressViz { get; set; }
|
||||
[NotMapped]
|
||||
public string CityViz { get; set; }
|
||||
[NotMapped]
|
||||
public string RegionViz { get; set; }
|
||||
[NotMapped]
|
||||
public string CountryViz { get; set; }
|
||||
[NotMapped]
|
||||
public decimal? LatitudeViz { get; set; }
|
||||
[NotMapped]
|
||||
public decimal? LongitudeViz { get; set; }
|
||||
|
||||
//workaround for notification
|
||||
[NotMapped, JsonIgnore]
|
||||
public string Name { get; set; }
|
||||
|
||||
[NotMapped, JsonIgnore]
|
||||
public AyaType AyaType { get => AyaType.PMItemUnit; }
|
||||
|
||||
}//eoc
|
||||
}//eons
|
||||
/*
|
||||
New object that didnt' exist in v7 except as a singleton referenced inside woitem:
|
||||
|
||||
CREATE TABLE [dbo].[APMITEM](
|
||||
[AID] [uniqueidentifier] NOT NULL,
|
||||
[APMID] [uniqueidentifier] NOT NULL,
|
||||
[ACREATOR] [uniqueidentifier] NOT NULL,
|
||||
[AMODIFIER] [uniqueidentifier] NOT NULL,
|
||||
[ACREATED] [datetime] NOT NULL,
|
||||
[AMODIFIED] [datetime] NOT NULL,
|
||||
[ATECHNOTES] [ntext] NULL,
|
||||
[APMSTATUSID] [uniqueidentifier] NULL,
|
||||
[APRIORITYID] [uniqueidentifier] NULL,
|
||||
[AREQUESTDATE] [datetime] NULL,
|
||||
[ASUMMARY] [nvarchar](255) NULL,
|
||||
[ATYPEID] [uniqueidentifier] NULL,
|
||||
[AUNITID] [uniqueidentifier] NULL,//<--------UNIT
|
||||
[APMITEMUNITSERVICETYPEID] [uniqueidentifier] NULL,//<--------UNIT//NOW TAGS HMMM
|
||||
[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,
|
||||
*/
|
||||
Reference in New Issue
Block a user