cproudlock fd295ef35e apiprinters.asp: expose mapleft + maptop for installer map UI
Adds p.mapleft, p.maptop to the SELECT and emits them as JSON values
(literal null when the columns are NULL). Consumed by the new
PrinterInstallerMap inno installer (feature/printer-map branch in
inno-installers) which renders the same Leaflet-style site map inside
a custom Inno wizard page rather than a browser, dodging the Edge
policy that blocks .bat downloads and unsigned .exe runs.

Additive change: existing consumers (PrinterInstaller.iss, tests,
installprinter.asp) read JSON by key name and ignore unknown fields.
SELECT change is additive too; no rs(0) numeric indexing in the
codebase. Schema-side: printers.mapleft, maptop already exist (they
are read by printerinstallermap.asp).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-30 07:53:48 -04:00

ShopDB

Manufacturing shop floor infrastructure management system for GE Aerospace. Tracks machines, PCs, printers, and network devices.

Tech Stack

  • Backend: Classic ASP (VBScript)
  • Database: MySQL 5.6
  • Frontend: Bootstrap 4.6, jQuery, DataTables
  • Server: IIS on Windows

Features

  • Equipment inventory (CNC machines, lathes, mills, etc.)
  • PC asset tracking with warranty monitoring
  • Printer management with Zabbix integration
  • Network device tracking (switches, access points, cameras)
  • Knowledge base for troubleshooting
  • Interactive floor maps
  • REST API for PowerShell data collection

Quick Start

# Start dev environment
~/start-dev-env.sh

# Access application
http://192.168.122.151:8080

# Run tests
./tests/test_forms.sh

# Connect to MySQL
docker exec -it dev-mysql mysql -u root -prootpassword shopdb

Documentation

Document Purpose
CLAUDE.md AI assistant context
docs/QUICK_REFERENCE.md Cheat sheets, common queries
docs/API.md REST API documentation
docs/STANDARDS.md Coding standards

Database Schema

machines table (unified)
  ├── Equipment (machinetypeid 1-15)
  ├── PCs (pctypeid IS NOT NULL)
  └── Network Devices (machinetypeid 16-20)

printers table (separate)
communications table (network interfaces)
machinerelationships table (PC↔equipment links)

Testing

./tests/test_forms.sh    # 41 endpoint tests

Tests page loads, form submissions, and API endpoints.

License

Internal use - GE Aerospace

Description
No description provided
Readme 69 MiB
Languages
Classic ASP 51.9%
JavaScript 35.6%
CSS 8.7%
HTML 1.9%
Python 1%
Other 0.9%