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 >
Wrap
Text File
|
2012-01-14
|
1KB
|
35 lines
Partial Class askPayrollDetailReportform
' Inherits System.Web.UI.Page
Inherits AspNetMaker7_tfpssnet
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
If Session("tfpssnet_Status") <> "login" Then
Response.Redirect("login.aspx")
End If
x_StartDate.Value = Now.ToString("MM/dd/yyyy")
x_EndDate.Value = Now.ToString("MM/dd/yyyy")
srcEmployee.ConnectionString = EW_DB_CONNECTION_STRING
End If
End Sub
Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
Session("tmpStartDate") = x_StartDate.Value
Session("tmpEndDate") = x_EndDate.Value
If Session("tfpssnet_Status_UserLevel") <> -1 Then ' Non system admin
Session("tmpEmployeeID") = Session("tfpssnet_Status_UserID")
Else
Session("tmpEmployeeID") = ddlEmployee.SelectedValue
End If
Response.Redirect("rptPayrollDetail.aspx")
'Dim ctl As Control
'Dim content As ContentPlaceHolder
'content = Page.Master.FindControl("Content")
'For Each ctl In content.Controls
' Response.Write(ctl.ID & "<br>")
'Next
End Sub
End Class