using Swift.DAL.BL.Remit.Compliance; using Swift.web.Library; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace Swift.web.Remit.Compliance.OfacReleaseRpt { public partial class MoreMatches : System.Web.UI.Page { complianceDao cd = new complianceDao(); private readonly SwiftLibrary sl = new SwiftLibrary(); protected void Page_Load(object sender, EventArgs e) { sl.CheckSession(); PopulateMoreMatches(); } private void PopulateMoreMatches() { DataTable response = cd.GetMoreMatches(GetTranId()); if (response == null) { return; } if (response.Rows[0]["isJsonData"].ToString() == "Y") { string res = GetStatic.ParseOfacJson(response.Rows[0]["ofacRemarks"].ToString(), ""); if (!string.IsNullOrEmpty(res)) { txnDetails.InnerHtml = res; } return; } var str = new StringBuilder(""); str.AppendLine(""); var sn = 1; foreach (DataRow dr in response.Rows) { str.Append(""); str.Append(""); str.Append(""); str.Append(""); sn++; } str.AppendLine("
S. No.OFAC Remarks
" + sn + "" + dr[1].ToString() + "
"); txnDetails.InnerHtml = str.ToString(); } public string GetTranId() { return GetStatic.ReadQueryString("tranId", ""); } } }