|
|
|
@ -10,36 +10,55 @@
|
|
|
|
|
<div class="panel panel-default">
|
|
|
|
|
<div class="panel-heading">
|
|
|
|
|
RiskEvent Basic Information
|
|
|
|
|
<a role="button" class="pull-right"
|
|
|
|
|
<a role="button"
|
|
|
|
|
class="pull-right"
|
|
|
|
|
ng-click="changeEditFlag(editFlag)">
|
|
|
|
|
<i class="fa fa-edit"></i> Edit
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="panel-body">
|
|
|
|
|
<div class="form-horizontal">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-sm-2">Partner Code</label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<p class="form-control-static" ng-bind="riskEvent.client_moniker"></p>
|
|
|
|
|
<p class="form-control-static"
|
|
|
|
|
ng-bind="riskEvent.client_moniker"></p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-sm-2">Order IDs</label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<p class="form-control-static"
|
|
|
|
|
ng-bind="riskEvent.order_ids">
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-sm-2">Order Type</label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<p class="form-control-static" ng-bind="riskEvent.order_type"></p>
|
|
|
|
|
<p class="form-control-static"
|
|
|
|
|
ng-bind="riskEvent.order_type | orderType">
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-sm-2">Result Type</label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<p class="form-control-static" ng-bind="riskEvent.result_type"></p>
|
|
|
|
|
<p class="form-control-static">
|
|
|
|
|
{{riskEvent.result_type | resultType}}
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-sm-2">Email Status</label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<p class="form-control-static" ng-bind="riskEvent.email_status"></p>
|
|
|
|
|
<p class="form-control-static"
|
|
|
|
|
ng-bind="riskEvent.email_status | emailStatus"></p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
@ -55,13 +74,15 @@
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-sm-2">Description</label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<p class="form-control-static" ng-bind="riskEvent.description"></p>
|
|
|
|
|
<p class="form-control-static"
|
|
|
|
|
ng-bind="riskEvent.description">
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- 调单信息 -->
|
|
|
|
|
<div class="box">
|
|
|
|
|
<div class="box-header">
|
|
|
|
@ -69,47 +90,48 @@
|
|
|
|
|
Orders Information
|
|
|
|
|
</h3>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="box-body table-responsive">
|
|
|
|
|
<table class="table table-bordered table-hover table-striped">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>Order ID</th>
|
|
|
|
|
<th>Amount</th>
|
|
|
|
|
<th>Input Amount</th>
|
|
|
|
|
<th>AUD Amount</th>
|
|
|
|
|
<th>Exchange Rate</th>
|
|
|
|
|
<th>Status</th>
|
|
|
|
|
<th>Create Time</th>
|
|
|
|
|
<th>Gateway</th>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>Order ID</th>
|
|
|
|
|
<th>Amount</th>
|
|
|
|
|
<th>Input Amount</th>
|
|
|
|
|
<th>AUD Amount</th>
|
|
|
|
|
<th>Exchange Rate</th>
|
|
|
|
|
<th>Status</th>
|
|
|
|
|
<th>Create Time</th>
|
|
|
|
|
<th>Gateway</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr ng-repeat="trade in tradeLogs" ng-class="{warning:trade.clearing_status==2}">
|
|
|
|
|
|
|
|
|
|
<td>{{trade.order_id}}</td>
|
|
|
|
|
<td>{{trade.total_amount|currency:trade.currency}}</td>
|
|
|
|
|
<td ng-bind="trade.display_amount|currency:trade.currency"></td>
|
|
|
|
|
<td ng-bind="trade.clearing_amount|currency:'AUD'"></td>
|
|
|
|
|
<td>
|
|
|
|
|
<span ng-if="(trade.channel != 'hf') && (trade.channel != 'Rpay')" ng-bind="trade.exchange_rate"></span>
|
|
|
|
|
<span ng-if="(trade.channel == 'hf') || (trade.channel == 'Rpay')"> - </span>
|
|
|
|
|
</td>
|
|
|
|
|
<td ng-bind="trade.status|tradeStatus"></td>
|
|
|
|
|
<td ng-bind="trade.create_time"></td>
|
|
|
|
|
<td ng-bind="trade.gateway|tradeGateway"></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr ng-repeat="trade in tradeLogs"
|
|
|
|
|
ng-class="{warning:trade.clearing_status==2}">
|
|
|
|
|
<td>{{trade.order_id}}</td>
|
|
|
|
|
<td>{{trade.total_amount | currency: trade.currency}}</td>
|
|
|
|
|
<td ng-bind="trade.display_amount | currency: trade.currency"></td>
|
|
|
|
|
<td ng-bind="trade.clearing_amount | currency: 'AUD'"></td>
|
|
|
|
|
<td>
|
|
|
|
|
<span ng-if="(trade.channel != 'hf') && (trade.channel != 'Rpay')"
|
|
|
|
|
ng-bind="trade.exchange_rate">
|
|
|
|
|
</span>
|
|
|
|
|
<span ng-if="(trade.channel == 'hf') || (trade.channel == 'Rpay')"> - </span>
|
|
|
|
|
</td>
|
|
|
|
|
<td ng-bind="trade.status | tradeStatus"></td>
|
|
|
|
|
<td ng-bind="trade.create_time"></td>
|
|
|
|
|
<td ng-bind="trade.gateway | tradeGateway"></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<a role="button" class="btn btn-info">
|
|
|
|
|
Send Email
|
|
|
|
|
<a role="button"
|
|
|
|
|
class="btn btn-info">Send Email
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
@ -122,23 +144,30 @@
|
|
|
|
|
<div class="form-horizontal">
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-class="{'has-error':riskEventForm.client_moniker.$invalid && riskEventForm.client_moniker.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-2" for="short-id-input">* Partner Code</label>
|
|
|
|
|
<label class="control-label col-sm-2"
|
|
|
|
|
for="short-id-input">* Partner Code
|
|
|
|
|
</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control text-uppercase"
|
|
|
|
|
ng-model="riskEvent.client_moniker"
|
|
|
|
|
ng-model="riskEventEdit.client_moniker"
|
|
|
|
|
type="text"
|
|
|
|
|
name="client_moniker"
|
|
|
|
|
id="short-id-input" required maxlength="6"
|
|
|
|
|
id="short-id-input"
|
|
|
|
|
required
|
|
|
|
|
maxlength="6"
|
|
|
|
|
ng-pattern="/^[a-zA-Z0-9]+$/">
|
|
|
|
|
<div ng-messages="riskEventForm.client_moniker.$error"
|
|
|
|
|
ng-if="riskEventForm.client_moniker.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">Required
|
|
|
|
|
Field</p>
|
|
|
|
|
<p class="small text-danger" ng-message="maxlength">Less
|
|
|
|
|
Than 6 Letters</p>
|
|
|
|
|
<p class="small text-danger" ng-message="pattern">Only
|
|
|
|
|
Uppercase Letters and
|
|
|
|
|
Numbers are allowed</p>
|
|
|
|
|
<p class="small text-danger"
|
|
|
|
|
ng-message="required">Required Field
|
|
|
|
|
</p>
|
|
|
|
|
<p class="small text-danger"
|
|
|
|
|
ng-message="maxlength">Less Than 6 Letters
|
|
|
|
|
</p>
|
|
|
|
|
<p class="small text-danger"
|
|
|
|
|
ng-message="pattern">
|
|
|
|
|
Only Uppercase Letters and Numbers are allowed
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -146,18 +175,22 @@
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-class="{'has-error':riskEventForm.order_type.$invalid && riskEventForm.order_type.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-2"
|
|
|
|
|
for="order-type-input">Order Type</label>
|
|
|
|
|
for="order-type-input">Order Type
|
|
|
|
|
</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<select class="form-control" name="order_type"
|
|
|
|
|
ng-model="riskEvent.order_type"
|
|
|
|
|
id="order-type-input" required
|
|
|
|
|
<select class="form-control"
|
|
|
|
|
name="order_type"
|
|
|
|
|
ng-model="riskEventEdit.order_type"
|
|
|
|
|
id="order-type-input"
|
|
|
|
|
required
|
|
|
|
|
ng-options="key as value for (key, value) in orderTypes">
|
|
|
|
|
<option value="">Please Choose</option>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<div ng-messages="riskEventForm.order_type.$error"
|
|
|
|
|
ng-if="riskEventForm.order_type.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">
|
|
|
|
|
required field
|
|
|
|
|
<p class="small text-danger"
|
|
|
|
|
ng-message="required">required field
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -165,29 +198,38 @@
|
|
|
|
|
|
|
|
|
|
<div class="form-group"
|
|
|
|
|
ng-class="{'has-error':riskEventForm.order_ids.$invalid && riskEventForm.order_ids.$dirty}">
|
|
|
|
|
<label class="control-label col-sm-2" for="order-ids-input">Order IDs</label>
|
|
|
|
|
<label class="control-label col-sm-2"
|
|
|
|
|
for="order-ids-input">Order IDs
|
|
|
|
|
</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="riskEvent.order_ids" type="text"
|
|
|
|
|
<input class="form-control"
|
|
|
|
|
ng-model="riskEventEdit.order_ids"
|
|
|
|
|
type="text"
|
|
|
|
|
name="order_ids"
|
|
|
|
|
id="order-ids-input"
|
|
|
|
|
required>
|
|
|
|
|
<div ng-messages="riskEventForm.order_ids.$error"
|
|
|
|
|
ng-if="riskEventForm.order_ids.$dirty">
|
|
|
|
|
<p class="small text-danger" ng-message="required">
|
|
|
|
|
required field
|
|
|
|
|
<p class="small text-danger"
|
|
|
|
|
ng-message="required">required field
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-sm-2" for="reply-deadline-input">Reply Deadline</label>
|
|
|
|
|
<label class="control-label col-sm-2"
|
|
|
|
|
for="reply-deadline-input">Reply Deadline
|
|
|
|
|
</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<div style="display: inline-block">
|
|
|
|
|
<input class="form-control" id="reply-deadline-input"
|
|
|
|
|
<input class="form-control"
|
|
|
|
|
id="reply-deadline-input"
|
|
|
|
|
type="text"
|
|
|
|
|
ng-model="riskEvent.reply_email_date"
|
|
|
|
|
uib-datepicker-popup size="10" placeholder="Reply Deadline"
|
|
|
|
|
ng-model="riskEventEdit.reply_email_date"
|
|
|
|
|
uib-datepicker-popup
|
|
|
|
|
size="10"
|
|
|
|
|
placeholder="Reply Deadline"
|
|
|
|
|
is-open="replyDeadline.open"
|
|
|
|
|
ng-click="replyDeadline.open=true"
|
|
|
|
|
datepicker-options="{minDate:today}">
|
|
|
|
@ -196,33 +238,32 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-sm-2" for="description-input">Description</label>
|
|
|
|
|
<label class="control-label col-sm-2"
|
|
|
|
|
for="description-input">Description
|
|
|
|
|
</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input class="form-control" ng-model="riskEvent.description" type="text"
|
|
|
|
|
<input class="form-control"
|
|
|
|
|
ng-model="riskEventEdit.description"
|
|
|
|
|
type="text"
|
|
|
|
|
name="description"
|
|
|
|
|
id="description-input">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="btn-group margin-bottom margin-top">
|
|
|
|
|
<button class="btn btn-success"
|
|
|
|
|
style="margin-right: 10px;"
|
|
|
|
|
type="button"
|
|
|
|
|
ng-click="save(riskEventForm)">
|
|
|
|
|
Save
|
|
|
|
|
ng-click="save(riskEventForm)">Save
|
|
|
|
|
</button>
|
|
|
|
|
<button class="btn btn-warning"
|
|
|
|
|
type="button"
|
|
|
|
|
ng-click="changeEditFlag(editFlag)">
|
|
|
|
|
cancel
|
|
|
|
|
ng-click="changeEditFlag(editFlag)">cancel
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|