www/js/global.js

changeset 498
10c6eeee60ce
parent 495
fdbb6bfae569
child 499
4f14a18b581e
--- a/www/js/global.js	Wed Sep 18 14:40:34 2019 +0200
+++ b/www/js/global.js	Wed Sep 18 22:50:44 2019 +0200
@@ -35,7 +35,7 @@
  { id: 8,  en: 'Mature',      nl: 'Rijpen' },
  { id: 9,  en: 'Taste',       nl: 'Proeven' },
  { id: 10, en: 'Ready',       nl: 'Gereed' },
- { id: 11, en: 'Closed', nl: 'Afgesloten' }
+ { id: 11, en: 'Closed',      nl: 'Afgesloten' }
 ],
 StageSource = {
  localdata: StageData,
@@ -44,6 +44,21 @@
 },
 StageAdapter = new $.jqx.dataAdapter(StageSource),
 
+SplitData = [
+ { id: 0, en: 'Not divided',     nl: 'Niet gesplitst',  ok: 100 },
+ { id: 1, en: 'After mash',      nl: 'Na maischen',     ok: 2 },
+ { id: 2, en: 'After boil',      nl: 'Na koken',        ok: 2 },
+ { id: 3, en: 'After primary',   nl: 'Na hoofdgisting', ok: 3 },
+ { id: 4, en: 'After secondary', nl: 'Na nagisting',    ok: 4 },
+ { id: 5, en: 'After tertiary',  nl: 'Na lageren',      ok: 5 }
+],
+SplitSource = {
+ localdata: SplitData,
+ datatype: 'array',
+ datafields: [{ name: 'id' }, { name: 'en' }, { name: 'nl' }, { name: 'ok' }]
+},
+SplitAdapter = new $.jqx.dataAdapter(SplitSource),
+
 MaterialData = [
  { id: 0,  en: 'Stainless Steel', nl: 'RVS',       sh: 0.11 },
  { id: 1,  en: 'Aluminium',       nl: 'Aluminium', sh: 0.22 },

mercurial