home *** CD-ROM | disk | FTP | other *** search
/ 66.142.0.142 / 66.142.0.142.tar / 66.142.0.142 / askPayrollDetailReportform.aspx.vb < prev    next >
Text File  |  2012-01-14  |  1KB  |  35 lines

  1.  
  2. Partial Class askPayrollDetailReportform
  3.     '    Inherits System.Web.UI.Page
  4.     Inherits AspNetMaker7_tfpssnet
  5.  
  6.     Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  7.         If Not IsPostBack Then
  8.             If Session("tfpssnet_Status") <> "login" Then
  9.                 Response.Redirect("login.aspx")
  10.             End If
  11.             x_StartDate.Value = Now.ToString("MM/dd/yyyy")
  12.             x_EndDate.Value = Now.ToString("MM/dd/yyyy")
  13.             srcEmployee.ConnectionString = EW_DB_CONNECTION_STRING
  14.         End If
  15.     End Sub
  16.  
  17.     Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
  18.         Session("tmpStartDate") = x_StartDate.Value
  19.         Session("tmpEndDate") = x_EndDate.Value
  20.         If Session("tfpssnet_Status_UserLevel") <> -1 Then ' Non system admin
  21.             Session("tmpEmployeeID") = Session("tfpssnet_Status_UserID")
  22.         Else
  23.             Session("tmpEmployeeID") = ddlEmployee.SelectedValue
  24.         End If
  25.         Response.Redirect("rptPayrollDetail.aspx")
  26.  
  27.         'Dim ctl As Control
  28.         'Dim content As ContentPlaceHolder
  29.         'content = Page.Master.FindControl("Content")
  30.         'For Each ctl In content.Controls
  31.         '    Response.Write(ctl.ID & "<br>")
  32.         'Next
  33.     End Sub
  34.  
  35. End Class