Add pctypeid-based equipment filtering in editpc.asp, add Genspect machinetype

editpc.asp:
- Filter equipment dropdown by pctypeid instead of pcMachineTypeId
- pctypeid 5 (CMM) -> machinetypeid 3 (CMM)
- pctypeid 6 (Wax/Trace) -> machinetypeid 5 (Wax Trace)
- pctypeid 7 (Keyence) -> machinetypeid 23 (Measuring Machine)
- pctypeid 8 (Genspect) -> machinetypeid 45 (Genspect)
- pctypeid 9 (Heat Treat) -> machinetypeid 14 (Furnace)

sql/add_genspect_machinetype.sql:
- Add Genspect equipment type (machinetypeid 45)

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
cproudlock
2025-12-09 11:05:45 -05:00
parent d118b49735
commit 3fa1fc3812
2 changed files with 44 additions and 19 deletions

View File

@@ -0,0 +1,15 @@
-- Add Genspect/EAS1000 equipment type
-- Run on production database
-- Date: 2025-12-09
-- Check if Genspect machinetype already exists
SET @genspect_exists = (SELECT COUNT(*) FROM machinetypes WHERE machinetype = 'Genspect');
-- Insert only if it doesn't exist
INSERT INTO machinetypes (machinetype, isactive)
SELECT 'Genspect', 1
FROM dual
WHERE @genspect_exists = 0;
-- Show result
SELECT machinetypeid, machinetype FROM machinetypes WHERE machinetype = 'Genspect';