This commit is contained in:
2021-04-01 23:39:50 +00:00
parent bacef71d48
commit f608a514fc
11 changed files with 62 additions and 17 deletions

View File

@@ -30,11 +30,14 @@ namespace AyaNova.Models
public DateTime RequestDate { get; set; }
public bool WarrantyService { get; set; } = false;
//Principle
//UTILITY FIELDS
[NotMapped]
public bool IsDirty { get; set; } = false;//never dirty coming from the server
//Principle
[JsonIgnore]
public WorkOrder WorkOrder { get; set; }
//dependents
public List<WorkOrderItemExpense> Expenses { get; set; } = new List<WorkOrderItemExpense>();
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<WorkOrderItemOutsideService> OutsideServices { get; set; } = new List<WorkOrderItemOutsideService>();
//UTILITY FIELDS
[NotMapped]
public bool IsDirty { get; set; } = false;//never dirty coming from the server
}//eoc
}//eons

View File

@@ -25,6 +25,11 @@ namespace AyaNova.Models
public bool ChargeToCustomer { get; set; } = false;
//UTILITY FIELDS
[NotMapped]
public bool IsDirty { get; set; } = false;//never dirty coming from the server
[Required]
public long WorkOrderItemId { get; set; }
[JsonIgnore]

View File

@@ -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
//UTILITY FIELDS
[NotMapped]
public bool IsDirty { get; set; } = false;//never dirty coming from the server
[Required]
public long WorkOrderItemId { get; set; }
[JsonIgnore]

View File

@@ -25,6 +25,12 @@ namespace AyaNova.Models
[Required]
public LoanUnitRateUnit Rate { get; set; }
//UTILITY FIELDS
[NotMapped]
public bool IsDirty { get; set; } = false;//never dirty coming from the server
[Required]
public long WorkOrderItemId { get; set; }
[JsonIgnore]

View File

@@ -26,6 +26,11 @@ namespace AyaNova.Models
public DateTime? ReturnDate { get; set; }
//UTILITY FIELDS
[NotMapped]
public bool IsDirty { get; set; } = false;//never dirty coming from the server
[Required]
public long WorkOrderItemId { get; set; }
[JsonIgnore]

View File

@@ -20,11 +20,17 @@ namespace AyaNova.Models
[Required]
public decimal Quantity { get; set; }
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 Price {get;set;}//contract adjusted price or a copy of BasePrice if no contract
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 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; }
//UTILITY FIELDS
[NotMapped]
public bool IsDirty { get; set; } = false;//never dirty coming from the server
[Required]
public long WorkOrderItemId { get; set; }
[JsonIgnore]

View File

@@ -24,6 +24,12 @@ namespace AyaNova.Models
[Required]
public decimal Received { get; set; }
//UTILITY FIELDS
[NotMapped]
public bool IsDirty { get; set; } = false;//never dirty coming from the server
[Required]
public long WorkOrderItemId { get; set; }
[JsonIgnore]

View File

@@ -8,24 +8,26 @@ namespace AyaNova.Models
{
public class WorkOrderItemScheduledUser : ICoreBizObjectModel
{
public long Id { get; set; }
public uint Concurrency { get; set; }
public long? UserId { get; set; }
public decimal EstimatedQuantity { get; set; }
public DateTime? StartDate { get; set; }
public DateTime? StopDate { get; set; }
public long? ServiceRateId { get; set; }
//UTILITY FIELDS
[NotMapped]
public bool IsDirty { get; set; } = false;//never dirty coming from the server
[Required]
public long WorkOrderItemId { get; set; }
[JsonIgnore]
public WorkOrderItem WorkOrderItem { get; set; }
[NotMapped, JsonIgnore]
public AyaType AyaType { get => AyaType.WorkOrderItemScheduledUser; }
}//eoc
}//eons
/*

View File

@@ -20,6 +20,9 @@ namespace AyaNova.Models
public long? CompletedByUserId { get; set; }
public DateTime? CompletedDate { get; set; }
//UTILITY FIELDS
[NotMapped]
public bool IsDirty { get; set; } = false;//never dirty coming from the server
[Required]

View File

@@ -8,7 +8,6 @@ namespace AyaNova.Models
{
public class WorkOrderItemTravel : ICoreBizObjectModel
{
public long Id { 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 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]
public long WorkOrderItemId { get; set; }
[JsonIgnore]
public WorkOrderItem WorkOrderItem { get; set; }
[NotMapped, JsonIgnore]
public AyaType AyaType { get => AyaType.WorkOrderItemTravel; }
public AyaType AyaType { get => AyaType.WorkOrderItemTravel; }
}//eoc
}//eons

View File

@@ -15,11 +15,15 @@ namespace AyaNova.Models
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; }
//UTILITY FIELDS
[NotMapped]
public bool IsDirty { get; set; } = false;//never dirty coming from the server
[Required]
public long WorkOrderItemId { get; set; }
[JsonIgnore]