2015-03-19 19:36:11 +00:00
|
|
|
<vn>
|
|
|
|
<vn-group>
|
2015-11-09 08:14:33 +00:00
|
|
|
<vn-param id="address"/>
|
|
|
|
<vn-hash-param key="address" param="address"/>
|
2015-07-03 05:49:45 +00:00
|
|
|
<db-form id="iter" on-status-changed="onStatusChange">
|
2015-12-10 13:48:43 +00:00
|
|
|
<db-model
|
|
|
|
id="model"
|
|
|
|
property="model"
|
|
|
|
updatable="true"
|
|
|
|
mode="ON_DEMAND"
|
|
|
|
on-operations-done="onOperationsDone">
|
2015-11-09 08:14:33 +00:00
|
|
|
<custom>
|
|
|
|
SELECT a.id, a.name, a.consignee, a.city, a.zip_code, a.province_id, c.Id country_id
|
|
|
|
FROM address_view a
|
2017-04-05 14:06:07 +00:00
|
|
|
LEFT JOIN vn2008.province p ON p.province_id = a.province_id
|
|
|
|
JOIN vn2008.Paises c ON c.Id = p.Paises_Id
|
|
|
|
WHERE active != FALSE AND a.id = #address
|
2015-11-09 08:14:33 +00:00
|
|
|
</custom>
|
2015-03-19 19:36:11 +00:00
|
|
|
<sql-batch property="batch">
|
2015-11-09 08:14:33 +00:00
|
|
|
<custom>
|
|
|
|
<item name="address" param="address"/>
|
|
|
|
</custom>
|
2015-03-19 19:36:11 +00:00
|
|
|
</sql-batch>
|
|
|
|
</db-model>
|
|
|
|
</db-form>
|
|
|
|
</vn-group>
|
2017-03-17 12:42:10 +00:00
|
|
|
<h1 id="title">
|
|
|
|
<t>AddEditAddress</t>
|
|
|
|
</h1>
|
2015-09-16 16:11:15 +00:00
|
|
|
<div id="actions">
|
2016-09-19 06:40:18 +00:00
|
|
|
<htk-bar-button
|
|
|
|
icon="ok"
|
2015-09-16 16:11:15 +00:00
|
|
|
tip="_Accept"
|
2016-09-19 06:40:18 +00:00
|
|
|
on-click="onAcceptClick"/>
|
|
|
|
<htk-bar-button
|
|
|
|
icon="close"
|
2016-01-07 12:58:29 +00:00
|
|
|
tip="_Return"
|
2016-09-19 06:40:18 +00:00
|
|
|
on-click="onReturnClick"/>
|
2015-09-11 09:37:16 +00:00
|
|
|
</div>
|
2017-03-23 16:20:51 +00:00
|
|
|
<div id="main" class="address">
|
2016-12-23 08:57:49 +00:00
|
|
|
<div class="card form">
|
|
|
|
<div>
|
|
|
|
<label><t>Name</t></label>
|
2017-04-05 14:06:07 +00:00
|
|
|
<htk-entry lot="iter" name="consignee"/>
|
2016-12-23 08:57:49 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<label><t>Address</t></label>
|
2017-04-05 14:06:07 +00:00
|
|
|
<htk-entry lot="iter" name="name"/>
|
2016-12-23 08:57:49 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<label><t>City</t></label>
|
2017-04-05 14:06:07 +00:00
|
|
|
<htk-entry lot="iter" name="city"/>
|
2016-12-23 08:57:49 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<label><t>ZipCode</t></label>
|
2017-04-05 14:06:07 +00:00
|
|
|
<htk-entry lot="iter" name="zip_code"/>
|
2016-12-23 08:57:49 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<label><t>Country</t></label>
|
|
|
|
<htk-combo>
|
2017-04-05 14:06:07 +00:00
|
|
|
<vn-param
|
2016-12-23 08:57:49 +00:00
|
|
|
id="country"
|
|
|
|
property="param"
|
2017-04-05 14:06:07 +00:00
|
|
|
lot="iter"
|
|
|
|
name="country_id"
|
2016-12-23 08:57:49 +00:00
|
|
|
one-way="true"/>
|
|
|
|
<db-model property="model">
|
|
|
|
<custom>
|
|
|
|
SELECT Id, Pais FROM vn2008.Paises
|
|
|
|
ORDER BY Pais
|
|
|
|
</custom>
|
|
|
|
</db-model>
|
|
|
|
</htk-combo>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<label><t>Province</t></label>
|
2017-04-05 14:06:07 +00:00
|
|
|
<htk-combo lot="iter" name="province_id">
|
2016-12-23 08:57:49 +00:00
|
|
|
<db-model property="model">
|
|
|
|
<custom>
|
|
|
|
SELECT province_id, name FROM vn2008.province
|
|
|
|
WHERE Paises_Id = #country
|
|
|
|
ORDER BY name
|
|
|
|
</custom>
|
|
|
|
<sql-batch property="batch">
|
2015-11-09 08:14:33 +00:00
|
|
|
<custom>
|
2016-12-23 08:57:49 +00:00
|
|
|
<item name="country" param="country"/>
|
2015-11-09 08:14:33 +00:00
|
|
|
</custom>
|
2016-12-23 08:57:49 +00:00
|
|
|
</sql-batch>
|
|
|
|
</db-model>
|
|
|
|
</htk-combo>
|
2015-03-19 19:36:11 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</vn>
|