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.

46 lines
1.7 KiB

  1. using System;
  2. using Swift.DAL.BL.Remit.Transaction;
  3. using Swift.web.Library;
  4. namespace Swift.web.Remit.Transaction.ReprintVoucher
  5. {
  6. public partial class CancelReceipt : System.Web.UI.Page
  7. {
  8. private readonly SwiftLibrary _sl = new SwiftLibrary();
  9. private CancelTransactionDao _obj = new CancelTransactionDao();
  10. protected void Page_Load(object sender, EventArgs e)
  11. {
  12. Authenticate();
  13. LoadReceipt();
  14. }
  15. private void Authenticate()
  16. {
  17. _sl.CheckSession();
  18. }
  19. private long GetTranId()
  20. {
  21. return GetStatic.ReadNumericDataFromQueryString("tranId");
  22. }
  23. private void LoadReceipt()
  24. {
  25. var dr = _obj.LoadReceipt(GetStatic.GetUser(), GetTranId().ToString());
  26. if (dr == null)
  27. return;
  28. controlNo.Text = dr["controlNo"].ToString();
  29. postedBy.Text = dr["postedBy"].ToString();
  30. sender.Text = dr["sender"].ToString();
  31. receiver.Text = dr["receiver"].ToString();
  32. rContactNo.Text = dr["rContactNo"].ToString();
  33. collCurr.Text = dr["collCurr"].ToString();
  34. cAmt.Text = GetStatic.FormatData(dr["cAmt"].ToString(), "M");
  35. serviceCharge.Text = GetStatic.FormatData(dr["serviceCharge"].ToString(), "M");
  36. pAmt.Text = GetStatic.FormatData(dr["pAmt"].ToString(), "M");
  37. cancelCharge.Text = GetStatic.FormatData(dr["cancelCharge"].ToString(), "M");
  38. returnAmt.Text = GetStatic.FormatData(dr["returnAmt"].ToString(), "M");
  39. sendDate.Text = dr["createdDate"].ToString();
  40. cancelDate.Text = dr["cancelDate"].ToString();
  41. }
  42. }
  43. }