home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
66.142.0.142
/
66.142.0.142.tar
/
66.142.0.142
/
askLPRReportform.aspx.vb
< prev
next >
Wrap
Text File
|
2012-02-19
|
2KB
|
44 lines
Partial Class askLPRReportform
' 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 = tlcFirstDayOfWeek(FormatDateTime(Now, DateFormat.ShortDate))
' x_StartDate.Value = Now.ToString("MM/dd/yyyy")
x_EndDate.Value = tlcLastDayOfWeek(FormatDateTime(Now, DateFormat.ShortDate))
' x_EndDate.Value = Now.ToString("MM/dd/yyyy")
' If ew_Session("tfpssnet_Status_UserLevel") = -1 Or ew_Session("tfpssnet_Status_UserLevel") = 3 Or ew_Session("tfpssnet_Status_Userlevel") = 4 Then
srcEmployee.ConnectionString = EW_DB_CONNECTION_STRING
'End If
srcLocation.ConnectionString = EW_DB_CONNECTION_STRING
srcLPRStatus.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 ew_Session("tfpssnet_Status_UserLevel") = -1 Or ew_Session("tfpssnet_Status_UserLevel") = 3 Or ew_Session("tfpssnet_Status_Userlevel") = 4 Then
Session("tmpEmployeeID") = ddlEmployee.SelectedValue
Session("tmpEmployeeName") = ddlEmployee.SelectedItem.Text
End If
Session("tmpLocationID") = ddlLocation.SelectedValue
Session("tmpLocationDesc") = ddlLocation.SelectedItem.Text
Session("tmpStatusID") = ddlLPRStatus.SelectedValue
Session("tmpStatusDesc") = ddlLPRStatus.SelectedItem.Text
Response.Redirect("rptLPRReport.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