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.

34 lines
1.1 KiB

4 years ago
4 years ago
4 years ago
  1. using Business.Configuration;
  2. using Business.ReferralReports;
  3. using Common.Helper;
  4. using Common.Model.ReferralReports;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Web.UI;
  8. namespace JMEAgentSystem
  9. {
  10. public partial class _Default : Page
  11. {
  12. private readonly IReferralReportsServices _referralReports = AutoFacContainer.Resolve<IReferralReportsServices>();
  13. protected void Page_Load(object sender, EventArgs e)
  14. {
  15. var methodName = GetStatic.ReadFormData("MethodName", "");
  16. if (methodName.Equals("ViewTopFiveTransactionList"))
  17. ViewTopFiveTransactionList();
  18. }
  19. private void ViewTopFiveTransactionList()
  20. {
  21. ViewStatementModel _model = new ViewStatementModel()
  22. {
  23. fromDate = Request.Form["FromDate"],
  24. toDate = Request.Form["ToDate"],
  25. referralCode = GetStatic.GetUser()
  26. };
  27. List<TransactionStatementModel> result = _referralReports.ViewTop5TransactionReport(_model);
  28. GetStatic.JsonResponse(result, this);
  29. }
  30. }
  31. }