2015-09-22 07:20:47 +00:00
|
|
|
<vn>
|
2015-11-05 07:30:19 +00:00
|
|
|
<vn-group>
|
|
|
|
<db-model property="model" id="configs-model">
|
2015-11-17 10:34:33 +00:00
|
|
|
<custom>
|
2016-10-04 15:27:49 +00:00
|
|
|
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
|
2015-11-17 10:34:33 +00:00
|
|
|
</custom>
|
2015-11-05 07:30:19 +00:00
|
|
|
</db-model>
|
|
|
|
</vn-group>
|
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"
|
|
|
|
model="configs-model"
|
|
|
|
on-changed="this.onConfigChange()"
|
|
|
|
on-ready="this.onConfigChange()"/>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label><t>Date</t></label>
|
|
|
|
<htk-date-chooser id="date"/>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label><t>Reign</t></label>
|
|
|
|
<htk-combo id="realm">
|
|
|
|
<db-model property="model" id="realms">
|
|
|
|
<custom>
|
|
|
|
SELECT id, reino FROM vn2008.reinos
|
|
|
|
WHERE display != FALSE ORDER BY reino
|
|
|
|
</custom>
|
|
|
|
</db-model>
|
|
|
|
</htk-combo>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label><t>Family</t></label>
|
|
|
|
<htk-combo id="family">
|
|
|
|
<db-model property="model">
|
|
|
|
<custom>
|
|
|
|
SELECT tipo_id, Tipo FROM vn2008.Tipos
|
|
|
|
WHERE reino_id = #realm ORDER BY Tipo
|
|
|
|
</custom>
|
|
|
|
<sql-batch property="batch">
|
2015-11-17 10:34:33 +00:00
|
|
|
<custom>
|
2022-05-26 06:08:31 +00:00
|
|
|
<item name="realm" param="realm"/>
|
2015-11-17 10:34:33 +00:00
|
|
|
</custom>
|
2022-05-26 06:08:31 +00:00
|
|
|
</sql-batch>
|
|
|
|
</db-model>
|
|
|
|
</htk-combo>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label><t>Store</t></label>
|
|
|
|
<htk-combo id="warehouse">
|
|
|
|
<db-model property="model" id="warehouses">
|
|
|
|
<custom>
|
|
|
|
SELECT id, name FROM vn2008.warehouse
|
|
|
|
WHERE reserve ORDER BY name
|
|
|
|
</custom>
|
|
|
|
</db-model>
|
|
|
|
</htk-combo>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label><t>Shelf</t></label>
|
|
|
|
<htk-combo id="shelf">
|
|
|
|
<db-model property="model" id="shelves">
|
|
|
|
<custom>
|
|
|
|
SELECT id, name FROM shelf
|
|
|
|
</custom>
|
|
|
|
</db-model>
|
|
|
|
</htk-combo>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label><t>Name prefix</t></label>
|
|
|
|
<htk-entry id="namePrefix"/>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label><t>Limit amount per item</t></label>
|
|
|
|
<htk-entry id="maxAmount"/>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label><t>Title</t></label>
|
|
|
|
<htk-entry id="reportTitle"/>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label>
|
|
|
|
<htk-check id="showPacking"/>
|
|
|
|
<t>Show packing</t>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label>
|
|
|
|
<htk-check id="stack"/>
|
|
|
|
<t>Stack different items</t>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label>
|
|
|
|
<htk-check id="useIds"/>
|
|
|
|
<t>Use ids instead of names</t>
|
|
|
|
</label>
|
2015-09-22 07:20:47 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</vn>
|