This commit is contained in:
34
server/AyaNova/models/WorkOrderItemPriority.cs
Normal file
34
server/AyaNova/models/WorkOrderItemPriority.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using AyaNova.Biz;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace AyaNova.Models
|
||||
{
|
||||
//NOTE: Any non required field (nullable in DB) sb nullable here, i.e. decimal? not decimal,
|
||||
//otherwise the server will call it an invalid record if the field isn't sent from client
|
||||
|
||||
public class WorkOrderItemPriority
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
public bool Active { get; set; }
|
||||
[MaxLength(12)]
|
||||
public string Color { get; set; } = "#ffffff";//white / no color is the default
|
||||
|
||||
}//eoc
|
||||
|
||||
}//eons
|
||||
/*
|
||||
[dbo].[APRIORITY](
|
||||
[AID] [uniqueidentifier] NOT NULL,
|
||||
[ACREATED] [datetime] NOT NULL,
|
||||
[ACREATOR] [uniqueidentifier] NOT NULL,
|
||||
[AMODIFIER] [uniqueidentifier] NOT NULL,
|
||||
[ANAME] [nvarchar](255) NOT NULL,
|
||||
[AMODIFIED] [datetime] NOT NULL,
|
||||
[AARGB] [int] NOT NULL,
|
||||
[AACTIVE] [bit] NOT NULL,
|
||||
*/
|
||||
Reference in New Issue
Block a user