This commit is contained in:
@@ -357,6 +357,16 @@ namespace AyaNova.Biz
|
||||
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
|
||||
//
|
||||
@@ -862,9 +872,9 @@ namespace AyaNova.Biz
|
||||
|
||||
//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
|
||||
// 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", json + "\n\n");
|
||||
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", json + "\n\n");
|
||||
|
||||
//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.WorkOrderItemStatus.ToString());
|
||||
_formFieldKeys.Add(AyaType.WorkOrderItemPriority.ToString());
|
||||
_formFieldKeys.Add(AyaType.UnitMeterReading.ToString());
|
||||
}
|
||||
return _formFieldKeys;
|
||||
}
|
||||
@@ -1388,7 +1389,13 @@ namespace AyaNova.Biz
|
||||
_formFields.Add(AyaType.WorkOrderItemPriority.ToString(), l);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region UnitmeterReading
|
||||
{
|
||||
List<FormField> l = new List<FormField>();
|
||||
_formFields.Add(AyaType.UnitMeterReading.ToString(), l);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
@@ -1400,7 +1407,7 @@ namespace AyaNova.Biz
|
||||
List<FormField> l = new List<FormField>();
|
||||
|
||||
//Several mandatory fields in PM header not listed here
|
||||
|
||||
|
||||
l.Add(new FormField { TKey = "CopyAttachments", FieldKey = "CopyAttachments" });
|
||||
l.Add(new FormField { TKey = "CopyWiki", FieldKey = "CopyWiki" });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user