This commit is contained in:
@@ -357,6 +357,16 @@ namespace AyaNova.Biz
|
|||||||
Select = AuthorizationRoles.All
|
Select = AuthorizationRoles.All
|
||||||
});
|
});
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////
|
||||||
|
//UnitMeterReading - same as unit
|
||||||
|
//
|
||||||
|
roles.Add(AyaType.UnitMeterReading, new BizRoleSet()
|
||||||
|
{
|
||||||
|
Change = AuthorizationRoles.BizAdmin | AuthorizationRoles.Service | AuthorizationRoles.Sales | AuthorizationRoles.Tech | AuthorizationRoles.Accounting,
|
||||||
|
ReadFullRecord = AuthorizationRoles.BizAdminRestricted | AuthorizationRoles.ServiceRestricted | AuthorizationRoles.SalesRestricted | AuthorizationRoles.TechRestricted,
|
||||||
|
Select = AuthorizationRoles.All
|
||||||
|
});
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//Vendor
|
//Vendor
|
||||||
//
|
//
|
||||||
@@ -862,9 +872,9 @@ namespace AyaNova.Biz
|
|||||||
|
|
||||||
//GENERATE CLIENT COMPATIBLE JSON FROM ROLES OUTPUT TO DEBUG LOG
|
//GENERATE CLIENT COMPATIBLE JSON FROM ROLES OUTPUT TO DEBUG LOG
|
||||||
//And seperately, set the JSON variable so can copy from debug variable "value" property for lastRoles here to compare
|
//And seperately, set the JSON variable so can copy from debug variable "value" property for lastRoles here to compare
|
||||||
// string json = Newtonsoft.Json.JsonConvert.SerializeObject(roles, Newtonsoft.Json.Formatting.None);
|
string json = Newtonsoft.Json.JsonConvert.SerializeObject(roles, Newtonsoft.Json.Formatting.None);
|
||||||
// System.Diagnostics.Debugger.Log(1, "JSONFRAGMENTFORCLIENT", "BizRoles.cs -> biz-role-rights.js Client roles JSON fragment:\n\n");
|
System.Diagnostics.Debugger.Log(1, "JSONFRAGMENTFORCLIENT", "BizRoles.cs -> biz-role-rights.js Client roles JSON fragment:\n\n");
|
||||||
// System.Diagnostics.Debugger.Log(1, "JSONFRAGMENTFORCLIENT", json + "\n\n");
|
System.Diagnostics.Debugger.Log(1, "JSONFRAGMENTFORCLIENT", json + "\n\n");
|
||||||
|
|
||||||
//ONGOING VALIDATION TO CATCH MISMATCH WHEN NEW ROLES ADDED (wont' catch changes to existing unfortunately)
|
//ONGOING VALIDATION TO CATCH MISMATCH WHEN NEW ROLES ADDED (wont' catch changes to existing unfortunately)
|
||||||
|
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ namespace AyaNova.Biz
|
|||||||
_formFieldKeys.Add(AyaType.WorkOrderStatus.ToString());
|
_formFieldKeys.Add(AyaType.WorkOrderStatus.ToString());
|
||||||
_formFieldKeys.Add(AyaType.WorkOrderItemStatus.ToString());
|
_formFieldKeys.Add(AyaType.WorkOrderItemStatus.ToString());
|
||||||
_formFieldKeys.Add(AyaType.WorkOrderItemPriority.ToString());
|
_formFieldKeys.Add(AyaType.WorkOrderItemPriority.ToString());
|
||||||
|
_formFieldKeys.Add(AyaType.UnitMeterReading.ToString());
|
||||||
}
|
}
|
||||||
return _formFieldKeys;
|
return _formFieldKeys;
|
||||||
}
|
}
|
||||||
@@ -1389,6 +1390,12 @@ namespace AyaNova.Biz
|
|||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region UnitmeterReading
|
||||||
|
{
|
||||||
|
List<FormField> l = new List<FormField>();
|
||||||
|
_formFields.Add(AyaType.UnitMeterReading.ToString(), l);
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user