using Swift.DAL.BL.AgentPanel.Send; using Swift.web.Library; using System; using System.Text; namespace Swift.web.AgentPanel.International.SendOnBehalf.TxnHistory { public partial class SenderAdvanceSearch : System.Web.UI.Page { private readonly StaticDataDdl _sdd = new StaticDataDdl(); private readonly SwiftLibrary sl = new SwiftLibrary(); protected void Page_Load(object sender, EventArgs e) { Authenticate(); searchValue.Focus(); if (!IsPostBack) { PopulateDdl(); } } private void Authenticate() { //sl.CheckAuthentication(ViewFunctionId); sl.CheckSession(); } private void PopulateDdl() { _sdd.SetDDL(ref searchType, "exec proc_sendPageLoadData @flag='search-cust-by'", "VALUE", "TEXT", "", ""); //_sdd.SetDDL(ref searchType, "EXEC proc_dropDownLists @flag = 'custSearchType'", "detailTitle", "detailDesc", "", "Select"); } #region method private void LoadGrid() { rpt_grid.InnerHtml = ""; SendTranIRHDao dao = new SendTranIRHDao(); var dt = dao.LoadCustomerDataNew(searchType.Text, searchValue.Text, "advS-new", GetStatic.GetCountryId(), GetStatic.GetSettlingAgent()); if (dt == null || dt.Rows.Count == 0) { ManageMessage("1", "Record not found for respected Search."); return; } if (dt.Rows[0]["errorCode"].ToString() == "1") { ManageMessage(dt.Rows[0]["errorCode"].ToString(), dt.Rows[0]["msg"].ToString()); return; } int cnt = 0; StringBuilder sb = new StringBuilder("
"); sb.AppendLine(" | Customer ID | "); sb.AppendLine("Sender Name | "); //sb.AppendLine("Receiver Name | "); sb.AppendLine("Country | "); sb.AppendLine("Address | "); sb.AppendLine("Mobile No | "); sb.AppendLine("ID Type | "); sb.AppendLine("ID Number | "); sb.AppendLine("Valid Date | "); sb.AppendLine("
---|---|---|---|---|---|---|---|---|---|
"); sb.AppendLine(" | " + dt.Rows[i]["customerId"] + " | "); sb.AppendLine("" + dt.Rows[i]["senderName"] + " | "); //sb.AppendLine("" + dt.Rows[i]["receiverName"] + " | "); sb.AppendLine("" + dt.Rows[i]["countryName"] + " | "); sb.AppendLine("" + dt.Rows[i]["address"] + " | "); sb.AppendLine("" + dt.Rows[i]["mobile"] + " | "); sb.AppendLine("" + dt.Rows[i]["idType"] + " | "); sb.AppendLine("" + dt.Rows[i]["idNumber"] + " | "); sb.AppendLine("" + dt.Rows[i]["validDate"] + " | "); //} sb.AppendLine("