Typica is a free program for professional coffee roasters. https://typica.us
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

history.xml 728B

1234567891011121314151617
  1. <window id="history">
  2. <layout type="vertical">
  3. <sqlview id="table" />
  4. </layout>
  5. <program>
  6. <![CDATA[
  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, annotation FROM roasting_log ORDER BY time DESC";
  8. var table = findChildObject(this, 'table');
  9. table.setQuery(q);
  10. table.hideColumn(1);
  11. table.openEntryRow.connect(function(arg) {
  12. var details = createWindow("batchDetails");
  13. details.loadData(table, arg);
  14. });
  15. ]]>
  16. </program>
  17. </window>