This commit is contained in:
@@ -28,7 +28,7 @@ namespace AyaNova.Models
|
|||||||
Tags = new List<string>();
|
Tags = new List<string>();
|
||||||
}
|
}
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.Contract; }
|
public AyaType AyaType { get => AyaType.Contract; }
|
||||||
|
|
||||||
}//eoc
|
}//eoc
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ namespace AyaNova.Models
|
|||||||
Tags = new List<string>();
|
Tags = new List<string>();
|
||||||
}
|
}
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.Customer; }
|
public AyaType AyaType { get => AyaType.Customer; }
|
||||||
|
|
||||||
}//eoc
|
}//eoc
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ namespace AyaNova.Models
|
|||||||
Tags = new List<string>();
|
Tags = new List<string>();
|
||||||
}
|
}
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.HeadOffice; }
|
public AyaType AyaType { get => AyaType.HeadOffice; }
|
||||||
|
|
||||||
}//eoc
|
}//eoc
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ namespace AyaNova.Models
|
|||||||
public string Wiki { get => throw new System.NotImplementedException(); set => throw new System.NotImplementedException(); }
|
public string Wiki { get => throw new System.NotImplementedException(); set => throw new System.NotImplementedException(); }
|
||||||
public string CustomFields { get; set; }
|
public string CustomFields { get; set; }
|
||||||
public List<string> Tags { get; set; }
|
public List<string> Tags { get; set; }
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaNova.Biz.AyaType AyaType { get;}
|
public AyaNova.Biz.AyaType AyaType { get;}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ namespace AyaNova.Models
|
|||||||
Tags = new List<string>();
|
Tags = new List<string>();
|
||||||
}
|
}
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.LoanUnit; }
|
public AyaType AyaType { get => AyaType.LoanUnit; }
|
||||||
|
|
||||||
}//eoc
|
}//eoc
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ namespace AyaNova.Models
|
|||||||
PMItems = new List<PMItem>();
|
PMItems = new List<PMItem>();
|
||||||
}
|
}
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.PM; }
|
public AyaType AyaType { get => AyaType.PM; }
|
||||||
|
|
||||||
}//eoc
|
}//eoc
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ namespace AyaNova.Models
|
|||||||
Tags = new List<string>();
|
Tags = new List<string>();
|
||||||
}
|
}
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.PMItem; }
|
public AyaType AyaType { get => AyaType.PMItem; }
|
||||||
|
|
||||||
}//eoc
|
}//eoc
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ namespace AyaNova.Models
|
|||||||
Tags = new List<string>();
|
Tags = new List<string>();
|
||||||
}
|
}
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.PMTemplate; }
|
public AyaType AyaType { get => AyaType.PMTemplate; }
|
||||||
|
|
||||||
}//eoc
|
}//eoc
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ namespace AyaNova.Models
|
|||||||
Tags = new List<string>();
|
Tags = new List<string>();
|
||||||
}
|
}
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.PMTemplateItem; }
|
public AyaType AyaType { get => AyaType.PMTemplateItem; }
|
||||||
|
|
||||||
}//eoc
|
}//eoc
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ namespace AyaNova.Models
|
|||||||
Tags = new List<string>();
|
Tags = new List<string>();
|
||||||
}
|
}
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.Part; }
|
public AyaType AyaType { get => AyaType.Part; }
|
||||||
|
|
||||||
}//eoc
|
}//eoc
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ namespace AyaNova.Models
|
|||||||
Tags = new List<string>();
|
Tags = new List<string>();
|
||||||
}
|
}
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.Project; }
|
public AyaType AyaType { get => AyaType.Project; }
|
||||||
|
|
||||||
}//eoc
|
}//eoc
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ namespace AyaNova.Models
|
|||||||
Tags = new List<string>();
|
Tags = new List<string>();
|
||||||
}
|
}
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.PurchaseOrder; }
|
public AyaType AyaType { get => AyaType.PurchaseOrder; }
|
||||||
|
|
||||||
}//eoc
|
}//eoc
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ namespace AyaNova.Models
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.Quote; }
|
public AyaType AyaType { get => AyaType.Quote; }
|
||||||
|
|
||||||
}//eoc
|
}//eoc
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ namespace AyaNova.Models
|
|||||||
Tags = new List<string>();
|
Tags = new List<string>();
|
||||||
}
|
}
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.QuoteItem; }
|
public AyaType AyaType { get => AyaType.QuoteItem; }
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ namespace AyaNova.Models
|
|||||||
Tags = new List<string>();
|
Tags = new List<string>();
|
||||||
}
|
}
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.QuoteTemplate; }
|
public AyaType AyaType { get => AyaType.QuoteTemplate; }
|
||||||
|
|
||||||
}//eoc
|
}//eoc
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ namespace AyaNova.Models
|
|||||||
Tags = new List<string>();
|
Tags = new List<string>();
|
||||||
}
|
}
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.QuoteTemplateItem; }
|
public AyaType AyaType { get => AyaType.QuoteTemplateItem; }
|
||||||
|
|
||||||
}//eoc
|
}//eoc
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ namespace AyaNova.Models
|
|||||||
Tags = new List<string>();
|
Tags = new List<string>();
|
||||||
}
|
}
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.Unit; }
|
public AyaType AyaType { get => AyaType.Unit; }
|
||||||
|
|
||||||
}//eoc
|
}//eoc
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ namespace AyaNova.Models
|
|||||||
Tags = new List<string>();
|
Tags = new List<string>();
|
||||||
}
|
}
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.UnitModel; }
|
public AyaType AyaType { get => AyaType.UnitModel; }
|
||||||
|
|
||||||
}//eoc
|
}//eoc
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ namespace AyaNova.Models
|
|||||||
|
|
||||||
public DateTime? LastLogin { get; set; }
|
public DateTime? LastLogin { get; set; }
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.User; }
|
public AyaType AyaType { get => AyaType.User; }
|
||||||
}//eoc
|
}//eoc
|
||||||
|
|
||||||
@@ -97,7 +97,7 @@ namespace AyaNova.Models
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.User; }
|
public AyaType AyaType { get => AyaType.User; }
|
||||||
|
|
||||||
}//eoc
|
}//eoc
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ namespace AyaNova.Models
|
|||||||
Tags = new List<string>();
|
Tags = new List<string>();
|
||||||
}
|
}
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.Vendor; }
|
public AyaType AyaType { get => AyaType.Vendor; }
|
||||||
|
|
||||||
}//eoc
|
}//eoc
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ namespace AyaNova.Models
|
|||||||
Tags = new List<string>();
|
Tags = new List<string>();
|
||||||
}
|
}
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.Widget; }
|
public AyaType AyaType { get => AyaType.Widget; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ namespace AyaNova.Models
|
|||||||
public string CustomFields { get; set; }
|
public string CustomFields { get; set; }
|
||||||
public List<string> Tags { get; set; }
|
public List<string> Tags { get; set; }
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.WorkOrder; }
|
public AyaType AyaType { get => AyaType.WorkOrder; }
|
||||||
|
|
||||||
}//eoc
|
}//eoc
|
||||||
@@ -56,7 +56,7 @@ namespace AyaNova.Models
|
|||||||
public List<WorkOrderItem> Items { get; set; }
|
public List<WorkOrderItem> Items { get; set; }
|
||||||
|
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public string Name
|
public string Name
|
||||||
{
|
{
|
||||||
//Used by notification processor
|
//Used by notification processor
|
||||||
@@ -66,7 +66,7 @@ namespace AyaNova.Models
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.WorkOrder; }
|
public AyaType AyaType { get => AyaType.WorkOrder; }
|
||||||
}//eoc
|
}//eoc
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ namespace AyaNova.Models
|
|||||||
[Required]
|
[Required]
|
||||||
public long WorkOrderId { get; set; }
|
public long WorkOrderId { get; set; }
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.WorkOrderItem; }
|
public AyaType AyaType { get => AyaType.WorkOrderItem; }
|
||||||
}//eoc
|
}//eoc
|
||||||
|
|
||||||
@@ -68,7 +68,7 @@ namespace AyaNova.Models
|
|||||||
public List<WorkOrderItemTravel> Travels { get; set; }
|
public List<WorkOrderItemTravel> Travels { get; set; }
|
||||||
public List<WorkOrderItemUnit> Units { get; set; }
|
public List<WorkOrderItemUnit> Units { get; set; }
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.WorkOrderItem; }
|
public AyaType AyaType { get => AyaType.WorkOrderItem; }
|
||||||
}//eoc
|
}//eoc
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ namespace AyaNova.Models
|
|||||||
public WorkOrderItem WorkOrderItem { get; set; }
|
public WorkOrderItem WorkOrderItem { get; set; }
|
||||||
|
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.WorkOrderItemExpense; }
|
public AyaType AyaType { get => AyaType.WorkOrderItemExpense; }
|
||||||
|
|
||||||
}//eoc
|
}//eoc
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ namespace AyaNova.Models
|
|||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public WorkOrderItem WorkOrderItem { get; set; }
|
public WorkOrderItem WorkOrderItem { get; set; }
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.WorkOrderItemLabor; }
|
public AyaType AyaType { get => AyaType.WorkOrderItemLabor; }
|
||||||
|
|
||||||
}//eoc
|
}//eoc
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ namespace AyaNova.Models
|
|||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public WorkOrderItem WorkOrderItem { get; set; }
|
public WorkOrderItem WorkOrderItem { get; set; }
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.WorkOrderItemLoan; }
|
public AyaType AyaType { get => AyaType.WorkOrderItemLoan; }
|
||||||
|
|
||||||
}//eoc
|
}//eoc
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ namespace AyaNova.Models
|
|||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public WorkOrderItem WorkOrderItem { get; set; }
|
public WorkOrderItem WorkOrderItem { get; set; }
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.WorkOrderItemPart; }
|
public AyaType AyaType { get => AyaType.WorkOrderItemPart; }
|
||||||
|
|
||||||
}//eoc
|
}//eoc
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ namespace AyaNova.Models
|
|||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public WorkOrderItem WorkOrderItem { get; set; }
|
public WorkOrderItem WorkOrderItem { get; set; }
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.WorkOrderItemPartRequest; }
|
public AyaType AyaType { get => AyaType.WorkOrderItemPartRequest; }
|
||||||
|
|
||||||
}//eoc
|
}//eoc
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ namespace AyaNova.Models
|
|||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public WorkOrderItem WorkOrderItem { get; set; }
|
public WorkOrderItem WorkOrderItem { get; set; }
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.WorkOrderItemScheduledUser; }
|
public AyaType AyaType { get => AyaType.WorkOrderItemScheduledUser; }
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ namespace AyaNova.Models
|
|||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public WorkOrderItem WorkOrderItem { get; set; }
|
public WorkOrderItem WorkOrderItem { get; set; }
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.WorkOrderItemTask; }
|
public AyaType AyaType { get => AyaType.WorkOrderItemTask; }
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ namespace AyaNova.Models
|
|||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public WorkOrderItem WorkOrderItem { get; set; }
|
public WorkOrderItem WorkOrderItem { get; set; }
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.WorkOrderItemTravel; }
|
public AyaType AyaType { get => AyaType.WorkOrderItemTravel; }
|
||||||
|
|
||||||
}//eoc
|
}//eoc
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ namespace AyaNova.Models
|
|||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public WorkOrderItem WorkOrderItem { get; set; }
|
public WorkOrderItem WorkOrderItem { get; set; }
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.WorkOrderItemUnit; }
|
public AyaType AyaType { get => AyaType.WorkOrderItemUnit; }
|
||||||
|
|
||||||
}//eoc
|
}//eoc
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ namespace AyaNova.Models
|
|||||||
Tags = new List<string>();
|
Tags = new List<string>();
|
||||||
}
|
}
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.WorkOrderTemplate; }
|
public AyaType AyaType { get => AyaType.WorkOrderTemplate; }
|
||||||
|
|
||||||
}//eoc
|
}//eoc
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ namespace AyaNova.Models
|
|||||||
Tags = new List<string>();
|
Tags = new List<string>();
|
||||||
}
|
}
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.WorkOrderTemplateItem; }
|
public AyaType AyaType { get => AyaType.WorkOrderTemplateItem; }
|
||||||
|
|
||||||
}//eoc
|
}//eoc
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ namespace AyaNova.Util
|
|||||||
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImporting WHEN NEW TABLES ADDED!!!!
|
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImporting WHEN NEW TABLES ADDED!!!!
|
||||||
private const int DESIRED_SCHEMA_LEVEL = 12;
|
private const int DESIRED_SCHEMA_LEVEL = 12;
|
||||||
|
|
||||||
internal const long EXPECTED_COLUMN_COUNT = 380;
|
internal const long EXPECTED_COLUMN_COUNT = 382;
|
||||||
internal const long EXPECTED_INDEX_COUNT = 139;
|
internal const long EXPECTED_INDEX_COUNT = 139;
|
||||||
|
|
||||||
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImporting WHEN NEW TABLES ADDED!!!!
|
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImporting WHEN NEW TABLES ADDED!!!!
|
||||||
|
|||||||
Reference in New Issue
Block a user