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.
 
 
 
 
 

47 lines
1.6 KiB

using Swift.DAL.Remittance.Transaction;
using Swift.web.Library;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Swift.web.Remit.ThirdPartyTXN.InboundApiLog
{
public partial class InboundLog : System.Web.UI.Page
{
private readonly ApiLogDao _apiLog = new ApiLogDao();
private const string ViewFunctionId = "20172000";
private readonly RemittanceLibrary _sl = new RemittanceLibrary();
protected void Page_Load(object sender, EventArgs e)
{
_sl.CheckSession();
Authenticate();
LoadMessage();
}
private void Authenticate()
{
_sl.CheckAuthentication(ViewFunctionId);
}
private void LoadMessage()
{
var id = GetStatic.ReadNumericDataFromQueryString("id").ToString();
var res = _apiLog.GetInboundApiLogRecord(id);
if (res != null)
{
provider.Text = res["providerName"].ToString();
Method.Text = res["methodName"].ToString();
ControlNo.Text = res["controlNo"].ToString();
User.Text = res["requestedBy"].ToString();
RequestDate.Text = res["requestedDate"].ToString();
ResponseDate.Text = res["responseDate"].ToString();
//Code.Text = res["errorCode"].ToString();
//Message.Text = res["errorMessage"].ToString();
reqXml.Text = res["requestXml"].ToString();
resXml.Text = res["responseXml"].ToString();
}
}
}
}