www/js/global.js

changeset 195
2ac491548d8d
parent 186
a7c2c61a01ad
child 196
531d5458782f
equal deleted inserted replaced
194:d202777ebae5 195:2ac491548d8d
17 * 17 *
18 * You should have received a copy of the GNU General Public License 18 * You should have received a copy of the GNU General Public License
19 * along with ThermFerm; see the file COPYING. If not, write to the Free 19 * along with ThermFerm; see the file COPYING. If not, write to the Free
20 * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. 20 * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
21 *****************************************************************************/ 21 *****************************************************************************/
22
23
24 // dropdownlists arrays
25
26 var StageData = [
27 { id: 0, en: "Plan", nl: "Plan" },
28 { id: 1, en: "Wait", nl: "Wacht" },
29 { id: 2, en: "Brew", nl: "Brouwen" },
30 { id: 3, en: "Primary", nl: "Hoofdgisting" },
31 { id: 4, en: "Secondary", nl: "Nagisting" },
32 { id: 5, en: "Tertiary", nl: "Lagering" },
33 { id: 6, en: "Package", nl: "Afvullen" },
34 { id: 7, en: "Carbonation", nl: "Hergisten" },
35 { id: 8, en: "Mature", nl: "Rijpen" },
36 { id: 9, en: "Taste", nl: "Proeven" },
37 { id: 10, en: "Ready", nl: "Gereed" },
38 { id: 11, en: "Closed", nl: "Afgesloten" }
39 ];
40 var StageSource = {
41 localdata: StageData,
42 datatype: "array",
43 datafields: [{ name: 'id' }, { name: 'en' }, { name: 'nl' }]
44 };
45 var StageAdapter = new $.jqx.dataAdapter(StageSource);
46
47 var MaterialData = [
48 { id: 0, en: "Stainless Steel", nl: "RVS", sh: 0.11 },
49 { id: 1, en: "Aluminium", nl: "Aluminium", sh: 0.22 },
50 { id: 2, en: "Plastics", nl: "Kunststof", sh: 0.46 },
51 { id: 3, en: "Coper", nl: "Koper", sh: 0.092 }
52 ];
53 var MaterialSource = {
54 localdata: MaterialData,
55 datatype: "array",
56 datafields: [{ name: 'id' }, { name: 'en' }, { name: 'nl' }, { name: 'sh' }]
57 };
58 var MaterialAdapter = new $.jqx.dataAdapter(MaterialSource);
59
60 var FermentableTypeData = [
61 { id: 0, en: 'Grain', nl: 'mout' },
62 { id: 1, en: 'Sugar', nl: 'suiker' },
63 { id: 2, en: 'Extract', nl: 'vloeibaar extract' },
64 { id: 3, en: 'Dry extract', nl: 'droog extract' },
65 { id: 4, en: 'Adjunct', nl: 'ongemout graan' }
66 ];
67 var FermentableTypeSource = {
68 localdata: FermentableTypeData,
69 datatype: "array",
70 datafields: [{ name: 'id' }, { name: 'en' }, { name: 'nl' }]
71 };
72 var FermentableTypeAdapter = new $.jqx.dataAdapter(FermentableTypeSource);
73
74 var GrainTypeData = [
75 { id: 0, en: 'Base', nl: 'basismout' },
76 { id: 1, en: 'Roast', nl: 'geroosterde mout' },
77 { id: 2, en: 'Crystal', nl: 'cara- of crystalmout' },
78 { id: 3, en: 'Kilned', nl: 'geƫeste mout'},
79 { id: 4, en: 'Sour malt', nl: 'zuurmout' },
80 { id: 5, en: 'Special', nl: 'speciale mout' },
81 { id: 6, en: 'No malt', nl: 'n.v.t.' }
82 ];
83 var GrainTypeSource = {
84 localdata: GrainTypeData,
85 datatype: "array",
86 datafields: [{ name: 'id' }, { name: 'en' }, { name: 'nl' }]
87 };
88 var GrainTypeAdapter = new $.jqx.dataAdapter(GrainTypeSource);
89
90 var AddedData = [
91 { id: 0, en: 'Mash', nl: 'maischen' },
92 { id: 1, en: 'Boil', nl: 'koken' },
93 { id: 2, en: 'Fermentation', nl: 'vergisten' },
94 { id: 3, en: 'Lagering', nl: 'nagisten/lageren' },
95 { id: 4, en: 'Bottle', nl: 'bottelen' }
96 ];
97 var AddedSource = {
98 localdata: AddedData,
99 datatype: "array",
100 datafields: [{ name: 'id' }, { name: 'en' }, { name: 'nl' }]
101 };
102 var AddedAdapter = new $.jqx.dataAdapter(AddedSource);
103
104
105
106
107 // options for editors
108
109 var Spin1dec1 = {
110 inputMode: 'simple',
111 spinMode: 'simple',
112 theme: theme,
113 width: 110,
114 height: 23,
115 min: 0,
116 decimalDigits: 1,
117 spinButtons: true,
118 spinButtonsStep: 0.1
119 };
120 var Spin1dec5 = {
121 inputMode: 'simple',
122 spinMode: 'simple',
123 theme: theme,
124 width: 110,
125 height: 23,
126 min: 0,
127 decimalDigits: 1,
128 spinButtons: true,
129 spinButtonsStep: 0.5
130 };
131 var SpinpH = {
132 inputMode: 'simple',
133 spinMode: 'simple',
134 theme: theme,
135 width: 110,
136 height: 23,
137 min: 1,
138 max: 14,
139 decimalDigits: 1,
140 spinButtons: true,
141 spinButtonsStep: 0.1
142 };
143 var Spin2pH = {
144 inputMode: 'simple',
145 spinMode: 'simple',
146 theme: theme,
147 width: 110,
148 height: 23,
149 min: 1,
150 max: 14,
151 decimalDigits: 2,
152 spinButtons: true,
153 spinButtonsStep: 0.05
154 };
155 var Perc1dec5 = {
156 inputMode: 'simple',
157 spinMode: 'simple',
158 theme: theme,
159 width: 110,
160 height: 23,
161 min: 0,
162 max: 100,
163 decimalDigits: 1,
164 spinButtons: true,
165 spinButtonsStep: 0.5
166 };
167 var Spin2dec1 = {
168 inputMode: 'simple',
169 spinMode: 'simple',
170 theme: theme,
171 width: 110,
172 height: 23,
173 min: 0,
174 decimalDigits: 2,
175 spinButtons: true,
176 spinButtonsStep: 0.01
177 };
178 var Dateopts = {
179 theme: theme,
180 width: 150,
181 height: 23,
182 allowNullDate: true,
183 todayString: 'Vandaag',
184 clearString: 'Wissen',
185 showFooter: true,
186 formatString: 'yyyy-MM-dd',
187 enableBrowserBoundsDetection: true
188 };
22 189
23 190
24 var sugardensity = 1.611; //kg/l in solution 191 var sugardensity = 1.611; //kg/l in solution
25 192
26 // Styles dropdown list 193 // Styles dropdown list

mercurial