www/js/prod_archive_name.js

changeset 292
90cd3798edc2
parent 290
12aa92828e24
child 468
371f2da785d9
equal deleted inserted replaced
291:869247533c5f 292:90cd3798edc2
27 cache: false, 27 cache: false,
28 datafields: [ 28 datafields: [
29 { name: 'record', type: 'number' }, 29 { name: 'record', type: 'number' },
30 { name: 'name', type: 'string' }, 30 { name: 'name', type: 'string' },
31 { name: 'code', type: 'string' }, 31 { name: 'code', type: 'string' },
32 { name: 'birth', type: 'string' }, 32 { name: 'date', type: 'string' },
33 { name: 'style', type: 'string' },
34 { name: 'og', type: 'float' },
35 { name: 'fg', type: 'float' },
33 { name: 'batch_size', type: 'float' }, 36 { name: 'batch_size', type: 'float' },
34 ], 37 ],
35 id: 'record', 38 id: 'record',
36 url: "includes/db_product.php?select=archname" 39 url: "includes/db_product.php?select=archname"
37 }; 40 };
42 height: 630, 45 height: 630,
43 source: dataAdapter, 46 source: dataAdapter,
44 theme: theme, 47 theme: theme,
45 columns: [ 48 columns: [
46 { text: 'Naam', datafield: 'name' }, 49 { text: 'Naam', datafield: 'name' },
47 { text: 'Datum', datafield: 'birth', width: 120 }, 50 { text: 'Stijl', datafield: 'style', width: 250 },
48 { text: 'Code', datafield: 'code', width: 120 }, 51 { text: 'OG', datafield: 'og', width: 80, cellsformat: 'f3' },
49 { text: 'Liters', datafield: 'batch_size', width: 110, align: 'right', cellsalign: 'right', cellsformat: 'f1' }, 52 { text: 'FG', datafield: 'fg', width: 80, cellsformat: 'f3' },
50 { text: '', datafield: 'Edit', width: 100, align: 'center', columntype: 'button', cellsrenderer: function () { 53 { text: 'Datum', datafield: 'date', width: 120 },
54 { text: 'Code', datafield: 'code', width: 100 },
55 { text: 'Liters', datafield: 'batch_size', width: 80, align: 'right', cellsalign: 'right', cellsformat: 'f1' },
56 { text: '', datafield: 'Edit', width: 80, align: 'center', columntype: 'button', cellsrenderer: function () {
51 return "Bekijk"; 57 return "Bekijk";
52 }, buttonclick: function (row) { 58 }, buttonclick: function (row) {
53 var datarecord = dataAdapter.records[row]; 59 var datarecord = dataAdapter.records[row];
54 var url= "prod_edit.php?record=" + datarecord.record + "&select=archname&return=prod_archive_name.php"; 60 var url= "prod_edit.php?record=" + datarecord.record + "&select=archname&return=prod_archive_name.php";
55 window.location.href = url; 61 window.location.href = url;

mercurial