|
@ -248,17 +248,25 @@ namespace Swift.web.DashboardV2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ds.Tables.Count > 1) |
|
|
if (ds.Tables.Count > 1) |
|
|
{ |
|
|
|
|
|
if (ds.Tables[1] != null || ds.Tables[1].Rows.Count <= 0) |
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
if (ds.Tables[1] != null && ds.Tables[1].Rows.Count > 0) |
|
|
{ |
|
|
{ |
|
|
try |
|
|
try |
|
|
{ |
|
|
{ |
|
|
data.ComplianceData = new ComplianceData |
|
|
|
|
|
|
|
|
data.ComplianceData = new ComplianceData(); |
|
|
|
|
|
foreach (DataRow item in ds.Tables[1].Rows) |
|
|
{ |
|
|
{ |
|
|
OFACComplianceMobileTxnsKycLater = Convert.ToString(ds.Tables[1].Rows[0]["Count"]), |
|
|
|
|
|
OFACComplianceTxns = Convert.ToString(ds.Tables[1].Rows[1]["Count"]), |
|
|
|
|
|
// OFACComplianceMobileTxnsKycNow = Convert.ToString(ds.Tables[1].Rows[2]["Count"])
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
if(item["Head"].ToString().Contains("Mobile") || item["Head"].ToString().Contains("Web")) |
|
|
|
|
|
{ |
|
|
|
|
|
data.ComplianceData.OFACComplianceMobileTxnsKycLater = Convert.ToString(item["Count"]); |
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
data.ComplianceData.OFACComplianceTxns = Convert.ToString(item["Count"]); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
catch (Exception ex) |
|
|
catch (Exception ex) |
|
|
{ |
|
|
{ |
|
@ -352,7 +360,7 @@ namespace Swift.web.DashboardV2 |
|
|
.Select(x => new { BranchName= x.Field<string>("sAgentName"), CurrentMonth = (x.Field<int>("CurrentMonth")).ToString(), PreviousMonth = (x.Field<int>("PreviousMonth")).ToString() }) |
|
|
.Select(x => new { BranchName= x.Field<string>("sAgentName"), CurrentMonth = (x.Field<int>("CurrentMonth")).ToString(), PreviousMonth = (x.Field<int>("PreviousMonth")).ToString() }) |
|
|
.ToList(); |
|
|
.ToList(); |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (ds.Tables.Count > 7) |
|
|
if (ds.Tables.Count > 7) |
|
|
{ |
|
|
{ |
|
@ -454,7 +462,6 @@ namespace Swift.web.DashboardV2 |
|
|
public string OFACComplianceMobileTxnsKycLater { get; set; } |
|
|
public string OFACComplianceMobileTxnsKycLater { get; set; } |
|
|
//public string OFACComplianceMobileTxnsKycNow { get; set; }
|
|
|
//public string OFACComplianceMobileTxnsKycNow { get; set; }
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public class CustomerData |
|
|
public class CustomerData |
|
|
{ |
|
|
{ |
|
|
public string TotalCustomers { get; set; } |
|
|
public string TotalCustomers { get; set; } |
|
@ -489,7 +496,6 @@ namespace Swift.web.DashboardV2 |
|
|
public string BranchName { get; set; } |
|
|
public string BranchName { get; set; } |
|
|
public string TxnCount { get; set; } |
|
|
public string TxnCount { get; set; } |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public class KycStatus |
|
|
public class KycStatus |
|
|
{ |
|
|
{ |
|
|
public string KycNotCompleted { get; set; } |
|
|
public string KycNotCompleted { get; set; } |
|
|