2015-03-19 19:36:11 +00:00
|
|
|
<vn>
|
|
|
|
<vn-group>
|
2015-10-14 11:51:43 +00:00
|
|
|
<vn-hash-param key="address">
|
|
|
|
<vn-param id="address"/>
|
|
|
|
</vn-hash-param>
|
2015-07-03 05:49:45 +00:00
|
|
|
<db-form id="iter" on-status-changed="onStatusChange">
|
|
|
|
<db-param id="country" one-way="true" column="country_id"/>
|
2015-07-10 12:30:08 +00:00
|
|
|
<db-model id="model" updatable="true" mode="ON_DEMAND" on-operations-done="onOperationsDone">
|
2015-06-30 12:06:19 +00:00
|
|
|
SELECT a.id, a.name, a.consignee, a.city, a.zip_code, a.province_id, c.Id country_id
|
2015-03-27 19:10:49 +00:00
|
|
|
FROM address_view a
|
2015-06-30 12:06:19 +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-03-19 19:36:11 +00:00
|
|
|
<sql-batch property="batch">
|
|
|
|
<item name="address" param="address"/>
|
|
|
|
</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">
|
|
|
|
<htk-button
|
|
|
|
image="image/dark/close.svg"
|
|
|
|
tip="_Return"
|
|
|
|
on-click="onReturnClick"
|
|
|
|
showText="true"/>
|
|
|
|
<htk-button
|
|
|
|
image="image/dark/ok.svg"
|
|
|
|
tip="_Accept"
|
|
|
|
on-click="onAcceptClick"
|
|
|
|
showText="true"/>
|
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">
|
|
|
|
<div class="body">
|
|
|
|
<div class="form-group">
|
2015-03-27 19:10:49 +00:00
|
|
|
<label><t>Name</t></label>
|
2015-03-19 19:36:11 +00:00
|
|
|
<htk-entry column="consignee" form="iter"/>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2015-03-27 19:10:49 +00:00
|
|
|
<label><t>Address</t></label>
|
2015-03-19 19:36:11 +00:00
|
|
|
<htk-entry column="name" form="iter"/>
|
|
|
|
</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>
|
2015-03-19 19:36:11 +00:00
|
|
|
<htk-entry column="zip_code" form="iter"/>
|
|
|
|
</div>
|
2015-06-30 12:06:19 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<label><t>Country</t></label>
|
2015-07-03 05:49:45 +00:00
|
|
|
<htk-combo param="country">
|
2015-06-30 12:06:19 +00:00
|
|
|
<db-model property="model">
|
|
|
|
SELECT Id, Pais FROM vn2008.Paises
|
|
|
|
ORDER BY Pais
|
|
|
|
</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>
|
2015-03-19 19:36:11 +00:00
|
|
|
<htk-combo column="province_id" form="iter">
|
|
|
|
<db-model property="model">
|
|
|
|
SELECT province_id, name FROM vn2008.province
|
2015-06-30 12:06:19 +00:00
|
|
|
WHERE Paises_Id = #country
|
2015-03-19 19:36:11 +00:00
|
|
|
ORDER BY name
|
2015-06-30 12:06:19 +00:00
|
|
|
<sql-batch property="batch">
|
|
|
|
<item name="country" param="country"/>
|
|
|
|
</sql-batch>
|
2015-03-19 19:36:11 +00:00
|
|
|
</db-model>
|
|
|
|
</htk-combo>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</vn>
|