Пример #1
0
 private void LocationArrived(CommunicationPoint commPoint, IATCCaseLoadType caseLoad)
 {
     if (AlwaysArrival || caseLoad.Location == caseLoad.Destination)
     {
         caseLoad.Location = commPoint.Name;
         //caseLoad.MTS = commPoint.ControllerName;
         casePLC.SendLocationArrivedTelegram(caseLoad as IATCCaseLoadType);
     }
 }
Пример #2
0
        private void SendConfirmationTelegram(Case_Load caseLoad, string Location)
        {
            IATCCaseLoadType atcLoad = caseLoad as IATCCaseLoadType;

            atcLoad.Location = Location;
            switch (DivertMessageType)
            {
            case DivertTelegram.LocationArrived: casePLC.SendLocationArrivedTelegram(caseLoad as IATCCaseLoadType); break;

            case DivertTelegram.LocationLeft: casePLC.SendLocationLeftTelegram(caseLoad as IATCCaseLoadType); break;

            case DivertTelegram.TransportFinished: casePLC.SendTransportFinishedTelegram(caseLoad as IATCCaseLoadType); break;

            case DivertTelegram.TransportRequest: casePLC.SendTransportRequestTelegram(caseLoad as IATCCaseLoadType); break;
            }
        }