This commit is contained in:
@@ -30,11 +30,14 @@ namespace AyaNova.Models
|
|||||||
public DateTime RequestDate { get; set; }
|
public DateTime RequestDate { get; set; }
|
||||||
public bool WarrantyService { get; set; } = false;
|
public bool WarrantyService { get; set; } = false;
|
||||||
|
|
||||||
//Principle
|
//UTILITY FIELDS
|
||||||
|
[NotMapped]
|
||||||
|
public bool IsDirty { get; set; } = false;//never dirty coming from the server
|
||||||
|
|
||||||
|
|
||||||
|
//Principle
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public WorkOrder WorkOrder { get; set; }
|
public WorkOrder WorkOrder { get; set; }
|
||||||
|
|
||||||
//dependents
|
//dependents
|
||||||
public List<WorkOrderItemExpense> Expenses { get; set; } = new List<WorkOrderItemExpense>();
|
public List<WorkOrderItemExpense> Expenses { get; set; } = new List<WorkOrderItemExpense>();
|
||||||
public List<WorkOrderItemLabor> Labors { get; set; } = new List<WorkOrderItemLabor>();
|
public List<WorkOrderItemLabor> Labors { get; set; } = new List<WorkOrderItemLabor>();
|
||||||
@@ -47,11 +50,6 @@ namespace AyaNova.Models
|
|||||||
public List<WorkOrderItemUnit> Units { get; set; } = new List<WorkOrderItemUnit>();
|
public List<WorkOrderItemUnit> Units { get; set; } = new List<WorkOrderItemUnit>();
|
||||||
public List<WorkOrderItemOutsideService> OutsideServices { get; set; } = new List<WorkOrderItemOutsideService>();
|
public List<WorkOrderItemOutsideService> OutsideServices { get; set; } = new List<WorkOrderItemOutsideService>();
|
||||||
|
|
||||||
//UTILITY FIELDS
|
|
||||||
[NotMapped]
|
|
||||||
public bool IsDirty { get; set; } = false;//never dirty coming from the server
|
|
||||||
|
|
||||||
|
|
||||||
}//eoc
|
}//eoc
|
||||||
|
|
||||||
}//eons
|
}//eons
|
||||||
|
|||||||
@@ -25,6 +25,11 @@ namespace AyaNova.Models
|
|||||||
public bool ChargeToCustomer { get; set; } = false;
|
public bool ChargeToCustomer { get; set; } = false;
|
||||||
|
|
||||||
|
|
||||||
|
//UTILITY FIELDS
|
||||||
|
[NotMapped]
|
||||||
|
public bool IsDirty { get; set; } = false;//never dirty coming from the server
|
||||||
|
|
||||||
|
|
||||||
[Required]
|
[Required]
|
||||||
public long WorkOrderItemId { get; set; }
|
public long WorkOrderItemId { get; set; }
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
|
|||||||
@@ -26,6 +26,12 @@ namespace AyaNova.Models
|
|||||||
public decimal ManualDiscountPct { get; set; }// (V7 "Discount") ad-hoc / % off of the contractprice (which is always set regardless if contract or not) entered manually
|
public decimal ManualDiscountPct { get; set; }// (V7 "Discount") ad-hoc / % off of the contractprice (which is always set regardless if contract or not) entered manually
|
||||||
|
|
||||||
|
|
||||||
|
//UTILITY FIELDS
|
||||||
|
[NotMapped]
|
||||||
|
public bool IsDirty { get; set; } = false;//never dirty coming from the server
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[Required]
|
[Required]
|
||||||
public long WorkOrderItemId { get; set; }
|
public long WorkOrderItemId { get; set; }
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
|
|||||||
@@ -25,6 +25,12 @@ namespace AyaNova.Models
|
|||||||
[Required]
|
[Required]
|
||||||
public LoanUnitRateUnit Rate { get; set; }
|
public LoanUnitRateUnit Rate { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
//UTILITY FIELDS
|
||||||
|
[NotMapped]
|
||||||
|
public bool IsDirty { get; set; } = false;//never dirty coming from the server
|
||||||
|
|
||||||
|
|
||||||
[Required]
|
[Required]
|
||||||
public long WorkOrderItemId { get; set; }
|
public long WorkOrderItemId { get; set; }
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
|
|||||||
@@ -26,6 +26,11 @@ namespace AyaNova.Models
|
|||||||
public DateTime? ReturnDate { get; set; }
|
public DateTime? ReturnDate { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
//UTILITY FIELDS
|
||||||
|
[NotMapped]
|
||||||
|
public bool IsDirty { get; set; } = false;//never dirty coming from the server
|
||||||
|
|
||||||
|
|
||||||
[Required]
|
[Required]
|
||||||
public long WorkOrderItemId { get; set; }
|
public long WorkOrderItemId { get; set; }
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
|
|||||||
@@ -20,11 +20,17 @@ namespace AyaNova.Models
|
|||||||
[Required]
|
[Required]
|
||||||
public decimal Quantity { get; set; }
|
public decimal Quantity { get; set; }
|
||||||
public decimal Cost { get; set; }//cost at time of entry from part table
|
public decimal Cost { get; set; }//cost at time of entry from part table
|
||||||
public decimal BasePrice {get;set;}//part retail price at time of entry (V7 "Price")
|
public decimal BasePrice { get; set; }//part retail price at time of entry (V7 "Price")
|
||||||
public decimal Price {get;set;}//contract adjusted price or a copy of BasePrice if no contract
|
public decimal Price { get; set; }//contract adjusted price or a copy of BasePrice if no contract
|
||||||
public decimal ManualDiscountPct { get; set; }// (V7 "Discount") ad-hoc / % off of the contractprice (which is always set regardless if contract or not) entered manually
|
public decimal ManualDiscountPct { get; set; }// (V7 "Discount") ad-hoc / % off of the contractprice (which is always set regardless if contract or not) entered manually
|
||||||
public long? TaxPartSaleId { get; set; }
|
public long? TaxPartSaleId { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
//UTILITY FIELDS
|
||||||
|
[NotMapped]
|
||||||
|
public bool IsDirty { get; set; } = false;//never dirty coming from the server
|
||||||
|
|
||||||
|
|
||||||
[Required]
|
[Required]
|
||||||
public long WorkOrderItemId { get; set; }
|
public long WorkOrderItemId { get; set; }
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
|
|||||||
@@ -24,6 +24,12 @@ namespace AyaNova.Models
|
|||||||
[Required]
|
[Required]
|
||||||
public decimal Received { get; set; }
|
public decimal Received { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
//UTILITY FIELDS
|
||||||
|
[NotMapped]
|
||||||
|
public bool IsDirty { get; set; } = false;//never dirty coming from the server
|
||||||
|
|
||||||
|
|
||||||
[Required]
|
[Required]
|
||||||
public long WorkOrderItemId { get; set; }
|
public long WorkOrderItemId { get; set; }
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
|
|||||||
@@ -8,24 +8,26 @@ namespace AyaNova.Models
|
|||||||
{
|
{
|
||||||
public class WorkOrderItemScheduledUser : ICoreBizObjectModel
|
public class WorkOrderItemScheduledUser : ICoreBizObjectModel
|
||||||
{
|
{
|
||||||
|
|
||||||
public long Id { get; set; }
|
public long Id { get; set; }
|
||||||
public uint Concurrency { get; set; }
|
public uint Concurrency { get; set; }
|
||||||
|
|
||||||
public long? UserId { get; set; }
|
public long? UserId { get; set; }
|
||||||
public decimal EstimatedQuantity { get; set; }
|
public decimal EstimatedQuantity { get; set; }
|
||||||
public DateTime? StartDate { get; set; }
|
public DateTime? StartDate { get; set; }
|
||||||
public DateTime? StopDate { get; set; }
|
public DateTime? StopDate { get; set; }
|
||||||
public long? ServiceRateId { get; set; }
|
public long? ServiceRateId { get; set; }
|
||||||
|
|
||||||
|
//UTILITY FIELDS
|
||||||
|
[NotMapped]
|
||||||
|
public bool IsDirty { get; set; } = false;//never dirty coming from the server
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[Required]
|
[Required]
|
||||||
public long WorkOrderItemId { get; set; }
|
public long WorkOrderItemId { get; set; }
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public WorkOrderItem WorkOrderItem { get; set; }
|
public WorkOrderItem WorkOrderItem { get; set; }
|
||||||
|
|
||||||
[NotMapped, JsonIgnore]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.WorkOrderItemScheduledUser; }
|
public AyaType AyaType { get => AyaType.WorkOrderItemScheduledUser; }
|
||||||
|
|
||||||
}//eoc
|
}//eoc
|
||||||
}//eons
|
}//eons
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -20,6 +20,9 @@ namespace AyaNova.Models
|
|||||||
public long? CompletedByUserId { get; set; }
|
public long? CompletedByUserId { get; set; }
|
||||||
public DateTime? CompletedDate { get; set; }
|
public DateTime? CompletedDate { get; set; }
|
||||||
|
|
||||||
|
//UTILITY FIELDS
|
||||||
|
[NotMapped]
|
||||||
|
public bool IsDirty { get; set; } = false;//never dirty coming from the server
|
||||||
|
|
||||||
|
|
||||||
[Required]
|
[Required]
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ namespace AyaNova.Models
|
|||||||
{
|
{
|
||||||
public class WorkOrderItemTravel : ICoreBizObjectModel
|
public class WorkOrderItemTravel : ICoreBizObjectModel
|
||||||
{
|
{
|
||||||
|
|
||||||
public long Id { get; set; }
|
public long Id { get; set; }
|
||||||
public uint Concurrency { get; set; }
|
public uint Concurrency { get; set; }
|
||||||
|
|
||||||
@@ -26,13 +25,18 @@ namespace AyaNova.Models
|
|||||||
public decimal Price { get; set; }//contract adjusted price or a copy of BasePrice if no contract
|
public decimal Price { get; set; }//contract adjusted price or a copy of BasePrice if no contract
|
||||||
public decimal ManualDiscountPct { get; set; }// (V7 "Discount") ad-hoc / % off of the contractprice (which is always set regardless if contract or not) entered manually
|
public decimal ManualDiscountPct { get; set; }// (V7 "Discount") ad-hoc / % off of the contractprice (which is always set regardless if contract or not) entered manually
|
||||||
|
|
||||||
|
//UTILITY FIELDS
|
||||||
|
[NotMapped]
|
||||||
|
public bool IsDirty { get; set; } = false;//never dirty coming from the server
|
||||||
|
|
||||||
|
|
||||||
[Required]
|
[Required]
|
||||||
public long WorkOrderItemId { get; set; }
|
public long WorkOrderItemId { get; set; }
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public WorkOrderItem WorkOrderItem { get; set; }
|
public WorkOrderItem WorkOrderItem { get; set; }
|
||||||
|
|
||||||
[NotMapped, JsonIgnore]
|
[NotMapped, JsonIgnore]
|
||||||
public AyaType AyaType { get => AyaType.WorkOrderItemTravel; }
|
public AyaType AyaType { get => AyaType.WorkOrderItemTravel; }
|
||||||
|
|
||||||
}//eoc
|
}//eoc
|
||||||
}//eons
|
}//eons
|
||||||
|
|||||||
@@ -15,11 +15,15 @@ namespace AyaNova.Models
|
|||||||
public string Wiki { get; set; }
|
public string Wiki { get; set; }
|
||||||
public string CustomFields { get; set; }
|
public string CustomFields { get; set; }
|
||||||
public List<string> Tags { get; set; } = new List<string>();
|
public List<string> Tags { get; set; } = new List<string>();
|
||||||
|
|
||||||
|
|
||||||
[Required]
|
[Required]
|
||||||
public long UnitId { get; set; }
|
public long UnitId { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
//UTILITY FIELDS
|
||||||
|
[NotMapped]
|
||||||
|
public bool IsDirty { get; set; } = false;//never dirty coming from the server
|
||||||
|
|
||||||
|
|
||||||
[Required]
|
[Required]
|
||||||
public long WorkOrderItemId { get; set; }
|
public long WorkOrderItemId { get; set; }
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
|
|||||||
Reference in New Issue
Block a user