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.

113 lines
4.8 KiB

  1. using System;
  2. using System.Collections.Generic;
  3. using Swift.DAL.BL.Remit.Compliance;
  4. using Swift.web.Library;
  5. using System.Text;
  6. using System.Data;
  7. namespace Swift.web.Remit.RiskBaseAnalysis
  8. {
  9. public partial class cusRBACalcDetails : System.Web.UI.Page
  10. {
  11. protected void Page_Load(object sender, EventArgs e)
  12. {
  13. ShowCalculationDetail();
  14. }
  15. private void ShowCalculationDetail()
  16. {
  17. var obj = new RBACustomerDao();
  18. var ds = obj.GetCustomerRBACalculationDetail(GetStatic.GetUser(), GetStatic.ReadQueryString("customerId", ""), GetStatic.ReadQueryString("tranId", ""), GetStatic.ReadQueryString("dt", ""));
  19. if (ds == null)
  20. return;
  21. if (ds.Tables.Count > 0)
  22. {
  23. if (ds.Tables[0].Rows.Count > 0)
  24. {
  25. var dr = ds.Tables[0].Rows[0];
  26. fullName.Text = dr["fullName"].ToString();
  27. dob.Text = dr["dob"].ToString();
  28. gender.Text = dr["gender"].ToString();
  29. nativeCountry.Text = dr["nativeCountry"].ToString();
  30. country.Text = dr["country"].ToString();
  31. idType.Text = dr["idType"].ToString();
  32. idNumber.Text = dr["idNumber"].ToString();
  33. state.Text = dr["state"].ToString();
  34. city.Text = dr["city"].ToString();
  35. address.Text = dr["address"].ToString();
  36. mobileNo.Text = dr["mobile"].ToString();
  37. email.Text = dr["email"].ToString();
  38. rbaLevel.Text = dr["type"].ToString();
  39. rbaRating.Text = dr["rba"].ToString();
  40. }
  41. try
  42. {
  43. if (ds.Tables[1].Rows.Count>0)
  44. {
  45. var drRBA = ds.Tables[1].Rows[0];
  46. tblCusRBA.Visible = true;
  47. tblRBASummary.Visible = true;
  48. rbaLevel.Text = drRBA["RBACustomer"].ToString();
  49. rbaRating.Text = drRBA["RBACustomerCalculated"].ToString();
  50. Rating.Text = drRBA["RBACustomer"].ToString().ToUpper();
  51. Rating.CssClass = drRBA["RBACustomer"].ToString().ToLower();
  52. ScoreTotal.Text = drRBA["RBACustomerCalculated"].ToString();
  53. txnCountRating.Text = drRBA["txnCountRating"].ToString();
  54. txnCountWeight.Text = drRBA["txnCountWeight"].ToString();
  55. txnCountScore.Text = drRBA["txnCountScore"].ToString();
  56. txnAmountRating.Text = drRBA["txnAmountRating"].ToString();
  57. txnAmountWeight.Text = drRBA["txnAmountWeight"].ToString();
  58. txnAmountScore.Text = drRBA["txnAmountScore"].ToString();
  59. outletsUsedRating.Text = drRBA["outletsUsedRating"].ToString();
  60. outletsUsedWeight.Text = drRBA["outletsUsedWeight"].ToString();
  61. outletsUsedScore.Text = drRBA["outletsUsedScore"].ToString();
  62. bnfcountrycountRating.Text = drRBA["bnfcountrycountRating"].ToString();
  63. bnfcountrycountWeight.Text = drRBA["bnfcountrycountWeight"].ToString();
  64. bnfcountrycountScore.Text = drRBA["bnfcountrycountScore"].ToString();
  65. bnfcountRating.Text = drRBA["bnfcountRating"].ToString();
  66. bnfcountWeight.Text = drRBA["bnfcountWeight"].ToString();
  67. bnfcountScore.Text = drRBA["bnfcountScore"].ToString();
  68. taRating.Text = drRBA["txnrbaRating"].ToString();
  69. taWeight.Text = drRBA["txnrbaWeight"].ToString(); ;
  70. taScore.Text = drRBA["txnrbaScore"].ToString(); ;
  71. paRating.Text = drRBA["custPeriodicRbaRating"].ToString();
  72. paWeight.Text = drRBA["custPeriodicRbaWeight"].ToString();
  73. paScore.Text = drRBA["custPeriodicRbaScore"].ToString();
  74. rbaSummaryTotal.Text = drRBA["finalrba"].ToString();
  75. rbaSummaryRating.Text = drRBA["finalRbaCatagory"].ToString().ToUpper();
  76. rbaSummaryRating.CssClass = drRBA["finalRbaCatagory"].ToString().ToLower();
  77. }
  78. else
  79. {
  80. tblCusRBA.Visible = false;
  81. tblRBASummary.Visible = false;
  82. }
  83. }
  84. catch (Exception ex)
  85. {
  86. tblCusRBA.Visible = false;
  87. tblRBASummary.Visible = false;
  88. }
  89. }
  90. }
  91. }
  92. }