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.

66 lines
2.8 KiB

  1. using Swift.DAL.OnlineAgent;
  2. using Swift.DAL.Remittance.Administration.ReceiverInformation;
  3. using Swift.web.Library;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Web;
  8. using System.Web.UI;
  9. using System.Web.UI.WebControls;
  10. namespace Swift.web.AgentNew.Administration.CustomerSetup.Benificiar
  11. {
  12. public partial class ReceiverDetails : System.Web.UI.Page
  13. {
  14. private readonly OnlineCustomerDao _cd = new OnlineCustomerDao();
  15. private readonly ReceiverInformationDAO _receiver = new ReceiverInformationDAO();
  16. private readonly RemittanceLibrary remittanceLibrary = new RemittanceLibrary();
  17. protected void Page_Load(object sender, EventArgs e)
  18. {
  19. remittanceLibrary.CheckSession();
  20. if (!IsPostBack)
  21. {
  22. LoadReceiverDetails();
  23. }
  24. }
  25. private void LoadReceiverDetails()
  26. {
  27. var dr = _receiver.SelectReceiverInformationByReceiverIdForPrint(GetStatic.GetUser(), GetReceiverId());
  28. if (null != dr)
  29. {
  30. txtCustomerName.InnerText = dr["customerName"].ToString();
  31. txtMembershipId.InnerText = dr["membershipId"].ToString();
  32. txtCountry.InnerText = dr["country"].ToString();
  33. txtBeneficiaryType.InnerText = dr["receiverType"].ToString();
  34. txtEmail.InnerText = dr["email"].ToString();
  35. txtFirstName.InnerText = dr["firstName"].ToString();
  36. txtLastName.InnerText = dr["lastName1"].ToString();
  37. txtMiddleName.InnerText = dr["middleName"].ToString();
  38. txtContactNo.InnerText = dr["homePhone"].ToString();
  39. txtMobileNo.InnerText = dr["mobile"].ToString();
  40. txtPlaceOfIssue.InnerText = dr["placeOfIssue"].ToString();
  41. txtIdType.InnerText = dr["idType"].ToString();
  42. txtIdNumber.InnerText = dr["idNumber"].ToString();
  43. txtPurposeOfRemittance.InnerText = dr["purposeOfRemit"].ToString();
  44. txtAgentBank.InnerText = dr["payoutPartner"].ToString();
  45. txtAgentBankBranch.InnerText = dr["bankBranchName"].ToString();
  46. txtBeneficiaryAc.InnerText = dr["receiverAccountNo"].ToString();
  47. txtRemarks.InnerText = dr["remarks"].ToString();
  48. txtPaymentMode.InnerText = dr["paymentMode"].ToString();
  49. txtAddress.InnerText = dr["address"].ToString();
  50. txtRelationshipToBeneficiary.InnerText = dr["relationship"].ToString();
  51. txtNativeCountry.InnerText = dr["NativeCountry"].ToString();
  52. txtCity.InnerText = dr["city"].ToString();
  53. }
  54. }
  55. private string GetReceiverId()
  56. {
  57. return GetStatic.ReadQueryString("receiverId", "");
  58. }
  59. }
  60. }