Browse Source

#32090 mobile log

feature/Redmine-16525-Cosmetic_Changes^2
Dinesh 1 month ago
parent
commit
1e4bcb67d6
  1. 126
      Swift.web/MobileRemit/Admin/Reports/CustomerRegistrationStatus.aspx.cs

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

@ -57,13 +57,53 @@ namespace Swift.web.MobileRemit.Admin.Reports
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()
{
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)
{
@ -72,17 +112,24 @@ namespace Swift.web.MobileRemit.Admin.Reports
if (customerDetails.Rows.Count > 0)
{
PopulateCustomerDetails(customerDetails);
PopulateCustomerDetails(customerDetails);
// Extract the email from the customer details
// Call LoadGrid() with the email filter
LoadGrid();
}
else
{
custDetails.InnerHtml = "";
}
if (details.Rows.Count > 0)
{
PopulateDetails(details);
}
if (ds.Tables.Count > 1)
{
var kycDetails = ds.Tables[2];
@ -99,6 +146,7 @@ namespace Swift.web.MobileRemit.Admin.Reports
}
private void PopulateDetails(DataTable customerDetails)
{
email.Text = customerDetails.Rows[0]["email"].ToString();
@ -265,40 +313,70 @@ namespace Swift.web.MobileRemit.Admin.Reports
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()
{
_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.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'";
// Construct the SQL query with the @logby parameter
sql = $"EXEC proc_MobileApiLogReports @flag = 's'";
_grid.SetComma();
rpt_grid.InnerHtml = _grid.CreateGrid(sql);
}
}
}
Loading…
Cancel
Save