Browse Source

Merge branch 'feature/Redmine-16525-Cosmetic_Changes' of http://202.166.220.79:3000/IME-LONDON/WEB_CORE into feature/Redmine-16525-Cosmetic_Changes

# Conflicts:
#	Swift.web/Library/GetStatic.cs
#	Swift.web/Swift.web.csproj
feature/Redmine-16525-Cosmetic_Changes
Leeza Baidar 2 months ago
parent
commit
62b6db393e
  1. 1
      Swift.web/Library/GetStatic.cs
  2. 4
      Swift.web/MobileRemit/Admin/Reports/CustomerRegistrationStatus.aspx.cs
  3. 638
      Swift.web/Remit/Transaction/VerifyMobileTransaction/VerifyDebitCardTxn.aspx
  4. 572
      Swift.web/Remit/Transaction/VerifyMobileTransaction/VerifyDebitCardTxn.aspx.cs
  5. 350
      Swift.web/Remit/Transaction/VerifyMobileTransaction/VerifyDebitCardTxn.aspx.designer.cs
  6. 5
      Swift.web/Swift.web.csproj
  7. 18
      Swift.web/SwiftSystem/UserManagement/AgentUserSetup/List.aspx.cs

1
Swift.web/Library/GetStatic.cs

@ -2666,7 +2666,6 @@ namespace Swift.web.Library
{
return MimeTypes.MimeTypeMap.GetExtension(contentType);
}
public static string GetCSVFileInXML(string path, string[] defaultHeaders, bool hasHeader = true)
{
var columnList = new ArrayList();

4
Swift.web/MobileRemit/Admin/Reports/CustomerRegistrationStatus.aspx.cs

@ -130,11 +130,13 @@ namespace Swift.web.MobileRemit.Admin.Reports
else if (customerDetails.Rows[0]["customerSource"].ToString() == "temp")
{
btnReset.Enabled = false;
btnMove.Enabled = true;
}
else
{
//btnUpdate.Enabled = true;
btnReset.Enabled = true;
btnMove.Enabled = false;
}
}
@ -285,7 +287,7 @@ namespace Swift.web.MobileRemit.Admin.Reports
}
else
{
GetStatic.AlertMessage(this.Page, "Customer KYC has been successfully cleared.");
GetStatic.AlertMessage(this.Page, "Customer has been successfully verified.");
}
}
}

638
Swift.web/Remit/Transaction/VerifyMobileTransaction/VerifyDebitCardTxn.aspx

@ -0,0 +1,638 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="VerifyDebitCardTxn.aspx.cs" Inherits="Swift.web.Remit.Transaction.VerifyMobileTransaction.VerifyDebitCardTxn" %>
<%@ 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" />
<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" />
<link href="../../../ui/js/select/css/select2.min.css" rel="stylesheet" />
<script src="/ui/js/jquery.min.js"></script>
<script src="/ui/js/jquery-ui.min.js" type="text/javascript"></script>
<script src="/ui/bootstrap/js/bootstrap.min.js" type="text/javascript"> </script>
<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 src="/js/swift_calendar.js" type="text/javascript"></script>
<script src="/js/swift_autocomplete.js"></script>
<script src="../../../ui/js/select/js/select2.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.mask/1.14.15/jquery.mask.min.js" type="text/javascript"></script>
<style>
.select2-container--default .select2-results>.select2-results__options{
max-height: 70px !important;
}
</style>
<script language="javascript" type="text/javascript">
function pageLoad() {
$('#collectCashModel').on('shown.bs.modal', function (e) {
$("#collectedByDDl").select2();
});
}
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 = "../ApproveTxn/Manage.aspx?id=" + id + "&requestfrom=v";
var ret = OpenDialog(url, 800, 900, 50, 50);
if (ret) {
GetElement("<% =btnSearch.ClientID %>").click();
}
}
function MapDeposit(id, customerId) {
GetDataInList(customerId);
}
function CollectCash(id, cAmt, referral) {
debugger;
$("#collectedByDDl").val('');
$("#collectAmountByStaff").val(cAmt);
$("#hddCashCollectId").val(id);
if (referral !== '' || referral !== null) {
$("#collectedByDDl").val(referral.split('|')[1]);
}
$("#collectCashModel").modal('show');
}
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 Reject(id) {
var url = "../ApproveTxn/Reject.aspx?id=" + id + "&requestFrom=mobile";
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");
ManageToggleCB("rowId");
}
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;
}
function GetDataInList(customerId) {
$("#UnmappedDepositMapping").html('');
$("#UnApprovedDepositMapping").html('');
var tranDate = $("#tranDate").val();
var particulars = $("#particulars").val();
$("#hddCustomerId").val(customerId);
var amount = $("#amount").val();
var dataToSend = { MethodName: 'getListData', customerId: customerId, particulars: particulars, tranDate: tranDate, amount: amount };
$.ajax({
type: "POST",
data: dataToSend,
async: true,
success: function (response) {
$("#myModal2").modal('show');
$("#UnmappedDepositMapping").html(response.split('[[<<>>]]')[0]);
$("#UnApprovedDepositMapping").html(response.split('[[<<>>]]')[1]);
ShowCalDefault("#tranDate");
},
fail: function () {
alert("Error from Deposit Mapping");
}
});
}
function ConfirmSave() {
var tranIds = [];
$.each($("input[name='chkDepositMapping']:checked"), function () {
tranIds.push($(this).val());
});
if (tranIds === '') {
alert('No data to save');
return false;
}
dataToSend = { MethodName: 'MapData', tranIds: tranIds, customerId: $("#hddCustomerId").val() };
if (confirm('Do you want to continue with save?')) {
$.post("", dataToSend, function (response) {
var data = jQuery.parseJSON(response);
if (data.ErrorCode == 0) {
alert(data.Msg);
$("#myModal2").modal('hide');
// CheckAvailableBalance($("input[name='chkCollMode']:checked").val());
$("#loadGrid").click();
} else {
alert(data.Msg);
}
});
}
return false;
}
function ConfirmSaveCashCollect(flag) {
var collectedBy = $("#collectedByDDl option:selected").text();
var collectedByValue = $("#collectedByDDl").val();
var collectedAmount = $("#collectAmountByStaff").val();
if (collectedByValue == null || collectedByValue == '') {
alert("Please select user who have collected cash!!");
return false;
}
if (collectedAmount == null || collectedAmount == '') {
alert("Please enter amount collected!!");
return false;
}
dataToSend = { MethodName: 'CollectCash', collectedBy: collectedByValue, collectedAmount: collectedAmount, tranId: $("#hddCashCollectId").val(), flag: flag, collectedByName: collectedBy };
if (confirm('Do you want to save cash collect?')) {
$.post("", dataToSend, function (response) {
var data = jQuery.parseJSON(response);
if (data.ErrorCode == 0) {
$("#collectCashModel").modal("hide");
$("#loadGrid").click();
} else {
alert(data.Msg);
}
});
}
return false;
}
function Verify(id, cAmt, cAmtByUser, controlNo, depositType) {
//if (collMode == "Cash Collect") {
// if (cAmt != cAmtByUser) {
// alert("Collected amount by user and actual amount is not equal!!!");
// return
// }
// //else {
// // alert("Do you want to verify cash collect?");
// //}
//}
//if (collMode == "BANK DEPOSIT") {
// if (cAmt > cAmtByUser) {
// alert("Bank Deposit amount cannot be less the actual amount!!!");
// return
// }
// //else {
// // alert("Do you want to verify bank deposit?");
// //}
//}
dataToSend = { MethodName: 'Verify', tranId: id, DepositType: depositType, controlNo: controlNo };
if (confirm('Do you want to verify the transaction?')) {
// if (confirm) {
$.post("", dataToSend, function (response) {
var data = jQuery.parseJSON(response);
if (data.ErrorCode == 0) {
$("#loadGrid").click();
} else {
alert(data.Msg);
}
});
}
return false;
}
function UnmapTxn() {
var tranIds = [];
$.each($("input[name='chkDepositMappingUnmap']:checked"), function () {
tranIds.push($(this).val());
});
if (tranIds === '') {
alert('No data to save');
return false;
}
dataToSend = { MethodName: 'UnMapData', tranIds: tranIds, customerId: $("#hddCustomerId").val() };
if (confirm('Do you want to continue with save?')) {
$.post("", dataToSend, function (response) {
var data = jQuery.parseJSON(response);
if (data.ErrorCode == 0) {
alert(data.Msg);
$("#myModal2").modal('hide');
$("#loadGrid").click();
} else {
alert(data.Msg);
}
});
}
return false;
}
</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')">Mobile </a></li>
<li><a href="#">Mobile Operations</a></li>
<li class="active"><a href="VerifyMobileTransaction.aspx">Verify Card Transaction From Mobile</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>Verify Card Transaction</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" id="tblForm">
<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>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">
<label>Email</label><br />
<asp:TextBox ID="txtEmail" 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 Verify" CssClass="btn btn-primary"
OnClick="btnSearch_Click" ValidationGroup="rpt" />
<input type="button" value="Clear Field" id="btnSclearField" class="btn btn-primary" onclick=" ClearFields(); " />
</div>
</div>
</div>
<div id="approveList" runat="server">
<div id="rptGrid" runat="server" enableviewstate="false"></div>
<br />
</div>
<div id="selfTxn" runat="server" class="col-sm-12"></div>
<br />
<asp:Button ID="btnReject" runat="server" CssClass='btn btn-primary m-t-25' OnClick="btnReject_Click" Style="display: none" />
<asp:HiddenField ID="hddSavedReferral" runat="server" />
<asp:HiddenField ID="hddSelectedRadio" runat="server" />
<asp:HiddenField ID="hddTranNo" runat="server" />
<asp:HiddenField ID="hdntabType" runat="server" />
<asp:HiddenField ID="hddCustomerId" runat="server" />
<asp:HiddenField ID="hddCashCollectId" runat="server" />
<asp:Button ID="loadGrid" runat="server" OnClick="loadGrid_Click" hidden />
<div>
<div id="txnSummary" runat="server" class="col-sm-12" enableviewstate="false"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="modal fade" id="myModal2" style="margin-top: 100px;" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-md" role="document">
<div class="modal-content">
<div class="modal-header" id="modelUserForSave1">
<center>
<h2 class="modal-title">Customer Deposit Mapping
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button></h2>
</center>
</div>
<div style="margin: 10px" role="tabpanel">
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#unMappedTab" aria-controls="uploadTab" role="tab" data-toggle="tab">Unmapped Deposit List</a>
</li>
<li role="presentation"><a href="#unApprovedTab" aria-controls="browseTab" role="tab" data-toggle="tab">Unapproved Deposit List</a>
</li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="unMappedTab">
<div class="row">
<div class="form-group col-md-4">
<label class="">Tran Date:</label>
<div class="form-inline">
<div class="input-group input-append date">
<asp:TextBox runat="server" ID="tranDate" onchange="return DateValidation('tranDate','i')" MaxLength="10" AutoComplete="off" placeholder="YYYY/MM/DD" CssClass="form-control datepicker date-field required"></asp:TextBox>
<div class="input-group-addon "><i class="fa fa-calendar"></i></div>
</div>
</div>
</div>
<div class="form-group col-md-4">
<label>Particulars</label>
<asp:TextBox ID="particulars" runat="server" CssClass="form-control"></asp:TextBox>
</div>
<div class="form-group col-md-4">
<label>Amount</label>
<asp:TextBox ID="amount" runat="server" CssClass="form-control"></asp:TextBox>
</div>
<div class="form-group col-md-12">
<input type="button" id="filterBtn" value="Filter" class="btn btn-primary" />
<input type="button" id="clearBtn" value="Clear" class="btn btn-primary" />
</div>
</div>
<div class="row form-group" style="max-height: 350px; overflow-y: scroll;">
<div class="col-md-12 table-responsive">
<table class="table table-responsive table-bordered">
<thead>
<tr>
<th width="5%"><i class="fa fa-check check"></i><i class="fa fa-times uncheck" style="display: none;"></i></th>
<th width="50%">Particulars</th>
<th width="15%">Deposit Date</th>
<th width="15%">Deposit Amount</th>
<th width="15%">Withdraw Amount</th>
</tr>
</thead>
<tbody id="UnmappedDepositMapping" runat="server">
<tr>
<td colspan="5" align="center">No Data To Display </td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="row">
<div class="form-group col-md-12">
<asp:Button ID="btnConfirmSave" runat="server" OnClientClick="return ConfirmSave();" CssClass="btn btn-primary" Text="Confirm Save" />
</div>
</div>
</div>
<div role="tabpanel" class="tab-pane" id="unApprovedTab">
<div class="row form-group">
<div class="col-md-12 table-responsive">
<table class="table table-responsive table-bordered">
<thead>
<tr>
<th width="5%"><i class="fa fa-check check"></i><i class="fa fa-times uncheck" style="display: none;"></i></th>
<th width="50%">Particulars</th>
<th width="15%">Deposit Date</th>
<th width="15%">Deposit Amount</th>
<th width="15%">Withdraw Amount</th>
</tr>
</thead>
<tbody id="UnApprovedDepositMapping" runat="server">
<tr>
<td colspan="5" align="center">No Data To Display </td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="row form-group">
<div class="form-group col-md-12">
<input type="button" id="btnRelease" onclick="return UnmapTxn();" class="btn btn-primary" value="Unmap Data" />
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="modal fade" id="collectCashModel" style="margin-top: 100px; overflow: hidden;" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog modal-md" role="document">
<div class="modal-content">
<div class="modal-header" id="modelUserForSave2">
<center>
<h2 class="modal-title">Cash Collect
<button type="button" class="close" data-dismiss="modal" aria-label="Close" onclick="return Cancel();"><span aria-hidden="true">&times;</span></button></h2>
</center>
</div>
<div style="margin: 10px" role="tabpanel">
<!-- Tab panes -->
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="cashCollectTab">
<div class="row">
<div class="col-md-6 form-group">
<div class="row">
<label>
Collected By
</label>
</div>
<div class="row">
<%--<uc1:SwiftTextBox ID="introducerTxt" runat="server" Category="remit-referralCodeNew" CssClass="form-control required" Title="Blank for All" />--%>
<asp:DropDownList ID="collectedByDDl" runat="server" CssClass="form-control"></asp:DropDownList>
</div>
</div>
<div class="col-md-6 form-group">
<label class="">Collect Amout:</label>
<div class="form-inline">
<div class="input-group input-append date">
<asp:TextBox ID="collectAmountByStaff" runat="server" CssClass="form-control"></asp:TextBox>
</div>
</div>
</div>
</div>
<div class="row">
<div class="form-group col-md-12">
<input type="button" class="btn btn-primary" onclick="return ConfirmSaveCashCollect('i');" value="Save" />
<input type="button" class="btn btn-danger" onclick="return Cancel();" value="Cancel" />
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
<script>
$(document).ready(function () {
$('input[type=radio]').change(function () {
var sel = this.value.split('_');
$('#hddSavedReferral').val(sel[3]);
$('#hddSelectedRadio').val(this.value);
if (sel[1] === 'cash') {
CollectCash(sel[0], sel[2], sel[3]);
}
else if (sel[1] === 'bank') {
SaveBankDeposit(sel[0]);
}
});
});
function Cancel() {
$("#collectCashModel").modal('hide');
var sel = $('#hddSelectedRadio').val().split('_');
var referral = $('#hddSavedReferral').val();
if (referral === '' || referral === null) {
$('#' + sel[0] + '_bank').prop('checked', true);
}
else {
return false;
}
}
function SaveBankDeposit(id) {
if (id == null || id == '') {
alert("Invalid pin selected!");
return false;
}
dataToSend = { MethodName: 'BankDeposit', tranId: id };
if (confirm('Are you sure, you want to update as bank?')) {
$.post("", dataToSend, function (response) {
var data = jQuery.parseJSON(response);
if (data.ErrorCode == 0) {
$("#loadGrid").click();
} else {
alert(data.Msg);
}
});
}
else {
$('#' + id + '_cash').prop('checked', true);
}
}
</script>
</body>
</html>

572
Swift.web/Remit/Transaction/VerifyMobileTransaction/VerifyDebitCardTxn.aspx.cs

@ -0,0 +1,572 @@
using Newtonsoft.Json;
using Swift.API.Common;
using Swift.API.Common.Enum;
using Swift.API.TPAPIs;
using Swift.DAL.BL.Remit.Transaction;
using Swift.DAL.Remittance.CustomerDeposits;
using Swift.DAL.SwiftDAL;
using Swift.web.Library;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Swift.web.Remit.Transaction.VerifyMobileTransaction
{
public partial class VerifyDebitCardTxn : System.Web.UI.Page
{
private const string ViewFunctionId = "30470000";
private const string VerifyFunctionId = "30470010";
private const string MapDepositFunctionId = "30470020";
private const string RejectFuntionId = "30470030";
private readonly StaticDataDdl _sdd = new StaticDataDdl();
private ApproveTransactionDao at = new ApproveTransactionDao();
private readonly CustomerDepositDao _dao = new CustomerDepositDao();
protected void Page_Load(object sender, EventArgs e)
{
Authenticate();
if (!IsPostBack)
{
LoadDdl();
LoadSendingAgent();
LoadApproveGrid("");
MakeNumericTextBox();
if (!string.IsNullOrEmpty(GetCountry()))
LoadApproveGrid(GetCountry());
LoadHoldSummary();
string reqMethod = Request.Form["MethodName"];
switch (reqMethod)
{
case "getListData":
PopulateData();
break;
case "MapData":
ProceedMapData();
break;
case "UnMapData":
UnMapData();
break;
case "CollectCash":
CollectCash();
break;
case "Verify":
Verify();
break;
case "BankDeposit":
BankDeposit();
break;
case "getReferral":
GetReferral();
break;
}
}
GetStatic.ResizeFrame(Page);
}
private void BankDeposit()
{
var id = Request.Form["tranId"];
DbResult _res = new DbResult();
if (!string.IsNullOrEmpty(id))
{
_res = _dao.UpdateAsBank(GetStatic.GetUser(), id);
}
else
{
GetStatic.AlertMessage(this, "Please choose at least on record!");
}
Response.ContentType = "text/plain";
Response.Write(JsonConvert.SerializeObject(_res));
Response.End();
}
private string GetCountry()
{
return GetStatic.ReadQueryString("country", "");
}
private void GetReferral()
{
_sdd.SetDDL(ref collectedByDDl, "EXEC proc_dropDownLists @flag = 'referral'", "REFERRAL_CODE", "REFERRAL_NAME", "", "--Select--");
}
private void LoadDdl()
{
_sdd.SetDDL(ref country, "EXEC proc_dropDownLists @flag = 'a-countrySend'", "countryId", "countryName", "", "");
var sql = "EXEC proc_dropDownLists @flag = 'a-countryPay'";
_sdd.SetDDL(ref rCountry, sql, "countryName", "countryName", "", "Select");
_sdd.SetDDL(ref collectedByDDl, "EXEC proc_dropDownLists @flag = 'referralnew'", "REFERRAL_CODE", "REFERRAL_NAME", "", "--Select--");
}
private void MakeNumericTextBox()
{
Misc.MakeNumericTextbox(ref amt);
}
protected void LoadApproveGrid(string sCountry = "")
{
bool allowVeirfy = _sdd.HasRight(VerifyFunctionId);
bool allowMultiple = false/* _sdd.HasRight(ApproveMultipleFunctionId)*/;
bool allowReject = _sdd.HasRight(RejectFuntionId);
if (sCountry != "")
{
country.SelectedItem.Text = sCountry;
// LoadSendingAgent();
}
if (country.SelectedItem.Text == "" || country.SelectedItem.Text == "Select")
{
country.SelectedItem.Text = "UNITED KINGDOM";
}
var ds = at.GetHoldedTXNListAdminMobile(GetStatic.GetUser(), branch.Text, tranNo.Text, rCountry.Text, sender.Text, receiver.Text
, amt.Text, GetStatic.GetBranch(), GetStatic.GetUserType()
, "s-unverified-card-txn", txnDate.Text, user.Text, ControlNo.Text, "I", country.SelectedItem.Text, agent.Text, branch.Text, txtEmail.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>");
sb.Append("<th>TranId </th>");
sb.Append("<th>Control No.</th>");
sb.Append("<th>Txn Channel</th>");
sb.Append("<th>Sender</th>");
sb.Append("<th>MembershipId</th>");
sb.Append("<th>Country</th>");
sb.Append("<th>Sender Mobile</th>");
sb.Append("<th>Receiver</th>");
sb.Append("<th>Email</th>");
sb.Append("<th>Payout Amount</th>");
sb.Append("<th>Coll Amt</th>");
sb.Append("<th>Payment Method</th>");
sb.Append("<th nowrap='nowrap'>Tran Date</th>");
sb.Append("<th nowrap='nowrap'>Payment Option</th>");
//sb.Append("<th nowrap='nowrap'>Mapped Detail</th>");
if (allowVeirfy)
{
colspanCount++;
sb.Append("<th></th>");
sb.Append("<th></th>");
}
if (allowVeirfy)
{
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["tranType"].ToString() + "</td>");
sb.Append("<td>" + dr["sender"].ToString() + "</td>");
sb.Append("<td>" + dr["MembershipId"].ToString() + "</td>");
sb.Append("<td>" + dr["country"].ToString() + "</td>");
sb.Append("<td>" + dr["sMobile"].ToString() + "</td>");
sb.Append("<td>" + dr["receiver"].ToString() + "</td>");
sb.Append("<td>" + dr["email"].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>" + dr["CollMode"].ToString() + "</td>");
sb.Append("<td>" + GetStatic.FormatData(dr["txnDate"].ToString(), "D") + "</td>");
sb.Append("<td>" + dr["depositType"].ToString() + "</td>");
//sb.Append("<td>" + dr["mappedDetail"].ToString() + "</td>");
if (allowVeirfy)
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() + "' ,'v');\" /></td>");
//if (allowVeirfy && dr["collMode"].ToString() == "Bank Deposit")
// sb.Append("<td><img style='cursor:pointer' title = 'Map Customer Deposit' alt = 'View Mapping' src = '" + GetStatic.GetUrlRoot() + "/images/view-changes.jpg' onclick = 'MapDeposit(" + dr["id"].ToString() + "," + dr["customerId"].ToString() + ");' /></td>");
//else
// sb.Append("<td><img style='cursor:pointer' title = 'Collect Cash' alt = 'View Mapping' src = '" + GetStatic.GetUrlRoot() + "/images/rule.gif' onclick=\"CollectCash('" + dr["id"].ToString() + "','" + dr["cAmt"].ToString() + "','" + dr["REFERRAL_DETAIL"].ToString() + "');\" /></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 (allowVeirfy || 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 (allowVeirfy)
sb.Append("&nbsp;<input type = 'button' class='btn btn-primary m-t-25' onclick = \"Verify('" + dr["id"].ToString() + "','" + dr["cAmt"].ToString() + "','" + dr["cAmtByUser"].ToString() + "','" + dr["controlNum"].ToString() + "','" + dr["depositType"].ToString() + "');\" value = 'Verify' 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>");
}
}
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;
GetStatic.ResizeFrame(Page);
}
private void Authenticate()
{
_sdd.CheckAuthentication(ViewFunctionId);
}
protected void btnSearch_Click(object sender, EventArgs e)
{
LoadApproveGrid("");
}
private DbResult ApproveAllTxn()
{
var idList = GetStatic.ReadFormData("rowId", "");
if (string.IsNullOrWhiteSpace(idList))
{
var dr = new DbResult();
dr.SetError("1", "Please select one or more transaction approve", "");
return dr;
}
return at.ApproveAllHoldedTXN(GetStatic.GetUser(), idList);
}
private void ApproveTxn()
{
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();
}
}
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='holdTxnList.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 country_SelectedIndexChanged(object sender, EventArgs e)
{
LoadSendingAgent();
}
private void LoadSendingAgent()
{
if (!string.IsNullOrEmpty(country.Text))
_sdd.SetDDL(ref agent, "EXEC proc_dropDownLists2 @flag = 'agentSend',@param=" + _sdd.FilterString(country.Text) + "", "agentId", "agentName", "", "All");
}
protected void agent_SelectedIndexChanged(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(agent.Text))
{
var sql = "EXEC proc_dropDownLists @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 PopulateData()
{
try
{
string trnDate = Request.Form["tranDate"];
string particulars = Request.Form["particulars"];
string customerId = Request.Form["customerId"];
string amount = Request.Form["amount"];
DataSet dt = _dao.GetDataForSendMapping(GetStatic.GetUser(), trnDate, particulars, customerId, amount);
StringBuilder sb = new StringBuilder();
StringBuilder sb1 = new StringBuilder();
if (null == dt)
{
Response.ContentType = "application/text";
Response.Write("<tr><td colspan = \"7\" align=\"center\">No Data To Display</td></tr>[[<<>>]]<tr><td colspan = \"7\" align=\"center\">No Data To Display</td></tr>");
HttpContext.Current.Response.Flush();
HttpContext.Current.Response.SuppressContent = true;
HttpContext.Current.ApplicationInstance.CompleteRequest();
return;
}
if (dt.Tables[0].Rows.Count == 0)
{
sb.AppendLine("<tr><td colspan = \"7\" align=\"center\">No Data To Display</td></tr>");
}
if (dt.Tables[1].Rows.Count == 0)
{
sb1.AppendLine("<tr><td colspan = \"7\" align=\"center\">No Data To Display</td></tr>");
}
int sNo = 1;
int sNo1 = 1;
foreach (DataRow item in dt.Tables[0].Rows)
{
sb.AppendLine("<tr>");
sb.AppendLine("<td><input type='checkbox' class='unmapped' name='chkDepositMapping' id='chkDepositMapping" + item["tranId"].ToString() + "' value='" + item["tranId"].ToString() + "' /></td>");
sb.AppendLine("<td>" + item["particulars"].ToString() + "</td>");
sb.AppendLine("<td>" + item["tranDate"].ToString() + "</td>");
sb.AppendLine("<td align='right'>" + GetStatic.ShowDecimal(item["depositAmount"].ToString()) + "</td>");
sb.AppendLine("<td align='right'>" + GetStatic.ShowDecimal(item["paymentAmount"].ToString()) + "</td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr id=\"addModel" + item["tranId"].ToString() + "\"></tr>");
sNo++;
}
foreach (DataRow item in dt.Tables[1].Rows)
{
sb1.AppendLine("<tr>");
sb1.AppendLine("<td><input type='checkbox' class='unapproved' name='chkDepositMappingUnmap' id='chkDepositMappingUnmap" + item["tranId"].ToString() + "' value='" + item["tranId"].ToString() + "'/></td>");
sb1.AppendLine("<td>" + item["particulars"].ToString() + "</td>");
sb1.AppendLine("<td>" + item["tranDate"].ToString() + "</td>");
sb1.AppendLine("<td align='right'>" + GetStatic.ShowDecimal(item["depositAmount"].ToString()) + "</td>");
sb1.AppendLine("<td align='right'>" + GetStatic.ShowDecimal(item["paymentAmount"].ToString()) + "</td>");
sb1.AppendLine("</tr>");
sb1.AppendLine("<tr id=\"addModel" + item["tranId"].ToString() + "\"></tr>");
sNo1++;
}
string data = sb + "[[<<>>]]" + sb1;
Response.ContentType = "application/text";
Response.Write(data);
HttpContext.Current.Response.Flush(); // Sends all currently buffered output to the client.
HttpContext.Current.Response.SuppressContent = true; // Gets or sets a value indicating whether to send HTTP content to the client.
HttpContext.Current.ApplicationInstance.CompleteRequest(); // Causes ASP.NET to bypass all events and filtering in the HTTP pipeline chain of execution and directly execute the EndRequest event.
}
catch (ThreadAbortException ex)
{
string msg = ex.Message;
}
}
protected void ProceedMapData()
{
var Ids = Request.Form["tranIds[]"];
var customerId = Request.Form["customerId"];
DbResult _res = new DbResult();
if (!string.IsNullOrEmpty(Ids))
{
_res = _dao.SaveMultipleCustomerDeposit(GetStatic.GetUser(), Ids, customerId);
}
else
{
GetStatic.AlertMessage(this, "Please choose at least on record!");
}
Response.ContentType = "text/plain";
Response.Write(JsonConvert.SerializeObject(_res));
Response.End();
}
protected void UnMapData()
{
var Ids = Request.Form["tranIds[]"];
var customerId = Request.Form["customerId"];
DbResult _res = new DbResult();
if (!string.IsNullOrEmpty(Ids))
{
_res = _dao.UnMapCustomerDeposit(GetStatic.GetUser(), Ids, customerId);
}
else
{
GetStatic.AlertMessage(this, "Please choose at least on record!");
}
Response.ContentType = "text/plain";
Response.Write(JsonConvert.SerializeObject(_res));
Response.End();
}
protected void CollectCash()
{
var cAmt = Request.Form["collectedAmount"];
var collBy = Request.Form["collectedBy"];
var collByName = Request.Form["collectedByName"];
var tranId = Request.Form["tranId"];
var flag = Request.Form["flag"];
DbResult _res = new DbResult();
if (!string.IsNullOrEmpty(tranId))
{
_res = _dao.SaveCashCollect(GetStatic.GetUser(), cAmt, collBy, tranId, flag, collByName);
}
else
{
GetStatic.AlertMessage(this, "Please choose at least on record!");
}
Response.ContentType = "text/plain";
Response.Write(JsonConvert.SerializeObject(_res));
Response.End();
}
protected void loadGrid_Click(object sender, EventArgs e)
{
LoadApproveGrid("");
}
private void Verify()
{
var tranId = Request.Form["tranId"];
var controlNo = Request.Form["controlNo"];
var paynentOption = Request.Form["DepositType"];
DbResult _res = new DbResult();
if (!string.IsNullOrEmpty(tranId))
{
_res = _dao.VerifyCashCollect(GetStatic.GetUser(), tranId);
if (_res.ErrorCode.Equals("0") && paynentOption.Equals("ONLINE"))
{
try
{
TxnDetails cd = _dao.GetTxnDetails(tranId);
List<Mapping> bodyMappings = new List<Mapping>();
bodyMappings.Add(new Mapping() { SValue = "CustomerName", SText = cd.senderName });
bodyMappings.Add(new Mapping() { SValue = "Reference", SText = controlNo });
bodyMappings.Add(new Mapping() { SValue = "PayoutCountry", SText = cd.PayoutCountry });
bodyMappings.Add(new Mapping() { SValue = "BeneName", SText = cd.BeneficiaryName });
bodyMappings.Add(new Mapping() { SValue = "TransferType", SText = cd.TransferType });
bodyMappings.Add(new Mapping() { SValue = "BankName", SText = cd.BankName });
bodyMappings.Add(new Mapping() { SValue = "BankBranch", SText = cd.BankBranch });
bodyMappings.Add(new Mapping() { SValue = "AccNum", SText = cd.AccountNo });
bodyMappings.Add(new Mapping() { SValue = "PayoutAmt", SText = cd.PayoutAmount });
bodyMappings.Add(new Mapping() { SValue = "TransferAmt", SText = cd.TransferAmount });
bodyMappings.Add(new Mapping() { SValue = "Fee", SText = cd.serviceCharge });
bodyMappings.Add(new Mapping() { SValue = "ExRate", SText = cd.ExRate });
bodyMappings.Add(new Mapping() { SValue = "Discount", SText = cd.rewardPoints });
bodyMappings.Add(new Mapping() { SValue = "TotalAmt", SText = cd.TotalAmount });
bodyMappings.Add(new Mapping() { SValue = "TxnDate", SText = cd.TranDate });
SendNotificationRequestMobile request = new SendNotificationRequestMobile()
{
IsBulkNotification = false,
UserName = cd.email,
ProcessId = "Transaction_Verification",
ProviderId = NotifyTemplate.BANK_TRANSFER_TXN_CLEARED.ToString(),
NotificationTypeId = NOTIFICATION_TYPE.EMAIL.ToString(),
Template = NotifyTemplate.BANK_TRANSFER_TXN_CLEARED,
Recipients = new List<RecipientViewModel>()
{
new RecipientViewModel()
{
NotificationContent = new NotificationDTO() {
Body = JsonConvert.SerializeObject(bodyMappings),
}, Address= cd.email
}
}
};
NotifierV2.SendNotification(request, NOTIFICATION_TYPE.EMAIL);
}
catch (Exception ex)
{
GetStatic.AlertMessage(this, $"Technical Error: { GetStatic.LogError(ex).Id}");
}
}
}
else
{
GetStatic.AlertMessage(this, "Please choose at least on record!");
}
Response.ContentType = "text/plain";
Response.Write(JsonConvert.SerializeObject(_res));
Response.End();
}
}
}

350
Swift.web/Remit/Transaction/VerifyMobileTransaction/VerifyDebitCardTxn.aspx.designer.cs

@ -0,0 +1,350 @@
//------------------------------------------------------------------------------
// <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.VerifyMobileTransaction
{
public partial class VerifyDebitCardTxn
{
/// <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>
/// 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>
/// txtEmail 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 txtEmail;
/// <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>
/// 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>
/// 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>
/// 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>
/// hddSavedReferral 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 hddSavedReferral;
/// <summary>
/// hddSelectedRadio 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 hddSelectedRadio;
/// <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>
/// hddCustomerId 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 hddCustomerId;
/// <summary>
/// hddCashCollectId 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 hddCashCollectId;
/// <summary>
/// loadGrid 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 loadGrid;
/// <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;
/// <summary>
/// tranDate 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 tranDate;
/// <summary>
/// particulars 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 particulars;
/// <summary>
/// amount 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 amount;
/// <summary>
/// UnmappedDepositMapping 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 UnmappedDepositMapping;
/// <summary>
/// btnConfirmSave 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 btnConfirmSave;
/// <summary>
/// UnApprovedDepositMapping 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 UnApprovedDepositMapping;
/// <summary>
/// collectedByDDl 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 collectedByDDl;
/// <summary>
/// collectAmountByStaff 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 collectAmountByStaff;
}
}

5
Swift.web/Swift.web.csproj

@ -1410,6 +1410,7 @@
<Content Include="Remit\Transaction\TroubleTicket\Manage.aspx" />
<Content Include="Remit\Transaction\TroubleTicket\UnResolvedList.aspx" />
<Content Include="Remit\Transaction\VerifyMobileTransaction\VerifyInwardTransaction.aspx" />
<Content Include="Remit\Transaction\VerifyMobileTransaction\VerifyDebitCardTxn.aspx" />
<Content Include="Remit\Transaction\VerifyMobileTransaction\VerifyMobileTransaction.aspx" />
<Content Include="SwiftSystem\ReceivePageFieldSetup\FieldSetup.aspx" />
<Content Include="ui\index\images\ime-london.ico" />
@ -9726,10 +9727,14 @@
</Compile>
<Compile Include="Remit\Transaction\VerifyMobileTransaction\VerifyInwardTransaction.aspx.cs">
<DependentUpon>VerifyInwardTransaction.aspx</DependentUpon>
<Compile Include="Remit\Transaction\VerifyMobileTransaction\VerifyDebitCardTxn.aspx.cs">
<DependentUpon>VerifyDebitCardTxn.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Remit\Transaction\VerifyMobileTransaction\VerifyInwardTransaction.aspx.designer.cs">
<DependentUpon>VerifyInwardTransaction.aspx</DependentUpon>
<Compile Include="Remit\Transaction\VerifyMobileTransaction\VerifyDebitCardTxn.aspx.designer.cs">
<DependentUpon>VerifyDebitCardTxn.aspx</DependentUpon>
</Compile>
<Compile Include="Remit\Transaction\VerifyMobileTransaction\VerifyMobileTransaction.aspx.cs">
<DependentUpon>VerifyMobileTransaction.aspx</DependentUpon>

18
Swift.web/SwiftSystem/UserManagement/AgentUserSetup/List.aspx.cs

@ -43,8 +43,8 @@ namespace Swift.web.SwiftSystem.UserManagement.AgentUserSetup
if (methodName == "GetApiCredentials")
GetApiCredentials();
if (methodName == "GenerateCredentials")
GenerateCredentials();
//if (methodName == "GenerateCredentials")
// GenerateCredentials();
if (GetMode() == 1)
GetStatic.AlertMessage(Page);
@ -67,14 +67,14 @@ namespace Swift.web.SwiftSystem.UserManagement.AgentUserSetup
GetStatic.JsonResponse(apiDetails, this.Page);
}
private void GenerateCredentials()
{
string userId = Request.Form["UserId"];
var apiCredentials = GetStatic.GetKeys();
var apiDetails = _obj.GenerateCredentials(userId, GetStatic.GetUser(), apiCredentials);
//private void GenerateCredentials()
//{
// string userId = Request.Form["UserId"];
// var apiCredentials = GetStatic.GetKeys();
// var apiDetails = _obj.GenerateCredentials(userId, GetStatic.GetUser(), apiCredentials);
GetStatic.JsonResponse(apiDetails, this.Page);
}
// GetStatic.JsonResponse(apiDetails, this.Page);
//}
protected void LoadTab()
{

Loading…
Cancel
Save