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:
15
sql/add_genspect_machinetype.sql
Normal file
15
sql/add_genspect_machinetype.sql
Normal 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';
|
||||
Reference in New Issue
Block a user