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>
|
2018-01-02 13:16:41 +00:00
|
|
|
SELECT a.id, a.street, a.nickname, a.city,
|
|
|
|
a.postalCode, a.provinceFk, c.id countryFk
|
|
|
|
FROM myAddress a
|
|
|
|
LEFT JOIN vn.province p ON p.id = a.provinceFk
|
|
|
|
JOIN vn.country c ON c.id = p.countryFk
|
|
|
|
WHERE a.active 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>
|
2015-09-11 09:37:16 +00:00
|
|
|
<div id="title">
|
|
|
|
<h1><t>AddEditAddress</t></h1>
|
|
|
|
</div>
|
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>
|
2015-03-19 19:36:11 +00:00
|
|
|
<div id="form" class="address">
|
|
|
|
<div class="box">
|
2015-12-02 17:26:58 +00:00
|
|
|
<div class="form">
|
2015-03-19 19:36:11 +00:00
|
|
|
<div class="form-group">
|
2015-03-27 19:10:49 +00:00
|
|
|
<label><t>Name</t></label>
|
2018-01-02 13:16:41 +00:00
|
|
|
<htk-entry column="nickname" form="iter"/>
|
2015-03-19 19:36:11 +00:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2015-03-27 19:10:49 +00:00
|
|
|
<label><t>Address</t></label>
|
2018-01-02 13:16:41 +00:00
|
|
|
<htk-entry column="street" form="iter"/>
|
2015-03-19 19:36:11 +00:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2015-03-27 19:10:49 +00:00
|
|
|
<label><t>City</t></label>
|
2015-03-19 19:36:11 +00:00
|
|
|
<htk-entry column="city" form="iter"/>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2015-03-27 19:10:49 +00:00
|
|
|
<label><t>ZipCode</t></label>
|
2018-01-02 13:16:41 +00:00
|
|
|
<htk-entry column="postalCode" form="iter"/>
|
2015-03-19 19:36:11 +00:00
|
|
|
</div>
|
2015-06-30 12:06:19 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<label><t>Country</t></label>
|
2015-11-09 08:14:33 +00:00
|
|
|
<htk-combo>
|
|
|
|
<db-param
|
2015-12-10 13:48:43 +00:00
|
|
|
id="country"
|
2015-11-09 08:14:33 +00:00
|
|
|
property="param"
|
|
|
|
form="iter"
|
2018-01-02 13:16:41 +00:00
|
|
|
column="countryFk"
|
2015-11-09 08:14:33 +00:00
|
|
|
one-way="true"/>
|
2015-06-30 12:06:19 +00:00
|
|
|
<db-model property="model">
|
2015-11-09 08:14:33 +00:00
|
|
|
<custom>
|
2018-01-02 13:16:41 +00:00
|
|
|
SELECT id, country FROM vn.country
|
|
|
|
ORDER BY country
|
2015-11-09 08:14:33 +00:00
|
|
|
</custom>
|
2015-06-30 12:06:19 +00:00
|
|
|
</db-model>
|
|
|
|
</htk-combo>
|
|
|
|
</div>
|
2015-03-19 19:36:11 +00:00
|
|
|
<div class="form-group">
|
2015-03-27 19:10:49 +00:00
|
|
|
<label><t>Province</t></label>
|
2018-01-02 13:16:41 +00:00
|
|
|
<htk-combo column="provinceFk" form="iter">
|
2015-03-19 19:36:11 +00:00
|
|
|
<db-model property="model">
|
2015-11-09 08:14:33 +00:00
|
|
|
<custom>
|
2018-01-02 13:16:41 +00:00
|
|
|
SELECT id, name FROM vn.province
|
|
|
|
WHERE countryFk = #country
|
2015-11-09 08:14:33 +00:00
|
|
|
ORDER BY name
|
|
|
|
</custom>
|
2015-06-30 12:06:19 +00:00
|
|
|
<sql-batch property="batch">
|
2015-11-09 08:14:33 +00:00
|
|
|
<custom>
|
|
|
|
<item name="country" param="country"/>
|
|
|
|
</custom>
|
2015-06-30 12:06:19 +00:00
|
|
|
</sql-batch>
|
2015-03-19 19:36:11 +00:00
|
|
|
</db-model>
|
|
|
|
</htk-combo>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</vn>
|