From 84c212065276a72b3ab3a9e7d688d60344f707e9 Mon Sep 17 00:00:00 2001 From: cproudlock Date: Fri, 19 Dec 2025 16:38:38 -0500 Subject: [PATCH] Add printer QR code printing and Windows name auto-update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add printerqrcode.asp for single printer QR code labels (ULINE S-20135) - Add printerqrbatch.asp for batch printing multiple printers (6 per page) - Add auto-update of Windows name when changing associated machine - Windows name follows naming standard: [CSF]-[Machine]-[Vendor][Model] - Remove UDC integrations from displaymachine.asp - Add toner_inventory.csv for HP printer toner tracking - Fix printerqrbatch.asp to show all printers, not just CSF ones 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- displaymachine.asp | 354 ------ displayprinter.asp | 2641 ++++++++++++++++++++++--------------------- printerqrbatch.asp | 284 +++++ printerqrcode.asp | 154 +++ toner_inventory.csv | 49 + 5 files changed, 1844 insertions(+), 1638 deletions(-) create mode 100644 printerqrbatch.asp create mode 100644 printerqrcode.asp create mode 100644 toner_inventory.csv 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 %>