|
@ -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; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -55,7 +62,7 @@ namespace Swift.web.MobileRemit.Admin.Reports |
|
|
string[] customer = txtSearchData.Value.Split('|'); |
|
|
string[] customer = txtSearchData.Value.Split('|'); |
|
|
var customerId = customer[0]; |
|
|
var customerId = customer[0]; |
|
|
var customerSource = customer[1]; |
|
|
var customerSource = customer[1]; |
|
|
|
|
|
|
|
|
|
|
|
//var membershipId = txtSearchData.Value["membershipId"].ToString();
|
|
|
//var source = txtSearchData.
|
|
|
//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) |
|
@ -66,6 +73,7 @@ namespace Swift.web.MobileRemit.Admin.Reports |
|
|
if (customerDetails.Rows.Count > 0) |
|
|
if (customerDetails.Rows.Count > 0) |
|
|
{ |
|
|
{ |
|
|
PopulateCustomerDetails(customerDetails); |
|
|
PopulateCustomerDetails(customerDetails); |
|
|
|
|
|
LoadGrid(); |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
@ -90,6 +98,7 @@ 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(); |
|
@ -105,20 +114,18 @@ namespace Swift.web.MobileRemit.Admin.Reports |
|
|
cusData.Visible = true; |
|
|
cusData.Visible = true; |
|
|
registrationTypeDiv.Visible = true; |
|
|
registrationTypeDiv.Visible = true; |
|
|
|
|
|
|
|
|
if (customerDetails.Columns.Contains("createdFrom")) |
|
|
|
|
|
{ |
|
|
|
|
|
if ((customerDetails.Rows[0]["createdFrom"].ToString() == "C") || (customerDetails.Rows[0]["createdFrom"].ToString() == "O")) |
|
|
if ((customerDetails.Rows[0]["createdFrom"].ToString() == "C") || (customerDetails.Rows[0]["createdFrom"].ToString() == "O")) |
|
|
{ |
|
|
{ |
|
|
if(customerDetails.Rows[0]["mobileApprovedDate"].ToString() == "") |
|
|
|
|
|
|
|
|
if (customerDetails.Rows[0]["mobileApprovedDate"].ToString() == "") |
|
|
{ |
|
|
{ |
|
|
btnActivate.Enabled = true; |
|
|
btnActivate.Enabled = true; |
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
btnActivate.Enabled = false; |
|
|
btnActivate.Enabled = false; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (customerDetails.Rows[0]["approvedBy"].ToString() != "") |
|
|
if (customerDetails.Rows[0]["approvedBy"].ToString() != "") |
|
|
{ |
|
|
{ |
|
|
//btnUpdate.Enabled = false;
|
|
|
//btnUpdate.Enabled = false;
|
|
@ -181,7 +188,6 @@ 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++; |
|
|
} |
|
|
} |
|
@ -193,16 +199,13 @@ namespace Swift.web.MobileRemit.Admin.Reports |
|
|
// string customerId = txtSearchData.Value.Split('|')[0];
|
|
|
// string customerId = txtSearchData.Value.Split('|')[0];
|
|
|
// string customerSource = txtSearchData.Value.Split('|')[1];
|
|
|
// string customerSource = txtSearchData.Value.Split('|')[1];
|
|
|
// string kycType = rbKycType.SelectedValue;
|
|
|
// string kycType = rbKycType.SelectedValue;
|
|
|
|
|
|
|
|
|
// var dbResult = _cd.UpdateKycType(customerId, kycType, customerSource, GetStatic.GetUser());
|
|
|
// var dbResult = _cd.UpdateKycType(customerId, kycType, customerSource, GetStatic.GetUser());
|
|
|
// GetStatic.AlertMessage(this.Page, dbResult.Msg);
|
|
|
// 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") |
|
|
{ |
|
|
{ |
|
@ -213,6 +216,7 @@ namespace Swift.web.MobileRemit.Admin.Reports |
|
|
GetStatic.AlertMessage(this.Page, "Customer KYC has been successfully cleared."); |
|
|
GetStatic.AlertMessage(this.Page, "Customer KYC has been successfully cleared."); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected void activate_Click(object sender, EventArgs e) |
|
|
protected void activate_Click(object sender, EventArgs e) |
|
|
{ |
|
|
{ |
|
|
string customerId = txtSearchData.Value.Split('|')[0]; |
|
|
string customerId = txtSearchData.Value.Split('|')[0]; |
|
@ -268,18 +272,41 @@ namespace Swift.web.MobileRemit.Admin.Reports |
|
|
GetStatic.AlertMessage(this, dbRes.Msg); |
|
|
GetStatic.AlertMessage(this, dbRes.Msg); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
protected void move_Click(object sender, EventArgs e) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void LoadGrid() |
|
|
{ |
|
|
{ |
|
|
string email = txtSearchData.Value.Split('|')[2]; |
|
|
|
|
|
var dbResult = _cd.MoveCustomer(email, GetStatic.GetUser()); |
|
|
|
|
|
if (dbResult.ErrorCode == "1") |
|
|
|
|
|
{ |
|
|
|
|
|
GetStatic.AlertMessage(this.Page, dbResult.Msg); |
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
GetStatic.AlertMessage(this.Page, "Customer KYC has been successfully cleared."); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_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); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |