www/js/inv_yeasts.js

changeset 765
0218893a5b7f
parent 730
c161d703ee88
child 767
08c0343b622b
equal deleted inserted replaced
764:e95744b6b31d 765:0218893a5b7f
218 $('#max_reuse').jqxNumberInput({ max: 10 }); 218 $('#max_reuse').jqxNumberInput({ max: 10 });
219 $('#cost').jqxNumberInput(Spin2dec); 219 $('#cost').jqxNumberInput(Spin2dec);
220 $('#tht_date').jqxDateTimeInput(Dateopts); 220 $('#tht_date').jqxDateTimeInput(Dateopts);
221 $('#totval').jqxNumberInput(Show2dec); 221 $('#totval').jqxNumberInput(Show2dec);
222 $('#cells').jqxNumberInput(Spin1dec); 222 $('#cells').jqxNumberInput(Spin1dec);
223 $('#tolerance').jqxTooltip({ content: 'Alcohol tolerantie van de gist' });
223 $('#tolerance').jqxNumberInput(Perc1dec); 224 $('#tolerance').jqxNumberInput(Perc1dec);
224 $('#tolerance').jqxNumberInput({ max: 25 }); 225 $('#tolerance').jqxNumberInput({ max: 25 });
225 $('#sta1').jqxCheckBox({ theme: theme, width: 120, height: 23 }); 226 $('#sta1').jqxCheckBox({ theme: theme, width: 120, height: 23 });
227 $('#sta1').jqxTooltip({ position: 'top-left', content: 'STA1 gen (var diastaticus), ook wel glucoamlylase+ genoemd.' });
226 $('#sta1').on('checked', function(event) { dataRecord.sta1 = 1; }); 228 $('#sta1').on('checked', function(event) { dataRecord.sta1 = 1; });
227 $('#sta1').on('unchecked', function(event) { dataRecord.sta1 = 0; }); 229 $('#sta1').on('unchecked', function(event) { dataRecord.sta1 = 0; });
228 $('#bacteria').jqxCheckBox({ theme: theme, width: 120, height: 23 }); 230 $('#bacteria').jqxCheckBox({ theme: theme, width: 120, height: 23 });
229 $('#bacteria').on('checked', function(event) { dataRecord.bacteria = 1; }); 231 $('#bacteria').on('checked', function(event) { dataRecord.bacteria = 1; });
230 $('#bacteria').on('unchecked', function(event) { dataRecord.bacteria = 0; }); 232 $('#bacteria').on('unchecked', function(event) { dataRecord.bacteria = 0; });
232 $('#harvest_top').on('checked', function(event) { dataRecord.harvest_top = 1; }); 234 $('#harvest_top').on('checked', function(event) { dataRecord.harvest_top = 1; });
233 $('#harvest_top').on('unchecked', function(event) { dataRecord.harvest_top = 0; }); 235 $('#harvest_top').on('unchecked', function(event) { dataRecord.harvest_top = 0; });
234 $('#harvest_time').jqxNumberInput(PosInt); 236 $('#harvest_time').jqxNumberInput(PosInt);
235 $('#pitch_temperature').jqxNumberInput(YeastT); 237 $('#pitch_temperature').jqxNumberInput(YeastT);
236 $('#pofpos').jqxCheckBox({ theme: theme, width: 120, height: 23 }); 238 $('#pofpos').jqxCheckBox({ theme: theme, width: 120, height: 23 });
239 $('#pofpos').jqxTooltip({ position: 'top-left', content: 'POF+ gist' });
237 $('#pofpos').on('checked', function(event) { dataRecord.pofpos = 1; }); 240 $('#pofpos').on('checked', function(event) { dataRecord.pofpos = 1; });
238 $('#pofpos').on('unchecked', function(event) { dataRecord.pofpos = 0; }); 241 $('#pofpos').on('unchecked', function(event) { dataRecord.pofpos = 0; });
239 $('#zymocide').jqxDropDownList({ 242 $('#zymocide').jqxDropDownList({
240 theme: theme, 243 theme: theme,
241 source: ZymocideAdapter, 244 source: ZymocideAdapter,
324 showfilterrow: true, 327 showfilterrow: true,
325 columns: [ 328 columns: [
326 { text: 'Laboratorium', datafield: 'laboratory', width: 150, filtertype: 'list' }, 329 { text: 'Laboratorium', datafield: 'laboratory', width: 150, filtertype: 'list' },
327 { text: 'Product ID', datafield: 'product_id', width: 120, filtertype: 'textbox' }, 330 { text: 'Product ID', datafield: 'product_id', width: 120, filtertype: 'textbox' },
328 { text: 'Gist naam', datafield: 'name', filtertype: 'textbox' }, 331 { text: 'Gist naam', datafield: 'name', filtertype: 'textbox' },
329 { text: 'Type', datafield: 'type', align: 'center', cellsalign: 'center', width: 110, filtertype: 'list' }, 332 { text: 'Type', datafield: 'type', align: 'center', cellsalign: 'center', width: 105, filtertype: 'list' },
330 { text: 'Vorm', datafield: 'form', align: 'center', cellsalign: 'center', width: 110, filtertype: 'list' }, 333 { text: 'Vorm', datafield: 'form', align: 'center', cellsalign: 'center', width: 105, filtertype: 'list' },
331 { text: 'SVG', datafield: 'attenuation', width: 70, align: 'right', cellsalign: 'right', cellsformat: 'p1', filtertype: 'number' }, 334 { text: 'SVG', datafield: 'attenuation', width: 70, align: 'right', cellsalign: 'right', cellsformat: 'p1', filtertype: 'number' },
332 { text: 'Tol%', datafield: 'tolerance', width: 60, align: 'right', cellsalign: 'right', filtertype: 'number', 335 { text: 'Tol%', datafield: 'tolerance', width: 60, align: 'right', cellsalign: 'right', filtertype: 'number',
333 cellsrenderer: function(index, datafield, value, defaultvalue, column, rowdata) { 336 cellsrenderer: function(index, datafield, value, defaultvalue, column, rowdata) {
334 var amount = ''; 337 var amount = '';
335 if (value > 0) 338 if (value > 0)
336 amount = dataAdapter.formatNumber(value, 'p1'); 339 amount = dataAdapter.formatNumber(value, 'p1');
337 return '<span style="margin: 4px; margin-top: 6px; float: right;">' + amount + '</span>'; 340 return '<span style="margin: 4px; margin-top: 6px; float: right;">' + amount + '</span>';
341 }
342 },
343 { text: 'POF+', datafield: 'pofpos', width: 60, align: 'center', cellsalign: 'center',
344 cellsrenderer: function(index, datafield, value, defaultvalue, column, rowdata) {
345 if (value == 0)
346 return '<span></span>';
347 return '<span><img style="float:left; margin-left:25px; margin-top:4px;" src="images/dialog-ok-apply.png"></span>';
348 }
349 },
350 { text: 'STA1', datafield: 'sta1', width: 60, align: 'center', cellsalign: 'center',
351 cellsrenderer: function(index, datafield, value, defaultvalue, column, rowdata) {
352 if (value == 0)
353 return '<span></span>';
354 return '<span><img style="float:left; margin-left:25px; margin-top:4px;" src="images/dialog-ok-apply.png"></span>';
338 } 355 }
339 }, 356 },
340 { text: 'Voorraad', datafield: 'inventory', width: 100, align: 'right', filtertype: 'number', filtercondition: 'not_equal', 357 { text: 'Voorraad', datafield: 'inventory', width: 100, align: 'right', filtertype: 'number', filtercondition: 'not_equal',
341 cellsrenderer: function(index, datafield, value, defaultvalue, column, rowdata) { 358 cellsrenderer: function(index, datafield, value, defaultvalue, column, rowdata) {
342 var amount = ''; 359 var amount = '';
351 amount = dataAdapter.formatNumber(value * 1000, 'f1') + ' ml'; 368 amount = dataAdapter.formatNumber(value * 1000, 'f1') + ' ml';
352 } 369 }
353 return '<span style="margin: 3px; margin-top: 6px; float: right;">' + amount + '</span>'; 370 return '<span style="margin: 3px; margin-top: 6px; float: right;">' + amount + '</span>';
354 } 371 }
355 }, 372 },
356 { text: '', datafield: 'Edit', columntype: 'button', width: 100, align: 'center', filterable: false, cellsrenderer: function() { 373 { text: '', datafield: 'Edit', columntype: 'button', width: 80, align: 'center', filterable: false, cellsrenderer: function() {
357 return 'Wijzig'; 374 return 'Wijzig';
358 }, buttonclick: function(row) { 375 }, buttonclick: function(row) {
359 // open the popup window when the user clicks a button. 376 // open the popup window when the user clicks a button.
360 editrow = row; 377 editrow = row;
361 $('#popupWindow').jqxWindow({ position: { x: 110, y: 15 } }); 378 $('#popupWindow').jqxWindow({ position: { x: 110, y: 15 } });

mercurial