home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
66.142.0.142
/
66.142.0.142.tar
/
66.142.0.142
/
iPhone
/
default.aspx.vb
< prev
next >
Wrap
Text File
|
2013-03-03
|
1KB
|
25 lines

Partial Class iPhoneNet_Default
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim tlcsub As New AspNetMaker7_tfpssnet
Dim tmpHours As String, tmpMinutes As String, tmpTime As Long, tmpStartDate As String, tmpEndDate As String
If Now.Date().DayOfWeek = 0 Then
tmpStartDate = Now.Date().AddDays(-6)
tmpEndDate = Now.Date()
Else
tmpStartDate = (Now.Date().AddDays(-Now.Date().DayOfWeek)).AddDays(1)
tmpEndDate = (Now.Date().AddDays(-Now.Date().DayOfWeek)).AddDays(7)
End If
tmpTime = tlcsub.tlcGetWeekTotal(Session("TFProduction_Status_EmpID"), tmpStartDate, tmpEndDate)
tmpHours = Int(tmpTime / 60)
tmpMinutes = Int(tmpTime Mod 60)
' lblCurrentLogin.Text = "Current User: " & Session("tfpssnet_Status_UserName")
lblCurrentLogin.Text = "Current User: " & Session("TFProduction_Status_UserName")
lblCurrentHours.Text = " Current Week Actual: " & tmpHours & ":" & tmpMinutes.ToString.PadLeft(2, "0")
End Sub
End Class