Add equipment data sync for dualpath partner machines
When a dualpath relationship is created, equipment data is now automatically synced between partners. This ensures both machines share the same: - Controller type and OS - Model number - Serial number - Communication settings (IP, Serial config) Location data (mapleft, maptop) is NOT synced since dualpath machines occupy slightly different physical positions. Changes: - includes/db_helpers.asp: Add CopyEquipmentDataToDualpathPartner(), CopyCommConfigToDualpathPartner(), and SyncDualpathPartnerData() functions - savemachineedit.asp: Call SyncDualpathPartnerData() on dualpath creation - savemachine_direct.asp: Call SyncDualpathPartnerData() on dualpath creation - sql/sync_dualpath_equipment_data.sql: One-time script to sync existing pairs Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -646,6 +646,9 @@
|
||||
|
||||
' Propagate controller from dualpath partner if exists
|
||||
Call PropagateControllerFromDualpathMachine(objConn, CLng(machineid), tempDualpathID)
|
||||
|
||||
' Sync equipment data between dualpath partners (controller type, model, comm config)
|
||||
Call SyncDualpathPartnerData(objConn, CLng(machineid), tempDualpathID)
|
||||
End If
|
||||
|
||||
'=============================================================================
|
||||
|
||||
Reference in New Issue
Block a user