This commit is contained in:
2021-07-14 19:56:08 +00:00
parent 12b93c3c04
commit edfa5a0ed9
2 changed files with 15 additions and 9 deletions

View File

@@ -1114,9 +1114,15 @@ namespace AyaNova.Biz
//
private async Task WorkOrderPopulateVizFields(WorkOrder o, bool headerOnly)
{
o.HasLoanItemCosts = UserCanViewLoanerCosts;
o.HasPartCosts = UserCanViewPartCosts;
o.HasTravelAndLaborRateCosts = UserCanViewLaborOrTravelRateCosts;
o.UserIsRestrictedType = UserIsRestrictedType;
o.UserIsTechRestricted = UserIsTechRestricted;
o.UserIsSubContractorFull = UserIsSubContractorFull;
o.UserIsSubContractorRestricted = UserIsSubContractorRestricted;
o.UserCanViewPartCosts = UserCanViewPartCosts;
o.UserCanViewLaborOrTravelRateCosts = UserCanViewLaborOrTravelRateCosts;
o.UserCanViewLoanerCosts = UserCanViewLoanerCosts;
if (!headerOnly)
{

View File

@@ -89,12 +89,12 @@ namespace AyaNova.Models
public bool IsLockedAtServer { get; set; } = false;//signal to client that it came from the server in a locked state
[NotMapped]
public string AlertViz { get; set; } = null;
[NotMapped]
public bool HasPartCosts { get; set; } = false;//signal to client that part costs were not populated (due to user rights / role / type)
[NotMapped]
public bool HasTravelAndLaborRateCosts { get; set; } = false;
[NotMapped]
public bool HasLoanItemCosts { get; set; } = false;
// [NotMapped]
// public bool HasPartCosts { get; set; } = false;//signal to client that part costs were not populated (due to user rights / role / type)
// [NotMapped]
// public bool HasTravelAndLaborRateCosts { get; set; } = false;
// [NotMapped]
// public bool HasLoanItemCosts { get; set; } = false;
[NotMapped]
public bool IsCompleteRecord { get; set; } = true;//indicates if some items were removed due to user role / type restrictions (i.e. woitems they are not scheduled on)