You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

127 lines
5.1 KiB
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

@{
}
<div class="wrapper wrapper-content animated fadeInRight">
<div class="row">
<div class="col-sm-12">
<div class="ibox-content p-xl">
<div class="row">
<div class="col-sm-6">
<address>
<strong>@ViewBag.Client.NAME</strong><br>
<span>@Resources.LangFee.LabelADDRESS:@ViewBag.Client.ADDRESS</span><br>
<abbr>@Resources.LangFee.LabelTEL</abbr>@ViewBag.Client.TEL<br>
<span>@Resources.LangFee.LabelACCOUNT_RMB:@ViewBag.Client.BANK_ACCOUNT_RMB @ViewBag.Client.BANK_NAME_RMB</span><br>
<span>@Resources.LangFee.LabelACCOUNT_USD:@ViewBag.Client.BANK_ACCOUNT_USD @ViewBag.Client.BANK_NAME_USD</span>
</address>
</div>
<div class="col-sm-6 text-right">
<p>
<span><strong>@Resources.LangAll.LabelMBLNO</strong><span id="spanMBLNO"></span></span><br>
<span><strong>@Resources.LangAll.LabelVESSEL</strong><span id="spanVESSEL"></span></span><br>
<span><strong>@Resources.LangAll.LabelVOYNO</strong><span id="spanVOYNO"></span></span>
</p>
</div>
</div>
<div class="table-responsive m-t">
<table class="table invoice-table">
<thead>
<tr>
<th>@Resources.LangFee.LabelFee</th>
<th>@Resources.LangFee.LabelNum</th>
<th>@Resources.LangFee.LabelPrice</th>
<th>@Resources.LangFee.LabelTax</th>
<th>@Resources.LangFee.LabelTotal</th>
</tr>
</thead>
<tbody id="tbodyList"></tbody>
</table>
</div>
<!-- /table-responsive -->
<table class="table invoice-total">
<tbody>
<tr>
<td>
<strong>@Resources.LangFee.LabelFeeSumRMB</strong>
</td>
<td id="tdAmountRMB">0</td>
</tr>
<tr>
<td>
<strong>@Resources.LangFee.LabelFeeSumUSD</strong>
</td>
<td id="tdAmountUSD">0</td>
</tr>
</tbody>
</table>
<div class="text-right">
<button class="btn btn-primary" id="btnPrint"><i class="fa fa-print"></i>@Resources.LangAll.BtnPrint</button>
</div>
</div>
</div>
</div>
</div>
@section scripts{
<script>
$(function () {
$.ajax({
url: "@Url.Action("OpSeaeList")",
method: 'POST',
data: { condition: '{"BSNO":"@ViewBag.BSNO"}' },
dataType: 'json',
success: function (data) {
if (data.Data.length > 0) {
$("#spanVESSEL").text(data.Data[0].VESSEL)
$("#spanVOYNO").text(data.Data[0].VOYNO)
$("#spanMBLNO").text(data.Data[0].MBLNO)
$("#tdAmountRMB").html('&yen;'+data.Data[0].AMOUNT_RMB)
$("#tdAmountUSD").html('$'+data.Data[0].AMOUNT_USD)
}
}
})
$.ajax({
url: "@Url.Action("OpFeeListData")?BSNO=@ViewBag.BSNO",
method: 'POST',
dataType:'json',
success: function (data) {
$.each(data.Data, function (idx, item) {
var currency = item.Currency == 'USD' ? '$' : '&yen;';
var html = '<tr>'
+ ' <td>'
+ ' <div>'
+ ' <strong>' + item.FeeName+'</strong>'
+ ' </div>'
+ ' <small>'
+ item.Unit
+ ' </small>'
+ ' </td>'
+ ' <td>' + currency + item.UnitPrice +'</td>'
+ ' <td>' + currency+ item.Quantity + '</td>'
+ ' <td>' + item.ExChangerate + '</td>'
+ ' <td>' + currency+ item.Amount + '</td>'
+ '</tr>'
$("#tbodyList").append(html);
})
}
})
$("#btnPrint").click(function () {
$("#btnPrint").hide();
window.print()
$("#btnPrint").show();
})
})
</script>
}