Esempio n. 1
0
 static void onEveryWorkingUnit(int unitTime)
 {
     if (stopWhenNoTask && taskCount == 0)
     {
         ConveyorBasicController.mrS(0);
         ConveyorCleverController.cleanDelegate();
         RfidCleverController.cleanDelegate();
         running = false;
     }
     else if (!stopWhenNoTask)
     {
         for (int t = 0; t < ChQueue.Length; t++)
         {
             goodPositionBetweenSpecificNumber__minLimit = ChTime[t] - TimeD;
             goodPositionBetweenSpecificNumber__maxLimit = goodPositionBetweenSpecificNumber__minLimit + unitTime;
             GoodOnConveyor good = Goods.Find(goodPositionBetweenSpecificNumber);
             if (good != null && good.rfidTag != null && GoodsHandleMethod.ContainsKey(good.rfidTag))
             {
                 HandleMethod handleMethod = GoodsHandleMethod[good.rfidTag];
                 if (handleMethod.exitPoint == t)
                 {
                     handleGood(ChQueue[t], good, handleMethod.upload);
                 }
             }
         }
     }
 }