Exemple #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);
                 }
             }
         }
     }
 }
 private void MainForm_Load(object sender, EventArgs e)
 {
     Server.init(this);
     ConveyorBasicController.init(this);
     ConveyorCleverController.init();
     RfidBasicController.init();
     RfidCleverController.init();
     _timer_update.Enabled = true;
 }