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.
57 lines
1.7 KiB
57 lines
1.7 KiB
using Swift.DAL.BL.AgentPanel.Send;
|
|
using Swift.DAL.BL.Transaction.ThirdParty.Mtrade;
|
|
using Swift.DAL.Domain;
|
|
using Swift.DAL.SwiftDAL;
|
|
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
|
|
{
|
|
public partial class TestAPITxnSend : System.Web.UI.Page
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
protected void btnShowRpt_Click(object sender, EventArgs e)
|
|
{
|
|
DbResult _dbResult = new DbResult();
|
|
if (string.IsNullOrWhiteSpace(cotrolNo.Text))
|
|
{
|
|
_dbResult.ErrorCode = "1";
|
|
_dbResult.Msg = "Control No Is Required!";
|
|
GetStatic.AlertMessage(this, _dbResult.Msg);
|
|
return;
|
|
}
|
|
|
|
IMtradeSendAPIDao _mtradeApi = new MtradeSendAPIDao();
|
|
if (providerDDL.SelectedValue == "mtrade")
|
|
{
|
|
_dbResult = _mtradeApi.SendTxnMtrade(GetStatic.GetUser(), "mtrade", null, true, cotrolNo.Text);
|
|
if (_dbResult.ErrorCode != "1000")
|
|
{
|
|
_dbResult.ErrorCode = "1";
|
|
}
|
|
else
|
|
{
|
|
SendTranIRHDao _st = new SendTranIRHDao();
|
|
IRHTranDetail trn = new IRHTranDetail();
|
|
trn.tpRefNo = _dbResult.Extra;
|
|
trn.tpTranId = _dbResult.Id;
|
|
trn.tpExRate = _dbResult.Extra2;
|
|
|
|
_dbResult = _st.UpdateTPTxns(trn, cotrolNo.Text, GetStatic.GetUser());
|
|
|
|
}
|
|
}
|
|
|
|
GetStatic.AlertMessage(this, _dbResult.Msg);
|
|
}
|
|
}
|
|
}
|