2015-03-06 23:33:54 +00:00
|
|
|
<vn>
|
|
|
|
<vn-group>
|
2015-06-30 12:06:19 +00:00
|
|
|
<vn-param id="date"/>
|
|
|
|
<vn-param id="agency"/>
|
2015-03-06 23:33:54 +00:00
|
|
|
<vn-param id="order-id">
|
|
|
|
<vn-hash-link key="order"/>
|
|
|
|
</vn-param>
|
2015-06-30 12:06:19 +00:00
|
|
|
<db-form id="order-form" on-status-changed="onStatusChange">
|
2015-03-27 19:10:49 +00:00
|
|
|
<db-model updatable="true">
|
2015-06-30 12:06:19 +00:00
|
|
|
SELECT id, date_send, wh_id, delivery_method_id, agency_id, address_id, note
|
2015-03-06 23:33:54 +00:00
|
|
|
FROM order_view WHERE id = #id
|
|
|
|
<sql-batch property="batch">
|
|
|
|
<item name="id" param="order-id"/>
|
|
|
|
</sql-batch>
|
|
|
|
</db-model>
|
|
|
|
</db-form>
|
2015-07-03 05:49:45 +00:00
|
|
|
<db-form id="defaults" on-iter-changed="onDefaults">
|
2015-06-30 12:06:19 +00:00
|
|
|
<db-model>
|
2015-07-03 05:49:45 +00:00
|
|
|
SELECT address_id, agency_id, delivery_method
|
2015-06-30 12:06:19 +00:00
|
|
|
FROM order_defaults_view
|
|
|
|
</db-model>
|
|
|
|
</db-form>
|
2015-07-03 05:49:45 +00:00
|
|
|
<db-form id="address-form">
|
|
|
|
<db-param column="id" id="address"/>
|
|
|
|
<db-model id="addresses">
|
|
|
|
SELECT a.id, a.consignee, p.name province, a.zip_code, a.city, a.name, a.active, c.Pais country
|
|
|
|
FROM address_view a
|
|
|
|
LEFT JOIN vn2008.province p ON a.province_id = p.province_id
|
|
|
|
JOIN vn2008.Paises c ON c.Id = p.Paises_Id
|
|
|
|
WHERE active != FALSE
|
|
|
|
</db-model>
|
|
|
|
</db-form>
|
2015-03-06 23:33:54 +00:00
|
|
|
</vn-group>
|
|
|
|
<div id="form" class="checkout">
|
|
|
|
<div class="box">
|
|
|
|
<div class="header">
|
2015-06-30 12:06:19 +00:00
|
|
|
<h1><t>ConfigureOrder</t></h1>
|
2015-03-06 23:33:54 +00:00
|
|
|
<div class="action-bar">
|
2015-06-30 12:06:19 +00:00
|
|
|
<button on-click="onCancelClick">
|
|
|
|
<img src="image/dark/close.svg" alt=""/>
|
|
|
|
<t>Cancel</t>
|
2015-03-06 23:33:54 +00:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-06-30 12:06:19 +00:00
|
|
|
<div class="form">
|
|
|
|
<htk-assistant
|
|
|
|
id="assistant"
|
|
|
|
step-count="5"
|
|
|
|
step-func="stepFunc"
|
|
|
|
node="assistant-node"/>
|
|
|
|
<div class="htk-assistant" id="assistant-node">
|
2015-07-03 05:49:45 +00:00
|
|
|
<div id="date-step">
|
|
|
|
<h2 id="date-question"><t>OrderDateDeliveryQuestion</t></h2>
|
|
|
|
<div class="answers">
|
|
|
|
<htk-calendar
|
|
|
|
id="calendar"
|
|
|
|
class="thin-calendar"
|
|
|
|
param="date"
|
|
|
|
on-changed="onFieldChange"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-06-30 12:06:19 +00:00
|
|
|
<div id="delivery-step">
|
|
|
|
<h2><t>DeliveryOrPickupQuestion</t></h2>
|
|
|
|
<div class="answers radio">
|
|
|
|
<htk-radio-group
|
|
|
|
id="rg-delivery"
|
|
|
|
on-changed="onFieldChange"/>
|
2015-07-03 05:49:45 +00:00
|
|
|
<div>
|
|
|
|
<htk-radio radio-group="rg-delivery" value="AGENCY"/>
|
|
|
|
<label><t>ReceiveThroughtAgency</t></label>
|
|
|
|
</div>
|
2015-06-30 12:06:19 +00:00
|
|
|
<div>
|
|
|
|
<htk-radio radio-group="rg-delivery" value="DELIVERY"/>
|
2015-07-03 05:49:45 +00:00
|
|
|
<label><t>ReceiveThroughtRoute</t></label>
|
2015-06-30 12:06:19 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<htk-radio radio-group="rg-delivery" value="PICKUP"/>
|
2015-07-03 05:49:45 +00:00
|
|
|
<label><t>PickupInStore</t></label>
|
2015-06-30 12:06:19 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="address-step">
|
|
|
|
<h2><t>AddressQuestion</t></h2>
|
2015-07-03 05:49:45 +00:00
|
|
|
<htk-repeater model="addresses" form-id="iter" renderer="addressRenderer">
|
|
|
|
<div class="answers target address" id="address">
|
|
|
|
<p class="consignee">
|
2015-06-30 12:06:19 +00:00
|
|
|
<htk-text form="iter" column="consignee"/>
|
|
|
|
</p>
|
|
|
|
<p>
|
2015-07-03 05:49:45 +00:00
|
|
|
<htk-text form="iter" column="name"/>
|
2015-06-30 12:06:19 +00:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</htk-repeater>
|
|
|
|
</div>
|
|
|
|
<div id="agency-step">
|
|
|
|
<h2><t>AgencyQuestion</t></h2>
|
|
|
|
<div class="answers target">
|
2015-07-03 05:49:45 +00:00
|
|
|
<htk-combo id="agency-combo" param="agency" on-changed="onFieldChange">
|
2015-06-30 12:06:19 +00:00
|
|
|
<db-model property="model" id="agencies">
|
|
|
|
SELECT a.Id_Agencia, a.description
|
|
|
|
FROM vn2008.Agencias a
|
|
|
|
JOIN vn2008.Vistas v ON a.Vista = v.vista_id
|
|
|
|
WHERE a.web != FALSE
|
|
|
|
AND v.code = 'AGENCY'
|
|
|
|
ORDER BY a.description
|
2015-03-06 23:33:54 +00:00
|
|
|
</db-model>
|
|
|
|
</htk-combo>
|
2015-03-27 19:10:49 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-06-30 12:06:19 +00:00
|
|
|
<div id="pickup-step">
|
|
|
|
<h2><t>PickupWarehouseQuestion</t></h2>
|
|
|
|
<div class="answers target">
|
2015-07-03 05:49:45 +00:00
|
|
|
<htk-combo id="warehouse-combo" param="agency" on-changed="onFieldChange">
|
2015-06-30 12:06:19 +00:00
|
|
|
<db-model property="model" id="warehouses">
|
2015-07-03 05:49:45 +00:00
|
|
|
SELECT a.Id_Agencia, SUBSTR(a.description, 5) description
|
2015-06-30 12:06:19 +00:00
|
|
|
FROM vn2008.Agencias a
|
|
|
|
JOIN vn2008.Vistas v ON a.Vista = v.vista_id
|
|
|
|
WHERE a.web != FALSE
|
|
|
|
AND v.code = 'PICKUP'
|
|
|
|
ORDER BY a.description
|
|
|
|
</db-model>
|
|
|
|
</htk-combo>
|
2015-07-03 05:49:45 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="confirm-agency-step" class="confirm">
|
|
|
|
<h2><t>ConfirmToAccessCatalog</t></h2>
|
|
|
|
<div class="answers target">
|
|
|
|
<p>
|
|
|
|
<t>Arrival</t>
|
|
|
|
<htk-text format="_%A, %e of %B" param="date"/>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<htk-text form="address-form" column="name"/>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<t>Agency</t>
|
|
|
|
<htk-text form="agency-combo" column="description"/>
|
|
|
|
</p>
|
|
|
|
<button class="thin" on-click="onConfirmClick">
|
|
|
|
<t>CONFIRM</t>
|
2015-06-30 12:06:19 +00:00
|
|
|
</button>
|
|
|
|
<div class="clear"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="confirm-delivery-step" class="confirm">
|
|
|
|
<h2><t>ConfirmToAccessCatalog</t></h2>
|
|
|
|
<div class="answers target">
|
|
|
|
<p>
|
2015-07-03 05:49:45 +00:00
|
|
|
<t>Arrival</t>
|
|
|
|
<htk-text format="_%A, %e of %B" param="date"/>
|
2015-06-30 12:06:19 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
2015-07-03 05:49:45 +00:00
|
|
|
<htk-text form="address-form" column="name"/>
|
2015-06-30 12:06:19 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
2015-07-03 05:49:45 +00:00
|
|
|
<t>ReceiveThroughtRoute</t>
|
2015-06-30 12:06:19 +00:00
|
|
|
</p>
|
|
|
|
<button class="thin" on-click="onConfirmClick">
|
|
|
|
<t>CONFIRM</t>
|
|
|
|
</button>
|
|
|
|
<div class="clear"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="confirm-pickup-step" class="confirm">
|
|
|
|
<h2><t>ConfirmToAccessCatalog</t></h2>
|
|
|
|
<div class="answers target">
|
|
|
|
<p>
|
2015-07-03 05:49:45 +00:00
|
|
|
<t>Pickup</t>
|
|
|
|
<htk-text format="_%A, %e of %B" param="date"/>
|
2015-06-30 12:06:19 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
2015-07-03 05:49:45 +00:00
|
|
|
<t>Warehouse</t>
|
|
|
|
<htk-text form="warehouse-combo" column="description"/>
|
2015-06-30 12:06:19 +00:00
|
|
|
</p>
|
|
|
|
<button class="thin" on-click="onConfirmClick">
|
|
|
|
<t>CONFIRM</t>
|
|
|
|
</button>
|
|
|
|
<div class="clear"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<htk-assistant-bar assistant="assistant"/>
|
2015-03-06 23:33:54 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</vn>
|