This commit is contained in:
@@ -1114,9 +1114,15 @@ namespace AyaNova.Biz
|
|||||||
//
|
//
|
||||||
private async Task WorkOrderPopulateVizFields(WorkOrder o, bool headerOnly)
|
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)
|
if (!headerOnly)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
public bool IsLockedAtServer { get; set; } = false;//signal to client that it came from the server in a locked state
|
||||||
[NotMapped]
|
[NotMapped]
|
||||||
public string AlertViz { get; set; } = null;
|
public string AlertViz { get; set; } = null;
|
||||||
[NotMapped]
|
// [NotMapped]
|
||||||
public bool HasPartCosts { get; set; } = false;//signal to client that part costs were not populated (due to user rights / role / type)
|
// public bool HasPartCosts { get; set; } = false;//signal to client that part costs were not populated (due to user rights / role / type)
|
||||||
[NotMapped]
|
// [NotMapped]
|
||||||
public bool HasTravelAndLaborRateCosts { get; set; } = false;
|
// public bool HasTravelAndLaborRateCosts { get; set; } = false;
|
||||||
[NotMapped]
|
// [NotMapped]
|
||||||
public bool HasLoanItemCosts { get; set; } = false;
|
// public bool HasLoanItemCosts { get; set; } = false;
|
||||||
[NotMapped]
|
[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)
|
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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user