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.

36 lines
1.1 KiB

  1. using Swift.web.Library;
  2. using System;
  3. namespace Swift.web.AccountReport.SettlementReport
  4. {
  5. public partial class SettlementHoSearch : System.Web.UI.Page
  6. {
  7. private SwiftLibrary _swiftLib = new SwiftLibrary();
  8. private const string ViewFunctionId = "20140400";
  9. protected void Page_Load(object sender, EventArgs e)
  10. {
  11. Authenticate();
  12. if (!IsPostBack)
  13. {
  14. fromDate.Text = DateTime.Now.ToString("d");
  15. fromDate.Attributes.Add("readonly", "readonly");
  16. toDate.Text = DateTime.Now.ToString("d");
  17. toDate.Attributes.Add("readonly", "readonly");
  18. }
  19. }
  20. private void Authenticate()
  21. {
  22. _swiftLib.CheckAuthentication(ViewFunctionId);
  23. }
  24. protected void populateDDL_Click(object sender, EventArgs e)
  25. {
  26. PopulateDDL();
  27. }
  28. private void PopulateDDL()
  29. {
  30. _swiftLib.SetDDL(ref branchDDL, "EXEC Proc_MistakelyPostViewAdd @flag = 'bDisp',@agentId= '" + acInfo.Value + "'", "map_code", "agent_name", "", "Select Branch");
  31. }
  32. }
  33. }