Browse Source

V7

Feature #30199: Regarding Freezing Header in TXN Report Actions
Feature #30239: Add ID Status ( Expire or Active ) in Cust Reg Report Actions
Feature #30994: Add num of receiver filter in Customer Registration Report Actions
Story #27925: Inbound Api for Ime London Actions
Task #29651: Menu for Inward Remittance
master
Shakun Shrestha 4 months ago
parent
commit
7aaca9050d
  1. 6
      Swift.DAL/Remittance/Transaction/ApiLogDao.cs
  2. 92
      Swift.DAL/Remittance/Transaction/ApproveInwardTransactionDao.cs
  3. 4
      Swift.DAL/Remittance/Transaction/TranAgentReportDao.cs
  4. 1
      Swift.DAL/Swift.DAL.csproj
  5. 14
      Swift.web/DashboardV2/Dashboard2.aspx
  6. 5
      Swift.web/MobileRemit/Admin/Operation/EditCustomerForApproval.aspx
  7. 18
      Swift.web/MobileRemit/Admin/PushNotification/ManageBroadCast.aspx
  8. 1
      Swift.web/Remit/Administration/CustomerRegistration/Manage.aspx.cs
  9. 1
      Swift.web/Remit/Administration/CustomerSetup/List.aspx.cs
  10. 117
      Swift.web/Remit/ThirdPartyTXN/InboundApiLog/InboundLog.aspx
  11. 47
      Swift.web/Remit/ThirdPartyTXN/InboundApiLog/InboundLog.aspx.cs
  12. 116
      Swift.web/Remit/ThirdPartyTXN/InboundApiLog/InboundLog.aspx.designer.cs
  13. 70
      Swift.web/Remit/ThirdPartyTXN/InboundApiLog/InboundLogList.aspx
  14. 80
      Swift.web/Remit/ThirdPartyTXN/InboundApiLog/InboundLogList.aspx.cs
  15. 35
      Swift.web/Remit/ThirdPartyTXN/InboundApiLog/InboundLogList.aspx.designer.cs
  16. 71
      Swift.web/Remit/ThirdPartyTXN/MobileApiLog/MobileApiLogList.aspx
  17. 81
      Swift.web/Remit/ThirdPartyTXN/MobileApiLog/MobileApiLogList.aspx.cs
  18. 35
      Swift.web/Remit/ThirdPartyTXN/MobileApiLog/MobileApiLogList.aspx.designer.cs
  19. 304
      Swift.web/Remit/Transaction/ApproveTxn/ApproveInwardRemitance.aspx
  20. 409
      Swift.web/Remit/Transaction/ApproveTxn/ApproveInwardRemitance.aspx.cs
  21. 260
      Swift.web/Remit/Transaction/ApproveTxn/ApproveInwardRemitance.aspx.designer.cs
  22. 2
      Swift.web/Remit/Transaction/PromotionalCampaign/Manage.aspx
  23. 28
      Swift.web/Remit/Transaction/Reports/TransactionNew/Mange.aspx
  24. 2
      Swift.web/Remit/Transaction/Reports/TransactionNew/Mange.aspx.cs
  25. 18
      Swift.web/Remit/Transaction/Reports/TransactionNew/Mange.aspx.designer.cs
  26. 15
      Swift.web/Remit/Transaction/Reports/TransactionNew/TranReport.aspx
  27. 9
      Swift.web/Remit/Transaction/Reports/TransactionNew/TranReport.aspx.cs
  28. 28
      Swift.web/Remit/UserControl/UcTransaction.ascx
  29. 5
      Swift.web/Remit/UserControl/UcTransaction.ascx.cs
  30. 63
      Swift.web/Remit/UserControl/UcTransaction.ascx.designer.cs
  31. 32
      Swift.web/Swift.web.csproj
  32. 51
      Swift.web/js/swift_calendar.js
  33. 3
      Swift.web/ui/css/style.css

6
Swift.DAL/Remittance/Transaction/ApiLogDao.cs

@ -10,7 +10,11 @@ namespace Swift.DAL.Remittance.Transaction
var sql = "EXEC proc_ApiLogs @flag='a',@rowId=" + FilterString(id);
return ExecuteDataRow(sql);
}
public DataRow GetInboundApiLogRecord(string id)
{
var sql = "EXEC proc_inboundApiLogs @flag='a',@rowId=" + FilterString(id);
return ExecuteDataRow(sql);
}
public DataRow GetKFTCLogRecord(string id,string User)
{
var sql = "EXEC proc_KFTCApiLogs @flag='a',@rowId=" + FilterString(id);

92
Swift.DAL/Remittance/Transaction/ApproveInwardTransactionDao.cs

@ -0,0 +1,92 @@
using Swift.DAL.SwiftDAL;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Swift.DAL.Remittance.Transaction
{
public class ApproveInwardTransactionDao : RemittanceDao
{
public DataSet GetHoldedTXNListAdmin(string user, string branch, string id, string country, string sender, string receiver
, string amt, string branchId, string userType, string flag,
string txnDate, string txnUser, string controlNo, string controlNo1, string txnType, string sendCountry, string sendAgent, string sendBranch)
{
string sql = "EXEC proc_ApproveInwardHoldedTXN ";
sql += " @flag = " + FilterString(flag);
sql += ", @user = " + FilterString(user);
sql += ", @id = " + FilterString(id);
sql += ", @branch = " + FilterString(branch);
sql += ", @country = " + FilterString(country);
sql += ", @sender = " + FilterString(sender);
sql += ", @receiver = " + FilterString(receiver);
sql += ", @amt = " + FilterString(amt);
sql += ", @branchId = " + FilterString(branchId);
sql += ", @userType = " + FilterString(userType);
sql += ", @txnDate = " + FilterString(txnDate);
sql += ", @txncreatedBy = " + FilterString(txnUser);
sql += ", @ControlNo = " + FilterString(controlNo);
sql += ", @tpControlNo2 = " + FilterString(controlNo1);
sql += ", @txnType = " + FilterString(txnType);
sql += ", @sendCountry = " + FilterString(sendCountry);
sql += ", @sendAgent = " + FilterString(sendAgent);
sql += ", @sendBranch = " + FilterString(sendBranch);
return ExecuteDataset(sql);
}
public DbResult ApproveAllHoldedTXN(string user, string idList)
{
var sb = new StringBuilder("<root>");
var list = idList.Split(',');
foreach (var itm in list)
{
sb.Append("<row id=\"" + itm.Trim() + "\" />");
}
sb.Append("</root>");
var sql = "EXEC proc_ApproveInwardHoldedTXN @flag = 'approve-all'";
sql += ", @user = " + FilterString(user);
sql += ", @idList = " + FilterString(sb.ToString());
return ParseDbResult(sql);
}
public DataSet GetHoldAdminTransactionSummary(string user, string branchId, string userType)
{
string sql = "EXEC proc_ApproveInwardHoldedTXN ";
sql += " @flag = 's_admin_txn_summary'";
sql += ", @user = " + FilterString(user);
sql += ", @branchId = " + FilterString(branchId);
sql += ", @userType = " + FilterString(userType);
return ExecuteDataset(sql);
}
public DbResult GetTxnApproveDataIMEPay(string user, string id)
{
var sql = "EXEC proc_ApproveInwardHoldedTXN @flag = 'get-info-imepay'";
sql += ", @user = " + FilterString(user);
sql += ", @id = " + FilterString(id);
var drDb = ParseDbResultNew(sql);
return drDb;
}
public DbResult ApproveHoldedTXN(string user, string id)
{
var sql = "EXEC proc_ApproveInwardHoldedTXN @flag = 'approve'";
sql += ", @user = " + FilterString(user);
sql += ", @id = " + FilterString(id);
var drDb = ParseDbResult(sql);
return drDb;
}
public DbResult RejectHoldedTXN(string user, string id, string controlNO = "", string remarks = "")
{
var sql = "EXEC proc_ApproveInwardHoldedTXN @flag = 'reject'";
sql += ", @user = " + FilterString(user);
sql += ", @id = " + FilterString(id);
sql += ", @remarks = " + FilterString(remarks);
sql += ", @ControlNo = " + FilterString(controlNO);
return ParseDbResult(sql);
}
}
}

4
Swift.DAL/Remittance/Transaction/TranAgentReportDao.cs

@ -542,13 +542,15 @@ namespace Swift.DAL.BL.Remit.Transaction
return ParseReportResult(sql);
}
public DataTable TxnReport(string user, string pCountry, string pAgent, string depositType, string orderBy, string status, string paymentType, string dateField, string from, string to, string transType, string displayTranNo, string searchBy, string searchByValue, string pageNumber, string pageSize, string rptType, string tFrom, string postCode, string promoCode)
public DataTable TxnReport(string user, string pCountry, string pAgent, string sCountry, string depositType,string remitTYpe, string orderBy, string status, string paymentType, string dateField, string from, string to, string transType, string displayTranNo, string searchBy, string searchByValue, string pageNumber, string pageSize, string rptType, string tFrom, string postCode, string promoCode)
{
string sql = "EXEC PROC_TRANSACTION_REPORT ";
sql += " @user=" + FilterString(user);
sql += ", @pCountry = " + FilterString(pCountry);
sql += ", @pAgent = " + FilterString(pAgent);
sql += ", @sCountry = " + FilterString(sCountry);
sql += ", @depositType = " + FilterString(depositType);
sql += ", @remitTYpe = " + FilterString(remitTYpe);
sql += ", @orderBy = " + FilterString(orderBy);
sql += ", @status = " + FilterString(status);
sql += ", @paymentType = " + FilterString(paymentType);

1
Swift.DAL/Swift.DAL.csproj

@ -383,6 +383,7 @@
<Compile Include="Remittance\TPSetup\PartnerDao.cs" />
<Compile Include="Remittance\TPSetup\TPSetupDao.cs" />
<Compile Include="Remittance\Transaction\ApiLogDao.cs" />
<Compile Include="Remittance\Transaction\ApproveInwardTransactionDao.cs" />
<Compile Include="Remittance\Transaction\ApproveTransactionDao.cs" />
<Compile Include="Remittance\Transaction\CancelTransactionDao.cs" />
<Compile Include="Remittance\Transaction\ExRateDao.cs" />

14
Swift.web/DashboardV2/Dashboard2.aspx

@ -542,6 +542,20 @@
</span>
</div>
</a>
<div class="msg-body d-flex align-items-center">
<div class="icon-element bg-10 flex-shrink-0 mr-3 ml-0">
<i class='uil uil-bell'></i>
</div>
<div class="msg-content w-100" style="margin-left: 10px;">
<h3 class="title pb-1" style="font-size: 14px !important;">KYC Completed</h3>
<p class="msg-text" style="color: red;" id="kycCompletedCust">0</p>
</div>
</div>
</div>
</div>
<%--<div class="col-xl-6" id="userwiseDailyTxnRoleDiv" runat="server">
</div>
</a>
</div>
</div>
</div>

5
Swift.web/MobileRemit/Admin/Operation/EditCustomerForApproval.aspx

@ -59,6 +59,7 @@
.lowercase {
text-transform: none !important;
}
}
</style>
<script>
$(document).ready(function () {
@ -751,7 +752,7 @@
return true;
}
function CheckFormValidation() {
debugger;
// debugger;
var reqField = "";
var val = $("#<% =hdnCustomerId.ClientID%>").val();
var customerType = $("#<% =ddlCustomerType.ClientID%>").val();
@ -1686,7 +1687,7 @@
</div>
</div>
</div>
</div>

18
Swift.web/MobileRemit/Admin/PushNotification/ManageBroadCast.aspx

@ -163,16 +163,16 @@
<div class="form-group">
<asp:DropDownList ID="ddlCustomerType" runat="server" CssClass="form-control" Style="margin-bottom: 5px;"></asp:DropDownList>
</div>
</div>
<div class="col-md-6">
<uc1:SwiftTextBox runat="server" ID="txtSearchData" Category="remit-searchCustomerForPushNotif" CssClass="form-control required" Param1="@GetCustomerSearchType()" Title="Blank for All" />
</div>
<div class="col-md-6">
<div class="form-group">
<asp:DropDownList ID="ddlNativeCountry" runat="server" CssClass="form-control" Style="margin-bottom: 5px;"></asp:DropDownList>
</div>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<asp:DropDownList ID="ddlNativeCountry" runat="server" CssClass="form-control" Style="margin-bottom: 5px;">
</asp:DropDownList>
</div>
</div>
</div>--%>
@ -185,18 +185,12 @@
<div class="col-md-4 form-group">
<uc1:SwiftTextBox runat="server" ID="txtSearchData" Category="remit-searchCustomerForPushNotif" CssClass="form-control required" Param1="@GetCustomerSearchType()" Title="Blank for All" />
</div>
<div class="col-md-6">
<div class="col-md-4">
<div class="form-group">
<asp:DropDownList ID="ddlNativeCountry" runat="server" CssClass="form-control" Style="margin-bottom: 5px;"></asp:DropDownList>
</div>
</div>
<%--<div class="col-md-4">
<div class="form-group">
<asp:TextBox ID="txtPostCode" AutoComplete="off" runat="server" CssClass="form-control"></asp:TextBox>
</div>
</div>--%>
</div>
<div class="row" id="divPostCode" runat="server">
<div class="col-md-3 form-group">
<label id="lblPostCode" style="display: none;">Post Code :</label>
@ -233,6 +227,8 @@
</div>
</div>
</div>
</div>
</div>
<div class="row">
</div>
<div class="row">

1
Swift.web/Remit/Administration/CustomerRegistration/Manage.aspx.cs

@ -411,6 +411,7 @@ namespace Swift.web.Remit.Administration.CustomerRegistration
GetStatic.CallBackJs1(Page, "Msg", "alert('" + msg + "');");
}
private void saveCustomerDocument(DbResult dbresult)
{
var result = dbresult.Extra.Split('|');

1
Swift.web/Remit/Administration/CustomerSetup/List.aspx.cs

@ -75,6 +75,7 @@ namespace Swift.web.Remit.Administration.customerSetup
new GridColumn("idNumber", "ID No", "", "T"),
new GridColumn("KYC_Status","KYC Status","","T"),
new GridColumn("createdDate","Regd. Date","","D"),
new GridColumn("idExpiryDate","ID Expiry Date","","D"),
new GridColumn("Introducer","Introducer","","T"),
//new GridColumn("bankName","Bank Name","","T") ,
//new GridColumn("bankAccountNo","Account Number","","T")

117
Swift.web/Remit/ThirdPartyTXN/InboundApiLog/InboundLog.aspx

@ -0,0 +1,117 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InboundLog.aspx.cs" Inherits="Swift.web.Remit.ThirdPartyTXN.InboundApiLog.InboundLog" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link href="../../../ui/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
<link href="../../../ui/css/style.css" rel="stylesheet" />
<link href="../../../ui/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
<style>
.table .table {
background-color: #F5F5F5 !important;
}
.borderless td, .borderless th {
border: none !important;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div class="container-fluid">
<div class="row">
<div class="col-sm-12">
<div class="page-title">
<ol class="breadcrumb">
<li><a href="../../../Front.aspx" target="mainFrame"><i class="fa fa-home"></i></a></li>
<li><a href="#" onclick="return LoadModule('other_services')">Other Services</a></li>
<li class="active"><a href="InboundLog.aspx">API Log</a></li>
</ol>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="panel panel-default ">
<div class="panel-heading">
<h4 class="panel-title">API Transaction Log Details </h4>
<div class="panel-actions">
<a href="#" class="panel-action panel-action-toggle" data-panel-toggle></a>
</div>
</div>
<div class="panel-body">
<div class="form-group">
<table class="table table-responsive borderless">
<tr>
<td class="frmLable">Provider:</td>
<td>
<asp:Label runat="server" ID="provider" /></td>
<td class="frmLable">Method:</td>
<td>
<asp:Label runat="server" ID="Method" /></td>
</tr>
<tr>
<td class="frmLable">Control No:</td>
<td>
<asp:Label runat="server" ID="ControlNo" /></td>
<td class="frmLable">User:</td>
<td>
<asp:Label runat="server" ID="User" /></td>
</tr>
<tr>
<td class="frmLable">Request Date:</td>
<td>
<asp:Label runat="server" ID="RequestDate" /></td>
<td class="frmLable">Response Date:</td>
<td>
<asp:Label runat="server" ID="ResponseDate" /></td>
</tr>
<tr>
<td class="frmLable">Code:</td>
<td>
<asp:Label runat="server" ID="Code" /></td>
<td class="frmLable">Message:</td>
<td>
<asp:Label runat="server" ID="Message" /></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>
</div>
<div class="form-group">
<table class="table-responsive">
<tr>
<td colspan="4"><span class="frmLable">Request xml:</span><br />
<asp:TextBox ID="reqXml" runat="server" TextMode="MultiLine" Rows="15" Columns="98" ReadOnly="true" CssClass="form-control"></asp:TextBox>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="4"><span class="frmLable">Response xml:</span><br />
<asp:TextBox ID="resXml" runat="server" TextMode="MultiLine" Rows="15" Columns="98" ReadOnly="true" CssClass="form-control"></asp:TextBox>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="4">
<input type="button" id="close" class="btn btn-primary m-t-25" value="Close" onclick="javascript: window.close();" />
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
</body>
</html>

47
Swift.web/Remit/ThirdPartyTXN/InboundApiLog/InboundLog.aspx.cs

@ -0,0 +1,47 @@
using Swift.DAL.Remittance.Transaction;
using Swift.web.Library;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Swift.web.Remit.ThirdPartyTXN.InboundApiLog
{
public partial class InboundLog : System.Web.UI.Page
{
private readonly ApiLogDao _apiLog = new ApiLogDao();
private const string ViewFunctionId = "20172000";
private readonly RemittanceLibrary _sl = new RemittanceLibrary();
protected void Page_Load(object sender, EventArgs e)
{
_sl.CheckSession();
Authenticate();
LoadMessage();
}
private void Authenticate()
{
_sl.CheckAuthentication(ViewFunctionId);
}
private void LoadMessage()
{
var id = GetStatic.ReadNumericDataFromQueryString("id").ToString();
var res = _apiLog.GetInboundApiLogRecord(id);
if (res != null)
{
provider.Text = res["providerName"].ToString();
Method.Text = res["methodName"].ToString();
ControlNo.Text = res["controlNo"].ToString();
User.Text = res["requestedBy"].ToString();
RequestDate.Text = res["requestedDate"].ToString();
ResponseDate.Text = res["responseDate"].ToString();
//Code.Text = res["errorCode"].ToString();
//Message.Text = res["errorMessage"].ToString();
reqXml.Text = res["requestXml"].ToString();
resXml.Text = res["responseXml"].ToString();
}
}
}
}

116
Swift.web/Remit/ThirdPartyTXN/InboundApiLog/InboundLog.aspx.designer.cs

@ -0,0 +1,116 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Swift.web.Remit.ThirdPartyTXN.InboundApiLog
{
public partial class InboundLog
{
/// <summary>
/// form1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// provider control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label provider;
/// <summary>
/// Method control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label Method;
/// <summary>
/// ControlNo control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label ControlNo;
/// <summary>
/// User control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label User;
/// <summary>
/// RequestDate control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label RequestDate;
/// <summary>
/// ResponseDate control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label ResponseDate;
/// <summary>
/// Code control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label Code;
/// <summary>
/// Message control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label Message;
/// <summary>
/// reqXml control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox reqXml;
/// <summary>
/// resXml control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox resXml;
}
}

70
Swift.web/Remit/ThirdPartyTXN/InboundApiLog/InboundLogList.aspx

@ -0,0 +1,70 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InboundLogList.aspx.cs" Inherits="Swift.web.Remit.ThirdPartyTXN.InboundApiLog.InboundLogList" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link href="/ui/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
<link href="/ui/css/style.css" rel="stylesheet" />
<link href="/ui/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
<script src="/ui/bootstrap/js/bootstrap.min.js"></script>
<script src="/js/Swift_grid.js" type="text/javascript"></script>
<script src="/js/functions.js" type="text/javascript"></script>
<link href="/ui/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
<link href="/ui/css/style.css" rel="stylesheet" />
<link href="/ui/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
<script src="/js/functions.js"></script>
<script src="/js/swift_calendar.js"></script>
<link href="/ui/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
<link href="/ui/css/datepicker-custom.css" rel="stylesheet" />
<link href="/js/jQuery/jquery-ui.css" rel="stylesheet" type="text/css" />
<link href="/ui/css/waves.min.css" type="text/css" rel="stylesheet" />
<!-- <link rel="stylesheet" href="css/nanoscroller.css">-->
<link href="/ui/css/style.css" type="text/css" rel="stylesheet" />
<link href="/ui/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
<script type="text/javascript" src="/ui/js/jquery.min.js"></script>
<script type="text/javascript" src="/ui/bootstrap/js/bootstrap.min.js"></script>
<script src="/js/swift_calendar.js"></script>
<script src="/ui/js/pickers-init.js"></script>
<script src="/ui/js/jquery-ui.min.js"></script>
<script src="/ui/js/metisMenu.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.mask/1.14.15/jquery.mask.min.js" type="text/javascript"></script>
</head>
<body>
<form id="form1" runat="server">
<div class="page-wrapper">
<div class="row">
<div class="col-sm-12">
<div class="page-title">
<ol class="breadcrumb">
<li><a href="../../../Front.aspx" target="mainFrame"><i class="fa fa-home"></i></a></li>
<li><a href="#" onclick="return LoadModule('other_services')">System Security</a></li>
<li class="active"><a href="InboundLogList.aspx">Inbound API Log</a></li>
</ol>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="panel panel-default ">
<div class="panel-heading">
<h4 class="panel-title">Inbound API Transaction Log List </h4>
<div class="panel-actions">
<a href="#" class="panel-action panel-action-toggle" data-panel-toggle></a>
</div>
</div>
<div class="panel-body">
<div class="form-group">
<div id="rpt_grid" runat="server" class="gridDiv" enableviewstate="False">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
</body>
</html>

80
Swift.web/Remit/ThirdPartyTXN/InboundApiLog/InboundLogList.aspx.cs

@ -0,0 +1,80 @@
using Swift.web.Component.Grid;
using Swift.web.Component.Grid.gridHelper;
using Swift.web.Library;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Swift.web.Remit.ThirdPartyTXN.InboundApiLog
{
public partial class InboundLogList : System.Web.UI.Page
{
protected const string GridName = "apiLog";
private const string ViewFunctionId = "20172000";
private string sql;
private readonly SwiftGrid _grid = new SwiftGrid();
private readonly RemittanceLibrary _sl = new RemittanceLibrary();
protected void Page_Load(object sender, EventArgs e)
{
LoadGrid();
}
private void Authenticate()
{
_sl.CheckAuthentication(ViewFunctionId);
}
private void LoadGrid()
{
//string ddlSql = "EXEC [PROC_API_ROUTE_PARTNERS] @flag = 'agent-list'";
string ddlSql1 = "EXEC [proc_inboundApiLogs] @flag = 'method'";
_grid.FilterList = new List<GridFilter>
{
//new GridFilter("agentId", "Partner", "1:"+ddlSql, "0")
new GridFilter("agentId", "Log Type", "1:"+ddlSql1, "0")
,new GridFilter("logby", "Log By(username)", "T")
,new GridFilter("date", "Log date", "D")
,new GridFilter("controlno", "Control Number", "T")
,new GridFilter("processid", "Process Id", "T")
};
_grid.ColumnList = new List<GridColumn>
{
new GridColumn("SN","SN","","T"),
new GridColumn("ProcessIdentifier", "processid", "", "T"),
new GridColumn("RequestedBy","RequestedBy","","T"),
new GridColumn("MethodName", "MethodName", "", "T"),
new GridColumn("RequestedDate", "Date", "", "D"),
new GridColumn("RequestJson", "RequestJson", "", "T"),
new GridColumn("ResponseJson", "ResponseJson", "", "T"),
new GridColumn("controlno","controlno","","T"),
};
_grid.GridDataSource = SwiftGrid.GridDS.RemittanceDB;
_grid.GridType = 1;
_grid.GridName = GridName;
_grid.RowIdField = "rowId";
_grid.InputPerRow = 5;
_grid.AlwaysShowFilterForm = true;
_grid.LoadGridOnFilterOnly = true;
_grid.AllowCustomLink = true;
_grid.CustomLinkText = Misc.GetIcon("vd", "OpenInNewWindow('InboundLog.aspx?id=@rowId')");
_grid.CustomLinkVariables = "rowId";
_grid.ShowFilterForm = true;
_grid.ShowPagingBar = true;
_grid.ThisPage = "InboundLogList.aspx";
sql = "EXEC proc_inboundApiLogs @flag = 's'";
_grid.SetComma();
rpt_grid.InnerHtml = _grid.CreateGrid(sql);
}
}
}

35
Swift.web/Remit/ThirdPartyTXN/InboundApiLog/InboundLogList.aspx.designer.cs

@ -0,0 +1,35 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Swift.web.Remit.ThirdPartyTXN.InboundApiLog
{
public partial class InboundLogList
{
/// <summary>
/// form1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// rpt_grid control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl rpt_grid;
}
}

71
Swift.web/Remit/ThirdPartyTXN/MobileApiLog/MobileApiLogList.aspx

@ -0,0 +1,71 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MobileApiLogList.aspx.cs" Inherits="Swift.web.Remit.ThirdPartyTXN.MobileApiLog.MobileApiLogList" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link href="/ui/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
<link href="/ui/css/style.css" rel="stylesheet" />
<link href="/ui/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
<script src="/ui/bootstrap/js/bootstrap.min.js"></script>
<script src="/js/Swift_grid.js" type="text/javascript"></script>
<script src="/js/functions.js" type="text/javascript"></script>
<link href="/ui/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
<link href="/ui/css/style.css" rel="stylesheet" />
<link href="/ui/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
<script src="/js/functions.js"></script>
<script src="/js/swift_calendar.js"></script>
<link href="/ui/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
<link href="/ui/css/datepicker-custom.css" rel="stylesheet" />
<link href="/js/jQuery/jquery-ui.css" rel="stylesheet" type="text/css" />
<link href="/ui/css/waves.min.css" type="text/css" rel="stylesheet" />
<!-- <link rel="stylesheet" href="css/nanoscroller.css">-->
<link href="/ui/css/style.css" type="text/css" rel="stylesheet" />
<link href="/ui/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
<script type="text/javascript" src="/ui/js/jquery.min.js"></script>
<script type="text/javascript" src="/ui/bootstrap/js/bootstrap.min.js"></script>
<script src="/js/swift_calendar.js"></script>
<script src="/ui/js/pickers-init.js"></script>
<script src="/ui/js/jquery-ui.min.js"></script>
<script src="/ui/js/metisMenu.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.mask/1.14.15/jquery.mask.min.js" type="text/javascript"></script>
</head>
<body>
<form id="form1" runat="server">
<div class="page-wrapper">
<div class="row">
<div class="col-sm-12">
<div class="page-title">
<ol class="breadcrumb">
<li><a href="../../../Front.aspx" target="mainFrame"><i class="fa fa-home"></i></a></li>
<li><a href="#" onclick="return LoadModule('other_services')">System Security</a></li>
<li class="active"><a href="InboundLogList.aspx">Mobile API Log</a></li>
</ol>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="panel panel-default ">
<div class="panel-heading">
<h4 class="panel-title">Mobile API Log List </h4>
<div class="panel-actions">
<a href="#" class="panel-action panel-action-toggle" data-panel-toggle></a>
</div>
</div>
<div class="panel-body">
<div class="form-group">
<div id="rpt_grid" runat="server" class="gridDiv" enableviewstate="False">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
</body>
</html>

81
Swift.web/Remit/ThirdPartyTXN/MobileApiLog/MobileApiLogList.aspx.cs

@ -0,0 +1,81 @@
using Swift.web.Component.Grid;
using Swift.web.Component.Grid.gridHelper;
using Swift.web.Library;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Swift.web.Remit.ThirdPartyTXN.MobileApiLog
{
public partial class MobileApiLogList : System.Web.UI.Page
{
protected const string GridName = "apiLog";
private const string ViewFunctionId = "20172000";
private string sql;
private readonly SwiftGrid _grid = new SwiftGrid();
private readonly RemittanceLibrary _sl = new RemittanceLibrary();
protected void Page_Load(object sender, EventArgs e)
{
Authenticate();
LoadGrid();
}
private void Authenticate()
{
_sl.CheckAuthentication(ViewFunctionId);
}
private void LoadGrid()
{
//string ddlSql = "EXEC [PROC_API_ROUTE_PARTNERS] @flag = 'agent-list'";
string ddlSql1 = "EXEC [proc_MobileApiLogs] @flag = 'method'";
_grid.FilterList = new List<GridFilter>
{
//new GridFilter("agentId", "Partner", "1:"+ddlSql, "0")
new GridFilter("agentId", "Log Type", "1:"+ddlSql1, "0")
,new GridFilter("logby", "Log By(username)", "T")
,new GridFilter("date", "Log date", "D")
,new GridFilter("controlno", "Control Number", "T")
,new GridFilter("processid", "Process Id", "T")
};
_grid.ColumnList = new List<GridColumn>
{
new GridColumn("SN","SN","","T"),
new GridColumn("processId", "processid", "", "T"),
new GridColumn("createdBy","RequestedBy","","T"),
new GridColumn("methodName", "MethodName", "", "T"),
new GridColumn("createdDate", "Date", "", "D"),
new GridColumn("message", "RequestJson", "", "T"),
//new GridColumn("ResponseJson", "ResponseJson", "", "T"),
new GridColumn("controlno","controlno","","T"),
};
_grid.GridDataSource = SwiftGrid.GridDS.RemittanceDB;
_grid.GridType = 1;
_grid.GridName = GridName;
_grid.RowIdField = "rowId";
_grid.InputPerRow = 5;
_grid.AlwaysShowFilterForm = true;
_grid.LoadGridOnFilterOnly = true;
_grid.AllowCustomLink = true;
//_grid.CustomLinkText = Misc.GetIcon("vd", "OpenInNewWindow('InboundLog.aspx?id=@rowId')");
_grid.CustomLinkVariables = "rowId";
_grid.ShowFilterForm = true;
_grid.ShowPagingBar = true;
_grid.ThisPage = "InboundLogList.aspx";
sql = "EXEC proc_MobileApiLogs @flag = 's'";
_grid.SetComma();
rpt_grid.InnerHtml = _grid.CreateGrid(sql);
}
}
}

35
Swift.web/Remit/ThirdPartyTXN/MobileApiLog/MobileApiLogList.aspx.designer.cs

@ -0,0 +1,35 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Swift.web.Remit.ThirdPartyTXN.MobileApiLog
{
public partial class MobileApiLogList
{
/// <summary>
/// form1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// rpt_grid control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl rpt_grid;
}
}

304
Swift.web/Remit/Transaction/ApproveTxn/ApproveInwardRemitance.aspx

@ -0,0 +1,304 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ApproveInwardRemitance.aspx.cs" Inherits="Swift.web.Remit.Transaction.ApproveTxn.ApproveInwardRemitance" %>
<%@ Register TagPrefix="uc1" TagName="SwiftTextBox" Src="~/Component/AutoComplete/SwiftTextBox.ascx" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<base id="Base2" runat="server" target="_self" />
<script src="/ui/js/jquery.min.js"></script>
<link href="/ui/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
<link href="/ui/css/style.css" type="text/css" rel="stylesheet" />
<link href="/ui/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
<script src="/js/functions.js" type="text/javascript"> </script>
<script src="/js/Swift_grid.js" type="text/javascript"> </script>
<link href="/js/jQuery/jquery-ui.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/ui/js/jquery.min.js"></script>
<script src="/ui/js/jquery-ui.min.js"></script>
<script src="/js/swift_calendar.js" type="text/javascript"></script>
<script src="/js/swift_autocomplete.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.mask/1.14.15/jquery.mask.min.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
function LoadCalendars() {
ShowCalFromToUpToToday("#<% =txnDate.ClientID%>");
$('#txnDate').mask('0000-00-00');
}
LoadCalendars();
function ClearFields() {
$('#tblForm').find('input:text').val('');
$('#tblForm').find('input:hidden').val('');
$('#tblForm').find('select').val('');
GetElement("<% =btnSearch.ClientID %>").click();
}
function ViewDetails(id) {
var url = "Manage.aspx?id=" + id;
var ret = OpenDialog(url, 800, 900, 50, 50);
if (ret) {
GetElement("<% =btnSearch.ClientID %>").click();
}
}
function ViewMapping(id) {
var url = "MappingInfo.aspx?id=" + id;
var ret = OpenDialog(url, 800, 900, 50, 50);
}
function Modify(id) {
var url = "Modify.aspx?tranId=" + id;
var ret = OpenDialog(url, 800, 900, 50, 50);
if (ret) {
GetElement("<% =btnSearch.ClientID %>").click();
}
}
function CheckAmount(id, tAmt) {
var strAmt = $("#amt_" + id).val();
var amt = parseFloat(strAmt);
if (isNaN(amt) || isNaN(strAmt) || amt < 0) {
$("#amt_" + id).val("");
}
var boolDisabled = ((isNaN(amt) || isNaN(strAmt) || amt == 0 || tAmt != amt));
EnableDisableBtn("btn_" + id, boolDisabled);
EnableDisableBtn("btn_r_" + id, boolDisabled);
}
function Approve(id) {
var amt = parseFloat($("#amt_" + id).val());
if (amt <= 0) {
window.parent.SetMessageBox("Invalid Amount", "1");
return;
}
SetValueById("<% = hddTranNo.ClientID %>", id, false);
GetElement("<% =btnApprove.ClientID %>").click();
}
function Reject(id) {
var url = "Reject.aspx?id=" + id;
var ret = OpenDialog(url, 800, 900, 50, 50);
if (ret) {
GetElement("<% =btnSearch.ClientID %>").click();
}
}
function ToggleCheckboxes(id, isRadioMode) {
if (isRadioMode) {
SelectDeselect("rowId", false);
} else {
ToggleSelection("rowId");
}
CallBackGrid();
}
function CallBackGrid(me, isRadioMode) {
if (isRadioMode) {
SelectDeselect("rowId", false);
me.checked = true;
}
var boolDisabled = !CanApprove("rowId");
EnableDisableBtn("<% =btnApproveAll.ClientID %>", boolDisabled);
ManageToggleCB("rowId");
if (boolDisabled === true) {
$("#<% =btnApproveAll.ClientID %>").addClass("hidden");
} else {
$("#<% =btnApproveAll.ClientID %>").removeClass("hidden");
}
}
function ToggleSelection(name) {
var boolCheck = GetElement("tgcb").checked;
SelectDeselect(name, boolCheck);
}
function SelectDeselect(name, boolCheck) {
var elements = document.getElementsByName(name);
for (var i = 0; i < elements.length; i++) {
elements[i].checked = boolCheck;
}
}
function CanApprove(name) {
var elements = document.getElementsByName(name);
for (var i = 0; i < elements.length; i++) {
if (elements[i].checked) {
return true;
}
}
return false;
}
function ManageToggleCB(name) {
var elements = document.getElementsByName(name);
for (var i = 0; i < elements.length; i++) {
if (!elements[i].checked) {
GetElement("tgcb").checked = false;
return false;
}
}
GetElement("tgcb").checked = true;
}
</script>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div class="page-wrapper">
<div class="row">
<div class="col-sm-12">
<div class="page-title">
<h1></h1>
<ol class="breadcrumb">
<li><a href="/Front.aspx" target="mainFrame"><i class="fa fa-home"></i></a>
</li>
<li><a href="#" onclick="return LoadModule('transaction')">Transaction </a></li>
<li class="active"><a href="ApproveInwardRemitance.aspx">Approve Inward Transaction </a></li>
</ol>
</div>
</div>
</div>
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="Manage">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default ">
<!-- Start .panel -->
<div class="panel-heading">
<h4 class="panel-title">
<label>Approve Inward Remittance</label>
</h4>
<div class="panel-actions">
<a href="#" class="panel-action panel-action-toggle" data-panel-toggle=""></a>
<a href="#" class="panel-action panel-action-dismiss" data-panel-dismiss=""></a>
</div>
</div>
<div class="panel-body">
<div class="row">
<div class="form-group">
<label>&nbsp;&nbsp;&nbsp;Search Transaction Criteria</label>
</div>
</div>
<div class="row">
<div class="form-group">
<div class="col-md-3">
<label>Sending Country</label>
<asp:DropDownList ID="country" runat="server" AutoPostBack="true" CssClass="form-control"
OnSelectedIndexChanged="country_SelectedIndexChanged">
</asp:DropDownList>
</div>
<div class="col-md-3">
<label>Sending Agent</label>
<asp:DropDownList CssClass="form-control" ID="agent" runat="server" AutoPostBack="true"
OnSelectedIndexChanged="agent_SelectedIndexChanged">
</asp:DropDownList>
</div>
<div class="col-md-3">
<label>Sending Branch</label>
<asp:DropDownList CssClass="form-control" ID="branch" runat="server"></asp:DropDownList>
</div>
<div class="col-md-3">
<label>Tran No</label>
<asp:TextBox ID="tranNo" runat="server" CssClass="form-control"></asp:TextBox>
</div>
<div class="col-md-3">
<label>PIN No.</label>
<asp:TextBox ID="ControlNo" runat="server" CssClass="form-control"></asp:TextBox>
</div>
<div class="col-md-3">
<label>Partner Id</label>
<asp:TextBox ID="ControlNo1" runat="server" CssClass="form-control"></asp:TextBox>
</div>
<div class="col-md-3">
<label>Receiving Country</label>
<asp:DropDownList CssClass="form-control" ID="rCountry" runat="server"></asp:DropDownList>
</div>
<div class="col-md-3">
<label>Sender Name</label>
<asp:TextBox ID="sender" runat="server" CssClass="form-control"></asp:TextBox>
</div>
<div class="col-md-3">
<label>Receiver Name</label>
<asp:TextBox ID="receiver" runat="server" CssClass="form-control"></asp:TextBox>
</div>
<div class="col-md-3">
<label>Amount</label>
<asp:TextBox ID="amt" runat="server" CssClass="form-control"></asp:TextBox>
</div>
<div class="col-md-3">
<label>Txn Date</label><br />
<asp:TextBox ID="txnDate" onchange="return DateValidation('txnDate','t')" MaxLength="10" runat="server" CssClass="form-control"></asp:TextBox>
</div>
<div class="col-md-3" style="display: none;">
<label>User</label><br />
<uc1:SwiftTextBox ID="user" Category="remit-users" runat="server" />
</div>
</div>
</div>
<div class="row">
<div class="form-group">
<div class="col-md-4">
<asp:Button ID="btnSearch" runat="server" Text="Search Approve" CssClass="btn btn-primary"
OnClick="btnSearch_Click" ValidationGroup="rpt" />
<input type="button" value="Clear Field" id="btnSclearField" class="btn btn-primary" onclick=" ClearFields(); " />
<div id="antiForgery" runat="server"></div>
</div>
</div>
</div>
<div id="approveList" runat="server">
<div id="rptGrid" runat="server" enableviewstate="false"></div>
<br />
<asp:Button ID="btnApproveAll" runat="server" CssClass='btn btn-primary m-t-25 hidden' Text="Approve Selected" Enabled="false" OnClick="btnApproveAll_Click" />
</div>
<div id="selfTxn" runat="server" class="col-sm-12"></div>
<br />
<asp:Button ID="btnApprove" runat="server" Text="Approve" CssClass="btn btn-primary" Style="display: none" OnClick="btnApprove_Click" />
<asp:Button ID="btnReject" runat="server" CssClass='btn btn-primary m-t-25' OnClick="btnReject_Click" Style="display: none" />
<asp:HiddenField ID="hddTranNo" runat="server" />
<asp:HiddenField ID="hdntabType" runat="server" />
<div>
<div id="txnSummary" runat="server" class="col-sm-12" enableviewstate="false"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
</body>
</html>
<script type="text/javascript">
function SelectTab(obj) {
document.getElementById('hdntabType').value = obj;
if (obj == "a") {
document.getElementById('appCnt').style.display = "block";
document.getElementById('selfTxn').style.display = "none";
document.getElementById('rptGrid').style.display = "block";
document.getElementById("a").setAttribute("class", "selected");
document.getElementById("s").setAttribute("class", "");
}
if (obj == "s") {
document.getElementById('appCnt').style.display = "none";
document.getElementById('selfCnt').style.display = "block";
document.getElementById('rptGrid').style.display = "none";
document.getElementById('selfTxn').style.display = "block";
document.getElementById("s").setAttribute("class", "selected");
document.getElementById("a").setAttribute("class", "");
}
}
</script>

409
Swift.web/Remit/Transaction/ApproveTxn/ApproveInwardRemitance.aspx.cs

@ -0,0 +1,409 @@
using Swift.API.Common;
using Swift.DAL.Remittance.Transaction;
using Swift.web.Library;
using Swift.DAL.SwiftDAL;
using Swift.API.ThirdPartyApiServices;
using System;
using System.Data;
using System.Linq;
using System.Text;
using System.Web.Helpers;
namespace Swift.web.Remit.Transaction.ApproveTxn
{
public partial class ApproveInwardRemitance : System.Web.UI.Page
{
private ApproveInwardTransactionDao at = new ApproveInwardTransactionDao();
private const string ViewFunctionId = "20122800";
private const string ModifyFunctionId = "20122810";
private const string ApproveSingleFunctionId = "20122820";
private const string ApproveMultipleFunctionId = "20122830";
private const string RejectFuntionId = "20122840";
private readonly StaticDataDdl _sdd = new StaticDataDdl();
private readonly RemittanceLibrary _sl = new RemittanceLibrary();
protected void Page_Load(object sender, EventArgs e)
{
Authenticate();
GetStatic.AttachConfirmMsg(ref btnApprove, "Are you sure to APPROVE this transaction?");
GetStatic.AttachConfirmMsg(ref btnApproveAll, "Are you sure to APPROVE ALL this transaction?");
if (!IsPostBack)
{
antiForgery.InnerHtml = AntiForgery.GetHtml().ToString();
LoadDdl();
LoadSendingAgent();
LoadApproveGrid("");
MakeNumericTextBox();
// _sl.SetPayStatusDdl(ref status, "", "All");
if (!string.IsNullOrEmpty(GetCountry()))
LoadApproveGrid(GetCountry());
LoadHoldSummary();
}
GetStatic.ResizeFrame(Page);
}
private void MakeNumericTextBox()
{
Misc.MakeNumericTextbox(ref amt);
}
private void Authenticate()
{
_sdd.CheckAuthentication(ViewFunctionId);
}
private string GetCountry()
{
return GetStatic.ReadQueryString("country", "");
}
private void LoadDdl()
{
// _sdd.SetDDL3(ref country, "EXEC proc_dropDownListsInboundApi @flag = 'a-countrySend'", "countryId", "countryName", "", "All");
_sdd.SetDDL(ref country, "EXEC proc_dropDownListsInboundApi @flag='a-countrySend'", "countryId", "countryName", "", "All");
var sql = "EXEC proc_dropDownLists @flag = 'a-countryPay'";
_sdd.SetDDL(ref rCountry, sql, "countryName", "countryName", "", "Select");
}
protected void country_SelectedIndexChanged(object sender, EventArgs e)
{
LoadSendingAgent();
// Your event handling code here
}
protected void agent_SelectedIndexChanged(object sender, EventArgs e)
{
// Your event handling code here
if (!string.IsNullOrEmpty(agent.Text))
{
var sql = "EXEC proc_dropDownListsInboundApi @flag = 'branch', @agentId=" + _sdd.FilterString(agent.Text) + " , @user=" + _sdd.FilterString(GetStatic.GetUser());
_sdd.SetDDL(ref branch, sql, "agentId", "agentName", "", "All");
}
else
{
branch.Items.Clear();
}
}
private void LoadSendingAgent()
{
if (!string.IsNullOrEmpty(country.Text))
_sdd.SetDDL(ref agent, "EXEC proc_dropDownListsInboundApi @flag = 'agentSend',@param=" + _sdd.FilterString(country.Text) + "", "agentId", "agentName", "", "All");
}
private void LoadApproveGrid(string sCountry)
{
bool allowApprove = _sdd.HasRight(ApproveSingleFunctionId);
bool allowMultiple = false/* _sdd.HasRight(ApproveMultipleFunctionId)*/;
bool allowReject = _sdd.HasRight(RejectFuntionId);
bool allowModify = _sdd.HasRight(ModifyFunctionId);
if (!string.IsNullOrEmpty(sCountry))
{
if (sCountry.ToLower() == "All")
{
// Clear the selection and load data for all countries
country.ClearSelection();
}
else
{
// Set the selected country
country.SelectedItem.Text = sCountry;
}
// LoadSendingAgent();
}
//if (country.SelectedItem.Text == "" || country.SelectedItem.Text == "Select")
//{
// //country.SelectedItem.Text = country.SelectedItem.Text;
// country.SelectedItem.Text = "All";
//}
var ds = at.GetHoldedTXNListAdmin(GetStatic.GetUser(), branch.Text, tranNo.Text, rCountry.Text, sender.Text, receiver.Text
, amt.Text, GetStatic.GetBranch(), GetStatic.GetUserType()
, "s-admin", txnDate.Text, user.Text, ControlNo.Text, ControlNo1.Text, "I", country.SelectedItem.Text, agent.Text, branch.Text);
var dt = ds.Tables[0];
var sb = new StringBuilder();
var sbHead = new StringBuilder();
var colspanCount = 0;
int cols = dt.Columns.Count;
int cnt = 0;
sbHead.Append("<table class = 'table table-responsive table-striped table-bordered' >");
if (dt.Rows.Count > 0)
{
sb.Append("<tr>");
if (allowMultiple)
{
colspanCount++;
sb.Append("<th>");
if (dt.Rows.Count > 0)
sb.Append("<input type = 'checkbox' id = 'tgcb' onclick = 'ToggleCheckboxes(this,false);' />");
sb.Append("</th>");
}
sb.Append("<th>Tran Id</th>");
sb.Append("<th>PIN No.</th>");
sb.Append("<th>Partner Id</th>");
sb.Append("<th>Sending Branch</th>");
//sb.Append("<th>Txn Channel</th>");
sb.Append("<th>Country</th>");
sb.Append("<th>Sender</th>");
sb.Append("<th>Receiver</th>");
sb.Append("<th>Payout Amt</th>");
sb.Append("<th>Coll Amt</th>");
sb.Append("<th>S Charge</th>");
sb.Append("<th>Payment Method</th>");
//sb.Append("<th>Payment Option</th>");
//sb.Append("<th>Voucher No</th>");
sb.Append("<th nowrap='nowrap'>Tran Date</th>");
sb.Append("<th>User</th>");
if (allowApprove)
{
colspanCount++;
sb.Append("<th></th>");
sb.Append("<th></th>");
}
if (allowApprove)
{
colspanCount++;
sb.Append("<th></th>");
}
sb.Append("</tr>");
foreach (DataRow dr in dt.Rows)
{
cnt = cnt + 1;
sb.AppendLine(cnt % 2 == 1
? "<tr class=\"oddbg\" onMouseOver=\"this.className='GridOddRowOver'\" onMouseOut=\"this.className='oddbg'\" >"
: "<tr class=\"evenbg\" onMouseOver=\"this.className='GridEvenRowOver'\" onMouseOut=\"this.className='evenbg'\">");
if (allowMultiple)
sb.Append("<td><input onclick = 'CallBackGrid(this,false);' type='checkbox' name='rowId' value=\"" + dr["id"].ToString() + "\"></td>");
sb.Append("<td>" + dr["id"].ToString() + "</td>");
sb.Append("<td>" + dr["controlNo"].ToString() + "</td>");
sb.Append("<td>" + dr["controlNo2"].ToString() + "</td>");
sb.Append("<td>" + dr["BranchName"].ToString() + "</td>");
//sb.Append("<td>" + dr["tranType"].ToString() + "</td>");
sb.Append("<td>" + dr["country"].ToString() + "</td>");
sb.Append("<td>" + dr["sender"].ToString() + "</td>");
sb.Append("<td>" + dr["receiver"].ToString() + "</td>");
sb.Append("<td style=\"font-weight: bold; font-style: italic; text-align: right;\">");
sb.Append(GetStatic.FormatData(dr["pAmt"].ToString(), "M"));
sb.Append("<td style=\"font-weight: bold; font-style: italic; text-align: right;\">");
sb.Append(GetStatic.FormatData(dr["amt"].ToString(), "M"));
sb.Append("<td style=\"font-weight: bold; font-style: italic; text-align: right;\">");
sb.Append(GetStatic.FormatData(dr["serviceCharge"].ToString(), "M"));
//sb.Append(GetStatic.FormatData(dr["serviceCharge"].ToString(), "M"));
sb.Append("<td>" + dr["collMode"].ToString() + "</td>");
//sb.Append("<td>" + dr["depositType"].ToString() + "</td>");
//sb.Append("<td>" + dr["voucherNo"].ToString() + "</td>");
sb.Append("<td>" + GetStatic.FormatData(dr["txnDate"].ToString(), "D") + "</td>");
sb.Append("<td>" + dr["txncreatedBy"].ToString() + "</td>");
//if (allowApprove)
// sb.Append("<td><img style='cursor:pointer' title = 'View Details' alt = 'View Details' src = '" + GetStatic.GetUrlRoot() + "/images/view-detail-icon.png' onclick = 'ViewDetails(" + dr["id"].ToString() + ");' /></td>");
//if (allowApprove && dr["collMode"].ToString() == "Bank Deposit")
// sb.Append("<td><img style='cursor:pointer' title = 'Approve Deposit Mapping' alt = 'View Mapping' src = '" + GetStatic.GetUrlRoot() + "/images/view-changes.jpg' onclick = 'ViewMapping(" + dr["id"].ToString() + ");' /></td>");
//else
// sb.Append("<td>&nbsp;</td>");
//if (allowModify)
// sb.Append("<td><img style='cursor:pointer' title = 'Modify Transaction' alt = 'Modify Transaction' src = '" + GetStatic.GetUrlRoot() + "/images/edit.gif' onclick = 'Modify(" + dr["id"].ToString() + ");' /></td>");
if (allowApprove || allowReject)
{
sb.Append("<td nowrap = \"nowrap\">");
//var tb = Misc.MakeNumericTextbox("amt_" + dr["id"].ToString(), "amt_" + dr["id"].ToString(), "", "style='width:60px ! important'", "CheckAmount(" + dr["id"].ToString() + ", " + dr["amt"].ToString() + ");");
//sb.Append(tb);
if (allowApprove)
sb.Append("&nbsp;<input type = 'button' class='btn btn-primary m-t-25' onclick = \"ViewDetails(" + dr["id"].ToString() + ");\" value = 'Approve' id = 'btn_" + dr["id"].ToString() + "' />");
if (allowReject)
sb.Append("&nbsp;<input type = 'button' class='btn btn-primary m-t-25' onclick = \"Reject(" + dr["id"].ToString() + ");\" value = 'Reject' id = 'btn_r_" + dr["id"].ToString() + "' />");
sb.Append("</td>");
}
sb.Append("</tr>");
}
btnApproveAll.Visible = allowMultiple;
}
else
{
btnApproveAll.Visible = false;
}
sbHead.Append("<tr><td colspan='" + cols + "' id='appCnt' nowrap='nowrap'>");
sbHead.Append("<b>" + dt.Rows.Count.ToString() + " Transaction(s) found : <b>Approve Transaction List</b> </b></td>");
sbHead.Append("</tr>");
sbHead.Append(sb.ToString());
sbHead.Append("</table>");
rptGrid.InnerHtml = sbHead.ToString();
approveList.Visible = true;
selfTxn.Visible = false;
if (dt.Rows.Count == 0)
{
_sl.ManageInvalidControlNoAttempt(Page, GetStatic.GetUser(), "N");
return;
}
GetStatic.ResizeFrame(Page);
}
protected void btnSearch_Click(object sender, EventArgs e)
{
LoadApproveGrid("");
}
protected void btnApproveAll_Click(object sender, EventArgs e)
{
var dr = ApproveAllTxn();
GetStatic.PrintMessage(Page, dr);
if (dr.ErrorCode.Equals("0"))
{
LoadApproveGrid("");
LoadHoldSummary();
}
}
private DbResult ApproveAllTxn()
{
var idList1 = GetStatic.ReadFormData("rowId", "");
if (string.IsNullOrWhiteSpace(idList1))
{
var dr = new DbResult();
dr.SetError("1", "Please select one or more transaction approve", "");
return dr;
}
return at.ApproveAllHoldedTXN(GetStatic.GetUser(), idList1);
}
private void LoadHoldSummary()
{
var ds = at.GetHoldAdminTransactionSummary(GetStatic.GetUser(), GetStatic.GetBranch(), GetStatic.GetUserType());
if (ds == null || ds.Tables.Count == 0)
return;
var dt = ds.Tables[0];
var sbHead = new StringBuilder();
int count = 0;
if (dt.Rows.Count > 0)
{
sbHead.Append("<table class = 'table table-responsive table-bordered table-striped'>");
sbHead.Append("<tr>");
sbHead.Append("<th colspan='3'>HOLD Transaction Summary</th>");
sbHead.Append("</tr>");
sbHead.Append("<tr>");
sbHead.Append("<th>S.N.</th>");
sbHead.Append("<th>Sending Country</th>");
sbHead.Append("<th>Count</th>");
sbHead.Append("</tr>");
foreach (DataRow dr in dt.Rows)
{
sbHead.Append("<tr>");
sbHead.Append("<td>" + dr["sn"] + "</td>");
sbHead.Append("<td><a href='ApproveInwardRemitance.aspx?country=" + dr["country"] + "'>" + dr["country"] + "</a></td>");
sbHead.Append("<td align=\"center\">" + dr["txnCount"] + "</td>");
sbHead.Append("</tr>");
count = count + int.Parse(dr["txnCount"].ToString());
}
sbHead.Append("<tr><td colspan='2'><b>Total</b></td>");
sbHead.Append("<td align=\"center\"><b>" + count.ToString() + "</b></td>");
sbHead.Append("</tr>");
sbHead.Append("</table>");
txnSummary.InnerHtml = sbHead.ToString();
}
}
protected void btnApprove_Click(object sender, EventArgs e)
{
ApproveTxn();
}
private void ApproveTxn()
{
AntiForgery.Validate();
//ApproveTxnMain();
DbResult _dbRes = at.GetTxnApproveDataIMEPay(GetStatic.GetUser(), hddTranNo.Value);
if (_dbRes.ErrorCode != "0")
{
GetStatic.PrintMessage(Page, _dbRes);
return;
}
//else if (_dbRes.Extra == "True")//is realtime
if (_dbRes.Extra2 == "True")//is realtime
{
SendTransactionServices _tpSend = new SendTransactionServices();
string ProcessId = Guid.NewGuid().ToString().Replace("-", "") + ":" + _dbRes.Extra1 + ":releaseTxn";
var result = _tpSend.ReleaseTransaction(new TFReleaseTxnRequest()
{
TfPin = _dbRes.Id,
TxnId = _dbRes.Extra,
RequestBy = GetStatic.GetUser(),
ProviderId = _dbRes.Extra1,
ProcessId = ProcessId.Substring(ProcessId.Length - 40, 40)
});
_dbRes.ErrorCode = result.ResponseCode;
_dbRes.Msg = result.Msg;
_dbRes.Id = "";
if (_dbRes.ErrorCode != "0")
{
GetStatic.PrintMessage(Page, _dbRes);
return;
}
else
{
ApproveTxnMain();
}
}
else
{
ApproveTxnMain();
}
}
protected void ApproveTxnMain()
{
DbResult dbResult = at.ApproveHoldedTXN(GetStatic.GetUser(), hddTranNo.Value);
if (dbResult.ErrorCode == "0")
{
LoadApproveGrid("");
LoadHoldSummary();
GetStatic.PrintMessage(Page, dbResult);
return;
}
else if (dbResult.ErrorCode == "11")
{
string url = "../NewReceiptIRH.aspx?printType=&controlNo=" + dbResult.Id;
Response.Redirect(url);
}
else
{
GetStatic.PrintMessage(Page, dbResult);
return;
}
}
protected void btnReject_Click(object sender, EventArgs e)
{
RejectTxn();
}
private void RejectTxn()
{
var dr = at.RejectHoldedTXN(GetStatic.GetUser(), hddTranNo.Value);
GetStatic.PrintMessage(Page, dr);
if (dr.ErrorCode.Equals("0"))
{
LoadApproveGrid("");
LoadHoldSummary();
}
}
}
}

260
Swift.web/Remit/Transaction/ApproveTxn/ApproveInwardRemitance.aspx.designer.cs

@ -0,0 +1,260 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Swift.web.Remit.Transaction.ApproveTxn
{
public partial class ApproveInwardRemitance
{
/// <summary>
/// Head1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlHead Head1;
/// <summary>
/// Base2 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl Base2;
/// <summary>
/// form1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// ScriptManager1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.ScriptManager ScriptManager1;
/// <summary>
/// country control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.DropDownList country;
/// <summary>
/// agent control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.DropDownList agent;
/// <summary>
/// branch control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.DropDownList branch;
/// <summary>
/// tranNo control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox tranNo;
/// <summary>
/// ControlNo control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox ControlNo;
/// <summary>
/// ControlNo1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox ControlNo1;
/// <summary>
/// rCountry control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.DropDownList rCountry;
/// <summary>
/// sender control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox sender;
/// <summary>
/// receiver control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox receiver;
/// <summary>
/// amt control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox amt;
/// <summary>
/// txnDate control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox txnDate;
/// <summary>
/// user control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::Swift.web.Component.AutoComplete.SwiftTextBox user;
/// <summary>
/// btnSearch control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Button btnSearch;
/// <summary>
/// antiForgery control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl antiForgery;
/// <summary>
/// approveList control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl approveList;
/// <summary>
/// rptGrid control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl rptGrid;
/// <summary>
/// btnApproveAll control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Button btnApproveAll;
/// <summary>
/// selfTxn control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl selfTxn;
/// <summary>
/// btnApprove control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Button btnApprove;
/// <summary>
/// btnReject control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Button btnReject;
/// <summary>
/// hddTranNo control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.HiddenField hddTranNo;
/// <summary>
/// hdntabType control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.HiddenField hdntabType;
/// <summary>
/// txnSummary control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl txnSummary;
}
}

2
Swift.web/Remit/Transaction/PromotionalCampaign/Manage.aspx

@ -22,7 +22,7 @@
$(document).ready(function () {
//CalTillToday("#grid_list_fromDate");
//CalTillToday("#grid_list_toDate");
ShowCalFromToUpToToday("#startDate", "#endDate");
ShowCalendar("#startDate", "#endDate");
$('#startDate').mask('0000-00-00');
$('#endDate').mask('0000-00-00');
});

28
Swift.web/Remit/Transaction/Reports/TransactionNew/Mange.aspx

@ -40,8 +40,14 @@
country = GetElement("<% = ddlPCountry.ClientID%>").options[GetElement("<% = ddlPCountry.ClientID%>").selectedIndex].text;
}
var agent = GetValue("<% =payoutPartner.ClientID %>");
//var sCountry = GetValue("<% =ddlSCountry.ClientID %>");
var sCountry = "";
sCountry = GetValue("<% =ddlSCountry.ClientID %>");
if (sCountry != "") {
sCountry = GetElement("<% = ddlSCountry.ClientID%>").options[GetElement("<% = ddlSCountry.ClientID%>").selectedIndex].text;
}
var depositType = GetValue("<% =depositType.ClientID %>");
var remitTYpe = GetValue("<% =remitTYpe.ClientID %>");
var orderBy = GetValue("<% =orderBy.ClientID %>");
var status = GetValue("<% =status.ClientID %>");
var paymentType = GetValue("<% =paymentType.ClientID %>");
@ -66,8 +72,9 @@
//var url = "../../../../AgentNew/Reports/Reports.aspx?reportName=txnReport&pCountry=" + country +
//var url = "../Reports.aspx?reportName=40111600&pCountry=" + country +
"&pAgent=" + agent +
//"&sBranch=" + sBranch +
"&sCountry=" + sCountry +
"&depositType=" + depositType +
"&remitTYpe=" + remitTYpe +
"&searchBy=" + searchBy +
"&searchByValue=" + searchByValue +
"&orderBy=" + orderBy +
@ -175,6 +182,23 @@
<div class="col-md-9 form-group">
<asp:DropDownList runat="server" ID="ddlPCountry" CssClass="form-control">
</asp:DropDownList>
</div>
<div class="col-md-3 form-group">
<label>Sending Country:</label>
</div>
<div class="col-md-9 form-group">
<asp:DropDownList runat="server" ID="ddlSCountry" CssClass="form-control">
</asp:DropDownList>
</div>
<div class="col-md-3 form-group">
<label>Remittance Type:</label>
</div>
<div class="col-md-9 form-group">
<asp:DropDownList runat="server" ID="remitTYpe" CssClass="form-control">
<asp:ListItem Value="">All</asp:ListItem>
<asp:ListItem Value="0">Out ward</asp:ListItem>
<asp:ListItem Value="IN">In Ward</asp:ListItem>
</asp:DropDownList>
</div>
<div class="col-md-3 form-group">
<label>Payout Partner:</label>

2
Swift.web/Remit/Transaction/Reports/TransactionNew/Mange.aspx.cs

@ -80,8 +80,10 @@ namespace Swift.web.Remit.Transaction.Reports.TransactionNew
private void PopulateDll()
{
sdd.SetDDL3(ref payoutPartner, "EXEC proc_dropDownLists @flag='partner-list'", "agentId", "agentName", "", "All");
//sdd.SetDDL3(ref sendingPartner, "EXEC proc_dropDownLists @flag='tranType'", "id", "srouteId", "", "All");
sl.SetDDL(ref depositType, "EXEC proc_online_dropDownList @flag='paymentMode',@user='" + GetStatic.GetUser() + "'", "detailTitle", "detailTitle", "", "All");
sl.SetDDL(ref ddlPCountry, "EXEC proc_dropDownLists @flag='pCountry'", "countryId", "countryName", "", "All");
sl.SetDDL(ref ddlSCountry, "EXEC proc_dropDownLists @flag='sCountry'", "countryId", "countryName", "", "All");
sl.SetDDL(ref paymentType, "EXEC proc_online_dropDownList @flag='paymentType'", "detailDesc", "detailTitle", "", "All");
sl.SetDDL(ref transactionFrom, "EXEC proc_online_dropDownList @flag='transactionFrom'", "detailDesc", "detailTitle", "", "All");
sl.SetDDL(ref ddlPromotionCode, "EXEC proc_online_dropDownList @flag='promoCode'", "detailTitle", "detailTitle", "", "All");

18
Swift.web/Remit/Transaction/Reports/TransactionNew/Mange.aspx.designer.cs

@ -86,6 +86,24 @@ namespace Swift.web.Remit.Transaction.Reports.TransactionNew
/// </remarks>
protected global::System.Web.UI.WebControls.DropDownList ddlPCountry;
/// <summary>
/// ddlSCountry control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.DropDownList ddlSCountry;
/// <summary>
/// remitTYpe control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.DropDownList remitTYpe;
/// <summary>
/// payoutPartner control.
/// </summary>

15
Swift.web/Remit/Transaction/Reports/TransactionNew/TranReport.aspx

@ -47,6 +47,21 @@
padding-left: 26px;
padding-top: 10px;
}
table {
border-collapse: collapse;
width: 100%;
}
#repTable #fixedTH th {
background-color: white;
color: black;
position: sticky;
z-index: 100;
top: 0;
border: 1px solid black;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
</style>
<%
if (GetStatic.ReadQueryString("mode", "") == "")

9
Swift.web/Remit/Transaction/Reports/TransactionNew/TranReport.aspx.cs

@ -40,8 +40,9 @@ namespace Swift.web.Remit.Transaction.Reports.TransactionNew
string pageNumber = GetStatic.ReadQueryString("pageNumber", "1");
var country = GetStatic.ReadQueryString("pCountry", "");
var pAgent = GetStatic.ReadQueryString("pAgent", "");
//var flag = GetStatic.ReadQueryString("flag", "");
var sCountry = GetStatic.ReadQueryString("sCountry", "");
var depositType = GetStatic.ReadQueryString("depositType", "");
var remitTYpe = GetStatic.ReadQueryString("remitTYpe", "");
var searchBy = GetStatic.ReadQueryString("searchBy", "");
var searchByValue = GetStatic.ReadQueryString("searchByValue", "");
var orderBy = GetStatic.ReadQueryString("orderBy", "");
@ -57,7 +58,7 @@ namespace Swift.web.Remit.Transaction.Reports.TransactionNew
var mode = GetStatic.ReadQueryString("mode", "");
var postCode = GetStatic.ReadQueryString("postCode", "");
var promoCode = GetStatic.ReadQueryString("promoCode", "");
var dt = _obj.TxnReport(GetStatic.GetUser(), country, pAgent, depositType, orderBy, status, paymentType, dateField, from, to, transType, displayTranNo, searchBy, searchByValue, pageNumber, GetStatic.GetReportPagesize(), rptType, tFrom, postCode, promoCode);
var dt = _obj.TxnReport(GetStatic.GetUser(), country, pAgent, sCountry, depositType, remitTYpe, orderBy, status, paymentType, dateField, from, to, transType, displayTranNo, searchBy, searchByValue, pageNumber, GetStatic.GetReportPagesize(), rptType, tFrom, postCode, promoCode);
if (dt == null)
return;
@ -113,8 +114,9 @@ namespace Swift.web.Remit.Transaction.Reports.TransactionNew
StringBuilder strTable = new StringBuilder();
strTable.Append("<h3><b>Payout Partner: " + payoutPartner + "</b></h3>");
strTable.Append("<table class='table table-responsive table-bordered'>");
strTable.Append("<table id='repTable' class='table table-responsive table-bordered'>");
strTable.Append("<thead id='fixedTH'>");
strTable.Append("<tr>");
strTable.Append("<th>SN</th>");
@ -123,6 +125,7 @@ namespace Swift.web.Remit.Transaction.Reports.TransactionNew
strTable.Append("<th><div align=\"left\">" + col.ColumnName + "</div></th>");
}
strTable.Append("</tr>");
strTable.Append("</thead>");
int sn = 1;

28
Swift.web/Remit/UserControl/UcTransaction.ascx

@ -387,6 +387,22 @@
</table>
</td>
<td class="row">
<table class="table table-bordered table-striped" id="tblVerifiedLog" runat="server" visible="false">
<tr>
<td>Verified By:</td>
<td>
<asp:Label ID="verifiedBy" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td>Verified Date:</td>
<td>
<asp:Label ID="verifiedDate" runat="server"></asp:Label>
</td>
</tr>
</table>
</td>
<td class="row">
<table class="table table-bordered table-striped table-responsive" id="tblCreatedFrom" runat="server" visible="true">
<tr>
@ -867,6 +883,18 @@
<asp:Label ID="branchName" runat="server"></asp:Label>
</td>
</tr>
<tr id="trPostdate" runat="server">
<td>Posted Date: </td>
<td class="text">
<asp:Label ID="postDate" runat="server"></asp:Label>
</td>
</tr>
<tr id="trReleaseDate" runat="server">
<td>Release Date: </td>
<td class="text">
<asp:Label ID="releaseDate" runat="server"></asp:Label>
</td>
</tr>
</div>
</table>
</div>

5
Swift.web/Remit/UserControl/UcTransaction.ascx.cs

@ -348,6 +348,8 @@ namespace Swift.web.Remit.UserControl
accountNo.Text = tRow["accountNo"].ToString();
bankName.Text = tRow["BankName"].ToString();
branchName.Text = tRow["BranchName"].ToString();
postDate.Text = tRow["postDate"].ToString();
releaseDate.Text = tRow["releaseDate"].ToString();
pBranchName.Text = tRow["pBranchName"].ToString();
}
}
@ -442,12 +444,15 @@ namespace Swift.web.Remit.UserControl
createdFrom.Text = tRow["createdFrom"].ToString();
hddPayTokenId.Value = tRow["payTokenId"].ToString();
introducer.Text = tRow["introducer"].ToString();
verifiedBy.Text = tRow["verifiedBy"].ToString();
verifiedDate.Text = tRow["verifiedDate"].ToString();
tblCreatedLog.Visible = createdBy.Text != "";
tblApprovedLog.Visible = approvedBy.Text != "";
tblPaidLog.Visible = paidBy.Text != "";
tblCancelRequestedLog.Visible = cancelRequestedBy.Text != "";
tblCancelApprovedLog.Visible = cancelApprovedBy.Text != "";
tblVerifiedLog.Visible = verifiedBy.Text != "";
trNameAsPerBank.Visible = false;
if (!string.IsNullOrEmpty(tRow["receiverNameAlt"].ToString()))

63
Swift.web/Remit/UserControl/UcTransaction.ascx.designer.cs

@ -221,6 +221,33 @@ namespace Swift.web.Remit.UserControl
/// </remarks>
protected global::System.Web.UI.WebControls.Label cancelApprovedDate;
/// <summary>
/// tblVerifiedLog control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlTable tblVerifiedLog;
/// <summary>
/// verifiedBy control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label verifiedBy;
/// <summary>
/// verifiedDate control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label verifiedDate;
/// <summary>
/// tblCreatedFrom control.
/// </summary>
@ -896,6 +923,42 @@ namespace Swift.web.Remit.UserControl
/// </remarks>
protected global::System.Web.UI.WebControls.Label branchName;
/// <summary>
/// trPostdate control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlTableRow trPostdate;
/// <summary>
/// postDate control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label postDate;
/// <summary>
/// trReleaseDate control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlTableRow trReleaseDate;
/// <summary>
/// releaseDate control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label releaseDate;
/// <summary>
/// voucherDetailDiv control.
/// </summary>

32
Swift.web/Swift.web.csproj

@ -1383,11 +1383,15 @@
<Content Include="Remit\AgeingReport\AgeingReportNew\SearchReceivableAgeingNew.aspx" />
<Content Include="Remit\AgeingReport\OutstandingReport.aspx" />
<Content Include="Remit\AgeingReport\SearchOutstanding.aspx" />
<Content Include="Remit\ThirdPartyTXN\InboundApiLog\InboundLog.aspx" />
<Content Include="Remit\ThirdPartyTXN\InboundApiLog\InboundLogList.aspx" />
<Content Include="Remit\ThirdPartyTXN\MobileApiLog\MobileApiLogList.aspx" />
<Content Include="Remit\TPSetup\BankAndBranchSetup\AddBank.aspx" />
<Content Include="Remit\TPSetup\BankAndBranchSetup\AddBankMapping.aspx" />
<Content Include="Remit\TPSetup\BankAndBranchSetup\AddBranch.aspx" />
<Content Include="Remit\TPSetup\BankAndBranchSetup\ListBranch.aspx" />
<Content Include="Remit\TPSetup\BankAndBranchSetup\NewBankList.aspx" />
<Content Include="Remit\Transaction\ApproveTxn\ApproveInwardRemitance.aspx" />
<Content Include="Remit\Transaction\ApproveTxn\holdTxnListMobile.aspx" />
<Content Include="Remit\Transaction\CancelPartnerTxn\CancelPartnerTxn.aspx" />
<Content Include="Remit\Transaction\ModifyRequest\Search.aspx" />
@ -8108,6 +8112,20 @@
<Compile Include="Remit\ThirdPartyTXN\APILog\Manage.aspx.designer.cs">
<DependentUpon>Manage.aspx</DependentUpon>
</Compile>
<Compile Include="Remit\ThirdPartyTXN\InboundApiLog\InboundLog.aspx.cs">
<DependentUpon>InboundLog.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Remit\ThirdPartyTXN\InboundApiLog\InboundLog.aspx.designer.cs">
<DependentUpon>InboundLog.aspx</DependentUpon>
</Compile>
<Compile Include="Remit\ThirdPartyTXN\InboundApiLog\InboundLogList.aspx.cs">
<DependentUpon>InboundLogList.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Remit\ThirdPartyTXN\InboundApiLog\InboundLogList.aspx.designer.cs">
<DependentUpon>InboundLogList.aspx</DependentUpon>
</Compile>
<Compile Include="Remit\ThirdPartyTXN\KFTCLog\List.aspx.cs">
<DependentUpon>List.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@ -8122,6 +8140,13 @@
<Compile Include="Remit\ThirdPartyTXN\KFTCLog\Manage.aspx.designer.cs">
<DependentUpon>Manage.aspx</DependentUpon>
</Compile>
<Compile Include="Remit\ThirdPartyTXN\MobileApiLog\MobileApiLogList.aspx.cs">
<DependentUpon>MobileApiLogList.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Remit\ThirdPartyTXN\MobileApiLog\MobileApiLogList.aspx.designer.cs">
<DependentUpon>MobileApiLogList.aspx</DependentUpon>
</Compile>
<Compile Include="Remit\ThirdPartyTXN\Reconcile\Manage.aspx.cs">
<DependentUpon>Manage.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@ -8276,6 +8301,13 @@
<Compile Include="Remit\Transaction\Agent\Send\Domestic\SendV2.aspx.designer.cs">
<DependentUpon>SendV2.aspx</DependentUpon>
</Compile>
<Compile Include="Remit\Transaction\ApproveTxn\ApproveInwardRemitance.aspx.cs">
<DependentUpon>ApproveInwardRemitance.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Remit\Transaction\ApproveTxn\ApproveInwardRemitance.aspx.designer.cs">
<DependentUpon>ApproveInwardRemitance.aspx</DependentUpon>
</Compile>
<Compile Include="Remit\Transaction\ApproveTxn\holdOnlineTxnList.aspx.cs">
<DependentUpon>holdOnlineTxnList.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>

51
Swift.web/js/swift_calendar.js

@ -367,6 +367,56 @@ function ShowCalFromToUpToToday(calFrom, calTo, nom) {
});
}
function ShowCalendar(calFrom, calTo, nom) {
if (nom === null || nom === "" || nom === undefined) nom = 1;
$(function () {
if (calFrom !== undefined && calFrom.length > 0) {
$(calFrom).datepicker({
//defaultDate: "+1w",
changeMonth: true,
changeYear: true,
numberOfMonths: 1,
showOn: "both",
dateFormat: dateFormatType,
//buttonImage: imgPath,
// buttonImageOnly: true,
maxDate: "+0",
//minDate: "-2Y",
//onSelect: function (selectedDate) {
// alert('aaa');
// $(calTo).datepicker("option", "minDate", selectedDate);
//}
});
//var fromDateIdNameOnly = calFrom.split('#')[1];
//document.getElementById(fromDateIdNameOnly).setAttribute("onchange", "return DateValidation('" + fromDateIdNameOnly + "','t')");
}
if (calTo !== undefined && calTo.length > 0) {
$(calTo).datepicker({
//defaultDate: "+1w",
changeMonth: true,
changeYear: true,
numberOfMonths: nom,
showOn: "both",
//buttonImage: imgPath,
//buttonImageOnly: true,
dateFormat: dateFormatType,
maxDate: "+10Y",
//minDate: "-2Y",
//onSelect: function (selectedDate) {
// alert('dasd');
// $(calFrom).datepicker("option", "maxDate", selectedDate);
//}
});
//var toDateIdNameOnly = calFrom.split('#')[1];
//if (calTo !== undefined && calTo.length > 0) {
// document.getElementById(toDateIdNameOnly).removeAttribute("onchange");
// toDateIdNameOnly = calTo.split("#")[1];
// document.getElementById(toDateIdNameOnly).setAttribute("onchange", "return DateValidation('" + toDateIdNameOnly + "','t','" + toDateIdNameOnly + "')");
// document.getElementById(toDateIdNameOnly).setAttribute("onchange", "return DateValidation('" + toDateIdNameOnly + "','t','" + toDateIdNameOnly + "')");
//}
}
});
}
function ShowCalFromToUpToTodayForInput(calFrom, calTo, nom) {
if (nom === null || nom === "" || nom === undefined) nom = 1;
$(function () {
@ -393,6 +443,7 @@ function ShowCalFromToUpToTodayForInput(calFrom, calTo, nom) {
//// Input Date Validation
function DateValidation(id, typeVal, compareId, compareTypeVal) {
debugger
var firstDate = '';
var firstId = id;
var inputDate = document.getElementById(id).value;

3
Swift.web/ui/css/style.css

@ -639,7 +639,6 @@ p {
.nav-tabs > li > a {
display: block;
font-size: 11px;
font: Verdana;
text-decoration: none;
line-height: 1.3em;
padding: 10px 15px;
@ -649,6 +648,8 @@ p {
border-bottom: 1px solid #bbbbbb;
background-color: #444d58;
font-weight: bold;
top: 6px;
left: 1px;
}
.nav-tabs > li > a:focus, .nav > li > a:hover {

Loading…
Cancel
Save