|
@ -3,6 +3,8 @@ using Swift.API.Common; |
|
|
using Swift.API.Common.Enum; |
|
|
using Swift.API.Common.Enum; |
|
|
using Swift.API.TPAPIs; |
|
|
using Swift.API.TPAPIs; |
|
|
using Swift.DAL.OnlineAgent; |
|
|
using Swift.DAL.OnlineAgent; |
|
|
|
|
|
using Swift.web.Component.Grid; |
|
|
|
|
|
using Swift.web.Component.Grid.gridHelper; |
|
|
using Swift.web.Library; |
|
|
using Swift.web.Library; |
|
|
using System; |
|
|
using System; |
|
|
using System.Collections.Generic; |
|
|
using System.Collections.Generic; |
|
@ -13,7 +15,11 @@ namespace Swift.web.MobileRemit.Admin.Reports |
|
|
{ |
|
|
{ |
|
|
public partial class CustomerRegistrationStatus : System.Web.UI.Page |
|
|
public partial class CustomerRegistrationStatus : System.Web.UI.Page |
|
|
{ |
|
|
{ |
|
|
private string ViewFunctionId = "41501000"; |
|
|
|
|
|
|
|
|
protected const string GridName = "apiLog"; |
|
|
|
|
|
private const string ViewFunctionId = "20172000"; |
|
|
|
|
|
private string sql; |
|
|
|
|
|
private readonly SwiftGrid _grid = new SwiftGrid(); |
|
|
|
|
|
private string ViewFunctionId1 = "41501000"; |
|
|
private readonly RemittanceLibrary _sl = new RemittanceLibrary(); |
|
|
private readonly RemittanceLibrary _sl = new RemittanceLibrary(); |
|
|
private readonly StaticDataDdl _sdd = new StaticDataDdl(); |
|
|
private readonly StaticDataDdl _sdd = new StaticDataDdl(); |
|
|
private readonly OnlineCustomerDao _cd = new OnlineCustomerDao(); |
|
|
private readonly OnlineCustomerDao _cd = new OnlineCustomerDao(); |
|
@ -32,6 +38,7 @@ namespace Swift.web.MobileRemit.Admin.Reports |
|
|
moreData.Visible = false; |
|
|
moreData.Visible = false; |
|
|
kycData.Visible = false; |
|
|
kycData.Visible = false; |
|
|
registrationTypeDiv.Visible = false; |
|
|
registrationTypeDiv.Visible = false; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -50,6 +57,47 @@ namespace Swift.web.MobileRemit.Admin.Reports |
|
|
PopulateCustomerData(); |
|
|
PopulateCustomerData(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//private void PopulateCustomerData()
|
|
|
|
|
|
//{
|
|
|
|
|
|
// string[] customer = txtSearchData.Value.Split('|');
|
|
|
|
|
|
// var customerId = customer[0];
|
|
|
|
|
|
// var customerSource = customer[1];
|
|
|
|
|
|
// //var membershipId = txtSearchData.Value["membershipId"].ToString();
|
|
|
|
|
|
// //var source = txtSearchData.
|
|
|
|
|
|
// DataSet ds = _cd.GetCustomerRegistrationStatusReport(GetStatic.GetUser(), customerId, customerSource);
|
|
|
|
|
|
// if (ds != null)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// var customerDetails = ds.Tables[0];
|
|
|
|
|
|
// var details = ds.Tables[1];
|
|
|
|
|
|
|
|
|
|
|
|
// if (customerDetails.Rows.Count > 0)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// PopulateCustomerDetails(customerDetails);
|
|
|
|
|
|
// LoadGrid();
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else
|
|
|
|
|
|
// {
|
|
|
|
|
|
// custDetails.InnerHtml = "";
|
|
|
|
|
|
// }
|
|
|
|
|
|
// if (details.Rows.Count > 0)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// PopulateDetails(details);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// if (ds.Tables.Count > 1)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// var kycDetails = ds.Tables[2];
|
|
|
|
|
|
// if (kycDetails.Rows.Count >= 1)
|
|
|
|
|
|
// {
|
|
|
|
|
|
// PopulateKycDetails(kycDetails);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// else
|
|
|
|
|
|
// {
|
|
|
|
|
|
// tblKycDetail.InnerHtml = "";
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
private void PopulateCustomerData() |
|
|
private void PopulateCustomerData() |
|
|
{ |
|
|
{ |
|
|
string[] customer = txtSearchData.Value.Split('|'); |
|
|
string[] customer = txtSearchData.Value.Split('|'); |
|
@ -57,7 +105,6 @@ namespace Swift.web.MobileRemit.Admin.Reports |
|
|
var customerSource = customer[1]; |
|
|
var customerSource = customer[1]; |
|
|
//var membershipId = txtSearchData.Value["membershipId"].ToString();
|
|
|
//var membershipId = txtSearchData.Value["membershipId"].ToString();
|
|
|
|
|
|
|
|
|
//var source = txtSearchData.
|
|
|
|
|
|
DataSet ds = _cd.GetCustomerRegistrationStatusReport(GetStatic.GetUser(), customerId, customerSource); |
|
|
DataSet ds = _cd.GetCustomerRegistrationStatusReport(GetStatic.GetUser(), customerId, customerSource); |
|
|
if (ds != null) |
|
|
if (ds != null) |
|
|
{ |
|
|
{ |
|
@ -67,15 +114,23 @@ namespace Swift.web.MobileRemit.Admin.Reports |
|
|
if (customerDetails.Rows.Count > 0) |
|
|
if (customerDetails.Rows.Count > 0) |
|
|
{ |
|
|
{ |
|
|
PopulateCustomerDetails(customerDetails); |
|
|
PopulateCustomerDetails(customerDetails); |
|
|
|
|
|
|
|
|
|
|
|
// Extract the email from the customer details
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Call LoadGrid() with the email filter
|
|
|
|
|
|
LoadGrid(); |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
custDetails.InnerHtml = ""; |
|
|
custDetails.InnerHtml = ""; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (details.Rows.Count > 0) |
|
|
if (details.Rows.Count > 0) |
|
|
{ |
|
|
{ |
|
|
PopulateDetails(details); |
|
|
PopulateDetails(details); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (ds.Tables.Count > 1) |
|
|
if (ds.Tables.Count > 1) |
|
|
{ |
|
|
{ |
|
|
var kycDetails = ds.Tables[2]; |
|
|
var kycDetails = ds.Tables[2]; |
|
@ -91,6 +146,8 @@ namespace Swift.web.MobileRemit.Admin.Reports |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void PopulateDetails(DataTable customerDetails) |
|
|
private void PopulateDetails(DataTable customerDetails) |
|
|
{ |
|
|
{ |
|
|
email.Text = customerDetails.Rows[0]["email"].ToString(); |
|
|
email.Text = customerDetails.Rows[0]["email"].ToString(); |
|
@ -186,28 +243,17 @@ namespace Swift.web.MobileRemit.Admin.Reports |
|
|
//str.Append("<td style=\"width:13%;\">" + dr["accepteddate"].ToString() + "</td>");
|
|
|
//str.Append("<td style=\"width:13%;\">" + dr["accepteddate"].ToString() + "</td>");
|
|
|
//str.Append("<td style=\"width:12%;\">" + dr["documentSubmittedDate"].ToString() + "</td>");
|
|
|
//str.Append("<td style=\"width:12%;\">" + dr["documentSubmittedDate"].ToString() + "</td>");
|
|
|
//str.Append("<td style=\"width:12%;\">" + dr["ekycSubmittedDate"].ToString() + "</td>");
|
|
|
//str.Append("<td style=\"width:12%;\">" + dr["ekycSubmittedDate"].ToString() + "</td>");
|
|
|
|
|
|
|
|
|
str.Append("</tr>"); |
|
|
str.Append("</tr>"); |
|
|
sn++; |
|
|
sn++; |
|
|
} |
|
|
} |
|
|
tblKycDetail.InnerHtml = str.ToString(); |
|
|
tblKycDetail.InnerHtml = str.ToString(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//protected void update_Click(object sender, EventArgs e)
|
|
|
|
|
|
//{
|
|
|
|
|
|
// string customerId = txtSearchData.Value.Split('|')[0];
|
|
|
|
|
|
// string customerSource = txtSearchData.Value.Split('|')[1];
|
|
|
|
|
|
// string kycType = rbKycType.SelectedValue;
|
|
|
|
|
|
|
|
|
|
|
|
// var dbResult = _cd.UpdateKycType(customerId, kycType, customerSource, GetStatic.GetUser());
|
|
|
|
|
|
// GetStatic.AlertMessage(this.Page, dbResult.Msg);
|
|
|
|
|
|
|
|
|
|
|
|
//}
|
|
|
|
|
|
protected void reset_Click(object sender, EventArgs e) |
|
|
protected void reset_Click(object sender, EventArgs e) |
|
|
{ |
|
|
{ |
|
|
string customerId = txtSearchData.Value.Split('|')[0]; |
|
|
string customerId = txtSearchData.Value.Split('|')[0]; |
|
|
// string customerSource = txtSearchData.Value.Split('|')[1];
|
|
|
// string customerSource = txtSearchData.Value.Split('|')[1];
|
|
|
|
|
|
|
|
|
var dbResult = _cd.ClearCustomerKYC(customerId, GetStatic.GetUser()); |
|
|
var dbResult = _cd.ClearCustomerKYC(customerId, GetStatic.GetUser()); |
|
|
if (dbResult.ErrorCode == "1") |
|
|
if (dbResult.ErrorCode == "1") |
|
|
{ |
|
|
{ |
|
@ -274,21 +320,70 @@ namespace Swift.web.MobileRemit.Admin.Reports |
|
|
GetStatic.AlertMessage(this, dbRes.Msg); |
|
|
GetStatic.AlertMessage(this, dbRes.Msg); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
//private void LoadGrid()
|
|
|
|
|
|
//{
|
|
|
|
|
|
|
|
|
protected void move_Click(object sender, EventArgs e) |
|
|
|
|
|
{ |
|
|
|
|
|
string email = txtSearchData.Value.Split('|')[2]; |
|
|
|
|
|
// string customerSource = txtSearchData.Value.Split('|')[1];
|
|
|
|
|
|
|
|
|
// _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 = false;
|
|
|
|
|
|
|
|
|
|
|
|
// // _grid.AllowCustomLink = true;
|
|
|
|
|
|
// //_grid.CustomLinkText = Misc.GetIcon("vd", "OpenInNewWindow('InboundLog.aspx?id=@rowId')");
|
|
|
|
|
|
// _grid.CustomLinkVariables = "rowId";
|
|
|
|
|
|
|
|
|
|
|
|
// _grid.ShowFilterForm = false;
|
|
|
|
|
|
// _grid.ShowPagingBar = true;
|
|
|
|
|
|
|
|
|
|
|
|
// _grid.ThisPage = "CustomerRegistrationStatus.aspx";
|
|
|
|
|
|
// sql = "EXEC proc_MobileApiLogReports @flag = 's'";
|
|
|
|
|
|
// _grid.SetComma();
|
|
|
|
|
|
// rpt_grid.InnerHtml = _grid.CreateGrid(sql);
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
var dbResult = _cd.MoveCustomer(email, GetStatic.GetUser()); |
|
|
|
|
|
if (dbResult.ErrorCode == "1") |
|
|
|
|
|
|
|
|
private void LoadGrid() |
|
|
{ |
|
|
{ |
|
|
GetStatic.AlertMessage(this.Page, dbResult.Msg); |
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
|
|
|
_grid.ColumnList = new List<GridColumn> |
|
|
{ |
|
|
{ |
|
|
GetStatic.AlertMessage(this.Page, "Customer has been successfully verified."); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
new GridColumn("SN", "SN", "", "T"), |
|
|
|
|
|
//new GridColumn("email", "RequestedBy", "", "T"),
|
|
|
|
|
|
new GridColumn("methodName", "MethodName", "", "T"), |
|
|
|
|
|
new GridColumn("createdDate", "Date", "", "D"), |
|
|
|
|
|
new GridColumn("message", "RequestJson", "", "T"), |
|
|
|
|
|
new GridColumn("email", "Email", "", "T"), |
|
|
|
|
|
//new GridColumn("customerId", "CustomerID", "", "T"),
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
_grid.GridDataSource = SwiftGrid.GridDS.RemittanceDB; |
|
|
|
|
|
_grid.GridType = 1; |
|
|
|
|
|
_grid.GridName = GridName; |
|
|
|
|
|
_grid.RowIdField = "rowId"; |
|
|
|
|
|
_grid.InputPerRow = 5; |
|
|
|
|
|
_grid.ShowFilterForm = false; |
|
|
|
|
|
_grid.ShowPagingBar = true; |
|
|
|
|
|
_grid.ThisPage = "CustomerRegistrationStatus.aspx"; |
|
|
|
|
|
|
|
|
|
|
|
// Construct the SQL query with the @logby parameter
|
|
|
|
|
|
sql = $"EXEC proc_MobileApiLogReports @flag = 's'"; |
|
|
|
|
|
|
|
|
|
|
|
_grid.SetComma(); |
|
|
|
|
|
rpt_grid.InnerHtml = _grid.CreateGrid(sql); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |