Browse Source

transaction report view

feature/19315_Customer-Registration-new
Dinesh 11 months ago
parent
commit
0f33a049d2
  1. 15
      CustomerOnlineV2/CustomerOnlineV2/Controllers/TransactionController.cs
  2. 194
      CustomerOnlineV2/CustomerOnlineV2/Views/Transaction/ReceiptTran.cshtml
  3. 9
      CustomerOnlineV2/CustomerOnlineV2/Views/TransactionReport/TranReport.cshtml

15
CustomerOnlineV2/CustomerOnlineV2/Controllers/TransactionController.cs

@ -93,19 +93,8 @@ 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")]

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

@ -1,194 +0,0 @@
@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>

9
CustomerOnlineV2/CustomerOnlineV2/Views/TransactionReport/TranReport.cshtml

@ -80,9 +80,9 @@
<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/ReceiptTran"><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"><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> *@
@* <div class="col-13 col-sm-1" id="recCountry"></div> *@
@* <div class="col-4 col-sm-2 text-end" id="tranType"> <span class="text-nowrap"></span></div> *@
@ -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/ReceiptTran"><i class="fa fa-eye" style="font-size:30px"></i></a></div>
<div class="col-8 col-sm-2" id="tranId"><a href="/Transaction/Receipt?id=${d.tranId}" id="tranId" target="_blank"><i class="fa fa-eye" style="font-size:30px"></i></a></div>
</div>
</div>`;
@ -228,6 +228,7 @@
}
}
// <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>
// function PopulateTransactionReportData(response) {
// debugger;
// var result = response.customerTransaction;

Loading…
Cancel
Save