Advertisement
| 08.20.2008 at 06:12PM PDT, ID: 23665302 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: |
Dim RequestedCatagories As String
'With txtLocation
' Me.txtLocation.Items.Add(New ListItem("Both", 0))
' Me.txtLocation.Items.Add(New ListItem("WP", 1))
' Me.txtLocation.Items.Add(New ListItem("Bronx", 2))
'End With
With txtState
Me.txtState.Items.Add(New ListItem("ALL", 0))
Me.txtState.Items.Add(New ListItem("Absent", 1))
Me.txtState.Items.Add(New ListItem("Working", 2))
Me.txtState.Items.Add(New ListItem("Unknown", 3))
End With
Dim strSql As String
strSql = "SELECT E.FirstName, E.LastName, C.Category FROM dbo.Attendance A INNER JOIN dbo.Employee E ON A.Employee = E.Employee INNER JOIN dbo.Category C ON A.Category = C.Category WHERE (A.[Date] = CONVERT(DATETIME, '8/20/2008', 102)) AND (E.Terminated IS NULL) AND E.Location IN (0,1) AND C.Category IN (0, 1, 2, 3, 5, 6, 8, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19) ORDER BY E.LastName"
Dim conn As SqlConnection = AttendConnection()
Dim sdaCust As New SqlDataAdapter(strSql, conn)
Dim KraEmplset As New DataSet()
sdaCust.Fill(KraEmplset, "Lastname")
Dim dtbCust As DataTable = KraEmplset.Tables(0)
Dim KraAttend As New DataView(dtbCust)
' Dim KraEmpl As New DataView(dtbCust)
If txtState.SelectedValue = 0 Then RequestedCatagories = "(0, 1, 2, 3, 5, 6, 8, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19)"
If txtState.SelectedValue = 1 Then RequestedCatagories = "(0, 1, 2, 3, 5, 6, 8, 9, 10, 11, 15, 17, 18)"
If txtState.SelectedValue = 2 Then RequestedCatagories = "(14, 16, 19)"
If txtState.SelectedValue = 3 Then RequestedCatagories = "(12)"
Repeater2.DataSource = KraAttend
Repeater2.DataBind()
Open in New Window
|
Advertisement