70 source = { |
70 source = { |
71 datatype: 'json', |
71 datatype: 'json', |
72 cache: false, |
72 cache: false, |
73 datafields: [ |
73 datafields: [ |
74 { name: 'record', type: 'number' }, |
74 { name: 'record', type: 'number' }, |
|
75 { name: 'uuid', type: 'string' }, |
75 { name: 'name', type: 'string' }, |
76 { name: 'name', type: 'string' }, |
76 { name: 'type', type: 'string' }, |
77 { name: 'type', type: 'string' }, |
77 { name: 'form', type: 'string' }, |
78 { name: 'form', type: 'string' }, |
78 { name: 'laboratory', type: 'string' }, |
79 { name: 'laboratory', type: 'string' }, |
79 { name: 'product_id', type: 'string' }, |
80 { name: 'product_id', type: 'string' }, |
295 // add new row. |
296 // add new row. |
296 addButton.click(function(event) { |
297 addButton.click(function(event) { |
297 editrow = -1; |
298 editrow = -1; |
298 $('#popupWindow').jqxWindow({ position: { x: 110, y: 30 } }); |
299 $('#popupWindow').jqxWindow({ position: { x: 110, y: 30 } }); |
299 $('#name').val(''); |
300 $('#name').val(''); |
|
301 dataRecord.uuid = ''; |
300 $('#laboratory').val(''); |
302 $('#laboratory').val(''); |
301 $('#short_desc').val(''); |
303 $('#short_desc').val(''); |
302 $('#product_id').val(''); |
304 $('#product_id').val(''); |
303 $('#type').val('Bovengist'); |
305 $('#type').val('Bovengist'); |
304 $('#form').val('Vloeibaar'); |
306 $('#form').val('Vloeibaar'); |
519 $('#Clone').jqxButton({ template: 'warning', width: '90px', theme: theme }); |
521 $('#Clone').jqxButton({ template: 'warning', width: '90px', theme: theme }); |
520 $('#Clone').click(function() { |
522 $('#Clone').click(function() { |
521 var row = { |
523 var row = { |
522 record: -1, |
524 record: -1, |
523 name: $('#name').val() + ' kopie', |
525 name: $('#name').val() + ' kopie', |
|
526 uuid: '', |
524 type: $('#type').val(), |
527 type: $('#type').val(), |
525 form: $('#form').val(), |
528 form: $('#form').val(), |
526 laboratory: $('#laboratory').val(), |
529 laboratory: $('#laboratory').val(), |
527 product_id: $('#product_id').val(), |
530 product_id: $('#product_id').val(), |
528 min_temperature: parseFloat($('#min_temperature').jqxNumberInput('decimal')), |
531 min_temperature: parseFloat($('#min_temperature').jqxNumberInput('decimal')), |
565 else |
568 else |
566 n_inventory = parseFloat($('#inventory').jqxNumberInput('decimal')) / 1000.0; |
569 n_inventory = parseFloat($('#inventory').jqxNumberInput('decimal')) / 1000.0; |
567 row = { |
570 row = { |
568 record: rowID, |
571 record: rowID, |
569 name: $('#name').val(), |
572 name: $('#name').val(), |
|
573 uuid: dataRecord.uuid, |
570 type: $('#type').val(), |
574 type: $('#type').val(), |
571 form: $('#form').val(), |
575 form: $('#form').val(), |
572 laboratory: $('#laboratory').val(), |
576 laboratory: $('#laboratory').val(), |
573 product_id: $('#product_id').val(), |
577 product_id: $('#product_id').val(), |
574 min_temperature: parseFloat($('#min_temperature').jqxNumberInput('decimal')), |
578 min_temperature: parseFloat($('#min_temperature').jqxNumberInput('decimal')), |