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.
70 lines
2.2 KiB
70 lines
2.2 KiB
using Swift.DAL.BL.Remit.Transaction;
|
|
using Swift.DAL.BL.Remit.Transaction.ThirdParty;
|
|
using Swift.DAL.BL.Transaction.ThirdParty.GlobalBank;
|
|
using Swift.DAL.SwiftDAL;
|
|
using System.Data;
|
|
using System.Web.Services;
|
|
|
|
namespace Swift.web.INTAPI
|
|
{
|
|
/// <summary>
|
|
/// Summary description for SchedularHelper
|
|
/// </summary>
|
|
[WebService(Namespace = "http://tempuri.org/")]
|
|
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
|
|
[System.ComponentModel.ToolboxItem(false)]
|
|
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the
|
|
// following line. [System.Web.Script.Services.ScriptService]
|
|
public class SchedularHelper : System.Web.Services.WebService
|
|
{
|
|
[WebMethod]
|
|
public string HelloWorld()
|
|
{
|
|
return "Hello World";
|
|
}
|
|
|
|
/// <summary>
|
|
/// </summary>
|
|
/// <param name="count">
|
|
/// No of trancaction to be processed from reprocess list
|
|
/// </param>
|
|
/// <param name="agentCode">
|
|
/// Agent Code
|
|
/// </param>
|
|
/// <param name="user">
|
|
/// User Name
|
|
/// </param>
|
|
/// <param name="pass">
|
|
/// Password
|
|
/// </param>
|
|
/// <returns>
|
|
/// </returns>
|
|
|
|
[WebMethod]
|
|
public DbResult ReprocessGiblTransaction(string count, string agentCode, string user, string pass)
|
|
{
|
|
var dbRes = new DbResult();
|
|
var atd = new ApproveTransactionDao();
|
|
dbRes = atd.ReprocessBySchedular(count, agentCode, user, pass);
|
|
|
|
return dbRes;
|
|
}
|
|
|
|
[WebMethod]
|
|
public DbResult SyncTransactionStatus(string agentCode, string user, string pass)
|
|
{
|
|
var dr = new DbResult();
|
|
dr.SetError("1", "No data found to sync", "");
|
|
var tu = new TransactionUtilityDao();
|
|
var dt = tu.GetSyncDateList(agentCode, user, pass);
|
|
if (dt == null) return dr;
|
|
|
|
foreach (DataRow row in dt.Rows)
|
|
{
|
|
var gbl = new GlobalBankDao();
|
|
dr = gbl.SynchronizePinStatus(user, row["date"].ToString());
|
|
}
|
|
return dr;
|
|
}
|
|
}
|
|
}
|