Thu, 12 Oct 2023 14:19:46 +0200
Version 0.3.44. Moved iSpindel Plato calculation from the php script to bmsd. This uses calibration data in the mon_ispindels table. Setup of this data will be done by the bmsapp applications. Default settings are stored in MySQL. From now on you don't need to store calibration data in the iSpindel.
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: 'date', type: 'string' }, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
33 | { name: 'style', type: 'string' }, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
34 | { name: 'og', type: 'float' }, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
35 | { name: 'fg', type: 'float' }, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
36 | { name: 'batch_size', type: 'float' }, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
37 | ], |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
38 | id: 'record', |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
39 | url: 'includes/db_product.php?select=archcode' |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
40 | }, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
41 | dataAdapter = new $.jqx.dataAdapter(source); |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
42 | |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
43 | // initialize jqxGrid |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
44 | $('#jqxgrid').jqxGrid({ |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
45 | width: 1280, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
46 | height: 630, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
47 | source: dataAdapter, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
48 | theme: theme, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
49 | columns: [ |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
50 | { text: 'Code', datafield: 'code', width: 100 }, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
51 | { text: 'Naam', datafield: 'name' }, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
52 | { text: 'Stijl', datafield: 'style', width: 250 }, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
53 | { text: 'OG', datafield: 'og', width: 80, cellsformat: 'f3' }, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
54 | { text: 'FG', datafield: 'fg', width: 80, cellsformat: 'f3' }, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
55 | { text: 'Datum', datafield: 'date', width: 120 }, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
56 | { text: 'Liters', datafield: 'batch_size', width: 80, align: 'right', cellsalign: 'right', cellsformat: 'f1' }, |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
57 | { 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
|
58 | return 'Bekijk'; |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
59 | }, buttonclick: function(row) { |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
60 | var datarecord = dataAdapter.records[row]; |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
61 | window.location.href = 'prod_view.php?record=' + datarecord.record + '&select=archcode&return=prod_archive_code.php'; |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
62 | } |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
63 | } |
bdef871e6db7
Reinstalled the product archives menus
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
64 | ], |
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 | }); |