Fix network device description/machinenotes display and edit

- Fix ADO cursor issue where reading rs("description") twice caused
  empty values (IsNull check consumed the field value)
- Change all device pages to read description field once using
  `description = rs("description") & ""` pattern
- Add deviceDescription variable in displaydevice.asp
- Fix machinetypeid mapping: IDF=17, Camera=18 (was swapped)
- Add model dropdown fix to include currently assigned model
- Add server application tracking feature
- Various other improvements and fixes

Files affected:
- displaydevice.asp, displaylocationdevice.asp
- deviceaccesspoint.asp, deviceserver.asp, deviceswitch.asp
- devicecamera.asp, deviceidf.asp
- savenetworkdevice.asp, networkdevices.asp

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
cproudlock
2025-12-17 13:47:56 -05:00
parent a5b4013949
commit a4096ace94
25 changed files with 1744 additions and 355 deletions

View File

@@ -294,8 +294,8 @@ Set rs = Nothing
<div class="form-group row">
<label class="col-lg-3 col-form-label form-control-label">Topic:</label>
<div class="col-lg-9">
<select name="appid" class="btn btn-light px-3">
<option value=''>-------------</option>
<select name="appid" class="form-control" required>
<option value=''>-- Select Topic --</option>
<%
strSQL = "SELECT appid, appname FROM applications WHERE isactive = 1 ORDER BY appname ASC"
Set rs2 = ExecuteParameterizedQuery(objConn, strSQL, Array())
@@ -306,17 +306,15 @@ Set rs = Nothing
rs2.Close
Set rs2 = Nothing
%>
</select>
</div>
<div class="form-group row">
<div class="col-lg-4">
<BR>
<input type="submit" class="btn btn-primary" value="Add to KB">
</div>
</select>
</div>
</div>
</form>
<div class="form-group row">
<div class="col-lg-9 offset-lg-3">
<input type="submit" class="btn btn-primary" value="Add to KB">
</div>
</div>
</form>
</div>
<h5 class="card-title">Search Results</h5>