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.
97 lines
3.4 KiB
97 lines
3.4 KiB
using Swift.DAL.BL.AgentPanel.Send;
|
|
using Swift.DAL.BL.Remit.Transaction;
|
|
using Swift.web.Component.Grid;
|
|
using Swift.web.Component.Grid.gridHelper;
|
|
using Swift.web.Library;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
|
|
namespace Swift.web.Remit.Compliance.ApproveOFACandComplaince
|
|
{
|
|
public partial class Manage : System.Web.UI.Page
|
|
{
|
|
private SendTranIRHDao st = new SendTranIRHDao();
|
|
private readonly RemittanceLibrary obj = new RemittanceLibrary();
|
|
private readonly SwiftGrid _grid = new SwiftGrid();
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
string reqMethod = Request.Form["MethodName"];
|
|
if (reqMethod == "getAdditionalCDDI")
|
|
GetAdditionalCDDI();
|
|
if (reqMethod == "saveXMLCDDI")
|
|
SaveXMLCDDI();
|
|
|
|
obj.CheckSession();
|
|
ShowTxnDetail();
|
|
}
|
|
|
|
private void SaveXMLCDDI()
|
|
{
|
|
string xmlDataForCDDI = Request.Form["XmlDataForCDDI"];
|
|
string tranId = Request.Form["TranId"];
|
|
//var dt = st.LoadCustomerData(searchType, searchValue, "s", GetStatic.GetCountryId(), GetStatic.GetSettlingAgent());
|
|
var dbRes = st.SaveCDDIQuestionnaire(GetStatic.GetUser(), tranId, xmlDataForCDDI.Replace("%3e", "<").Replace("%3c", ">"));
|
|
GetStatic.JsonResponse(dbRes, this, null);
|
|
}
|
|
|
|
private void GetAdditionalCDDI()
|
|
{
|
|
string tranId = Request.Form["TranId"];
|
|
string questionnaireType = Request.Form["QuestionnaireType"];
|
|
//var dt = st.LoadCustomerData(searchType, searchValue, "s", GetStatic.GetCountryId(), GetStatic.GetSettlingAgent());
|
|
var dt = st.GetAdditionalCDDIInfoMobile(GetStatic.GetUser(), tranId, questionnaireType);
|
|
if (dt == null)
|
|
{
|
|
Response.Write("");
|
|
Response.End();
|
|
return;
|
|
}
|
|
GetStatic.JsonResponse("", this, dt);
|
|
}
|
|
|
|
protected bool ShowCommentFlag()
|
|
{
|
|
return GetStatic.ReadQueryString("commentFlag", "Y") != "N";
|
|
}
|
|
|
|
protected bool ShowBankDetail()
|
|
{
|
|
return (GetStatic.ReadQueryString("showBankDetail", "N") != "Y" ? false : true);
|
|
}
|
|
|
|
protected bool ShowOfac()
|
|
{
|
|
return GetStatic.ReadQueryString("ShowOfac", "Y") != "N";
|
|
}
|
|
|
|
protected bool ShowComplaince()
|
|
{
|
|
return GetStatic.ReadQueryString("ShowComplaince", "Y") != "N";
|
|
}
|
|
|
|
protected bool ShowApproveButton()
|
|
{
|
|
return GetStatic.ReadQueryString("ShowApproveButton", "Y") != "N";
|
|
}
|
|
|
|
private void ShowTxnDetail()
|
|
{
|
|
string txnId = GetStatic.ReadQueryString("tranId", "");
|
|
string cntNo = GetStatic.ReadQueryString("controlNo", "");
|
|
|
|
if (txnId != "" || cntNo != "")
|
|
{
|
|
ucTran.ShowCommentBlock = ShowCommentFlag();
|
|
ucTran.ShowBankDetail = ShowBankDetail();
|
|
ucTran.ShowOfac = ShowOfac();
|
|
ucTran.ShowCompliance = ShowComplaince();
|
|
ucTran.ShowApproveButton = ShowApproveButton();
|
|
ucTran.isFromApprove = "Y";
|
|
ucTran.SearchData(txnId, cntNo, "", "", "COMPLIANCE", "ADM: APPROVE OFAC/COMPLIANCE");
|
|
divTranDetails.Visible = ucTran.TranFound;
|
|
}
|
|
}
|
|
}
|
|
}
|