This commit is contained in:
@@ -7,44 +7,20 @@ using AyaNova.Biz;
|
||||
namespace AyaNova.Models
|
||||
{
|
||||
|
||||
//Data transfer no child collections
|
||||
public class dtWorkOrder : ICoreBizObjectModel
|
||||
{
|
||||
public dtWorkOrder()
|
||||
{
|
||||
Tags = new List<string>();
|
||||
}
|
||||
|
||||
public long Id { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
/*
|
||||
|
||||
[Required]
|
||||
public long Serial { get; set; }
|
||||
public bool Active { get; set; }
|
||||
public string Notes { get; set; }
|
||||
public string Wiki { get; set; }
|
||||
public string CustomFields { get; set; }
|
||||
public List<string> Tags { get; set; }
|
||||
|
||||
[NotMapped, JsonIgnore]
|
||||
public AyaType AyaType { get => AyaType.WorkOrder; }
|
||||
|
||||
}//eoc
|
||||
/*
|
||||
|
||||
todo: Consider adding latitude / longitude to wo, quote, pm objects
|
||||
can copy over from the unit or customer or set themselves
|
||||
and can always hide
|
||||
means wo could be scheduled for ad-hoc locations and serviced that way, i.e. a truck parked on the side of the highway etc
|
||||
*/
|
||||
todo: Consider adding latitude / longitude to wo, quote, pm objects
|
||||
can copy over from the unit or customer or set themselves
|
||||
and can always hide
|
||||
means wo could be scheduled for ad-hoc locations and serviced that way, i.e. a truck parked on the side of the highway etc
|
||||
*/
|
||||
public class WorkOrder : ICoreBizObjectModel
|
||||
{
|
||||
public WorkOrder()
|
||||
{
|
||||
Tags = new List<string>();
|
||||
|
||||
//dependents
|
||||
Items = new List<WorkOrderItem>();
|
||||
}
|
||||
|
||||
public long Id { get; set; }
|
||||
@@ -56,24 +32,19 @@ todo: Consider adding latitude / longitude to wo, quote, pm objects
|
||||
public string Notes { get; set; }
|
||||
public string Wiki { get; set; }
|
||||
public string CustomFields { get; set; }
|
||||
public List<string> Tags { get; set; }
|
||||
public List<string> Tags { get; set; } = new List<string>();
|
||||
|
||||
// [Required]
|
||||
// public long CustomerId {get;set;}
|
||||
|
||||
//dependents
|
||||
public List<WorkOrderItem> Items { get; set; }
|
||||
|
||||
public List<WorkOrderItem> Items { get; set; } = new List<WorkOrderItem>();
|
||||
public List<WorkOrderState> States { get; set; } = new List<WorkOrderState>();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// [NotMapped, JsonIgnore]
|
||||
// public string Name
|
||||
// {
|
||||
// //Used by notification processor
|
||||
// get
|
||||
// {
|
||||
// return this.Serial.ToString();
|
||||
// }
|
||||
// }
|
||||
|
||||
[NotMapped, JsonIgnore]
|
||||
public AyaType AyaType { get => AyaType.WorkOrder; }
|
||||
@@ -126,4 +97,44 @@ CREATE TABLE [dbo].[AWORKORDER](
|
||||
[ACLOSEBYDATE] [datetime] NULL,
|
||||
[ASIGNATURE] [ntext] NULL,
|
||||
[ASIGNED] [datetime] NULL,
|
||||
*/
|
||||
*/
|
||||
|
||||
|
||||
|
||||
//STuff that was here before and may potentially be useful in future
|
||||
|
||||
|
||||
// [NotMapped, JsonIgnore]
|
||||
// public string Name
|
||||
// {
|
||||
// //Used by notification processor
|
||||
// get
|
||||
// {
|
||||
// return this.Serial.ToString();
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
// //Data transfer no child collections
|
||||
// public class dtWorkOrder : ICoreBizObjectModel
|
||||
// {
|
||||
// public dtWorkOrder()
|
||||
// {
|
||||
// Tags = new List<string>();
|
||||
// }
|
||||
|
||||
// public long Id { get; set; }
|
||||
// public uint Concurrency { get; set; }
|
||||
|
||||
// [Required]
|
||||
// public long Serial { get; set; }
|
||||
// public bool Active { get; set; }
|
||||
// public string Notes { get; set; }
|
||||
// public string Wiki { get; set; }
|
||||
// public string CustomFields { get; set; }
|
||||
// public List<string> Tags { get; set; }
|
||||
|
||||
// [NotMapped, JsonIgnore]
|
||||
// public AyaType AyaType { get => AyaType.WorkOrder; }
|
||||
|
||||
// }//eoc
|
||||
Reference in New Issue
Block a user