Add displaylocations, location/inspection migrations, UI refinements
- New displaylocations.asp (production location listing) - 3 new SQL migrations: inspection machine type, location relationship types, pctype inspection update - displaymachine.asp / printbadge.asp substantial rework - editmachine/editpc/savemachineedit: ~50 line additions each - Dashboard index.html + tv-dashboard tweaks - .gitignore: block database-backup-*.sql, *.bak, *.pdf Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
16
addmodel.asp
16
addmodel.asp
@@ -138,17 +138,23 @@
|
||||
<option value="">-- Select Type --</option>
|
||||
<%
|
||||
Dim rsMachineTypes, strMTSQL
|
||||
strMTSQL = "SELECT machinetypeid, machinetype, category FROM machinetypes WHERE isactive = 1 ORDER BY category, machinetype ASC"
|
||||
strMTSQL = "SELECT machinetypeid, machinetype, " & _
|
||||
"CASE " & _
|
||||
" WHEN machinetypeid BETWEEN 1 AND 15 OR machinetypeid BETWEEN 21 AND 25 OR machinetypeid = 45 OR machinetypeid = 47 THEN 'Equipment' " & _
|
||||
" WHEN machinetypeid BETWEEN 16 AND 20 OR machinetypeid = 46 THEN 'Network' " & _
|
||||
" ELSE 'Other' " & _
|
||||
"END AS category " & _
|
||||
"FROM machinetypes WHERE isactive = 1 AND machinetypeid NOT IN (1, 33, 44) ORDER BY category, machinetype ASC"
|
||||
Set rsMachineTypes = objconn.Execute(strMTSQL)
|
||||
Dim lastCategory
|
||||
lastCategory = ""
|
||||
While Not rsMachineTypes.EOF
|
||||
If rsMachineTypes("category") <> lastCategory Then
|
||||
If rsMachineTypes("category") & "" <> lastCategory Then
|
||||
If lastCategory <> "" Then Response.Write("</optgroup>")
|
||||
Response.Write("<optgroup label='" & Server.HTMLEncode(rsMachineTypes("category")) & "'>")
|
||||
lastCategory = rsMachineTypes("category")
|
||||
Response.Write("<optgroup label='" & Server.HTMLEncode(rsMachineTypes("category") & "") & "'>")
|
||||
lastCategory = rsMachineTypes("category") & ""
|
||||
End If
|
||||
Response.Write("<option value='" & rsMachineTypes("machinetypeid") & "'>" & Server.HTMLEncode(rsMachineTypes("machinetype")) & "</option>")
|
||||
Response.Write("<option value='" & rsMachineTypes("machinetypeid") & "'>" & Server.HTMLEncode(rsMachineTypes("machinetype") & "") & "</option>")
|
||||
rsMachineTypes.MoveNext
|
||||
Wend
|
||||
If lastCategory <> "" Then Response.Write("</optgroup>")
|
||||
|
||||
Reference in New Issue
Block a user