From 0a55d8c8ffee0fd0697a1357257e91795d15ab56 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 12 Jan 2023 19:49:43 +0000 Subject: [PATCH] --- src/views/biz-product.vue | 19 ------ src/views/biz-subscription-server.vue | 91 +++++++++------------------ 2 files changed, 31 insertions(+), 79 deletions(-) diff --git a/src/views/biz-product.vue b/src/views/biz-product.vue index cb4b223..726d42c 100644 --- a/src/views/biz-product.vue +++ b/src/views/biz-product.vue @@ -680,24 +680,5 @@ async function populateSelectionLists(vm) { vm.selectLists.pGroups = window.$gz.enums.getSelectionList("productgroup"); } -/* -public string Name { get; set; } -public bool Active { get; set; } -public long VendorId { get; set; } -public TimeSpan LicenseInterval { get; set; } -public TimeSpan MaintInterval { get; set; } -public string VendorCode { get; set; } -public string OurCode { get; set; } -public string Wiki { get; set; } -public List Tags { get; set; } -await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'Product', 'Product' FROM atranslation t where t.baselanguage = 'en'"); -await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'ProductList', 'Products' FROM atranslation t where t.baselanguage = 'en'"); -await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'ProductName', 'Name' FROM atranslation t where t.baselanguage = 'en'"); -await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'ProductLicenseInterval', 'License period' FROM atranslation t where t.baselanguage = 'en'"); -await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'ProductMaintInterval', 'Maintenance period' FROM atranslation t where t.baselanguage = 'en'"); -await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'ProductVendorCode', 'Vendor code' FROM atranslation t where t.baselanguage = 'en'"); -await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'ProductOurCode', 'Our code' FROM atranslation t where t.baselanguage = 'en'"); - - */ diff --git a/src/views/biz-subscription-server.vue b/src/views/biz-subscription-server.vue index 816617a..78e67f7 100644 --- a/src/views/biz-subscription-server.vue +++ b/src/views/biz-subscription-server.vue @@ -55,7 +55,22 @@ @input="fieldValueChanged('customerId')" > - + + + Tags { get; set; } -await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'SubscriptionServer', 'Subscription server' FROM atranslation t where t.baselanguage = 'en'"); -await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'SubscriptionServerList', 'Subscription servers' FROM atranslation t where t.baselanguage = 'en'"); -await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'SubServerName', 'Name' FROM atranslation t where t.baselanguage = 'en'"); -await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'SubServerNotes', 'Notes' FROM atranslation t where t.baselanguage = 'en'"); -await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'SubServerDatacenter', 'Data center' FROM atranslation t where t.baselanguage = 'en'"); -await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'SubServerTimeZone', 'Time zone' FROM atranslation t where t.baselanguage = 'en'"); -await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'SubServerLastUpdated', 'Last updated' FROM atranslation t where t.baselanguage = 'en'"); -await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'SubServerSubExpire', 'Subscription expires' FROM atranslation t where t.baselanguage = 'en'"); -await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'SubServerTrialContact', 'Trial contact' FROM atranslation t where t.baselanguage = 'en'"); -await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'SubServerTrialEmail', 'TrialEmail' FROM atranslation t where t.baselanguage = 'en'"); -await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'SubServerTrial', 'Trial' FROM atranslation t where t.baselanguage = 'en'"); -await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'SubServerTrialCompany', 'Trial company' FROM atranslation t where t.baselanguage = 'en'"); -await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'SubServerOperatingSystem', 'OS' FROM atranslation t where t.baselanguage = 'en'"); -await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'SubServerCustomerDomain', 'Customer subdomain' FROM atranslation t where t.baselanguage = 'en'"); - name: null, - active: true, - customerId: 0, - notes: null, - created: window.$gz.locale.nowUTC8601String(), - dataCenter: null, - timeZone: null, - dbId: null, - lastUpdated: null, - subscriptionExpire: null, - trial: true, - trialContact: null, - trialEmail: null, - trialCompany: null, - operatingSystem: "Ubuntu 22.10", - customerSubDomain: null, - */ +////////////////////// +// +// +async function populateSelectionLists(vm) { + //ensure the pick lists required are pre-fetched + await window.$gz.enums.fetchEnumList("ServerState"); + vm.selectLists.serverStates = window.$gz.enums.getSelectionList( + "ServerState" + ); +}