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.

45 lines
1.5 KiB

  1. using Swift.DAL.OnlineAgent;
  2. using Swift.web.Library;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Web;
  7. using System.Web.UI;
  8. using System.Web.UI.WebControls;
  9. namespace Swift.web.MobileRemit.Admin.Operation
  10. {
  11. public partial class ActivateMobile : System.Web.UI.Page
  12. {
  13. private readonly RemittanceLibrary _sl = new RemittanceLibrary();
  14. private readonly StaticDataDdl _sdd = new StaticDataDdl();
  15. private readonly OnlineCustomerDao _cd = new OnlineCustomerDao();
  16. private const string ViewFunctionId = "30110000";
  17. private const string ApproveFunctionId = "30110010";
  18. protected void Page_Load(object sender, EventArgs e)
  19. {
  20. Authenticate();
  21. if (!IsPostBack)
  22. {
  23. PopulateDDL();
  24. }
  25. }
  26. private void Authenticate()
  27. {
  28. _sl.CheckAuthentication(ViewFunctionId);
  29. }
  30. private void PopulateDDL()
  31. {
  32. var user = GetStatic.GetUser();
  33. _sdd.SetDDL(ref ddlSearchBy, "exec proc_sendPageLoadData @flag='search-cust-by'", "VALUE", "TEXT", "", "");
  34. }
  35. protected void btnActivateMobile_Click(object sender, EventArgs e)
  36. {
  37. var customerId = txtSearchData.Value;
  38. if (_sl.CheckAuthentication(ApproveFunctionId))
  39. {
  40. Response.Redirect("/MobileRemit/Admin/Operation/EditCustomerForActivation.aspx?customerId=" + customerId + " +&code="+ referraltxt.Text);
  41. }
  42. }
  43. }
  44. }