Browse Source

Transaction view

feature/19315_Customer-Registration-new
Dinesh 11 months ago
parent
commit
455e5d5eb5
  1. 13
      CustomerOnlineV2/CustomerOnlineV2/Controllers/TransactionController.cs
  2. 28
      CustomerOnlineV2/CustomerOnlineV2/Views/Customer/CustomerProfile.cshtml
  3. 194
      CustomerOnlineV2/CustomerOnlineV2/Views/Transaction/ReceiptTran.cshtml
  4. 6
      CustomerOnlineV2/CustomerOnlineV2/Views/TransactionReport/TranReport.cshtml

13
CustomerOnlineV2/CustomerOnlineV2/Controllers/TransactionController.cs

@ -93,6 +93,19 @@ namespace CustomerOnlineV2.Controllers
}
return View(_response);
}
[Authorization("SendMoney")]
public async Task<IActionResult> ReceiptTran([FromQuery] string id)
{
TransactionDetailModel _response = new TransactionDetailModel();
var loginDetails = HttpContext.GetLoginDetails();
using (LogContext.PushProperty("DebugId", id))
{
_logger.LogInformation($"TRANSACTIONSERVICE | GETRECEIPTDATA | REQUEST | {id}");
_response = await _transactionBusiness.GetReceiptData(id, loginDetails);
_logger.LogInformation($"TRANSACTIONSERVICE | GETRECEIPTDATA | RESPONSE | {JsonConvert.SerializeObject(_response)}");
}
return View(_response);
}
[Authorization("Payment")]
// [Authorization("SendMoney")]

28
CustomerOnlineV2/CustomerOnlineV2/Views/Customer/CustomerProfile.cshtml

@ -534,34 +534,10 @@
$(document).ready(function () {
getData();
// if ('@ViewBag.ResponseCode' == '0') {
// iziToast.success({
// title: 'OK',
// message: '@ViewBag.ResponseMessage'
// });
// }
// else if ('@ViewBag.ResponseCode' == '103') {
// iziToast.info({
// title: 'Info',
// message: '@ViewBag.ResponseMessage'
// });
// }
// else if ('@ViewBag.ResponseCode' == '1') {
// iziToast.error({
// title: 'Error',
// message: '@ViewBag.ResponseMessage'
// });
// }
});
// function pageLoad() {
// getData();
// }
// $(document).ready(function () {
// // getData();
// });
$(document).on('click', '#btnSearch',function (e) {
e.preventDefault();
var postalCode = $('#postalCode').val();

194
CustomerOnlineV2/CustomerOnlineV2/Views/Transaction/ReceiptTran.cshtml

@ -0,0 +1,194 @@
@model CustomerOnlineV2.Common.Models.TransactionModel.TransactionDetailModel
@using CustomerOnlineV2.Common.Helper
@{
Layout = "_Layout2";
}
<style>
table.no-border {
border-collapse: collapse;
background-color: #262262;
color: white;
}
table.no-border,
table.no-border thead,
table.no-border tbody,
table.no-border tfoot,
table.no-border tr,
table.no-border td,
table.no-border th {
border: none !important;
}
</style>
<div class="container">
<div class="row">
<!-- Middle Panel -->
<div class="col-md-6">
<div class="mb-4">
<h3 class="fw-400">Transaction Details</h3>
<p>Refer us to your friends and become one of IME London Remit's Preferred Clients!</p>
</div>
<div class="card">
<div class="card-body p-2">
<table class="table no-border" style="text-align:center;">
<tr>
<td>
@* <strong>Status:</strong> *@
<span id="MainContent_lblStatusDetail">@Model.Status</span>
</td>
</tr>
<tr>
<td style="font-size:18px;">
@* <strong>
Amount :
</strong> *@
<span> @Model.PayoutCurr</span>
</td>
</tr>
<tr>
<td>
<strong>Send To:</strong>
<span id="MainContent_lblBenficiaryName">@Model.ReceiverName</span>
<br>
</td>
</tr>
<tr>
<td>
<strong>Reference Number:</strong>
<span id="MainContent_lblTxnID">@Model.ControlNo</span>
</td>
</tr>
<tr>
<td>
<strong>Transaction ID:</strong>
<span id="MainContent_lblTxnID">@Model.TransactionId</span>
</td>
</tr>
</table>
<hr class="mx-n4 mb-4">
<div class="px-4">
<span class="me-2">
<strong class="me-2">To: </strong>
<i class=" currency-flag currency-flag-npr me-1"></i>
</span>
<span>@Model.PCountry</span>
<table class="table">
<tr>
<td>
Transaction Date:
</td>
<td>
<strong><span id="MainContent_lblTxnDate">@Model.CreatedDate</span></strong>
</td>
</tr>
<tr>
<td>Receiver Name:</td>
<td>
<strong><span id="MainContent_lblBenficiaryName">@Model.ReceiverName</span></strong>
</td>
</tr>
<tr>
<td>Address:</td>
<td>
<strong><span id="MainContent_lblReceiverAddress">@Model.ReceiverAddress</span></strong>
</td>
</tr>
<tr>
<td>Collected Amount :</td>
<td>
<strong><span> @Model.CollectionCurrency</span></strong>
</td>
</tr>
<tr>
<td>Service Fee :</td>
<td>
<strong><span>@Model.TotalToPay, @Model.CollectionCurrency</span></strong>
</td>
</tr>
<tr>
<td>Reward Amount Used :</td>
<td>
<strong><span>@Model.PromotionDiscount</span></strong>
</td>
</tr>
<tr>
<td>Total Sent Amount :</td>
<td>
<strong><span>@Model.SendAmount @Model.CollectionCurrency</span></strong>
</td>
</tr>
<tr>
<td>Exchange Rate :</td>
<td>
<strong><span>@Model.ExRate</span></strong>
</td>
</tr>
<tr>
<td>Total Payout Amount :</td>
<td>
<strong><span>@Model.PayoutAmount @Model.PayoutCurr</span></strong>
</td>
</tr>
<tr>
<td>Delivery Method :</td>
<td>
<strong><span>@Model.DeliveryMethod</span></strong>
</td>
</tr>
<tr>
<td>Bank Name :</td>
<td>
<strong><span>@Model.BankName</span></strong>
</td>
</tr>
<tr>
<td>Bank Branch :</td>
<td>
<strong><span>@Model.BankBranch</span></strong>
</td>
</tr>
<tr>
<td>Bank Account No :</td>
<td>
<strong><span>@Model.AccountNumber</span></strong>
</td>
</tr>
<tr>
<td>Purpose of Remittance :</td>
<td>
<strong><span>@Model.PurposeOfRemit</span></strong>
</td>
</tr>
@* <tr>
<td>
<i>Promotion Premium Rate* :</i>
</td>
<td>
<strong><span>@Model.PromotionPremiumRate</span></strong>
</td>
</tr> *@
<tr>
<td>Paid by :</td>
<td>
<strong><span>@Model.PaidBy</span></strong>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
</div>

6
CustomerOnlineV2/CustomerOnlineV2/Views/TransactionReport/TranReport.cshtml

@ -80,7 +80,7 @@
<div class="col-5 col-sm-1" id="collAmt"></div>
<div class="col-6 col-sm-1" id="PayoutAmt"></div>
<div class="col-7 col-sm-1" id="PayoutMode"></div>
<div class="col-8 col-sm-2"> <span class="d-block text-1" id="tranId"><a href="/Transaction/Receipt"><i class="fa fa-eye" style="font-size:30px"></i></a></span></div>
<div class="col-8 col-sm-2"> <span class="d-block text-1" id="tranId"><a href="/Transaction/ReceiptTran"><i class="fa fa-eye" style="font-size:30px"></i></a></span></div>
@* <div class="col-11 col-sm-1" id="SendDate"></div> *@
@ -165,7 +165,7 @@
@section scripts{
<script>
$(document).ready(function () {
GetTransactionList();
});
@ -219,7 +219,7 @@
<div class="col-5 col-sm-1" id="collAmt">${d.collAmt}</div>
<div class="col-6 col-sm-1" id="PayoutAmt">${d.payoutAmt}</div>
<div class="col-7 col-sm-1" id="PayoutMode">${d.payoutMode}</div>
<div class="col-8 col-sm-2" id="tranId"><a href="/Transaction/Receipt"><i class="fa fa-eye" style="font-size:30px"></i></a></div>
<div class="col-8 col-sm-2" id="tranId"><a href="/Transaction/ReceiptTran"><i class="fa fa-eye" style="font-size:30px"></i></a></div>
</div>
</div>`;

Loading…
Cancel
Save