using Swift.API.Common; using Swift.API.Common.Amend; using Swift.API.ThirdPartyApiServices; using Swift.DAL.BL.Remit.Transaction; using Swift.DAL.SwiftDAL; 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.Transaction.ModifyRequest { public partial class TransactionDetail : System.Web.UI.Page { private const string ViewFunctionId = "90300000"; protected const string GridName = "grdPenAgntTxnModify"; private readonly ModifyTransactionDao dao = new ModifyTransactionDao(); private readonly RemittanceLibrary sl = new RemittanceLibrary(); private readonly StaticDataDdl sdd = new StaticDataDdl(); protected void Page_Load(object sender, EventArgs e) { Authenticate(); if (!IsPostBack) { PopulateData(); } GetStatic.ResizeFrame(Page); } private void PopulateData() { // emailAdd.Text = sl.GetBranchEmail(GetStatic.GetBranch(), GetStatic.GetUser()); sdd.SetStaticDdl(ref txnmodifyField, "8100", "", ""); PopulateTransactionDetail(); } private void Authenticate() { sl.CheckAuthentication(ViewFunctionId); } protected string GetControlNo() { return GetStatic.ReadQueryString("controlNo", ""); } protected bool ShowCommentFlag() { return GetStatic.ReadQueryString("commentFlag", "Y") != "N"; } protected bool ShowBankDetail() { return (GetStatic.ReadQueryString("showBankDetail", "N") == "Y"); } private void PopulateTransactionDetail() { string txnId = GetStatic.ReadQueryString("tranId", ""); string cntNo = GetControlNo(); if (txnId != "" || cntNo != "") { ucTran.ShowCommentBlock = ShowCommentFlag(); ucTran.ShowBankDetail = ShowBankDetail(); ucTran.SearchData(txnId, cntNo, "", "", "SEARCH", "ADM: VIEW TXN (SEARCH TRANSACTION)"); if (!ucTran.TranFound) { GetStatic.ShowErrorMessage("Transaction Not Found"); return; } if (ucTran.TranStatus != "Payment") { GetStatic.ShowErrorMessage("Transaction not authorised for modification; Status:" + ucTran.TranStatus + "!"); return; } divTranDetails.Visible = ucTran.TranFound; modtable.Visible = ucTran.TranFound; divControlno.Visible = ucTran.TranFound; if (ucTran.PSuperAgent == "394428") { txnmodifyField.Visible = false; txnReceiver.Visible = true; nameTable.Visible = true; btnAdd.Visible = false; } else { txnmodifyField.Visible = true; txnReceiver.Visible = false; btnAdd.Visible = true; } } } protected void btnAdd_Click(object sender, EventArgs e) { } private void TXNRequestDeatil(DataTable dt) { if (dt != null && dt.Rows.Count != 0) { dispRequest.Visible = true; StringBuilder sb = new StringBuilder(""); sb.AppendLine("
S.N | Comments | Delete |
---|---|---|
" + (i + 1) + " | "); sb.AppendLine("" + dt.Rows[i]["message"] + " | "); sb.AppendLine("