This commit is contained in:
2020-12-02 19:30:13 +00:00
parent 9b6f8293ff
commit 1dc680f296
5 changed files with 23 additions and 7 deletions

View File

@@ -28,6 +28,12 @@ namespace AyaNova.DataList
cm = new JObject();
cm.fld = "customeremail";
dlistView.Add(cm);
cm = new JObject();
cm.fld = "customerheadoffice";
dlistView.Add(cm);
DefaultListView = dlistView.ToString(Newtonsoft.Json.Formatting.None);
@@ -85,6 +91,16 @@ namespace AyaNova.DataList
SqlValueColumnName = "acustomer.popupnotes"
});
FieldDefinitions.Add(new AyaDataListFieldDefinition
{
TKey = "HeadOffice",
FieldKey = "customerheadoffice",
UiFieldDataType = (int)UiFieldDataType.Text,
AyaObjectType = (int)AyaType.HeadOffice,
SqlIdColumnName = "aheadoffice.id",
SqlValueColumnName = "aheadoffice.name"
});
FieldDefinitions.Add(new AyaDataListFieldDefinition
{
TKey = "CustomerBillHeadOffice",

View File

@@ -226,7 +226,7 @@ namespace AyaNova.Util
await GenSeedCustomerAsync(log, 100);
//HEAD-OFFICES
await GenSeedHeadOfficeAsync(log, 2);
await GenSeedHeadOfficeAsync(log, 10);
@@ -286,7 +286,7 @@ namespace AyaNova.Util
await GenSeedCustomerAsync(log, 500);
//HEAD-OFFICES
await GenSeedHeadOfficeAsync(log, 4);
await GenSeedHeadOfficeAsync(log, 20);
//PERF
watch.Stop();
@@ -360,7 +360,7 @@ namespace AyaNova.Util
await GenSeedCustomerAsync(log, 5000);
//HEAD-OFFICES
await GenSeedHeadOfficeAsync(log, 8);
await GenSeedHeadOfficeAsync(log, 30);
//PERF
watch.Stop();
@@ -434,7 +434,7 @@ namespace AyaNova.Util
await GenSeedCustomerAsync(log, 20000);
//HEAD-OFFICES
await GenSeedHeadOfficeAsync(log, 16);
await GenSeedHeadOfficeAsync(log, 40);
//PERF
watch.Stop();
@@ -823,7 +823,7 @@ namespace AyaNova.Util
//HeadOffice contacts
await GenSeedUserAsync(log, 1, AuthorizationRoles.CustomerFull, UserType.HeadOffice, true, null, null, 0, null, null, null, NewObject.Id);
//HeadOffice Customer
await GenSeedCustomerAsync(log, 1, NewObject.Id);
await GenSeedCustomerAsync(log, 2, NewObject.Id);
}
}