This commit is contained in:
2021-05-31 19:18:12 +00:00
parent 145e664d89
commit 6ef0884b66
4 changed files with 49 additions and 55 deletions

View File

@@ -228,7 +228,7 @@ namespace AyaNova.Util
await SeedUserAsync(log, 1, AuthorizationRoles.BizAdminFull | AuthorizationRoles.DispatchFull | AuthorizationRoles.InventoryFull | AuthorizationRoles.OpsAdminFull, UserType.Service);
//Generate one office person / secretary
await SeedUserAsync(log, 1, AuthorizationRoles.DispatchFull | AuthorizationRoles.InventoryFull | AuthorizationRoles.AccountingFull, UserType.NotService);
await SeedWidgetAsync(log, 25);
await SeedWidgetAsync(log, 3);//keeping this here for now but must remove later
await SeedCustomerAsync(log, 25);
await SeedHeadOfficeAsync(log, 10);
await SeedVendorAsync(log, 10);
@@ -283,15 +283,15 @@ namespace AyaNova.Util
//1 accountant / bookkeeper
await SeedUserAsync(log, 1, AuthorizationRoles.AccountingFull | AuthorizationRoles.BizAdminLimited, UserType.NotService);
await SeedWidgetAsync(log, 100);
//await SeedWidgetAsync(log, 100);
await SeedCustomerAsync(log, 500);
await SeedHeadOfficeAsync(log, 20);
await SeedVendorAsync(log, 50);
await SeedProjectAsync(log, 50);
await SeedServiceRateAsync(log, 10);
await SeedTravelRateAsync(log, 5);
await SeedUnitModelAsync(log, 25);
await SeedUnitAsync(log, 2500);//5 times the customers or 5 units per customer
await SeedUnitModelAsync(log, 20);
await SeedUnitAsync(log, 2500);
await SeedLoanLoanUnitAsync(log, 10);
await SeedCustomerServiceRequestAsync(log, 10);
await SeedPartWarehouseAsync(log, 10);
@@ -325,10 +325,10 @@ namespace AyaNova.Util
await SeedUserAsync(log, 2, AuthorizationRoles.BizAdminFull | AuthorizationRoles.OpsAdminLimited, UserType.NotService);
//owner / upper management who doesn't control anything but views stuff
await SeedUserAsync(log, 5, AuthorizationRoles.BizAdminLimited | AuthorizationRoles.DispatchLimited | AuthorizationRoles.InventoryLimited | AuthorizationRoles.OpsAdminLimited, UserType.NotService);
//100 techs
await SeedUserAsync(log, 100, AuthorizationRoles.TechFull | AuthorizationRoles.DispatchLimited, UserType.Service);
//TECHS
await SeedUserAsync(log, 50, AuthorizationRoles.TechFull | AuthorizationRoles.DispatchLimited, UserType.Service);
//limited techs
await SeedUserAsync(log, 50, AuthorizationRoles.TechLimited | AuthorizationRoles.DispatchLimited, UserType.Service);
await SeedUserAsync(log, 10, AuthorizationRoles.TechLimited | AuthorizationRoles.DispatchLimited, UserType.Service);
//20 subcontractors
await SeedUserAsync(log, 20, AuthorizationRoles.SubContractorFull, UserType.ServiceContractor);
//10 limited subcontractors
@@ -348,22 +348,22 @@ namespace AyaNova.Util
//5 accountant / bookkeeper
await SeedUserAsync(log, 5, AuthorizationRoles.AccountingFull | AuthorizationRoles.BizAdminLimited, UserType.NotService);
await SeedWidgetAsync(log, 100);
await SeedCustomerAsync(log, 5000);
await SeedHeadOfficeAsync(log, 30);
await SeedVendorAsync(log, 75);
await SeedProjectAsync(log, 75);
//await SeedWidgetAsync(log, 100);
await SeedCustomerAsync(log, 1000);
await SeedHeadOfficeAsync(log, 40);
await SeedVendorAsync(log, 100);
await SeedProjectAsync(log, 100);
await SeedServiceRateAsync(log, 20);
await SeedTravelRateAsync(log, 10);
await SeedUnitModelAsync(log, 30);
await SeedUnitAsync(log, 25000);//5 times the customers or 5 units per customer
await SeedLoanLoanUnitAsync(log, 15);
await SeedCustomerServiceRequestAsync(log, 15);
await SeedPartWarehouseAsync(log, 15);
await SeedUnitModelAsync(log, 40);
await SeedUnitAsync(log, 5000);
await SeedLoanLoanUnitAsync(log, 20);
await SeedCustomerServiceRequestAsync(log, 20);
await SeedPartWarehouseAsync(log, 20);
await SeedPartAsync(log, 200, 15);
await SeedPartAssemblyAsync(log, 5);
await SeedPurchaseOrderAsync(log, 50);
await SeedWorkOrderAsync(log, 50);
await SeedWorkOrderAsync(log, 60);
//PERF
watch.Stop();
@@ -414,22 +414,22 @@ namespace AyaNova.Util
//accountant / bookkeeper
await SeedUserAsync(log, 20, AuthorizationRoles.AccountingFull | AuthorizationRoles.BizAdminLimited, UserType.NotService);
await SeedWidgetAsync(log, 100);
await SeedCustomerAsync(log, 20000);
await SeedHeadOfficeAsync(log, 40);
await SeedVendorAsync(log, 100);
//await SeedWidgetAsync(log, 100);
await SeedCustomerAsync(log, 10000);
await SeedHeadOfficeAsync(log, 200);
await SeedVendorAsync(log, 500);
await SeedProjectAsync(log, 500);
await SeedServiceRateAsync(log, 30);
await SeedTravelRateAsync(log, 15);
await SeedUnitModelAsync(log, 40);
await SeedUnitAsync(log, 100000);//5 times the customers or 5 units per customer
await SeedLoanLoanUnitAsync(log, 20);
await SeedCustomerServiceRequestAsync(log, 20);
await SeedPartWarehouseAsync(log, 20);
await SeedPartAsync(log, 500, 20);
await SeedPartAssemblyAsync(log, 5);
await SeedPurchaseOrderAsync(log, 200);
await SeedWorkOrderAsync(log, 200);
await SeedServiceRateAsync(log, 100);
await SeedTravelRateAsync(log, 50);
await SeedUnitModelAsync(log, 200);
await SeedUnitAsync(log, 25000);
await SeedLoanLoanUnitAsync(log, 100);
await SeedCustomerServiceRequestAsync(log, 100);
await SeedPartWarehouseAsync(log, 100);
await SeedPartAsync(log, 1000, 1000);
await SeedPartAssemblyAsync(log, 25);
await SeedPurchaseOrderAsync(log, 250);
await SeedWorkOrderAsync(log, 300);
//PERF
watch.Stop();