Fri, 14 Jun 2024 10:29:21 +0200
SO4/Cl ratio using target_water and final water.
833
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
1 | /***************************************************************************** |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
2 | * Copyright (C) 2019 |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
3 | * |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
4 | * Michiel Broek <mbroek at mbse dot eu> |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
5 | * |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
6 | * This file is part of BMS |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
7 | * |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
8 | * This is free software; you can redistribute it and/or modify it |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
9 | * under the terms of the GNU General Public License as published by the |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
10 | * Free Software Foundation; either version 2, or (at your option) any |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
11 | * later version. |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
12 | * |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
13 | * BrewCloud is distributed in the hope that it will be useful, but |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
14 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
16 | * General Public License for more details. |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
17 | * |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
18 | * You should have received a copy of the GNU General Public License |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
19 | * along with ThermFerm; see the file COPYING. If not, write to the Free |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
20 | * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
21 | *****************************************************************************/ |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
22 | |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
23 | |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
24 | $(document).ready(function() { |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
25 | var source = { |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
26 | datatype: 'json', |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
27 | cache: false, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
28 | datafields: [ |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
29 | { name: 'record', type: 'number' }, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
30 | { name: 'name', type: 'string' }, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
31 | { name: 'code', type: 'string' }, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
32 | { name: 'year', type: 'string' }, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
33 | { name: 'date', type: 'string' }, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
34 | { name: 'style', type: 'string' }, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
35 | { name: 'og', type: 'float' }, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
36 | { name: 'fg', type: 'float' }, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
37 | { name: 'batch_size', type: 'float' }, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
38 | ], |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
39 | id: 'record', |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
40 | url: 'includes/db_product.php?select=archdate' |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
41 | }, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
42 | dataAdapter = new $.jqx.dataAdapter(source); |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
43 | |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
44 | // initialize jqxGrid |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
45 | $('#jqxgrid').jqxGrid({ |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
46 | width: 1280, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
47 | height: 630, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
48 | source: dataAdapter, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
49 | groupable: true, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
50 | theme: theme, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
51 | columns: [ |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
52 | { text: 'Jaar', datafield: 'year', width: 80 }, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
53 | { text: 'Datum', datafield: 'date', width: 120, menu: false }, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
54 | { text: 'Naam', datafield: 'name', menu: false }, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
55 | { text: 'Stijl', datafield: 'style', width: 250 }, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
56 | { text: 'OG', datafield: 'og', width: 80, cellsformat: 'f3', menu: false }, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
57 | { text: 'FG', datafield: 'fg', width: 80, cellsformat: 'f3', menu: false }, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
58 | { text: 'Code', datafield: 'code', width: 100, menu: false }, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
59 | { text: 'Liters', datafield: 'batch_size', width: 80, align: 'right', cellsalign: 'right', cellsformat: 'f1', menu: false }, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
60 | { text: '', datafield: 'Edit', width: 80, align: 'center', columntype: 'button', cellsrenderer: function() { |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
61 | return 'Bekijk'; |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
62 | }, buttonclick: function(row) { |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
63 | var datarecord = dataAdapter.records[row]; |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
64 | window.location.href = 'prod_view.php?record=' + datarecord.record + '&select=archdate&return=prod_archive_date.php'; |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
65 | } |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
66 | } |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
67 | ], |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
68 | groups: ['year'] |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
69 | }); |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
70 | }); |