You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
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("<table class=\"table table-bordered\">"); str.AppendLine("<tr><th align=\"left\">S. No.</th><th align=\"left\">OFAC Remarks</th></tr>"); var sn = 1; foreach (DataRow dr in response.Rows) { str.Append("<tr>"); str.Append("<td>" + sn + "</td>"); str.Append("<td>" + dr[1].ToString() + "</td>"); str.Append("</tr>"); sn++; } str.AppendLine("</table>"); txnDetails.InnerHtml = str.ToString(); } public string GetTranId() { return GetStatic.ReadQueryString("tranId", ""); } } }
|