112 lines
2.4 KiB
XML
Executable File
112 lines
2.4 KiB
XML
Executable File
<vn>
|
|
<vn-group>
|
|
<db-model property="model" id="configs-model">
|
|
<custom>
|
|
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
|
|
</custom>
|
|
</db-model>
|
|
<vn-basic-set id="set"/>
|
|
</vn-group>
|
|
<h1 id="title">
|
|
<t>Shelves</t>
|
|
</h1>
|
|
<div id="actions">
|
|
<htk-bar-button
|
|
icon="print"
|
|
tip="_Preview"
|
|
on-click="onPreviewClick"/>
|
|
</div>
|
|
<div id="main" class="shelves">
|
|
<div class="card form">
|
|
<div>
|
|
<label><t>Configuration</t></label>
|
|
<htk-combo
|
|
id="config"
|
|
placeholder="_Select config"
|
|
model="configs-model"
|
|
on-changed="onConfigChange"
|
|
on-ready="onConfigChange"/>
|
|
</div>
|
|
<div>
|
|
<label><t>Date</t></label>
|
|
<htk-date-chooser id="date"/>
|
|
</div>
|
|
<div>
|
|
<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>
|
|
<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">
|
|
<custom>
|
|
<item name="realm" param="realm"/>
|
|
</custom>
|
|
</sql-batch>
|
|
</db-model>
|
|
</htk-combo>
|
|
</div>
|
|
<div>
|
|
<label><t>Store</t></label>
|
|
<htk-combo id="warehouse">
|
|
<db-model property="model">
|
|
<custom>
|
|
SELECT id, name FROM vn2008.warehouse
|
|
WHERE reserve ORDER BY name
|
|
</custom>
|
|
</db-model>
|
|
</htk-combo>
|
|
</div>
|
|
<div>
|
|
<label><t>Shelf</t></label>
|
|
<htk-combo id="shelf">
|
|
<db-model property="model">
|
|
<custom>
|
|
SELECT id, name FROM shelf
|
|
</custom>
|
|
</db-model>
|
|
</htk-combo>
|
|
</div>
|
|
<div>
|
|
<label><t>Name prefix</t></label>
|
|
<htk-entry id="namePrefix"/>
|
|
</div>
|
|
<div>
|
|
<label><t>Limit amount per item</t></label>
|
|
<htk-entry id="maxAmount"/>
|
|
</div>
|
|
<div>
|
|
<label><t>Title</t></label>
|
|
<htk-entry id="reportTitle"/>
|
|
</div>
|
|
<div>
|
|
<label><t>Show packing</t></label>
|
|
<htk-check id="showPacking"/>
|
|
</div>
|
|
<div>
|
|
<label><t>Stack different items</t></label>
|
|
<htk-check id="stack"/>
|
|
</div>
|
|
<div>
|
|
<label><t>Use ids instead of names</t></label>
|
|
<htk-check id="useIds"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</vn>
|