diff --git a/CustomerOnlineV2/CustomerOnlineV2/Controllers/ReportController.cs b/CustomerOnlineV2/CustomerOnlineV2/Controllers/ReportController.cs index 51d61fd..52d8039 100644 --- a/CustomerOnlineV2/CustomerOnlineV2/Controllers/ReportController.cs +++ b/CustomerOnlineV2/CustomerOnlineV2/Controllers/ReportController.cs @@ -63,7 +63,14 @@ namespace CustomerOnlineV2.Controllers //[HttpPost] public IActionResult GeneratePdf(CustomerTransaction customerTransaction) { - + //if (TempData["ResponseCode"] == null || string.IsNullOrEmpty(TempData["ResponseCode"].ToString())) + //{ + // TempData["ResponseCode"] = "0"; + //} + //else + //{ + // TempData["ResponseCode"] = "1"; + //} var loginDetails = HttpContext.GetLoginDetails(); var r = _transactionBusiness.GetTransactionReportList(loginDetails, customerTransaction); @@ -75,13 +82,18 @@ namespace CustomerOnlineV2.Controllers } StringBuilder htmlContent = new StringBuilder(); var imageUrl = "data:image/png;base64," + Convert.ToBase64String(System.IO.File.ReadAllBytes("wwwroot/images/logo.png")); + var svgContent = System.IO.File.ReadAllText("wwwroot/images/imelondon.svg"); + var imageUrl1 = $"data:image/svg+xml;base64,{Convert.ToBase64String(Encoding.UTF8.GetBytes(svgContent))}"; htmlContent.AppendLine("
" + "IME is the trading name of Subhida UK Ltd company." + + $"" + + "
" +
+ "
IME is the trading name of Subhida UK Ltd company." +
"
Registration No.: 6432399" +
"
FCA Registration No.: 576127" +
"
HMRC Registration No.: 12663526" +
@@ -89,16 +101,16 @@ namespace CustomerOnlineV2.Controllers
"
London, HA2 0DU" +
"
Email:info@imelondon.co.uk
S.N | " + - "Receiver Name | " + - "Send Date | " + - "Tran Id | " + - "Control No | " + - "Delivery Method | " + - "Status | " + - "Transfer Amount | " + - "Receive Amount | " + + htmlContent.AppendLine("
---|
S.N | " + + "Receiver Name | " + + "Send Date | " + + "Tran Id | " + + "Control No | " + + "Delivery Method | " + + "Status | " + + "Transfer Amt | " + + "Receive Amt | " + "|
---|---|---|---|---|---|---|---|---|---|
{sn} | " + - $"{transa.Id} | " + - $"{transa.SendDate} | " + - $"{transa.TranId} | " + - $"{transa.ControlNo} | " + - $"{transa.PayoutMode} | " + - $"{transa.PayStatus} | " + - $"{transa.CollAmt} | " + - $"{transa.PayoutAmt} | " + + $"|
{sn} | " + + $"{transa.Id} | " + + $"{transa.SendDate} | " + + $"{transa.TranId} | " + + $"{transa.ControlNo} | " + + $"{transa.PayoutMode} | " + + $"{transa.PayStatus} | " + + $"{transa.CollAmt} | " + + $"{transa.PayoutAmt} | " + $"|
" + $" | " + $" | " + @@ -133,8 +145,8 @@ namespace CustomerOnlineV2.Controllers $" | " + $" | " + $" | " + - $" | Total: | " + - $"{totalPayoutAmt} | " + + $"Total: | " + + $"{totalPayoutAmt} | " + $"