2015-09-22 07:20:47 +00:00
|
|
|
<vn>
|
2017-03-30 11:44:53 +00:00
|
|
|
<vn-basic-set id="set"/>
|
2017-03-17 12:42:10 +00:00
|
|
|
<h1 id="title">
|
|
|
|
<t>Shelves</t>
|
|
|
|
</h1>
|
2016-12-23 08:57:49 +00:00
|
|
|
<div id="actions">
|
2016-09-19 06:40:18 +00:00
|
|
|
<htk-bar-button
|
2017-03-30 11:44:53 +00:00
|
|
|
icon="show"
|
|
|
|
tip="_Show"
|
|
|
|
on-click="onShowClick"/>
|
2016-09-19 06:40:18 +00:00
|
|
|
</div>
|
2017-03-23 16:20:51 +00:00
|
|
|
<div id="main" class="shelves">
|
2016-12-23 08:57:49 +00:00
|
|
|
<div class="card form">
|
|
|
|
<div>
|
|
|
|
<label><t>Configuration</t></label>
|
|
|
|
<htk-combo
|
|
|
|
id="config"
|
|
|
|
placeholder="_Select config"
|
|
|
|
model="configs-model"
|
|
|
|
on-changed="onConfigChange"
|
2017-03-30 11:44:53 +00:00
|
|
|
on-ready="onConfigChange">
|
|
|
|
<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>
|
|
|
|
</htk-combo>
|
2016-12-23 08:57:49 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<label><t>Date</t></label>
|
2017-03-30 11:44:53 +00:00
|
|
|
<htk-date-chooser form="set" column="date"/>
|
2016-12-23 08:57:49 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<label><t>Reign</t></label>
|
2017-03-30 11:44:53 +00:00
|
|
|
<htk-combo form="set" column="realm" id="realm">
|
|
|
|
<db-model property="model">
|
2016-12-23 08:57:49 +00:00
|
|
|
<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>
|
2017-03-30 11:44:53 +00:00
|
|
|
<htk-combo form="set" column="family">
|
2016-12-23 08:57:49 +00:00
|
|
|
<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>
|
2016-12-23 08:57:49 +00:00
|
|
|
<item name="realm" param="realm"/>
|
2015-11-17 10:34:33 +00:00
|
|
|
</custom>
|
2016-12-23 08:57:49 +00:00
|
|
|
</sql-batch>
|
|
|
|
</db-model>
|
|
|
|
</htk-combo>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<label><t>Store</t></label>
|
2017-03-30 11:44:53 +00:00
|
|
|
<htk-combo form="set" column="warehouse">
|
2016-12-23 08:57:49 +00:00
|
|
|
<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>
|
2017-03-30 11:44:53 +00:00
|
|
|
<htk-combo form="set" column="shelf">
|
2016-12-23 08:57:49 +00:00
|
|
|
<db-model property="model">
|
|
|
|
<custom>
|
|
|
|
SELECT id, name FROM shelf
|
|
|
|
</custom>
|
|
|
|
</db-model>
|
|
|
|
</htk-combo>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<label><t>Name prefix</t></label>
|
2017-03-30 11:44:53 +00:00
|
|
|
<htk-entry form="set" column="namePrefix"/>
|
2016-12-23 08:57:49 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<label><t>Limit amount per item</t></label>
|
2017-03-30 11:44:53 +00:00
|
|
|
<htk-entry form="set" column="maxAmount"/>
|
2016-12-23 08:57:49 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<label><t>Title</t></label>
|
2017-03-30 11:44:53 +00:00
|
|
|
<htk-entry form="set" column="reportTitle"/>
|
2016-12-23 08:57:49 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<label><t>Show packing</t></label>
|
2017-03-30 11:44:53 +00:00
|
|
|
<htk-check form="set" column="showPacking"/>
|
2016-12-23 08:57:49 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<label><t>Stack different items</t></label>
|
2017-03-30 11:44:53 +00:00
|
|
|
<htk-check form="set" column="stack"/>
|
2016-12-23 08:57:49 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<label><t>Use ids instead of names</t></label>
|
2017-03-30 11:44:53 +00:00
|
|
|
<htk-check form="set" column="useIds"/>
|
2015-09-22 07:20:47 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</vn>
|