Browse Source

#32090 mobile api log

feature/Redmine-16525-Cosmetic_Changes^2
Dinesh 1 month ago
parent
commit
a59dfa5547
  1. 39
      Swift.web/MobileRemit/Admin/Reports/CustomerRegistrationStatus.aspx
  2. 69
      Swift.web/MobileRemit/Admin/Reports/CustomerRegistrationStatus.aspx.cs
  3. 10
      Swift.web/MobileRemit/Admin/Reports/CustomerRegistrationStatus.aspx.designer.cs

39
Swift.web/MobileRemit/Admin/Reports/CustomerRegistrationStatus.aspx

@ -21,6 +21,26 @@
<script src="/js/functions.js" type="text/javascript"></script>
<script src="../../../../../js/swift_calendar.js"></script>
<script src="../../../js/swift_autocomplete.js"></script>
<script src="/js/Swift_grid.js" type="text/javascript"></script>
<script src="/js/functions.js" type="text/javascript"></script>
<link href="/ui/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
<link href="/ui/css/style.css" rel="stylesheet" />
<link href="/ui/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
<script src="/js/functions.js"></script>
<script src="/js/swift_calendar.js"></script>
<link href="/ui/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
<link href="/ui/css/datepicker-custom.css" rel="stylesheet" />
<link href="/js/jQuery/jquery-ui.css" rel="stylesheet" type="text/css" />
<link href="/ui/css/waves.min.css" type="text/css" rel="stylesheet" />
<!-- <link rel="stylesheet" href="css/nanoscroller.css">-->
<link href="/ui/css/style.css" type="text/css" rel="stylesheet" />
<link href="/ui/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
<script type="text/javascript" src="/ui/js/jquery.min.js"></script>
<script type="text/javascript" src="/ui/bootstrap/js/bootstrap.min.js"></script>
<script src="/js/swift_calendar.js"></script>
<script src="/ui/js/pickers-init.js"></script>
<script src="/ui/js/jquery-ui.min.js"></script>
<script src="/ui/js/metisMenu.min.js"></script>
<style>
.upperDiv {
@ -163,11 +183,10 @@
<%-- <asp:Button ID="btnUpdate" runat="server" CssClass="btn btn-primary m-t-25" Text="Update" OnClick="update_Click" />--%>
<asp:Button ID="btnReset" runat="server" CssClass="btn btn-primary m-t-25" Text="Reset KYC" OnClick="reset_Click" />
<asp:Button ID="btnActivate" runat="server" CssClass="btn btn-primary m-t-25" Text="Activate" OnClick="activate_Click" />
<asp:Button ID="btnMove" runat="server" CssClass="btn btn-primary m-t-25" Text="Manual Verify" OnClick="move_Click" />
</div>
</div>
</div>
</div>
</div>
</div>
</div>
@ -237,6 +256,22 @@
</div>
</div>
</div>
<div class="panel panel-default ">
<div class="panel-heading">
<h4 class="panel-title">Mobile API Log List </h4>
<div class="panel-actions">
<a href="#" class="panel-action panel-action-toggle" data-panel-toggle></a>
</div>
</div>
<div class="panel-body">
<div class="form-group">
<div id="rpt_grid" runat="server" class="gridDiv" enableviewstate="False">
</div>
</div>
</div>
</div>
</div>
</div>
</div>

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

@ -3,6 +3,8 @@ using Swift.API.Common;
using Swift.API.Common.Enum;
using Swift.API.TPAPIs;
using Swift.DAL.OnlineAgent;
using Swift.web.Component.Grid;
using Swift.web.Component.Grid.gridHelper;
using Swift.web.Library;
using System;
using System.Collections.Generic;
@ -13,7 +15,11 @@ namespace Swift.web.MobileRemit.Admin.Reports
{
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 StaticDataDdl _sdd = new StaticDataDdl();
private readonly OnlineCustomerDao _cd = new OnlineCustomerDao();
@ -32,6 +38,7 @@ namespace Swift.web.MobileRemit.Admin.Reports
moreData.Visible = false;
kycData.Visible = false;
registrationTypeDiv.Visible = false;
}
}
@ -55,7 +62,7 @@ namespace Swift.web.MobileRemit.Admin.Reports
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)
@ -66,6 +73,7 @@ namespace Swift.web.MobileRemit.Admin.Reports
if (customerDetails.Rows.Count > 0)
{
PopulateCustomerDetails(customerDetails);
LoadGrid();
}
else
{
@ -90,6 +98,7 @@ namespace Swift.web.MobileRemit.Admin.Reports
}
}
private void PopulateDetails(DataTable customerDetails)
{
email.Text = customerDetails.Rows[0]["email"].ToString();
@ -105,20 +114,18 @@ namespace Swift.web.MobileRemit.Admin.Reports
cusData.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]["mobileApprovedDate"].ToString() == "")
if (customerDetails.Rows[0]["mobileApprovedDate"].ToString() == "")
{
btnActivate.Enabled = true;
}
}
}
else
{
btnActivate.Enabled = false;
}
if (customerDetails.Rows[0]["approvedBy"].ToString() != "")
{
//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:12%;\">" + dr["documentSubmittedDate"].ToString() + "</td>");
//str.Append("<td style=\"width:12%;\">" + dr["ekycSubmittedDate"].ToString() + "</td>");
str.Append("</tr>");
sn++;
}
@ -193,16 +199,13 @@ namespace Swift.web.MobileRemit.Admin.Reports
// 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)
{
string customerId = txtSearchData.Value.Split('|')[0];
// string customerSource = txtSearchData.Value.Split('|')[1];
var dbResult = _cd.ClearCustomerKYC(customerId, GetStatic.GetUser());
if (dbResult.ErrorCode == "1")
{
@ -213,6 +216,7 @@ namespace Swift.web.MobileRemit.Admin.Reports
GetStatic.AlertMessage(this.Page, "Customer KYC has been successfully cleared.");
}
}
protected void activate_Click(object sender, EventArgs e)
{
string customerId = txtSearchData.Value.Split('|')[0];
@ -268,18 +272,41 @@ namespace Swift.web.MobileRemit.Admin.Reports
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);
}
}
}

10
Swift.web/MobileRemit/Admin/Reports/CustomerRegistrationStatus.aspx.designer.cs

@ -141,7 +141,6 @@ namespace Swift.web.MobileRemit.Admin.Reports
protected global::System.Web.UI.WebControls.Button btnActivate;
/// <summary>
protected global::System.Web.UI.WebControls.Button btnMove;
/// moreData control.
/// </summary>
/// <remarks>
@ -185,5 +184,14 @@ namespace Swift.web.MobileRemit.Admin.Reports
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl tblKycDetail;
/// <summary>
/// rpt_grid control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl rpt_grid;
}
}
Loading…
Cancel
Save