public static void set(this sc.ALINE line, sc.ProtocolFormat.OHTMessage.ONLINE_CHECK_INFO new_online_check_info)
 {
     line.EnhancedTransfersChecked  = new_online_check_info.EnhancedTransfersChecked;
     line.UnitAlarmStateListChecked = new_online_check_info.UnitAlarmStateListChecked;
     line.TSCStateChecked           = new_online_check_info.TSCStateChecked;
     line.EnhancedVehiclesChecked   = new_online_check_info.EnhancedVehiclesChecked;
     line.CurrentStateChecked       = new_online_check_info.CurrentStateChecked;
     line.CurrentPortStateChecked   = new_online_check_info.CurrentPortStateChecked;
     line.LaneCutListChecked        = new_online_check_info.LaneCutListChecked;
     line.EnhancedCarriersChecked   = new_online_check_info.EnhancedCarriersChecked;
 }
        public static void set(this sc.ALINE line, sc.ProtocolFormat.OHTMessage.LINE_INFO new_line)
        {
            line.Secs_Link_Stat = new_line.Host == sc.ProtocolFormat.OHTMessage.LinkStatus.LinkOk ?
                                  sc.App.SCAppConstants.LinkStatus.LinkOK : sc.App.SCAppConstants.LinkStatus.LinkFail;
            line.DetectionSystemExist = new_line.IMS == sc.ProtocolFormat.OHTMessage.LinkStatus.LinkOk ?
                                        sc.App.SCAppConstants.ExistStatus.Exist : sc.App.SCAppConstants.ExistStatus.NoExist;
            line.Secs_Link_Stat = new_line.Host == sc.ProtocolFormat.OHTMessage.LinkStatus.LinkOk ?
                                  sc.App.SCAppConstants.LinkStatus.LinkOK : sc.App.SCAppConstants.LinkStatus.LinkFail;
            line.Host_Control_State = new_line.HostMode == sc.ProtocolFormat.OHTMessage.HostMode.OnlineRemote ?
                                      sc.App.SCAppConstants.LineHostControlState.HostControlState.On_Line_Remote :
                                      (new_line.HostMode == sc.ProtocolFormat.OHTMessage.HostMode.OnlineLocal ? sc.App.SCAppConstants.LineHostControlState.HostControlState.On_Line_Local : sc.App.SCAppConstants.LineHostControlState.HostControlState.EQ_Off_line);
            if (new_line.TSCState == sc.ProtocolFormat.OHTMessage.TSCState.Auto)
            {
                line.SCStats = sc.ALINE.TSCState.AUTO;
            }
            else if (new_line.TSCState == sc.ProtocolFormat.OHTMessage.TSCState.Paused)
            {
                line.SCStats = sc.ALINE.TSCState.PAUSED;
            }
            else if (new_line.TSCState == sc.ProtocolFormat.OHTMessage.TSCState.Pausing)
            {
                line.SCStats = sc.ALINE.TSCState.PAUSING;
            }
            else if (new_line.TSCState == sc.ProtocolFormat.OHTMessage.TSCState.Tscint)
            {
                line.SCStats = sc.ALINE.TSCState.TSC_INIT;
            }
            else if (new_line.TSCState == sc.ProtocolFormat.OHTMessage.TSCState.Tscnone)
            {
                line.SCStats = sc.ALINE.TSCState.NONE;
            }

            line.CurrntVehicleModeAutoRemoteCount             = (ushort)new_line.CurrntVehicleModeAutoRemoteCount;
            line.CurrntVehicleModeAutoLoaclCount              = (ushort)new_line.CurrntVehicleModeAutoLoaclCount;
            line.CurrntVehicleStatusIdelCount                 = (ushort)new_line.CurrntVehicleStatusIdelCount;
            line.CurrntVehicleStatusErrorCount                = (ushort)new_line.CurrntVehicleStatusErrorCount;
            line.CurrntCSTStatueTransferCount                 = (ushort)new_line.CurrntCSTStatueTransferCount;
            line.CurrntCSTStatueWaitingCount                  = (ushort)new_line.CurrntCSTStatueWaitingCount;
            line.CurrntHostCommandTransferStatueAssignedCount = (ushort)new_line.CurrntHostCommandTransferStatueAssignedCount;
            line.CurrntHostCommandTransferStatueWaitingCounr  = (ushort)new_line.CurrntHostCommandTransferStatueWaitingCounr;
            line.NotifyLineStatusChange();
        }
 public static void set(this sc.ALINE line, sc.ProtocolFormat.OHTMessage.PING_CHECK_INFO new_ping_check_info)
 {
     line.MCSConnectionSuccess    = new_ping_check_info.MCSConnectionSuccess;
     line.RouterConnectionSuccess = new_ping_check_info.RouterConnectionSuccess;
     line.OHT1ConnectionSuccess   = new_ping_check_info.OHT1ConnectionSuccess;
     line.OHT2ConnectionSuccess   = new_ping_check_info.OHT2ConnectionSuccess;
     line.OHT3ConnectionSuccess   = new_ping_check_info.OHT3ConnectionSuccess;
     line.OHT4ConnectionSuccess   = new_ping_check_info.OHT4ConnectionSuccess;
     line.OHT5ConnectionSuccess   = new_ping_check_info.OHT5ConnectionSuccess;
     line.OHT6ConnectionSuccess   = new_ping_check_info.OHT6ConnectionSuccess;
     line.OHT7ConnectionSuccess   = new_ping_check_info.OHT7ConnectionSuccess;
     line.OHT8ConnectionSuccess   = new_ping_check_info.OHT8ConnectionSuccess;
     line.OHT9ConnectionSuccess   = new_ping_check_info.OHT9ConnectionSuccess;
     line.OHT10ConnectionSuccess  = new_ping_check_info.OHT10ConnectionSuccess;
     line.OHT11ConnectionSuccess  = new_ping_check_info.OHT11ConnectionSuccess;
     line.OHT12ConnectionSuccess  = new_ping_check_info.OHT12ConnectionSuccess;
     line.OHT13ConnectionSuccess  = new_ping_check_info.OHT13ConnectionSuccess;
     line.OHT14ConnectionSuccess  = new_ping_check_info.OHT14ConnectionSuccess;
     line.MTLConnectionSuccess    = new_ping_check_info.MTLConnectionSuccess;
     line.MTSConnectionSuccess    = new_ping_check_info.MTSConnectionSuccess;
     line.MTS2ConnectionSuccess   = new_ping_check_info.MTS2ConnectionSuccess;
     line.HID1ConnectionSuccess   = new_ping_check_info.HID1ConnectionSuccess;
     line.HID2ConnectionSuccess   = new_ping_check_info.HID2ConnectionSuccess;
     line.HID3ConnectionSuccess   = new_ping_check_info.HID3ConnectionSuccess;
     line.HID4ConnectionSuccess   = new_ping_check_info.HID4ConnectionSuccess;
     line.Adam1ConnectionSuccess  = new_ping_check_info.Adam1ConnectionSuccess;
     line.Adam2ConnectionSuccess  = new_ping_check_info.Adam2ConnectionSuccess;
     line.Adam3ConnectionSuccess  = new_ping_check_info.Adam3ConnectionSuccess;
     line.Adam4ConnectionSuccess  = new_ping_check_info.Adam4ConnectionSuccess;
     line.AP1ConnectionSuccess    = new_ping_check_info.AP1ConnectionSuccess;
     line.AP2ConnectionSuccess    = new_ping_check_info.AP2ConnectionSuccess;
     line.AP3ConnectionSuccess    = new_ping_check_info.AP3ConnectionSuccess;
     line.AP4ConnectionSuccess    = new_ping_check_info.AP4ConnectionSuccess;
     line.AP5ConnectionSuccess    = new_ping_check_info.AP5ConnectionSuccess;
     line.AP6ConnectionSuccess    = new_ping_check_info.AP6ConnectionSuccess;
     line.AP7ConnectionSuccess    = new_ping_check_info.AP7ConnectionSuccess;
     line.AP8ConnectionSuccess    = new_ping_check_info.AP8ConnectionSuccess;
     line.AP9ConnectionSuccess    = new_ping_check_info.AP9ConnectionSuccess;
     line.AP10ConnectionSuccess   = new_ping_check_info.AP10ConnectionSuccess;
 }
 public static void set(this sc.ALINE line, sc.ProtocolFormat.OHTMessage.TRANSFER_INFO new_transfer_info)
 {
     line.MCSCommandAutoAssign = new_transfer_info.MCSCommandAutoAssign;
 }