using Swift.DAL.BL.Remit.Transaction; using Swift.web.Library; using System; using System.Data; using System.Text; namespace Swift.web.AgentPanel.CustomerInquery { public partial class List : System.Web.UI.Page { private readonly RemittanceLibrary obj = new RemittanceLibrary(); private readonly RemittanceLibrary _sl = new RemittanceLibrary(); private const string ViewFunctionId = "20177200"; protected void Page_Load(object sender, EventArgs e) { Authenticate(); if (!IsPostBack) { divTranDetails.Visible = false; PopulateDdl(); } } private void Authenticate() { _sl.CheckAuthentication(ViewFunctionId); } private void PopulateDdl() { _sl.SetDDL(ref country, "EXEC proc_online_dropDownList @flag='allCountrylist'", "countryName", "countryName", "", "Select.."); } protected void btnSearch_Click(object sender, EventArgs e) { SearchLogs(); } private void SearchLogs() { var obj = new TranViewDao(); var dt = obj.ViewInquiry(GetStatic.GetUser(), MobileNo.Text); if (null == dt) { return; } var str = new StringBuilder(""); str.Append(""); str.Append(""); str.Append(""); str.Append(""); str.Append(""); str.Append(""); str.Append(""); foreach (DataRow dr in dt.Rows) { str.Append(""); str.Append(""); str.Append(""); str.Append(""); str.Append(""); str.Append(""); str.Append(""); } str.Append("
Updated ByUpdated DateCoutry Message/Complain Inquiry Type
" + dr["createdBy"] + "" + dr["createdDate"] + "" + dr["Country"] + "" + dr["complian"] + "" + dr["msgType"] + "
"); rptLog.InnerHtml = str.ToString(); divTranDetails.Visible = true; heading.Visible = false; divSearch.Visible = false; } protected void btnAdd_Click(object sender, EventArgs e) { var obj = new TranViewDao(); var result = obj.ManageInquiry(GetStatic.GetUser(), MobileNo.Text, msgType.Text, comments.Text, country.Text); SearchLogs(); } } }