")
If Not IsNothing(eoFacility) Then
If eoFacility.RoomSetupTypeID > 0 Then
'room setup
Response.Write("| Room Setup Option: | ")
Response.Write("" & eoFacility.RoomSetupTypeName & " |
")
End If
If eoFacility.Capacity > 0 Then
'setup count
'Response.Write("| Setup Count: | ")
'Response.Write("" & eoFacility.Capacity.ToString & " |
")
End If
End If
'USER TIMES/REQUIRED TIMES
Dim uSetup As Integer = 0 : Dim uTear As Integer = 0
Dim rSetup As Integer = 0 : Dim rTear As Integer = 0
adx_facility.GetUserRoomSetupTimes(Integer.Parse(Iid), uSetup, uTear, rSetup, rTear) 'uSetup and uTear passed by ref
'ROOM SETUP
If rSetup > 0 Then
Response.Write("| Room Setup: | ")
If adx_event.event_start_date.AddMinutes(-eoFacility.SetupTime).Date <> adx_event.event_start_date.Date Then
'These start date is different than the setup date...
Response.Write("" & adx_event.event_start_date.AddMinutes(-eoFacility.SetupTime).ToString("M/d/yyyy h:mm tt") & " |
")
Else
'The start date is the same as the setup date...
Response.Write("" & adx_event.event_start_date.AddMinutes(-eoFacility.SetupTime).ToString("h:mm tt") & " | ")
End If
End If
'USER SETUP
Response.Write("| User Setup: | ")
If uSetup > 0 Then
If adx_event.event_start_date.AddMinutes(-eoFacility.SetupTime).Date <> adx_event.event_start_date.Date Then
'These start date is different than the setup date...
Response.Write("" & adx_event.event_start_date.AddMinutes(-uSetup).ToString("M/d/yyyy h:mm tt") & " |
")
Else
'The start date is the same as the setup date...
Response.Write("" & adx_event.event_start_date.AddMinutes(-uSetup).ToString("h:mm tt") & " | ")
End If
eoFacility.SetupTime = eoFacility.SetupTime - uSetup
Else
Response.Write("N/A | ")
End If
'EVENT START DATE
Response.Write("| Event Start Time: | ")
Response.Write("")
If adx_event.event_start_date.TimeOfDay.Ticks = 0 Then
If adx_event.event_all_day = "Y" Then
'This is an all day event...
Response.Write(adx_event.event_start_date.ToString("M/d/yyyy") & " All Day")
Else
'This is a no time event...
End If
Else
'There is a start time
Response.Write(adx_event.event_start_date.ToString("h:mm tt"))
End If
'EVENT END DATE
If adx_event.event_all_day = "N" Then
Response.Write(" |
| Event End Time: | ")
Response.Write("")
If adx_event.event_start_date.Date = adx_event.event_end_date.Date Then
If adx_event.event_end_date.TimeOfDay.Ticks > 0 Then
'There is an end time
Response.Write(adx_event.event_end_date.ToString("h:mm tt"))
End If
Elseif adx_event.event_start_date.Date < adx_event.event_end_date.Date And adx_event.event_end_date.TimeOfDay.Ticks = 0 Then
'The end date is after the start date and there is no end time
Response.Write("Midnight")
End If
End if
'ADJUST THE END DATE FOR TEARDOWN DISPLAY PURPOSES ONLY
Dim teardownEDate As DateTime = adx_event.event_end_date
If adx_event.event_all_day = "Y" Then teardownEDate = adx_event.event_end_date.AddDays(1)
'USER TEARDOWN
Response.Write(" |
| User Tear Down: | ")
If uTear > 0 Then
If teardownEDate.AddMinutes(uTear).Date <> adx_event.event_start_date.Date Then
'These start date is different than the setup date...
Response.Write("" & teardownEDate.AddMinutes(uTear).ToString("M/d/yyyy h:mm tt") & " |
")
Else
'The start date is the same as the setup date...
Response.Write("" & teardownEDate.AddMinutes(uTear).ToString("h:mm tt") & " | ")
End If
Else
Response.Write("N/A | ")
End If
'ROOM TEARDOWN
Response.Write("| Room Tear Down: | ")
If rTear > 0 Then
If teardownEDate.AddMinutes(eoFacility.TeardownTime).Date <> adx_event.event_start_date.Date Then
'These start date is different than the setup date...
Response.Write("" & teardownEDate.AddMinutes(eoFacility.TeardownTime).ToString("M/d/yyyy h:mm tt") & " |
")
Else
'The start date is the same as the setup date...
Response.Write("" & teardownEDate.AddMinutes(eoFacility.TeardownTime).ToString("h:mm tt") & " | ")
End If
Else
Response.Write("N/A | ")
End If
Response.Write("