|
@ -57,13 +57,53 @@ 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('|'); |
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
DataSet ds = _cd.GetCustomerRegistrationStatusReport(GetStatic.GetUser(), customerId, customerSource); |
|
|
DataSet ds = _cd.GetCustomerRegistrationStatusReport(GetStatic.GetUser(), customerId, customerSource); |
|
|
if (ds != null) |
|
|
if (ds != null) |
|
|
{ |
|
|
{ |
|
@ -72,17 +112,24 @@ 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(); |
|
|
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]; |
|
@ -99,6 +146,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(); |
|
@ -265,40 +313,70 @@ namespace Swift.web.MobileRemit.Admin.Reports |
|
|
GetStatic.AlertMessage(this, dbRes.Msg); |
|
|
GetStatic.AlertMessage(this, dbRes.Msg); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
//private void LoadGrid()
|
|
|
|
|
|
//{
|
|
|
|
|
|
|
|
|
|
|
|
// _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);
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
private void LoadGrid() |
|
|
private void LoadGrid() |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
_grid.ColumnList = new List<GridColumn> |
|
|
_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"),
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
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.GridDataSource = SwiftGrid.GridDS.RemittanceDB; |
|
|
_grid.GridType = 1; |
|
|
_grid.GridType = 1; |
|
|
_grid.GridName = GridName; |
|
|
_grid.GridName = GridName; |
|
|
_grid.RowIdField = "rowId"; |
|
|
_grid.RowIdField = "rowId"; |
|
|
_grid.InputPerRow = 5; |
|
|
_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.ShowFilterForm = false; |
|
|
_grid.ShowPagingBar = true; |
|
|
_grid.ShowPagingBar = true; |
|
|
|
|
|
|
|
|
_grid.ThisPage = "CustomerRegistrationStatus.aspx"; |
|
|
_grid.ThisPage = "CustomerRegistrationStatus.aspx"; |
|
|
sql = "EXEC proc_MobileApiLogReports @flag = 's'"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Construct the SQL query with the @logby parameter
|
|
|
|
|
|
sql = $"EXEC proc_MobileApiLogReports @flag = 's'"; |
|
|
|
|
|
|
|
|
_grid.SetComma(); |
|
|
_grid.SetComma(); |
|
|
rpt_grid.InnerHtml = _grid.CreateGrid(sql); |
|
|
rpt_grid.InnerHtml = _grid.CreateGrid(sql); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |