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.

42 lines
1.5 KiB

  1. using Swift.DAL.OnlineAgent;
  2. using Swift.web.Library;
  3. using System;
  4. namespace Swift.web.Remit.Administration.BalanceTransferFromKjBank
  5. {
  6. public partial class Manage : System.Web.UI.Page
  7. {
  8. private const string ViewFuntionId = "20178000";
  9. private readonly StaticDataDdl _sdd = new StaticDataDdl();
  10. private readonly RemittanceLibrary _sl = new RemittanceLibrary();
  11. private readonly OnlineCustomerDao _sd = new OnlineCustomerDao();
  12. protected void Page_Load(object sender, EventArgs e)
  13. {
  14. _sl.CheckSession();
  15. if (!IsPostBack)
  16. {
  17. Authenticate();
  18. var method = Request.Form["MethodName"];
  19. var receiverAccountNo = Request.Form["body"];
  20. if (method != null && method.Equals("GetAccountDetailKJBank"))
  21. {
  22. var result = KJBankAPIConnection.GetAccountDetailKJBank(receiverAccountNo,"");
  23. var json = "{\"result\":\"" + result + "\"}";
  24. Response.ContentType = "text/plain";
  25. Response.Write(json);
  26. Response.End();
  27. }
  28. }
  29. txtReceiverAccountNo.Attributes.Add("onchange", "AccountDetailKJBank();");
  30. }
  31. private void Authenticate()
  32. {
  33. _sdd.CheckAuthentication(ViewFuntionId);
  34. }
  35. protected void btnTransfer_Click(object sender, EventArgs e)
  36. {
  37. KJBankAPIConnection.AccountTransferKJBank(txtAmount.Text);
  38. }
  39. }
  40. }