using System; using System.Collections.Generic; using Swift.web.Component.Grid; using Swift.web.Component.Grid.gridHelper; using Swift.web.Library; using Swift.DAL.SwiftDAL; using Swift.DAL.BL.Remit.Compliance; using System.Text; namespace Swift.web.Remit.RiskBaseAnalysis.RBACustomer { public partial class RBAExceptionRpt : System.Web.UI.Page { protected const string GridName = "gridRBACustomerRpt"; private string ViewFunctionId = "20191500"; private readonly SwiftGrid _grid = new SwiftGrid(); private readonly SwiftLibrary _sl = new SwiftLibrary(); private readonly RBACustomerDao obj = new RBACustomerDao(); protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Authenticate(); } } private void Authenticate() { _sl.CheckAuthentication(ViewFunctionId); } private void LoadGrid() { rpt_grid.InnerHtml = ""; var dt = obj.LoadRBAExceptionRpt(GetStatic.GetUser(), fromDate.Text, toDate.Text, country.Value, agent.Value, branch.Value, reportType.SelectedValue); int cnt = 0; var sb = new StringBuilder("
RISK | "); sb.AppendLine("TXN | "); sb.AppendLine("COMPLETED | "); sb.AppendLine("PENDING | "); sb.AppendLine("||||
---|---|---|---|---|---|---|---|
CDD | "); sb.AppendLine("EDD | "); sb.AppendLine("STR | "); sb.AppendLine("CDD | "); sb.AppendLine("EDD | "); sb.AppendLine("STR | "); sb.AppendLine("||
" + dt.Rows[i]["RISK"] + " | "); sb.AppendLine("" + dt.Rows[i]["TXN"] + " | "); sb.AppendLine("" + dt.Rows[i]["CDD"] + " | "); sb.AppendLine("" + dt.Rows[i]["EDD"] + " | "); sb.AppendLine("" + dt.Rows[i]["STR"] + " | "); sb.AppendLine("" + dt.Rows[i]["P_CDD"] + " | "); sb.AppendLine("" + dt.Rows[i]["P_EDD"] + " | "); sb.AppendLine("" + dt.Rows[i]["P_STR"] + " | "); sb.AppendLine("