This commit is contained in:
2021-03-24 17:14:34 +00:00
parent 7a1a7ddee4
commit 36be423c23
3 changed files with 15 additions and 3 deletions

View File

@@ -136,7 +136,8 @@ namespace AyaNova.Biz
PartInventory = 67,
DataListColumnView = 68,
PartInventoryRestock = 69,//for list only, synthetic object
PartInventoryRequest = 70//for list only not, synthetic object
PartInventoryRequest = 70,//for list only not, synthetic object
WorkOrderStatus = 71

View File

@@ -451,6 +451,17 @@ namespace AyaNova.Biz
});
////////////////////////////////////////////////////////////
//WorkOrderStatus
//
roles.Add(AyaType.WorkOrderStatus, new BizRoleSet()
{
Change = AuthorizationRoles.BizAdminFull | AuthorizationRoles.DispatchFull | AuthorizationRoles.TechFull | AuthorizationRoles.SubContractorFull | AuthorizationRoles.AccountingFull,
ReadFullRecord = AuthorizationRoles.BizAdminLimited | AuthorizationRoles.DispatchLimited | AuthorizationRoles.SalesFull |
AuthorizationRoles.SalesLimited | AuthorizationRoles.SubContractorLimited | AuthorizationRoles.TechLimited | AuthorizationRoles.CustomerLimited | AuthorizationRoles.CustomerFull,
Select = AuthorizationRoles.All
});
////////////////////////////////////////////////////////////
//WorkOrder
//

View File

@@ -10,7 +10,7 @@ namespace AyaNova.Models
//NOTE: Any non required field (nullable in DB) sb nullable here, i.e. decimal? not decimal,
//otherwise the server will call it an invalid record if the field isn't sent from client
public class WorkorderStatus
public class WorkOrderStatus
{
public long Id { get; set; }
public uint Concurrency { get; set; }
@@ -32,7 +32,7 @@ namespace AyaNova.Models
public bool Completed { get; set; }
public bool Locked { get; set; }
public WorkorderStatus()
public WorkOrderStatus()
{
Color = "#ffffff";//white / no color is the default
}