Files
shopdb/v2/assets/flags/1x1/mo.svg
cproudlock 4bcaf0913f Complete Phase 2 PC migration and network device infrastructure updates
This commit captures 20 days of development work (Oct 28 - Nov 17, 2025)
including Phase 2 PC migration, network device unification, and numerous
bug fixes and enhancements.

## Major Changes

### Phase 2: PC Migration to Unified Machines Table
- Migrated all PCs from separate `pc` table to unified `machines` table
- PCs identified by `pctypeid IS NOT NULL` in machines table
- Updated all display, add, edit, and update pages for PC functionality
- Comprehensive testing: 15 critical pages verified working

### Network Device Infrastructure Unification
- Unified network devices (Switches, Servers, Cameras, IDFs, Access Points)
  into machines table using machinetypeid 16-20
- Updated vw_network_devices view to query both legacy tables and machines table
- Enhanced network_map.asp to display all device types from machines table
- Fixed location display for all network device types

### Machine Management System
- Complete machine CRUD operations (Create, Read, Update, Delete)
- 5-tab interface: Basic Info, Network, Relationships, Compliance, Location
- Support for multiple network interfaces (up to 3 per machine)
- Machine relationships: Controls (PC→Equipment) and Dualpath (redundancy)
- Compliance tracking with third-party vendor management

### Bug Fixes (Nov 7-14, 2025)
- Fixed editdevice.asp undefined variable (pcid → machineid)
- Migrated updatedevice.asp and updatedevice_direct.asp to Phase 2 schema
- Fixed network_map.asp to show all network device types
- Fixed displaylocation.asp to query machines table for network devices
- Fixed IP columns migration and compliance column handling
- Fixed dateadded column errors in network device pages
- Fixed PowerShell API integration issues
- Simplified displaypcs.asp (removed IP and Machine columns)

### Documentation
- Created comprehensive session summaries (Nov 10, 13, 14)
- Added Machine Quick Reference Guide
- Documented all bug fixes and migrations
- API documentation for ASP endpoints

### Database Schema Updates
- Phase 2 migration scripts for PC consolidation
- Phase 3 migration scripts for network devices
- Updated views to support hybrid table approach
- Sample data creation/removal scripts for testing

## Files Modified (Key Changes)
- editdevice.asp, updatedevice.asp, updatedevice_direct.asp
- network_map.asp, network_devices.asp, displaylocation.asp
- displaypcs.asp, displaypc.asp, displaymachine.asp
- All machine management pages (add/edit/save/update)
- save_network_device.asp (fixed machine type IDs)

## Testing Status
- 15 critical pages tested and verified
- Phase 2 PC functionality: 100% working
- Network device display: 100% working
- Security: All queries use parameterized commands

## Production Readiness
- Core functionality complete and tested
- 85% production ready
- Remaining: Full test coverage of all 123 ASP pages

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-17 20:04:06 -05:00

10 lines
2.0 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="512" width="512" id="flag-icon-css-mo">
<path fill="#00785e" d="M0 0h512v512H0z"/>
<path fill="#fbd116" d="M272.533 147.425L256 96.533l-16.533 50.892 43.29-31.45h-53.515z"/>
<g id="a">
<path d="M256 353.734H146.69a156.086 156.086 0 0 1-4.057-4.267H256a2.283 2.283 0 0 1 1.52 2.02c.05.982-.568 1.902-1.52 2.247zm0-33.426c.634-1.296 1.87-4.298 1.31-8.053a13.215 13.215 0 0 0-1.31-4.064c-6.134 5.806-17.658 15.107-34.66 20.25a86.44 86.44 0 0 1-25.073 3.692h-67.342a154.023 154.023 0 0 0 6.242 8.533h65.1c21.227 0 40.673-7.657 55.733-20.357zm-116.9-26.34a34.438 34.438 0 0 1-10.34 2.24c15.858 17.938 39.033 29.26 64.84 29.26 24.513 0 46.65-10.212 62.4-26.61a470.335 470.335 0 0 0 4.85-62.834A470.318 470.318 0 0 0 256 163.84c-7.034 6.307-20.214 19.932-26.426 40.82A86.448 86.448 0 0 0 226 229.333c0 17.793 5.38 34.334 14.6 48.092-11.324-14.627-18.067-32.975-18.067-52.892 0-13.23 2.976-25.768 8.292-36.984a34.655 34.655 0 0 1-8.034-13.85c-7.122 12.57-11.19 27.094-11.19 42.566 0 19.246 6.293 37.026 16.932 51.4-18.528-19.424-44.657-31.533-73.6-31.533-1.554 0-3.103.04-4.64.108a34.82 34.82 0 0 1 7.2 9.493c28.79.044 54.78 12.075 73.266 31.36-17.653-14.747-40.375-23.626-65.157-23.626-13.85 0-27.054 2.772-39.09 7.79 12.368 32.682 43.962 55.943 80.958 55.943 2.396 0 4.77-.108 7.117-.3a86.923 86.923 0 0 1-15.383 1.366c-23.344 0-44.53-9.258-60.102-24.3zM256 388.665h-56.65c17.532 6.968 36.645 10.8 56.65 10.8a11.64 11.64 0 0 0 1.334-5.285 11.656 11.656 0 0 0-1.334-5.514zm0-26.133h-99.875a153.957 153.957 0 0 0 8.342 6.667H256c.23-.234 1.358-1.44 1.358-3.334 0-1.896-1.13-3.1-1.358-3.333zm0 13.333h-81.808a153.198 153.198 0 0 0 15.41 8.533H256a8.06 8.06 0 0 0 1.237-4.474 8.032 8.032 0 0 0-1.237-4.06z" fill="#fff"/>
<path fill="#fbd116" d="M155.592 211.667l-7.067-36.342-15.64 33.558 32.373-17.958-36.74-4.508zm49.3-58.75l-29.575-22.276 10.825 35.41 12.058-35.016-30.334 21.24z"/>
</g>
<use height="100%" width="100%" xlink:href="#a" transform="matrix(-1 0 0 1 512 0)"/>
</svg>