|
|
@ -2,6 +2,7 @@ |
|
|
|
using Swift.web.Library; |
|
|
|
using System; |
|
|
|
using System.Data; |
|
|
|
using System.Web.UI; |
|
|
|
|
|
|
|
namespace Swift.web.Payment |
|
|
|
{ |
|
|
@ -68,11 +69,26 @@ namespace Swift.web.Payment |
|
|
|
if (dt.Rows[0]["tranType"].ToString() == "I") |
|
|
|
{ |
|
|
|
string controlNo = dt.Rows[0]["ControlNo"].ToString(); |
|
|
|
lnkBack.NavigateUrl = $"{GetStatic.ReadWebConfig("CR_Trust_Receipt_url")}?invoicePrint=d&cn={controlNo}"; |
|
|
|
// lnkBack.NavigateUrl = $"{GetStatic.ReadWebConfig("CR_Trust_Receipt_url")}?invoicePrint=d&controlNo={controlNo}";
|
|
|
|
|
|
|
|
DAL.SwiftDAL.DbResult dbResult = new DAL.SwiftDAL.DbResult() { Msg = "OK", Id = controlNo }; |
|
|
|
var mes = GetStatic.ParseResultJsPrint(dbResult); |
|
|
|
mes = mes.Replace("'", ""); |
|
|
|
mes = mes.Replace("<center>", ""); |
|
|
|
mes = mes.Replace("</center>", ""); |
|
|
|
|
|
|
|
var invPrintMode = "d"; |
|
|
|
|
|
|
|
var functionName = "ManageMessage('" + mes + "','" + invPrintMode + "');"; |
|
|
|
lnkBack.Attributes.Add("onclick", functionName); |
|
|
|
|
|
|
|
|
|
|
|
// GetStatic.CallBackJs1(Page, scriptName, functionName);
|
|
|
|
|
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
lnkBack.NavigateUrl = GetStatic.ReadWebConfig("sitesuccess_back", ""); |
|
|
|
lnkBack.NavigateUrl = GetStatic.ReadWebConfig("sitesuccess_back", ""); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|