Bläddra i källkod

Remove obsolete and commented out implementation

Neal Wilson 11 år sedan
förälder
incheckning
bc9ba27efb
1 ändrade filer med 0 tillägg och 28 borttagningar
  1. 0
    28
      config/Windows/history.xml

+ 0
- 28
config/Windows/history.xml Visa fil

@@ -5,7 +5,6 @@
5 5
     <program>
6 6
         <![CDATA[
7 7
 			var q = "SELECT time, machine, (SELECT name FROM items WHERE id = roasted_id) AS name, unroasted_total_quantity AS green, roasted_quantity AS roasted, ((unroasted_total_quantity - roasted_quantity) / unroasted_total_quantity * 100::numeric)::numeric(12,2) AS weight_loss, duration FROM roasting_log ORDER BY time DESC";
8
-			//var q = "SELECT time, name, unroasted_total_quantity AS green, roasted_quantity AS roasted, weight_loss AS loss, duration FROM short_log ORDER BY time DESC";
9 8
 			var table = findChildObject(this, 'table');
10 9
 			table.setQuery(q);
11 10
 			table.hideColumn(1);
@@ -13,33 +12,6 @@
13 12
 				var details = createWindow("batchDetails");
14 13
 				details.loadData(table, arg);
15 14
 			});
16
-			/*
17
-			table.openEntry.connect(function(arg) {
18
-				var details = createWindow("batchDetails");
19
-				details.windowTitle = 'Typica - Batch Details';
20
-				q = "SELECT time, (SELECT name FROM items WHERE id = roasted_id) AS name, unroasted_total_quantity, roasted_quantity, duration, approval, files FROM roasting_log WHERE time = :time";
21
-				query = new QSqlQuery();
22
-                query.prepare(q);
23
-				query.bind(":time", arg);
24
-				query.exec();
25
-				query.next();
26
-				var timefield = findChildObject(details, 'time');
27
-				timefield.text = query.value(0);
28
-				var namefield = findChildObject(details, 'name');
29
-				namefield.text = query.value(1);
30
-				var greenfield = findChildObject(details, 'green');
31
-				greenfield.text = query.value(2);
32
-				var roastedfield = findChildObject(details, 'roasted');
33
-				roastedfield.text = query.value(3);
34
-				var durationfield = findChildObject(details, 'duration');
35
-				durationfield.text = query.value(4);
36
-				var approvalfield = findChildObject(details, 'approval');
37
-				approvalfield.text = query.value(5);
38
-				var filesfield = findChildObject(details, 'files');
39
-				filesfield.text = query.value(6);
40
-                query = query.invalidate();
41
-			});
42
-			*/
43 15
         ]]>
44 16
     </program>
45 17
 </window>

Laddar…
Avbryt
Spara