コード例 #1
0
        //Send the divert confirmation messages
        void transfer_OnDivertCompleteController(object sender, TransferDivertedArgs e)
        {
            Case_Load caseLoad = e._load as Case_Load;

            //First check if the load has failed to divert
            if (theTransfer.PreferredLoadRoutes.ContainsKey(caseLoad) && theTransfer.PreferredLoadRoutes[caseLoad] != e._divertedRoute && !string.IsNullOrEmpty(FailedRoutingLocation))
            {
                casePLC.SendDivertConfirmation(FailedRoutingLocation, caseLoad.SSCCBarcode);
            }
            else if (e._divertedRoute == Side.Right && !string.IsNullOrEmpty(RHSRoutingLocation))
            {
                casePLC.SendDivertConfirmation(RHSRoutingLocation, caseLoad.SSCCBarcode);
            }
            else if (e._divertedRoute == Side.Left && !string.IsNullOrEmpty(LHSRoutingLocation))
            {
                casePLC.SendDivertConfirmation(LHSRoutingLocation, caseLoad.SSCCBarcode);
            }

            if (theTransfer.PreferredLoadRoutes.ContainsKey(caseLoad))
            {
                theTransfer.PreferredLoadRoutes.Remove(caseLoad);
            }
        }
コード例 #2
0
 //Send the divert confirmation messages
 void transfer_OnDivertCompleteController(object sender, TransferDivertedArgs e)
 {
 }