diff --git a/Swift.DAL/Remittance/SyncDao/BankBranchDao.cs b/Swift.DAL/Remittance/SyncDao/BankBranchDao.cs
index 9a4925b..6d42809 100644
--- a/Swift.DAL/Remittance/SyncDao/BankBranchDao.cs
+++ b/Swift.DAL/Remittance/SyncDao/BankBranchDao.cs
@@ -19,6 +19,16 @@ namespace Swift.DAL.Remittance.SyncDao
return ParseDbResult(sql);
}
+ public DbResult EnableDisablePayer(string rowId, string user, string isActive)
+ {
+ var sql = "EXEC PROC_API_BANK_BRANCH_SETUP @flag = 'enable-disable-Payer'";
+
+ sql += ", @user = " + FilterString(user);
+ sql += ", @rowId = " + FilterString(rowId);
+ sql += ", @IsActive = " + FilterString(isActive);
+
+ return ParseDbResult(sql);
+ }
public DbResult EnableDisableBankBranch(string rowId, string user, string isActive)
{
var sql = "EXEC PROC_API_BANK_BRANCH_SETUP @flag = 'enable-disable-bankBranch'";
diff --git a/Swift.DAL/Remittance/Transaction/UpdateBranchDao.cs b/Swift.DAL/Remittance/Transaction/UpdateBranchDao.cs
index a3f9040..8df20c6 100644
--- a/Swift.DAL/Remittance/Transaction/UpdateBranchDao.cs
+++ b/Swift.DAL/Remittance/Transaction/UpdateBranchDao.cs
@@ -102,6 +102,29 @@ namespace Swift.DAL.Remittance.Transaction
return null;
return ds.Tables[0];
+ }
+ public DataTable InsertOrUpdatePayerMapping(string user, string flag, string recordId, string countryId, string parnerId, string bankId, string pMode, string payerName, string payerCode, string PbranchName, string pBranchCode, string bAddress, string isActive)
+ {
+ string sql;
+ sql = "EXEC Proc_UpdateBranchCode @flag = " + FilterString(flag);
+ sql += ", @bankId = " + FilterString(recordId);
+ sql += ", @payerName = " + FilterString(payerName);
+ sql += ", @bankName = " + FilterString(bankId);
+ sql += ", @pCountryName = " + FilterString(countryId);
+ sql += ", @payerCode = " + FilterString(payerCode);
+ sql += ", @branchName = " + FilterString(PbranchName);
+ sql += ", @branchCode = " + FilterString(pBranchCode);
+ sql += ", @branchAddress = " + FilterString(bAddress);
+ sql += ", @pMode = " + FilterString(pMode);
+ sql += ", @partnerId = " + FilterString(parnerId);
+ sql += ", @is_Active = " + FilterString(isActive);
+ sql += ", @user = " + FilterString(user);
+
+ var ds = ExecuteDataset(sql);
+ if (ds == null || ds.Tables.Count == 0 || ds.Tables[0].Rows.Count == 0)
+ return null;
+ return ds.Tables[0];
+
}
public DataTable UpdateBankMapping(string user, string flag, string countryId, string parnerId, string bankId, string pMode, string bankCode1, string bankCode2, string pCurrency, string bAddress)
{
@@ -133,6 +156,17 @@ namespace Swift.DAL.Remittance.Transaction
return null;
return ds.Tables[0].Rows[0];
}
+ public DataRow EditPayerMappingSelectById(string bankId, string user)
+ {
+ string sql = "EXEC Proc_UpdateBranchCode";
+ sql += " @flag = 'editPayerMapping'";
+ sql += ", @user = " + FilterString(user);
+ sql += ", @bankId = " + FilterString(bankId);
+ DataSet ds = ExecuteDataset(sql);
+ if (ds == null || ds.Tables.Count == 0 || ds.Tables[0].Rows.Count == 0)
+ return null;
+ return ds.Tables[0].Rows[0];
+ }
public DataRow EditBankSelectById(string bankId, string user)
{
string sql = "EXEC Proc_UpdateBranchCode";
@@ -273,6 +307,15 @@ namespace Swift.DAL.Remittance.Transaction
sql += ",@user =" + FilterString(user);
return ParseDbResult(sql);
}
+
+ public DbResult DeletePayerMapping(string bankId, string user)
+ {
+ string sql = "EXEC Proc_UpdateBranchCode";
+ sql += " @flag ='deletePayerMapping'";
+ sql += ",@bankId =" + FilterString(bankId);
+ sql += ",@user =" + FilterString(user);
+ return ParseDbResult(sql);
+ }
}
}
diff --git a/Swift.web/Remit/TPSetup/BankAndBranchSetup/AddBank.aspx b/Swift.web/Remit/TPSetup/BankAndBranchSetup/AddBank.aspx
index c10a37a..03691b2 100644
--- a/Swift.web/Remit/TPSetup/BankAndBranchSetup/AddBank.aspx
+++ b/Swift.web/Remit/TPSetup/BankAndBranchSetup/AddBank.aspx
@@ -150,6 +150,8 @@
Bank Mapping Setup
Branch List
Branch Setup
+ Payer Setup
+ Payer List
<%-- Partner Bank List --%>
<%--Partner Bank List--%>
<%--Insert Bank--%>
diff --git a/Swift.web/Remit/TPSetup/BankAndBranchSetup/AddBankMapping.aspx b/Swift.web/Remit/TPSetup/BankAndBranchSetup/AddBankMapping.aspx
index 846ffe1..3573f2b 100644
--- a/Swift.web/Remit/TPSetup/BankAndBranchSetup/AddBankMapping.aspx
+++ b/Swift.web/Remit/TPSetup/BankAndBranchSetup/AddBankMapping.aspx
@@ -259,6 +259,8 @@
Bank Mapping Setup
Branch List
Branch Setup
+ Payer Setup
+ Payer List
diff --git a/Swift.web/Remit/TPSetup/BankAndBranchSetup/AddBankPayer.aspx b/Swift.web/Remit/TPSetup/BankAndBranchSetup/AddBankPayer.aspx
new file mode 100644
index 0000000..0cf109d
--- /dev/null
+++ b/Swift.web/Remit/TPSetup/BankAndBranchSetup/AddBankPayer.aspx
@@ -0,0 +1,369 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddBankPayer.aspx.cs" Inherits="Swift.web.Remit.TPSetup.BankAndBranchSetup.AddBankPayer" %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Swift.web/Remit/TPSetup/BankAndBranchSetup/AddBankPayer.aspx.cs b/Swift.web/Remit/TPSetup/BankAndBranchSetup/AddBankPayer.aspx.cs
new file mode 100644
index 0000000..0bfd62b
--- /dev/null
+++ b/Swift.web/Remit/TPSetup/BankAndBranchSetup/AddBankPayer.aspx.cs
@@ -0,0 +1,242 @@
+using Swift.DAL.Remittance.Transaction;
+using Swift.web.Library;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Linq;
+using System.Web;
+using System.Web.Script.Serialization;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace Swift.web.Remit.TPSetup.BankAndBranchSetup
+{
+ public partial class AddBankPayer : System.Web.UI.Page
+ {
+ private const string ViewFunctionId = "20317000";
+ //private const string UpdateFunctionId = "20317010";
+ private const string AddEditFunctionId = "20300010";
+ private readonly SwiftLibrary _sl = new SwiftLibrary();
+ private readonly StaticDataDdl _sdd = new StaticDataDdl();
+ private readonly UpdateBranchDao _rd = new UpdateBranchDao();
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ if (!IsPostBack)
+ {
+ Authenticate();
+ if (!IsPostBack)
+ {
+ PopulateDDL();
+ PopulateDDL1();
+ //PopulateDDL1();
+ if (GetId() != "")
+ {
+ //Page.AsyncMode = true;
+ PopulateDataById();
+ //PopulateDDL();
+ }
+ }
+
+ string reqMethod = Request.Form["MethodName"];
+ if (string.IsNullOrEmpty(reqMethod))
+ {
+ if (GetStatic.GetUser() == "")
+ {
+ Response.ContentType = "text/plain";
+ Response.Write("[{\"session_end\":\"1\"}]");
+ Response.End();
+ return;
+ }
+ }
+ switch (reqMethod)
+ {
+ case "LoadPartner":
+ LoadPartner();
+ break;
+ case "LoadBank":
+ LoadBank();
+ break;
+
+ //case "LoadBankBranch":
+ // LoadBankBranch();
+ // break;
+ case "InsertPayer":
+ InsertOrUpdatePayerMapping();
+ break;
+ case "UpdatePayer":
+ InsertOrUpdatePayerMapping();
+ break;
+
+
+ }
+ }
+ }
+ private void Authenticate()
+ {
+ _sl.CheckAuthentication(ViewFunctionId);
+ if (!_sl.HasRight(AddEditFunctionId))
+ {
+ //btnSave.Enabled = false;
+ //btnSave.Visible = false;
+ }
+ }
+
+ protected void PopulateDDL()
+ {
+ //_sdd.SetDDL(ref countryDDL, "EXEC [proc_dropDownLists] @flag='r-country-list'", "countryId", "countryName", "", "Select Country");
+ _sdd.SetDDL(ref countryDDL, "EXEC [proc_dropDownLists] @flag='r-country-list'", "countryId", "countryName", "", "Select Country");
+ //_sdd.SetDDL(ref BranchDDl, "EXEC [proc_dropDownLists] @flag='branch-list'", "agentId", "agentName", "", "All");
+ }
+ protected void PopulateDDL1()
+ {
+ _sdd.SetDDL(ref paymentModeDDL1, "EXEC [proc_dropDownLists] @flag='paymentModelist'", "serviceTypeId", "typeTitle", "", "Select Pmode");
+ }
+ private void LoadPartner()
+ {
+ var countryId = Request.Form["countryId"];
+ DataTable dt = null;
+
+ dt = _rd.LoadPartner(GetStatic.GetCountryId(), countryId, null, "getPartnerByCountry", GetStatic.GetUser());
+ Response.ContentType = "text/plain";
+ var json = DataTableToJson(dt);
+ Response.Write(json);
+ Response.End();
+ }
+
+ private void LoadBank()
+ {
+ var partnerId = Request.Form["partnerId"];
+ var countryId = Request.Form["countryId"];
+ DataTable dt = null;
+
+ dt = _rd.LoadBank(GetStatic.GetCountryId(), countryId, null, partnerId, "getBankByPartner", GetStatic.GetUser());
+ Response.ContentType = "text/plain";
+ var json = DataTableToJson(dt);
+ Response.Write(json);
+ Response.End();
+ }
+
+ private void InsertOrUpdatePayerMapping()
+ {
+ var countryId = Request.Form["countryId"];
+ var partnerId = Request.Form["partnerId"];
+ var bankId = Request.Form["bankId"].ToUpper();
+ var pMode = Request.Form["paymentMode"];
+ var payerName = Request.Form["payerName"];
+ var payerCode = Request.Form["payerCode"];
+ var pBranchName = Request.Form["pBranchName"];
+ var pBranchCode = Request.Form["pBranchCode"];
+ var bAddress = Request.Form["bAddress"];
+ var isActive = Request.Form["isActive"];
+
+
+ //string methodName;
+ string flag;
+ //string recordId = GetId();
+
+ if (!string.IsNullOrEmpty(GetId()))
+ {
+
+ //methodName = "UpdateBank";
+ flag = "updatePayerMapping";
+ }
+ else
+ {
+
+ //methodName = "InsertBank";
+ flag = "insertBankPayer";
+ }
+
+ DataTable dt = _rd.InsertOrUpdatePayerMapping(GetStatic.GetUser(), flag, GetId(), countryId, partnerId, bankId, pMode, payerName, payerCode, pBranchName, pBranchCode, bAddress, isActive);
+ Response.ContentType = "text/plain";
+ var json = DataTableToJson(dt);
+ Response.Write(json);
+ Response.End();
+ }
+
+
+ protected string GetId()
+ {
+ return GetStatic.ReadQueryString("PAYER_ID", "");
+ }
+ private void PopulateDataById()
+ {
+ DataRow dr = _rd.EditPayerMappingSelectById(GetId(), GetStatic.GetUser());
+ if (dr == null)
+ {
+ Response.Redirect("PayerMappingList.aspx");
+ }
+
+
+ countryDDL.SelectedValue = dr["BANK_COUNTRY"].ToString();
+ partnerDDL.SelectedValue = dr["PARTNER_ID"].ToString();
+ bankDDL.SelectedValue = dr["BANK_ID"].ToString();
+ paymentModeDDL1.SelectedValue = dr["PAYMENT_MODE"].ToString();
+ payerName.Text = dr["PAYER_NAME"].ToString();
+ payerCode.Text = dr["PAYER_Code"].ToString();
+ pBranchName.Text = dr["PAYER_BRANCH_NAME"].ToString();
+ pBranchCode.Text = dr["PAYER_BRANCH_CODE"].ToString();
+ bAddress.Text = dr["BRANCH_ADDRESS"].ToString();
+ isActiveDDL.SelectedValue = (dr["IS_ACTIVE"].ToString() == "True" || dr["IS_ACTIVE"].ToString() == "1") ? "1" : "0";
+
+ }
+
+
+ public string GetPartnerNameById(string partnerId)
+ {
+ DataTable result = _rd.GetPartnerName(partnerId);
+
+
+ if (result != null && result.Rows.Count > 0)
+ {
+
+ string agentName = result.Rows[0]["AGENTNAME"].ToString();
+ return agentName;
+ }
+ else
+ {
+
+ return string.Empty;
+ }
+ }
+
+ public string GetBankNameId(string bankn)
+ {
+ DataTable result = _rd.GetMasterID(bankn);
+
+ if (result != null && result.Rows.Count > 0)
+ {
+ string bankId = result.Rows[0]["PAYER_ID"].ToString();
+
+ return (bankId);
+ }
+ else
+ {
+ return string.Empty;
+ }
+ }
+
+
+ public static string DataTableToJson(DataTable table)
+ {
+ if (table == null)
+ return "";
+ var list = new List>();
+
+ foreach (DataRow row in table.Rows)
+ {
+ var dict = new Dictionary();
+
+ foreach (DataColumn col in table.Columns)
+ {
+ dict[col.ColumnName] = string.IsNullOrEmpty(row[col].ToString()) ? "" : row[col];
+ }
+ list.Add(dict);
+ }
+ var serializer = new JavaScriptSerializer();
+ string json = serializer.Serialize(list);
+ return json;
+ }
+ }
+}
\ No newline at end of file
diff --git a/Swift.web/Remit/TPSetup/BankAndBranchSetup/AddBankPayer.aspx.designer.cs b/Swift.web/Remit/TPSetup/BankAndBranchSetup/AddBankPayer.aspx.designer.cs
new file mode 100644
index 0000000..7ad9107
--- /dev/null
+++ b/Swift.web/Remit/TPSetup/BankAndBranchSetup/AddBankPayer.aspx.designer.cs
@@ -0,0 +1,116 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace Swift.web.Remit.TPSetup.BankAndBranchSetup
+{
+
+
+ public partial class AddBankPayer
+ {
+
+ ///
+ /// form1 control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// countryDDL control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.DropDownList countryDDL;
+
+ ///
+ /// partnerDDL control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.DropDownList partnerDDL;
+
+ ///
+ /// bankDDL control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.DropDownList bankDDL;
+
+ ///
+ /// paymentModeDDL1 control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.DropDownList paymentModeDDL1;
+
+ ///
+ /// payerName control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox payerName;
+
+ ///
+ /// payerCode control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox payerCode;
+
+ ///
+ /// pBranchName control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox pBranchName;
+
+ ///
+ /// pBranchCode control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox pBranchCode;
+
+ ///
+ /// bAddress control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox bAddress;
+
+ ///
+ /// isActiveDDL control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.DropDownList isActiveDDL;
+ }
+}
diff --git a/Swift.web/Remit/TPSetup/BankAndBranchSetup/AddBranch.aspx b/Swift.web/Remit/TPSetup/BankAndBranchSetup/AddBranch.aspx
index 72dbeb4..5ab42c1 100644
--- a/Swift.web/Remit/TPSetup/BankAndBranchSetup/AddBranch.aspx
+++ b/Swift.web/Remit/TPSetup/BankAndBranchSetup/AddBranch.aspx
@@ -261,6 +261,8 @@
Bank Mapping Setup
Branch List
Branch Setup
+ Payer Setup
+ Payer List
<%--Partner Bank List --%>
<%--Partner Bank List--%>
diff --git a/Swift.web/Remit/TPSetup/BankAndBranchSetup/BankList.aspx b/Swift.web/Remit/TPSetup/BankAndBranchSetup/BankList.aspx
index 76bca2b..c57faff 100644
--- a/Swift.web/Remit/TPSetup/BankAndBranchSetup/BankList.aspx
+++ b/Swift.web/Remit/TPSetup/BankAndBranchSetup/BankList.aspx
@@ -86,6 +86,8 @@
Bank Mapping Setup
Branch List
Branch Setup
+ Payer Setup
+ Payer List
<%--Partner Bank List
Insert Bank Master
Insert Bank Mapping
diff --git a/Swift.web/Remit/TPSetup/BankAndBranchSetup/ListBranch.aspx b/Swift.web/Remit/TPSetup/BankAndBranchSetup/ListBranch.aspx
index f8d8d4a..76f1930 100644
--- a/Swift.web/Remit/TPSetup/BankAndBranchSetup/ListBranch.aspx
+++ b/Swift.web/Remit/TPSetup/BankAndBranchSetup/ListBranch.aspx
@@ -86,6 +86,8 @@
Bank Mapping Setup
Branch List
Branch Setup
+ Payer Setup
+ Payer List
<%--Partner Bank List
Insert Bank Master
Insert Bank Mapping
diff --git a/Swift.web/Remit/TPSetup/BankAndBranchSetup/NewBankList.aspx b/Swift.web/Remit/TPSetup/BankAndBranchSetup/NewBankList.aspx
index 8bf877e..29759cc 100644
--- a/Swift.web/Remit/TPSetup/BankAndBranchSetup/NewBankList.aspx
+++ b/Swift.web/Remit/TPSetup/BankAndBranchSetup/NewBankList.aspx
@@ -88,6 +88,7 @@
Bank Mapping Setup
Branch List
Branch Setup
+ Payer Setup
<%--Partner Bank List
Insert Bank Master
Insert Bank Mapping
diff --git a/Swift.web/Remit/TPSetup/BankAndBranchSetup/PayerMappingList.aspx b/Swift.web/Remit/TPSetup/BankAndBranchSetup/PayerMappingList.aspx
new file mode 100644
index 0000000..e5ac767
--- /dev/null
+++ b/Swift.web/Remit/TPSetup/BankAndBranchSetup/PayerMappingList.aspx
@@ -0,0 +1,126 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PayerMappingList.aspx.cs" Inherits="Swift.web.Remit.TPSetup.BankAndBranchSetup.PayerMappingList" %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Swift.web/Remit/TPSetup/BankAndBranchSetup/PayerMappingList.aspx.cs b/Swift.web/Remit/TPSetup/BankAndBranchSetup/PayerMappingList.aspx.cs
new file mode 100644
index 0000000..c7bba4a
--- /dev/null
+++ b/Swift.web/Remit/TPSetup/BankAndBranchSetup/PayerMappingList.aspx.cs
@@ -0,0 +1,125 @@
+using Swift.DAL.Remittance.SyncDao;
+using Swift.DAL.Remittance.Transaction;
+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.TPSetup.BankAndBranchSetup
+{
+ public partial class PayerMappingList : System.Web.UI.Page
+ {
+ private const string GridName = "grid_list";
+ private const string ViewFunctionId = "20300000";
+ private const string AddEditFunctionId = "20300010";
+ private readonly SwiftGrid _grid = new SwiftGrid();
+ private readonly RemittanceLibrary swiftLibrary = new RemittanceLibrary();
+ private readonly UpdateBranchDao _branchDoa = new UpdateBranchDao();
+
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ Authenticate();
+ if (!IsPostBack)
+ {
+ GetStatic.PrintMessage(Page);
+ }
+ LoadGrid();
+ DeleteRow();
+ }
+
+ private void Authenticate()
+ {
+ swiftLibrary.CheckAuthentication(ViewFunctionId);
+ }
+
+ private void LoadGrid()
+ {
+ string ddlSql = "EXEC [PROC_API_BANK_BRANCH_SETUP] @flag = 'API-PARTNER'";
+ string ddlSql2 = "EXEC [PROC_API_BANK_BRANCH_SETUP] @flag = 'Bank-Country'";
+ string ddlSql1 = "EXEC [PROC_API_BANK_BRANCH_SETUP] @flag = 'PAYOUT-METHOD'";
+
+ _grid.FilterList = new List
+ {
+ new GridFilter("API_PARTNER", "API PARTNER", "1:"+ddlSql, "0"),
+ new GridFilter("BANK_COUNTRY", "COUNTRY", "1:"+ddlSql2, "0"),
+ new GridFilter("PAYMENT_TYPE", "PAYMENT TYPE", "1:"+ddlSql1, "0"),
+ };
+
+ _grid.ColumnList = new List
+ {
+ new GridColumn("API_PARTNER", "API_PARTNER", "100", "T"),
+ new GridColumn("COUNTRY_NAME", "COUNTRY_NAME", "", "T"),
+ new GridColumn("BANK_NAME", "BANK_NAME1", "", "T"),
+ new GridColumn("PAYER_NAME", "PAYER_NAME", "", "T"),
+
+ new GridColumn("P_BRANCH_NAME", "P_BRANCH_NAME", "", "T"),
+ new GridColumn("IS_ACTIVE", "IS_ACTIVE", "", "T"),
+ new GridColumn("PAYMENT_TYPE", "PAYMENT TYPE", "", "T"),
+ };
+ //bool allowAddEdit = swiftLibrary.HasRight(AddEditFunctionId);
+
+ _grid.GridDataSource = SwiftGrid.GridDS.RemittanceDB;
+ _grid.GridType = 1;
+ _grid.GridName = GridName;
+ _grid.ShowPagingBar = true;
+ _grid.ShowAddButton = true;
+ _grid.AllowEdit = true;
+ _grid.AllowDelete = true;
+ _grid.AlwaysShowFilterForm = true;
+ _grid.ShowFilterForm = true;
+ _grid.AllowCustomLink = true;
+ _grid.SortOrder = "ASC";
+ _grid.RowIdField = "PAYER_ID";
+ _grid.ThisPage = "PayerMappingList.aspx";
+ _grid.AddPage = "AddBankPayer.aspx";
+ //_grid.AddPage = "AddBank.aspx";
+ //_grid.AddPage = "AddBank.aspx?opType=@opType";
+ //var branchLink = " ";
+ var link = " Enable/Disable";
+ _grid.CustomLinkVariables = "PAYER_ID,IS_ACTIVE";
+ _grid.CustomLinkText = link;
+
+ _grid.InputPerRow = 5;
+
+ string sql = "EXEC [PROC_API_BANK_BRANCH_SETUP] @flag = 'SPayerList'";
+
+ _grid.SetComma();
+
+ rpt_grid.InnerHtml = _grid.CreateGrid(sql);
+ }
+
+ private void DeleteRow()
+ {
+ string id = _grid.GetCurrentRowId(GridName);
+ if (id == "")
+ return;
+ var user = GetStatic.GetUser();
+ var dbResult = _branchDoa.DeletePayerMapping(id, user);
+ if (dbResult.ErrorCode == "0")
+ {
+ LoadGrid();
+ GetStatic.AlertMessage(this, dbResult.Msg);
+ }
+ else
+ {
+ HttpContext.Current.Session["message"] = dbResult;
+ GetStatic.AlertMessage(this, dbResult.Msg);
+ }
+ }
+ protected void btnUpdate_Click(object sender, EventArgs e)
+ {
+ BankBranchDao _dao = new BankBranchDao();
+ if (!string.IsNullOrEmpty(isActive.Value))
+ {
+ var dbResult = _dao.EnableDisablePayer(rowId.Value, GetStatic.GetUser(), isActive.Value);
+ GetStatic.SetMessage(dbResult);
+ Response.Redirect("PayerMappingList.aspx");
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/Swift.web/Remit/TPSetup/BankAndBranchSetup/PayerMappingList.aspx.designer.cs b/Swift.web/Remit/TPSetup/BankAndBranchSetup/PayerMappingList.aspx.designer.cs
new file mode 100644
index 0000000..82b6ef7
--- /dev/null
+++ b/Swift.web/Remit/TPSetup/BankAndBranchSetup/PayerMappingList.aspx.designer.cs
@@ -0,0 +1,80 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace Swift.web.Remit.TPSetup.BankAndBranchSetup
+{
+
+
+ public partial class PayerMappingList
+ {
+
+ ///
+ /// form1 control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// isActive control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.HiddenField isActive;
+
+ ///
+ /// rowId control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.HiddenField rowId;
+
+ ///
+ /// btnPostBack control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Button btnPostBack;
+
+ ///
+ /// btnUpdate control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Button btnUpdate;
+
+ ///
+ /// rpt_grid control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlGenericControl rpt_grid;
+
+ ///
+ /// btnSyncBank control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Button btnSyncBank;
+ }
+}
diff --git a/Swift.web/Swift.web.csproj b/Swift.web/Swift.web.csproj
index 3189343..026e2a6 100644
--- a/Swift.web/Swift.web.csproj
+++ b/Swift.web/Swift.web.csproj
@@ -1388,9 +1388,11 @@
+
+
@@ -2948,7 +2950,6 @@
FcyListOld.aspx
- ASPXCodeBehind
FcyListOld.aspx
@@ -3011,7 +3012,6 @@
SubLedgerOld.aspx
- ASPXCodeBehind
SubLedgerOld.aspx
@@ -3074,7 +3074,6 @@
ListOld.aspx
- ASPXCodeBehind
ListOld.aspx
@@ -3102,7 +3101,6 @@
Manage.aspx
- ASPXCodeBehind
Manage.aspx
@@ -3151,7 +3149,6 @@
AccountingSummaryDetail.aspx
- ASPXCodeBehind
AccountingSummaryDetail.aspx
@@ -3221,7 +3218,6 @@
CompileReportSearch.aspx
- ASPXCodeBehind
CompileReportSearch.aspx
@@ -3298,7 +3294,6 @@
LiqReport_Sub.aspx
- ASPXCodeBehind
LiqReport_Sub.aspx
@@ -3347,7 +3342,6 @@
List.aspx
- ASPXCodeBehind
List.aspx
@@ -3382,7 +3376,6 @@
DetailTxtReportDetail.aspx
- ASPXCodeBehind
DetailTxtReportDetail.aspx
@@ -3578,7 +3571,6 @@
Manage.aspx
- ASPXCodeBehind
Manage.aspx
@@ -3818,7 +3810,6 @@
LogOut.aspx
- ASPXCodeBehind
LogOut.aspx
@@ -3916,7 +3907,6 @@
Manage.aspx
- ASPXCodeBehind
Manage.aspx
@@ -4042,14 +4032,12 @@
Calculator.aspx
- ASPXCodeBehind
Calculator.aspx
Confirm.aspx
- ASPXCodeBehind
Confirm.aspx
@@ -4210,14 +4198,12 @@
PrintBenificiaryDetails.aspx
- ASPXCodeBehind
PrintBenificiaryDetails.aspx
Detail.aspx
- ASPXCodeBehind
Detail.aspx
@@ -4315,7 +4301,6 @@
Manage.aspx
- ASPXCodeBehind
Manage.aspx
@@ -4455,7 +4440,6 @@
VaultTransferList.aspx
- ASPXCodeBehind
VaultTransferList.aspx
@@ -4574,14 +4558,12 @@
SendV2.aspx
- ASPXCodeBehind
SendV2.aspx
PickBranchByAgent.aspx
- ASPXCodeBehind
PickBranchByAgent.aspx
@@ -4602,7 +4584,6 @@
Confirm.aspx
- ASPXCodeBehind
Confirm.aspx
@@ -4738,7 +4719,6 @@
View.aspx
- ASPXCodeBehind
View.aspx
@@ -4794,7 +4774,6 @@
VoucherEntry.aspx
- ASPXCodeBehind
VoucherEntry.aspx
@@ -4864,7 +4843,6 @@
List.aspx
- ASPXCodeBehind
List.aspx
@@ -4878,7 +4856,6 @@
VoucherEntry.aspx
- ASPXCodeBehind
VoucherEntry.aspx
@@ -5028,7 +5005,6 @@
CustomerByIntroducer.aspx
- ASPXCodeBehind
CustomerByIntroducer.aspx
@@ -5084,7 +5060,6 @@
ChangeCustomerEmail.aspx
- ASPXCodeBehind
ChangeCustomerEmail.aspx
@@ -5301,7 +5276,6 @@
List.aspx
- ASPXCodeBehind
List.aspx
@@ -5329,7 +5303,6 @@
IncompleteKycReport.aspx
- ASPXCodeBehind
IncompleteKycReport.aspx
@@ -5504,7 +5477,6 @@
RefundedOnReport.aspx
- ASPXCodeBehind
RefundedOnReport.aspx
@@ -5546,7 +5518,6 @@
WeeklyMitasuReport.aspx
- ASPXCodeBehind
WeeklyMitasuReport.aspx
@@ -5574,7 +5545,6 @@
WeekRegulatoryReport.aspx
- ASPXCodeBehind
WeekRegulatoryReport.aspx
@@ -5686,7 +5656,6 @@
DocumentView.aspx
- ASPXCodeBehind
DocumentView.aspx
@@ -5735,7 +5704,6 @@
NewReceiverPrint.aspx
- ASPXCodeBehind
NewReceiverPrint.aspx
@@ -5836,7 +5804,6 @@
International.aspx
- ASPXCodeBehind
International.aspx
@@ -6018,14 +5985,12 @@
List.aspx
- ASPXCodeBehind
List.aspx
List.aspx
- ASPXCodeBehind
List.aspx
@@ -6116,7 +6081,6 @@
UserLog.aspx
- ASPXCodeBehind
UserLog.aspx
@@ -6162,7 +6126,6 @@
List.aspx
- ASPXCodeBehind
List.aspx
@@ -6218,7 +6181,6 @@
Front.aspx
- ASPXCodeBehind
Front.aspx
@@ -6497,7 +6459,6 @@
List.aspx
- ASPXCodeBehind
List.aspx
@@ -6607,7 +6568,6 @@
Manage.aspx
- ASPXCodeBehind
Manage.aspx
@@ -6726,7 +6686,6 @@
List.aspx
- ASPXCodeBehind
List.aspx
@@ -6768,7 +6727,6 @@
DeleteCustomer.aspx
- ASPXCodeBehind
DeleteCustomer.aspx
@@ -6859,7 +6817,6 @@
AuditList.aspx
- ASPXCodeBehind
AuditList.aspx
@@ -6934,7 +6891,6 @@
ReferPointSetup.aspx
- ASPXCodeBehind
ReferPointSetup.aspx
@@ -6942,7 +6898,6 @@
List.aspx
- ASPXCodeBehind
List.aspx
@@ -6994,7 +6949,6 @@
SearchOutstanding.aspx
- ASPXCodeBehind
SearchOutstanding.aspx
@@ -7021,7 +6975,6 @@
Manage.aspx
- ASPXCodeBehind
Manage.aspx
@@ -7092,7 +7045,6 @@
ManageBankData.aspx
- ASPXCodeBehind
ManageBankData.aspx
@@ -7176,7 +7128,6 @@
Dashboard.aspx
- ASPXCodeBehind
Dashboard.aspx
@@ -7288,7 +7239,6 @@
Manage.aspx
- ASPXCodeBehind
Manage.aspx
@@ -7600,7 +7550,6 @@
ApproveList.aspx
- ASPXCodeBehind
ApproveList.aspx
@@ -7670,7 +7619,6 @@
CopySummary.aspx
- ASPXCodeBehind
CopySummary.aspx
@@ -7799,7 +7747,6 @@
List.aspx
- ASPXCodeBehind
List.aspx
@@ -7813,7 +7760,6 @@
List.aspx
- ASPXCodeBehind
List.aspx
@@ -7911,7 +7857,6 @@
ComplianceDetail.aspx
- ASPXCodeBehind
ComplianceDetail.aspx
@@ -8079,7 +8024,6 @@
RBAReportMex.aspx
- ASPXCodeBehind
RBAReportMex.aspx
@@ -8156,7 +8100,6 @@
AddBank.aspx
- ASPXCodeBehind
AddBank.aspx
@@ -8168,6 +8111,13 @@
AddBankMapping.aspx
+
+ AddBankPayer.aspx
+ ASPXCodeBehind
+
+
+ AddBankPayer.aspx
+
AddBranch.aspx
ASPXCodeBehind
@@ -8184,7 +8134,6 @@
BranchList.aspx
- ASPXCodeBehind
BranchList.aspx
@@ -8210,6 +8159,13 @@
NewBankList.aspx
+
+ PayerMappingList.aspx
+ ASPXCodeBehind
+
+
+ PayerMappingList.aspx
+
List.aspx
ASPXCodeBehind
@@ -8233,7 +8189,6 @@
PopUpforState.aspx
- ASPXCodeBehind
PopUpforState.aspx
@@ -8247,7 +8202,6 @@
ManageLocation.aspx
- ASPXCodeBehind
ManageLocation.aspx
@@ -8275,7 +8229,6 @@
StateList.aspx
- ASPXCodeBehind
StateList.aspx
@@ -8324,7 +8277,6 @@
holdTxnListMobile.aspx
- ASPXCodeBehind
holdTxnListMobile.aspx
@@ -8394,7 +8346,6 @@
CancelWithCharge.aspx
- ASPXCodeBehind
CancelWithCharge.aspx
@@ -8464,7 +8415,6 @@
Manage.aspx
- ASPXCodeBehind
Manage.aspx
@@ -8518,14 +8468,12 @@
AgentCommissionApprove.aspx
- ASPXCodeBehind
AgentCommissionApprove.aspx
CommissionView.aspx
- ASPXCodeBehind
CommissionView.aspx
@@ -8560,14 +8508,12 @@
CommissionGroup.aspx
- ASPXCodeBehind
CommissionGroup.aspx
CommissionPackage.aspx
- ASPXCodeBehind
CommissionPackage.aspx
@@ -8686,7 +8632,6 @@
CancelReceipt.aspx
- ASPXCodeBehind
CancelReceipt.aspx
@@ -8805,7 +8750,6 @@
SearchTransaction.aspx
- ASPXCodeBehind
SearchTransaction.aspx
@@ -8917,7 +8861,6 @@
Pending.aspx
- ASPXCodeBehind
Pending.aspx
@@ -8938,7 +8881,6 @@
PostDom.aspx
- ASPXCodeBehind
PostDom.aspx
@@ -9302,7 +9244,6 @@
drilDownUserDComm.aspx
- ASPXCodeBehind
drilDownUserDComm.aspx
@@ -9330,14 +9271,12 @@
StaffVisitComm.aspx
- ASPXCodeBehind
StaffVisitComm.aspx
StaffVisitEarningsReport.aspx
- ASPXCodeBehind
StaffVisitEarningsReport.aspx
@@ -9533,7 +9472,6 @@
SendIntlReceipt.aspx
- ASPXCodeBehind
SendIntlReceipt.aspx
@@ -9603,14 +9541,12 @@
Manage.aspx
- ASPXCodeBehind
Manage.aspx
MissingVoucherList.aspx
- ASPXCodeBehind
MissingVoucherList.aspx
@@ -9641,7 +9577,6 @@
Manage.aspx
- ASPXCodeBehind
Manage.aspx
@@ -9683,7 +9618,6 @@
UcTranEduPay.ascx
- ASPXCodeBehind
UcTranEduPay.ascx
@@ -9711,7 +9645,6 @@
Calculator.aspx
- ASPXCodeBehind
Calculator.aspx
@@ -9739,7 +9672,6 @@
SendV2.aspx
- ASPXCodeBehind
SendV2.aspx
@@ -9782,7 +9714,6 @@
List.aspx
- ASPXCodeBehind
List.aspx
@@ -9964,7 +9895,6 @@
ManageMessage1.aspx
- ASPXCodeBehind
ManageMessage1.aspx
@@ -9992,7 +9922,6 @@
ManageNewsFeeder.aspx
- ASPXCodeBehind
ManageNewsFeeder.aspx
@@ -10048,7 +9977,6 @@
List.aspx
- ASPXCodeBehind
List.aspx
@@ -10274,7 +10202,6 @@
UserRole.aspx
- ASPXCodeBehind
UserRole.aspx
@@ -10316,7 +10243,6 @@
List.aspx
- ASPXCodeBehind
List.aspx
@@ -10330,7 +10256,6 @@
ResetPassword.aspx
- ASPXCodeBehind
ResetPassword.aspx
@@ -10365,7 +10290,6 @@
List.aspx
- ASPXCodeBehind
List.aspx
@@ -10425,7 +10349,6 @@
ResetPassword.aspx
- ASPXCodeBehind
ResetPassword.aspx
@@ -10446,7 +10369,6 @@
List.aspx
- ASPXCodeBehind
List.aspx
@@ -10460,7 +10382,6 @@
Manage.aspx
- ASPXCodeBehind
Manage.aspx
@@ -10495,7 +10416,6 @@
ViewChanges.aspx
- ASPXCodeBehind
ViewChanges.aspx