Leeza Baidar
12 months ago
9 changed files with 348 additions and 13 deletions
-
3CustomerOnlineV2/CustomerOnlineV2.Business/Business/RegisterBusiness/IRegisterBusiness.cs
-
7CustomerOnlineV2/CustomerOnlineV2.Business/Business/RegisterBusiness/RegisterBusiness.cs
-
4CustomerOnlineV2/CustomerOnlineV2.Repository/Repository/RegisterRepository/IRegisterRepository.cs
-
64CustomerOnlineV2/CustomerOnlineV2.Repository/Repository/RegisterRepository/RegisterRepository.cs
-
19CustomerOnlineV2/CustomerOnlineV2/Controllers/CustomerController.cs
-
170CustomerOnlineV2/CustomerOnlineV2/Views/Customer/Notifications.cshtml
-
4CustomerOnlineV2/CustomerOnlineV2/Views/Home/Index.cshtml
-
2CustomerOnlineV2/CustomerOnlineV2/Views/Shared/_Layout.cshtml
-
86CustomerOnlineV2/CustomerOnlineV2/Views/Shared/_Layout2.cshtml
@ -0,0 +1,170 @@ |
|||
@using CustomerOnlineV2.Common.Helper |
|||
@{ |
|||
Layout = "_Layout2"; |
|||
} |
|||
<!DOCTYPE html> |
|||
<html lang="en"> |
|||
<head> |
|||
<meta charset="UTF-8" /> |
|||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
|||
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0, shrink-to-fit=no" /> |
|||
|
|||
</head> |
|||
<body> |
|||
<!-- Preloader --> |
|||
<div id="preloader"> |
|||
<div data-loader="dual-ring"></div> |
|||
</div> |
|||
<!-- Preloader End --> |
|||
<!-- Document Wrapper --> |
|||
|
|||
<div id="main-wrapper"> |
|||
|
|||
|
|||
|
|||
<!-- Content --> |
|||
<div id="content"> |
|||
<!-- Who we are --> |
|||
<section class="section section-form-bg"> |
|||
<div class="container"> |
|||
|
|||
|
|||
|
|||
<!-- My Receiver Activity |
|||
=============================== --> |
|||
<div class="bg-white rounded py-4 mb-4"> |
|||
<!-- Title |
|||
=============================== --> |
|||
<div class="transaction-title py-2 px-4"> |
|||
<div class="row fw-00"> |
|||
<div class="col-1 col-sm-4">Title</div> |
|||
<div class="col-2 col-sm-2">Message </div> |
|||
<div class="col-2 col-sm-2">Date </div> |
|||
@* <div class="col-3 col-sm-2 d-none d-sm-block text-center">Date</div> |
|||
<div class="col-4 col-sm-2 text-end">Transaction Type</div> *@ |
|||
</div> |
|||
</div> |
|||
<!-- Title End --> |
|||
<!-- My Receiver List |
|||
=============================== --> |
|||
<div class="transaction-list"> |
|||
<div class="transaction-item px-4 py-3" data-bs-toggle="modal" data-bs-target="#transaction-detail"> |
|||
<div class="row align-items-center flex-row"> |
|||
<div class="col-1 col-sm-4"> <span class="d-block text-1" id="title"></span></div> |
|||
<div class="col-2 col-sm-2"> <span class="d-block text-1" id="body"></span></div> |
|||
<div class="col-2 col-sm-2"> <span class="d-block text-1" id="date"></span></div> |
|||
@* <div class="col-3 col-sm-2 d-none d-sm-block text-center text-1" id="pCountry"></div> |
|||
<div class="col-4 col-sm-2 text-end text-1" id="paymentMethod"> <span class="text-nowrap"></span></div> *@ |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!-- My Receiver List End --> |
|||
|
|||
|
|||
</div> |
|||
</section> |
|||
<!-- Who we are end --> |
|||
|
|||
|
|||
|
|||
|
|||
</div> |
|||
<!-- Content end --> |
|||
<!-- Footer --> |
|||
<footer id="footer" class="footer-web"> |
|||
<div class="container"> |
|||
<div class="text-center"> |
|||
<div class="row"> |
|||
<div class="mx-auto"> |
|||
<div class="text-center text-white"> |
|||
<p class="text-center mb-3 text-1"> |
|||
IME London is a product of Subhida UK Limited, Pentax House,South Hill Avenue, South Harrow, London, H2A 0D |
|||
|
|||
Company Registration No. 06432399 Subhida UK Ltd is authorized and regulated by the Financial Conduct |
|||
Authority (FCA) <br> under the Payment Service Regulations 2017. FCA Registration No. 576127 HMRC Registration No. XYML000000119350 |
|||
<p class="text-center my-3 text-1"></p> |
|||
|
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="row"> |
|||
<div class="col-lg-6 mx-auto"> |
|||
<div class="text-center text-white"> |
|||
<p>© IME London, 2023</p> |
|||
</div> |
|||
|
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</footer> |
|||
<!-- Footer end --> |
|||
</div> |
|||
<!-- Document Wrapper end --> |
|||
<!-- Back to Top |
|||
============================================= --> |
|||
<a id="back-to-top" data-bs-toggle="tooltip" title="Back to Top" href="javascript:void(0)"><i class="fa fa-chevron-up"></i></a> |
|||
|
|||
</body> |
|||
</html> |
|||
@section scripts{ |
|||
|
|||
<script> |
|||
$(document).ready(function () { |
|||
getNotificationDetails(); |
|||
}); |
|||
|
|||
function getNotificationDetails() { |
|||
debugger |
|||
$.ajax({ |
|||
type: 'POST', |
|||
// url: '/ReceiverInformation/GetAllReceiver', |
|||
url: '/Customer/GetAllNotifications', |
|||
data: {}, |
|||
processData: true, |
|||
headers: { |
|||
"RequestVerificationToken": |
|||
$('input[name="__RequestVerificationToken"]').val() |
|||
}, |
|||
async: false, |
|||
success: function (response) { |
|||
debugger; |
|||
// if (response.responsecode != 0) { |
|||
// showalertmessage(response.responsecode, response.responsemessage); |
|||
// } |
|||
PopulateNotifications(response); |
|||
}, |
|||
error: function () { |
|||
return null; |
|||
} |
|||
}); |
|||
} |
|||
|
|||
function PopulateNotifications(response) { |
|||
debugger |
|||
var result = response.notificationModel; |
|||
|
|||
console.log('Received response:', result); |
|||
|
|||
if (response.responseCode == 0) { |
|||
var transactionList = $(".transaction-list"); |
|||
transactionList.empty(); |
|||
|
|||
$.each(result, function (i, d) { |
|||
var row = ` |
|||
<div class="transaction-item px-4 py-2" data-bs-toggle="modal" data-bs-target="#transaction-detail"> |
|||
<div class="row align-items-center flex-row"> |
|||
<div class="col-1 col-sm-3"><span class="d-block text-1">${d.title}</span></div> |
|||
<div class="col-1 col-sm-3"><span class="d-block text-1">${d.body}</span></div> |
|||
<div class="col-1 col-sm-3"><span class="d-block text-1">${d.date}</span></div> |
|||
|
|||
</div> |
|||
</div>`; |
|||
|
|||
transactionList.append(row); |
|||
}); |
|||
} |
|||
} |
|||
|
|||
</script> |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue