diff --git a/displaymachine.asp b/displaymachine.asp index 48256ad..6958095 100644 --- a/displaymachine.asp +++ b/displaymachine.asp @@ -113,23 +113,6 @@ Response.End End If - ' Check if machine has UDC data (only for equipment with machinenumber) - Dim rsUDCCheck, hasUDCData, strSQL2, machineNum - hasUDCData = False - machineNum = rs("machinenumber") & "" - If machineNum <> "" Then - strSQL2 = "SELECT COUNT(*) as cnt FROM udcparts p " & _ - "JOIN udcsessions s ON p.sessionid = s.sessionid " & _ - "WHERE s.machinenumber = ?" - Set rsUDCCheck = ExecuteParameterizedQuery(objConn, strSQL2, Array(machineNum)) - If Not rsUDCCheck Is Nothing Then - If Not rsUDCCheck.EOF Then - If CLng(rsUDCCheck("cnt") & "0") > 0 Then hasUDCData = True - End If - rsUDCCheck.Close - Set rsUDCCheck = Nothing - End If - End If %> @@ -192,11 +175,6 @@ -<% End If %> -<% If hasUDCData Then %> - <% End If %>