2015-03-06 23:33:54 +00:00
|
|
|
<vn>
|
2015-10-14 11:51:43 +00:00
|
|
|
<vn-group>
|
|
|
|
<vn-param id="search"/>
|
2015-11-09 08:14:33 +00:00
|
|
|
<vn-param id="realm" on-changed="onTypeChange"/>
|
|
|
|
<vn-param id="type" on-changed="onTypeChange"/>
|
2015-11-09 17:11:51 +00:00
|
|
|
<vn-param id="color"/>
|
|
|
|
<vn-param id="origin"/>
|
|
|
|
<vn-param id="category"/>
|
|
|
|
<vn-param id="producer"/>
|
|
|
|
</vn-group>
|
|
|
|
<vn-group>
|
2015-10-14 11:51:43 +00:00
|
|
|
<sql-filter type="AND" id="filter">
|
2015-11-19 13:57:23 +00:00
|
|
|
<sql-filter-item type="EQUAL" primary="false" id="op-realm">
|
|
|
|
<sql-field name="reino_id" target="t"/>
|
|
|
|
<sql-value param="realm"/>
|
|
|
|
</sql-filter-item>
|
2015-11-17 10:34:33 +00:00
|
|
|
<sql-filter-item type="LIKE" id="op-name">
|
|
|
|
<sql-field name="Article"/>
|
|
|
|
<sql-search-tags param="search"/>
|
|
|
|
</sql-filter-item>
|
|
|
|
<sql-filter-item type="EQUAL" id="op-type">
|
2015-11-19 13:57:23 +00:00
|
|
|
<sql-field name="tipo_id" target="a"/>
|
2015-11-17 10:34:33 +00:00
|
|
|
<sql-value param="type"/>
|
|
|
|
</sql-filter-item>
|
|
|
|
<sql-filter-item type="EQUAL" id="op-color">
|
|
|
|
<sql-field name="Color"/>
|
|
|
|
<sql-value param="color"/>
|
|
|
|
</sql-filter-item>
|
|
|
|
<sql-filter-item type="EQUAL" id="op-origin">
|
|
|
|
<sql-field name="id_origen"/>
|
|
|
|
<sql-value param="origin"/>
|
|
|
|
</sql-filter-item>
|
|
|
|
<sql-filter-item type="EQUAL" id="op-category">
|
|
|
|
<sql-field name="Categoria"/>
|
|
|
|
<sql-value param="category"/>
|
|
|
|
</sql-filter-item>
|
|
|
|
<sql-filter-item type="EQUAL" id="op-producer">
|
|
|
|
<sql-field name="producer_id"/>
|
|
|
|
<sql-value param="producer"/>
|
|
|
|
</sql-filter-item>
|
2015-03-06 23:33:54 +00:00
|
|
|
</sql-filter>
|
2015-11-17 10:34:33 +00:00
|
|
|
</vn-group>
|
|
|
|
<vn-group>
|
|
|
|
<vn-hash-param key="realm" param="realm"/>
|
|
|
|
<vn-hash-param key="type" param="type"/>
|
2015-07-30 17:31:09 +00:00
|
|
|
<db-query id="basket-lines">
|
2015-11-09 17:11:51 +00:00
|
|
|
<custom>
|
|
|
|
SELECT item_id, warehouse_id, SUM(amount) amount
|
|
|
|
FROM basket_item
|
|
|
|
GROUP BY warehouse_id
|
|
|
|
</custom>
|
2015-07-30 17:31:09 +00:00
|
|
|
</db-query>
|
2015-11-19 13:57:23 +00:00
|
|
|
<db-model result-index="2" id="items-model">
|
2015-11-09 08:14:33 +00:00
|
|
|
<custom>
|
|
|
|
CREATE TEMPORARY TABLE tmp.bionic_calc
|
|
|
|
(INDEX (item_id))
|
|
|
|
ENGINE=MEMORY
|
2015-11-19 13:57:23 +00:00
|
|
|
SELECT a.Id_Article item_id FROM vn2008.Articles a
|
|
|
|
JOIN vn2008.Tipos t ON t.tipo_id = a.tipo_id
|
2015-11-09 08:14:33 +00:00
|
|
|
WHERE #filter;
|
|
|
|
CALL bionic_calc ();
|
2015-11-19 13:57:23 +00:00
|
|
|
SELECT a.Id_Article item_id, a.description, b.available, b.price,
|
2015-11-17 10:34:33 +00:00
|
|
|
p.name producer, a.Foto, a.Article, a.Categoria, a.Medida,
|
2015-11-19 13:57:23 +00:00
|
|
|
a.Tallos, c.str color, o.str origin
|
|
|
|
FROM tmp.bionic_item b
|
|
|
|
JOIN vn2008.Articles a ON a.Id_Article = b.item_id
|
2015-11-09 17:11:51 +00:00
|
|
|
LEFT JOIN vn2008.producer p ON p.producer_id = a.producer_id
|
2015-11-19 13:57:23 +00:00
|
|
|
LEFT JOIN vn_locale.color_view c ON c.color_id = a.Color
|
|
|
|
LEFT JOIN vn_locale.origin_view o ON o.origin_id = a.id_origen
|
|
|
|
WHERE b.available > 0
|
2015-11-09 08:14:33 +00:00
|
|
|
ORDER BY a.Article, a.Medida
|
|
|
|
LIMIT 400;
|
|
|
|
</custom>
|
2015-11-19 13:57:23 +00:00
|
|
|
<sql-batch property="batch" id="filter-batch">
|
|
|
|
<custom>
|
|
|
|
<item name="filter" object="filter"/>
|
|
|
|
</custom>
|
|
|
|
</sql-batch>
|
2015-07-07 15:27:47 +00:00
|
|
|
</db-model>
|
2015-07-21 14:16:07 +00:00
|
|
|
<db-model id="item-lots" result-index="1" on-status-changed-after="onStatusChange">
|
2015-11-09 08:14:33 +00:00
|
|
|
<custom>
|
|
|
|
CALL bionic_from_item (#item);
|
2015-11-17 10:34:33 +00:00
|
|
|
SELECT p.warehouse_id, w.name warehouse, p.grouping, p.price, p.rate, l.available
|
2015-11-09 08:14:33 +00:00
|
|
|
FROM tmp.bionic_lot l
|
2015-11-17 10:34:33 +00:00
|
|
|
JOIN tmp.bionic_price p ON p.warehouse_id = l.warehouse_id
|
|
|
|
JOIN vn2008.warehouse w ON w.id = p.warehouse_id
|
2015-11-09 08:14:33 +00:00
|
|
|
ORDER BY warehouse_id, grouping;
|
|
|
|
</custom>
|
2015-08-25 09:16:13 +00:00
|
|
|
<sql-batch property="batch" id="lots-batch"/>
|
2015-03-09 08:36:54 +00:00
|
|
|
</db-model>
|
2015-03-06 23:33:54 +00:00
|
|
|
</vn-group>
|
2015-09-11 09:37:16 +00:00
|
|
|
<div id="title">
|
|
|
|
<h1 id="title-text"><t>Catalog</t></h1>
|
|
|
|
</div>
|
2015-09-16 16:11:15 +00:00
|
|
|
<div id="actions" class="catalog-actions">
|
2015-11-19 13:57:23 +00:00
|
|
|
<htk-search-entry
|
|
|
|
param="search"/>
|
2015-09-16 16:11:15 +00:00
|
|
|
<htk-button
|
|
|
|
image="image/dark/view.svg"
|
|
|
|
tip="_Switch view"
|
2015-09-22 07:20:47 +00:00
|
|
|
on-click="onSwitchViewClick"
|
2015-09-16 16:11:15 +00:00
|
|
|
showText="true"/>
|
|
|
|
<htk-button
|
2015-09-22 07:20:47 +00:00
|
|
|
id="a"
|
2015-09-16 16:11:15 +00:00
|
|
|
image="image/dark/basket.svg"
|
|
|
|
tip="_ShoppingBasket"
|
|
|
|
on-click="onBasketClick"
|
|
|
|
showText="true"/>
|
2015-09-11 09:37:16 +00:00
|
|
|
<button class="menu" on-click="onShowMenuClick">
|
|
|
|
<img src="image/dark/menu.svg" alt="_Menu"/>
|
|
|
|
</button>
|
|
|
|
</div>
|
2015-03-06 23:33:54 +00:00
|
|
|
<div id="form" class="catalog">
|
|
|
|
<div class="center">
|
2015-09-22 07:20:47 +00:00
|
|
|
<div id="main" class="main"/>
|
2015-03-06 23:33:54 +00:00
|
|
|
</div>
|
2015-09-16 16:11:15 +00:00
|
|
|
</div>
|
2015-09-25 00:53:59 +00:00
|
|
|
<div id="list-view" class="list-view">
|
|
|
|
<div class="box">
|
2015-11-19 13:57:23 +00:00
|
|
|
<htk-grid
|
|
|
|
id="items-grid"
|
|
|
|
class="items"
|
|
|
|
empty-message="_Select filter from right menu"
|
|
|
|
show-header="false">
|
2015-09-25 00:53:59 +00:00
|
|
|
<htk-column-image
|
|
|
|
title="*"
|
|
|
|
class="icon"
|
|
|
|
column="Foto"
|
|
|
|
directory="catalog"
|
|
|
|
subdir="200x200"
|
|
|
|
show-full="true"
|
|
|
|
full-dir="900x900"
|
|
|
|
editable="true"/>
|
2015-10-14 11:51:43 +00:00
|
|
|
<vn-column-item
|
|
|
|
title="_Name"
|
|
|
|
column="Article"
|
|
|
|
renderer="nameRenderer"/>
|
2015-11-17 10:34:33 +00:00
|
|
|
<htk-column-text
|
|
|
|
title="_Siz"
|
|
|
|
column="Medida"/>
|
2015-10-14 11:51:43 +00:00
|
|
|
<htk-column-text
|
|
|
|
title="_Cat"
|
2015-11-17 10:34:33 +00:00
|
|
|
column="Categoria"/>
|
2015-10-14 11:51:43 +00:00
|
|
|
<htk-column-spin
|
|
|
|
title="_Aval"
|
|
|
|
column="available"/>
|
2015-09-25 00:53:59 +00:00
|
|
|
<htk-column-text
|
|
|
|
title="_Price"
|
|
|
|
column="price"
|
|
|
|
format="_from %.2d€"
|
|
|
|
class="price"/>
|
|
|
|
<htk-column-button
|
|
|
|
column="id"
|
|
|
|
image="image/add.svg"
|
|
|
|
tip="_AddToBasket"
|
|
|
|
on-clicked="onAddItemClick"/>
|
|
|
|
</htk-grid>
|
|
|
|
<p class="footer-message">
|
|
|
|
<t>IndicativePhotos</t>
|
|
|
|
</p>
|
|
|
|
</div>
|
2015-09-22 07:20:47 +00:00
|
|
|
</div>
|
2015-11-19 13:57:23 +00:00
|
|
|
<htk-repeater
|
|
|
|
id="grid-view"
|
|
|
|
class="grid-view"
|
|
|
|
empty-message="_Select filter from right menu"
|
|
|
|
form-id="item"
|
|
|
|
renderer="gridRenderer">
|
2015-11-09 08:14:33 +00:00
|
|
|
<custom>
|
2015-09-22 07:20:47 +00:00
|
|
|
<div class="box item-box">
|
|
|
|
<div class="image">
|
|
|
|
<htk-image
|
|
|
|
directory="catalog"
|
|
|
|
subdir="200x200"
|
|
|
|
form="item"
|
|
|
|
column="Foto"
|
|
|
|
show-full="true"
|
|
|
|
full-dir="900x900"/>
|
|
|
|
</div>
|
2015-11-19 13:57:23 +00:00
|
|
|
<htk-button
|
|
|
|
form="item"
|
|
|
|
column="id"
|
|
|
|
tip="_More info"
|
|
|
|
image="image/info.svg"
|
|
|
|
on-click="onInfoClick"
|
|
|
|
id="info-button"
|
|
|
|
class="info-button"/>
|
2015-09-22 07:20:47 +00:00
|
|
|
<h2>
|
|
|
|
<htk-text form="item" column="Article"/>
|
|
|
|
</h2>
|
2015-11-17 10:34:33 +00:00
|
|
|
<p class="producer">
|
2015-09-22 07:20:47 +00:00
|
|
|
<htk-text form="item" column="producer"/>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<htk-text form="item" column="Medida"/>
|
|
|
|
<htk-text form="item" column="Categoria"/>
|
2015-11-17 10:34:33 +00:00
|
|
|
<htk-text form="item" column="color"/>
|
|
|
|
</p>
|
|
|
|
<p>
|
2015-11-19 13:57:23 +00:00
|
|
|
<htk-text form="item" column="origin"/>
|
2015-11-17 10:34:33 +00:00
|
|
|
<htk-text form="item" column="Tallos" format="%.0d Units"/>
|
2015-09-22 07:20:47 +00:00
|
|
|
</p>
|
|
|
|
<div class="aval-price">
|
2015-11-09 17:11:51 +00:00
|
|
|
<htk-text form="item" column="available"/>
|
|
|
|
<t>from</t>
|
2015-09-22 07:20:47 +00:00
|
|
|
<span class="price">
|
|
|
|
<htk-text form="item" column="price" format="%.2d€"/>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<htk-button
|
|
|
|
form="item"
|
|
|
|
column="id"
|
|
|
|
tip="_AddToBasket"
|
|
|
|
image="image/add.svg"
|
|
|
|
on-click="onGridAddItemClick"
|
|
|
|
class="add-button"/>
|
|
|
|
<div class="clear"/>
|
|
|
|
</div>
|
2015-11-09 08:14:33 +00:00
|
|
|
</custom>
|
2015-09-22 07:20:47 +00:00
|
|
|
</htk-repeater>
|
2015-09-16 16:11:15 +00:00
|
|
|
<div id="right-panel" class="right-panel" on-click="onRightPanelClick">
|
2015-10-14 11:51:43 +00:00
|
|
|
<div class="body">
|
2015-11-17 10:34:33 +00:00
|
|
|
<select on-change="onOrderChange">
|
2015-10-14 11:51:43 +00:00
|
|
|
<option value="" disabled="true" selected="true">
|
|
|
|
<t>Order by</t>
|
|
|
|
</option>
|
|
|
|
<option value="Article">
|
2015-11-17 10:34:33 +00:00
|
|
|
<t>Name</t>
|
2015-10-14 11:51:43 +00:00
|
|
|
</option>
|
|
|
|
<option value="price">
|
|
|
|
<t>Price</t>
|
|
|
|
</option>
|
|
|
|
<option value="available">
|
|
|
|
<t>Available</t>
|
|
|
|
</option>
|
2015-11-17 10:34:33 +00:00
|
|
|
<option value="Medida">
|
|
|
|
<t>Size</t>
|
|
|
|
</option>
|
|
|
|
<option value="color">
|
2015-10-14 11:51:43 +00:00
|
|
|
<t>Color</t>
|
|
|
|
</option>
|
|
|
|
<option value="producer">
|
|
|
|
<t>Producer</t>
|
|
|
|
</option>
|
2015-11-17 10:34:33 +00:00
|
|
|
<option value="Abreviatura">
|
|
|
|
<t>Origin</t>
|
2015-10-14 11:51:43 +00:00
|
|
|
</option>
|
|
|
|
<option value="Categoria">
|
|
|
|
<t>Category</t>
|
|
|
|
</option>
|
|
|
|
</select>
|
2015-11-17 10:34:33 +00:00
|
|
|
<vn-filter
|
|
|
|
placeholder="_Realm"
|
|
|
|
param="realm">
|
2015-11-09 17:11:51 +00:00
|
|
|
<db-model
|
|
|
|
id="realms-model"
|
|
|
|
property="model"
|
|
|
|
on-status-changed="onTypeChange">
|
|
|
|
<custom>
|
2015-11-19 13:57:23 +00:00
|
|
|
SELECT r.id, l.str name, r.color
|
|
|
|
FROM vn2008.reinos r
|
|
|
|
LEFT JOIN vn_locale.realm_view l ON l.realm_id = r.id
|
|
|
|
WHERE r.display != FALSE
|
|
|
|
ORDER BY name
|
2015-11-09 17:11:51 +00:00
|
|
|
</custom>
|
|
|
|
</db-model>
|
|
|
|
</vn-filter>
|
2015-11-17 10:34:33 +00:00
|
|
|
<vn-filter
|
|
|
|
placeholder="_Family"
|
2015-11-19 13:57:23 +00:00
|
|
|
param="type">
|
2015-11-09 17:11:51 +00:00
|
|
|
<db-model
|
|
|
|
id="types-model"
|
|
|
|
property="model"
|
2015-11-19 13:57:23 +00:00
|
|
|
conn="conn"
|
2015-11-09 17:11:51 +00:00
|
|
|
auto-load="false"
|
|
|
|
result-index="1"
|
|
|
|
on-status-changed="refreshTitle">
|
|
|
|
<custom>
|
|
|
|
CALL item_available ();
|
2015-11-19 13:57:23 +00:00
|
|
|
SELECT DISTINCT t.tipo_id, l.str name
|
2015-11-09 17:11:51 +00:00
|
|
|
FROM vn2008.Tipos t
|
|
|
|
JOIN vn2008.Articles a ON a.tipo_id = t.tipo_id
|
2015-11-19 13:57:23 +00:00
|
|
|
LEFT JOIN vn_locale.family_view l ON l.family_id = t.tipo_id
|
2015-11-09 17:11:51 +00:00
|
|
|
JOIN tmp.item_available i ON i.item_id = a.Id_Article
|
2015-11-17 10:34:33 +00:00
|
|
|
WHERE #filter
|
2015-11-19 13:57:23 +00:00
|
|
|
ORDER BY name
|
2015-11-09 17:11:51 +00:00
|
|
|
</custom>
|
2015-10-14 11:51:43 +00:00
|
|
|
</db-model>
|
2015-11-19 13:57:23 +00:00
|
|
|
<sql-filter property="filter" always-ready="true" type="AND">
|
|
|
|
<sql-filter-item type="EQUAL" id="op-realm">
|
|
|
|
<sql-field name="reino_id" target="t"/>
|
|
|
|
<sql-value param="realm"/>
|
|
|
|
</sql-filter-item>
|
|
|
|
<pointer object="op-name"/>
|
|
|
|
<pointer object="op-color"/>
|
|
|
|
<pointer object="op-origin"/>
|
|
|
|
<pointer object="op-category"/>
|
|
|
|
<pointer object="op-producer"/>
|
|
|
|
</sql-filter>
|
2015-10-14 11:51:43 +00:00
|
|
|
</vn-filter>
|
2015-11-17 10:34:33 +00:00
|
|
|
<vn-filter
|
|
|
|
placeholder="_Color"
|
2015-11-19 13:57:23 +00:00
|
|
|
param="color">
|
2015-11-09 08:14:33 +00:00
|
|
|
<db-model property="model" auto-load="false" result-index="1">
|
2015-11-09 17:11:51 +00:00
|
|
|
<custom>
|
|
|
|
CALL item_available ();
|
2015-11-19 13:57:23 +00:00
|
|
|
SELECT DISTINCT c.Id_Tinta, l.str name
|
2015-11-09 17:11:51 +00:00
|
|
|
FROM vn2008.Tintas c
|
|
|
|
JOIN vn2008.Articles a ON a.Color = c.Id_Tinta
|
2015-11-19 13:57:23 +00:00
|
|
|
LEFT JOIN vn_locale.color_view l ON l.color_id = c.Id_Tinta
|
2015-11-09 17:11:51 +00:00
|
|
|
JOIN tmp.item_available i ON i.item_id = a.Id_Article
|
2015-11-17 10:34:33 +00:00
|
|
|
WHERE #filter
|
2015-11-19 13:57:23 +00:00
|
|
|
ORDER BY name
|
2015-11-09 17:11:51 +00:00
|
|
|
</custom>
|
2015-10-14 11:51:43 +00:00
|
|
|
</db-model>
|
2015-11-19 13:57:23 +00:00
|
|
|
<sql-filter property="filter" always-ready="true" type="AND">
|
|
|
|
<pointer object="op-name"/>
|
|
|
|
<pointer object="op-type"/>
|
|
|
|
<pointer object="op-origin"/>
|
|
|
|
<pointer object="op-category"/>
|
|
|
|
<pointer object="op-producer"/>
|
|
|
|
</sql-filter>
|
2015-10-14 11:51:43 +00:00
|
|
|
</vn-filter>
|
2015-11-17 10:34:33 +00:00
|
|
|
<vn-filter
|
|
|
|
placeholder="_Producer"
|
2015-11-19 13:57:23 +00:00
|
|
|
param="producer">
|
2015-11-09 08:14:33 +00:00
|
|
|
<db-model property="model" auto-load="false" result-index="1">
|
2015-11-09 17:11:51 +00:00
|
|
|
<custom>
|
|
|
|
CALL item_available ();
|
2015-11-17 10:34:33 +00:00
|
|
|
SELECT DISTINCT p.producer_id, p.name
|
|
|
|
FROM vn2008.producer p
|
|
|
|
JOIN vn2008.Articles a ON a.producer_id = p.producer_id
|
2015-11-09 17:11:51 +00:00
|
|
|
JOIN tmp.item_available i ON i.item_id = a.Id_Article
|
2015-11-17 10:34:33 +00:00
|
|
|
WHERE #filter
|
2015-11-19 13:57:23 +00:00
|
|
|
ORDER BY name
|
2015-11-09 17:11:51 +00:00
|
|
|
</custom>
|
2015-10-14 11:51:43 +00:00
|
|
|
</db-model>
|
2015-11-19 13:57:23 +00:00
|
|
|
<sql-filter property="filter" always-ready="true" type="AND">
|
|
|
|
<pointer object="op-name"/>
|
|
|
|
<pointer object="op-type"/>
|
|
|
|
<pointer object="op-origin"/>
|
|
|
|
<pointer object="op-color"/>
|
|
|
|
<pointer object="op-category"/>
|
|
|
|
</sql-filter>
|
2015-10-14 11:51:43 +00:00
|
|
|
</vn-filter>
|
2015-11-17 10:34:33 +00:00
|
|
|
<vn-filter
|
|
|
|
placeholder="_Origin"
|
2015-11-19 13:57:23 +00:00
|
|
|
param="origin">
|
2015-11-09 08:14:33 +00:00
|
|
|
<db-model property="model" auto-load="false" result-index="1">
|
2015-11-09 17:11:51 +00:00
|
|
|
<custom>
|
|
|
|
CALL item_available ();
|
2015-11-19 13:57:23 +00:00
|
|
|
SELECT DISTINCT o.id, l.str name, o.Abreviatura
|
2015-11-17 10:34:33 +00:00
|
|
|
FROM vn2008.Origen o
|
|
|
|
JOIN vn2008.Articles a ON a.id_origen = o.id
|
2015-11-19 13:57:23 +00:00
|
|
|
LEFT JOIN vn_locale.origin_view l ON l.origin_id = o.id
|
2015-11-09 17:11:51 +00:00
|
|
|
JOIN tmp.item_available i ON i.item_id = a.Id_Article
|
2015-11-17 10:34:33 +00:00
|
|
|
WHERE #filter
|
2015-11-19 13:57:23 +00:00
|
|
|
ORDER BY name
|
2015-11-09 17:11:51 +00:00
|
|
|
</custom>
|
2015-10-14 11:51:43 +00:00
|
|
|
</db-model>
|
2015-11-19 13:57:23 +00:00
|
|
|
<sql-filter property="filter" always-ready="true" type="AND">
|
|
|
|
<pointer object="op-name"/>
|
|
|
|
<pointer object="op-type"/>
|
|
|
|
<pointer object="op-color"/>
|
|
|
|
<pointer object="op-category"/>
|
|
|
|
<pointer object="op-producer"/>
|
|
|
|
</sql-filter>
|
2015-10-14 11:51:43 +00:00
|
|
|
</vn-filter>
|
2015-11-17 10:34:33 +00:00
|
|
|
<vn-filter
|
|
|
|
placeholder="_Category"
|
2015-11-19 13:57:23 +00:00
|
|
|
param="category">
|
2015-11-09 08:14:33 +00:00
|
|
|
<db-model property="model" auto-load="false" result-index="1">
|
2015-11-09 17:11:51 +00:00
|
|
|
<custom>
|
|
|
|
CALL item_available ();
|
2015-11-17 10:34:33 +00:00
|
|
|
SELECT DISTINCT a.Categoria, a.Categoria category
|
|
|
|
FROM vn2008.Articles a
|
2015-11-09 17:11:51 +00:00
|
|
|
JOIN tmp.item_available i ON i.item_id = a.Id_Article
|
2015-11-17 10:34:33 +00:00
|
|
|
WHERE #filter
|
|
|
|
ORDER BY a.Categoria
|
2015-11-09 17:11:51 +00:00
|
|
|
</custom>
|
2015-10-14 11:51:43 +00:00
|
|
|
</db-model>
|
2015-11-19 13:57:23 +00:00
|
|
|
<sql-filter property="filter" always-ready="true" type="AND">
|
|
|
|
<pointer object="op-name"/>
|
|
|
|
<pointer object="op-type"/>
|
|
|
|
<pointer object="op-color"/>
|
|
|
|
<pointer object="op-origin"/>
|
|
|
|
<pointer object="op-producer"/>
|
|
|
|
</sql-filter>
|
2015-10-14 11:51:43 +00:00
|
|
|
</vn-filter>
|
2015-11-17 10:34:33 +00:00
|
|
|
<button class="remove-filters thin" on-click="onRemoveFiltersClick">
|
|
|
|
<t>Remove filters</t>
|
|
|
|
</button>
|
2015-10-14 11:51:43 +00:00
|
|
|
</div>
|
|
|
|
<!--
|
|
|
|
<htk-repeater
|
|
|
|
model="realms-model"
|
|
|
|
form-id="realm-form"
|
|
|
|
renderer="realmRenderer"
|
|
|
|
class="realms-box">
|
|
|
|
<db-model id="realms-model" on-status-changed="onTypeChange">
|
2015-09-16 16:11:15 +00:00
|
|
|
SELECT id, reino, color FROM vn2008.reinos
|
|
|
|
WHERE display != FALSE ORDER BY reino
|
|
|
|
</db-model>
|
2015-10-14 11:51:43 +00:00
|
|
|
<template>
|
|
|
|
<a id="link">
|
|
|
|
<img id="image"/>
|
|
|
|
</a>
|
|
|
|
</template>
|
|
|
|
</htk-repeater>
|
|
|
|
<htk-repeater
|
|
|
|
model="types-model"
|
|
|
|
form-id="type-form"
|
|
|
|
renderer="typeRenderer"
|
|
|
|
empty-message="_SelectFamily"
|
|
|
|
class="types-box">
|
|
|
|
<db-model id="types-model" on-status-changed="refreshTitle">
|
|
|
|
CALL type_list (#realm)
|
|
|
|
<sql-batch property="batch">
|
|
|
|
<item name="realm" param="realm"/>
|
|
|
|
</sql-batch>
|
2015-09-28 09:46:24 +00:00
|
|
|
</db-model>
|
2015-10-14 11:51:43 +00:00
|
|
|
<template>
|
|
|
|
<a id="link">
|
|
|
|
<htk-text form="type-form" column="Tipo"/>
|
|
|
|
</a>
|
|
|
|
</template>
|
|
|
|
</htk-repeater>
|
|
|
|
-->
|
2015-03-06 23:33:54 +00:00
|
|
|
</div>
|
2015-11-19 13:57:23 +00:00
|
|
|
<div id="desc-popup" class="desc-popup"/>
|
2015-07-10 12:30:08 +00:00
|
|
|
<div id="lots-popup" class="lots-popup">
|
|
|
|
<htk-grid class="lots-grid" model="item-lots" show-header="false">
|
2015-11-17 10:34:33 +00:00
|
|
|
<htk-column-text title="_Store" column="warehouse"/>
|
2015-07-10 12:30:08 +00:00
|
|
|
<htk-column-spin title="_Price" column="price" unit="€" digits="2"/>
|
|
|
|
<htk-column-text title="_Pack" column="grouping" format="x%.0d"/>
|
|
|
|
<htk-column-button
|
|
|
|
column="id"
|
|
|
|
image="image/add.svg"
|
|
|
|
tip="_Add"
|
|
|
|
on-clicked="onAddLotClick"/>
|
|
|
|
</htk-grid>
|
|
|
|
<div class="amount">
|
|
|
|
<button on-click="onEraseClick" title="_Erase" class="erase">
|
|
|
|
<img
|
|
|
|
src="image/dark/delete.svg"
|
|
|
|
alt="_Erase"/>
|
|
|
|
</button>
|
|
|
|
<htk-text id="amount"/>
|
|
|
|
<button on-click="onConfirmClick" title="_Confirm" class="confirm">
|
|
|
|
<img
|
|
|
|
src="image/dark/ok.svg"
|
|
|
|
alt="_Confirm"/>
|
|
|
|
</button>
|
2015-08-25 09:16:13 +00:00
|
|
|
<div class="clear"/>
|
2015-07-10 12:30:08 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-03-06 23:33:54 +00:00
|
|
|
</vn>
|