hedera-web/forms/reports/shelves/ui.xml

106 lines
2.7 KiB
XML
Raw Normal View History

2015-09-22 07:20:47 +00:00
<vn>
2022-05-30 01:30:33 +00:00
<vn-lot-query id="params">
<vn-spec name="config" type="Number"/>
</vn-lot-query>
<vn-lot id="lot"/>
2015-09-22 07:20:47 +00:00
<div id="title">
<h1><t>Shelves</t></h1>
</div>
2016-09-19 06:40:18 +00:00
<div id="actions" class="action-bar">
<htk-bar-button
icon="print"
tip="_Preview"
2022-05-24 21:11:12 +00:00
on-click="this.onPreviewClick()"/>
2016-09-19 06:40:18 +00:00
</div>
2015-09-22 07:20:47 +00:00
<div id="form" class="shelves">
2022-05-26 06:08:31 +00:00
<div class="form box vn-w-sm vn-pa-lg">
<div class="form-group">
<label><t>Configuration</t></label>
<htk-combo
id="config"
placeholder="_Select config"
2022-05-30 01:30:33 +00:00
form="params"
column="config"
2022-05-26 06:08:31 +00:00
on-changed="this.onConfigChange()"
2022-05-30 01:30:33 +00:00
on-ready="this.onConfigChange()">
<db-model property="model">
SELECT c.id, c.name reportTitle, c.namePrefix, c.warehouse, c.family,
c.shelf, c.maxAmount, c.showPacking, c.stack, t.reino_id realm
FROM shelfConfig c
JOIN vn2008.Tipos t ON t.tipo_id = c.family
</db-model>
</htk-combo>
2022-05-26 06:08:31 +00:00
</div>
<div class="form-group">
<label><t>Date</t></label>
2022-05-30 01:30:33 +00:00
<htk-date-chooser form="lot" name="date"/>
2022-05-26 06:08:31 +00:00
</div>
<div class="form-group">
<label><t>Reign</t></label>
2022-05-30 01:30:33 +00:00
<htk-combo form="lot" name="realm">
<db-model property="model">
SELECT id, reino FROM vn2008.reinos
WHERE display != FALSE ORDER BY reino
2022-05-26 06:08:31 +00:00
</db-model>
</htk-combo>
</div>
<div class="form-group">
<label><t>Family</t></label>
2022-05-30 01:30:33 +00:00
<htk-combo form="lot" name="family">
<db-model property="model" lot="lot">
SELECT tipo_id, Tipo FROM vn2008.Tipos
WHERE reino_id = #realm ORDER BY Tipo
2022-05-26 06:08:31 +00:00
</db-model>
</htk-combo>
</div>
<div class="form-group">
<label><t>Store</t></label>
2022-05-30 01:30:33 +00:00
<htk-combo form="lot">
<db-model property="model">
SELECT id, name FROM vn2008.warehouse
WHERE reserve ORDER BY name
2022-05-26 06:08:31 +00:00
</db-model>
</htk-combo>
</div>
<div class="form-group">
<label><t>Shelf</t></label>
2022-05-30 01:30:33 +00:00
<htk-combo form="lot" name="shelf">
<db-model property="model">
SELECT id, name FROM shelf
2022-05-26 06:08:31 +00:00
</db-model>
</htk-combo>
</div>
<div class="form-group">
<label><t>Name prefix</t></label>
2022-05-30 01:30:33 +00:00
<htk-entry form="lot" name="namePrefix"/>
2022-05-26 06:08:31 +00:00
</div>
<div class="form-group">
<label><t>Limit amount per item</t></label>
2022-05-30 01:30:33 +00:00
<htk-entry form="lot" name="maxAmount"/>
2022-05-26 06:08:31 +00:00
</div>
<div class="form-group">
<label><t>Title</t></label>
2022-05-30 01:30:33 +00:00
<htk-entry form="lot" name="reportTitle"/>
2022-05-26 06:08:31 +00:00
</div>
<div class="form-group">
<label>
2022-05-30 01:30:33 +00:00
<htk-check form="lot" name="showPacking"/>
2022-05-26 06:08:31 +00:00
<t>Show packing</t>
</label>
</div>
<div class="form-group">
<label>
2022-05-30 01:30:33 +00:00
<htk-check form="lot" name="stack"/>
2022-05-26 06:08:31 +00:00
<t>Stack different items</t>
</label>
</div>
<div class="form-group">
<label>
2022-05-30 01:30:33 +00:00
<htk-check form="lot" name="useIds"/>
2022-05-26 06:08:31 +00:00
<t>Use ids instead of names</t>
</label>
2015-09-22 07:20:47 +00:00
</div>
</div>
</div>
</vn>