public void AddWork(FAProductInfo productInfo)
        {
            RobotWork robotWork = new RobotWork();
            productInfo.CopyTo(robotWork.ProductInfo);
            var masterInfo = productInfo.ECInfo.PackingMasterInfo;
            robotWork.LargeBoxCount = masterInfo.LOT_QTY / (masterInfo.S_BOX_MOQ * masterInfo.L_BOX_MOQ);
            if (masterInfo.LOT_QTY % (masterInfo.S_BOX_MOQ * masterInfo.L_BOX_MOQ) > 0)
                robotWork.LargeBoxCount += 1;

            WorkQueue.Add(robotWork);
        }
 public void AddWork(FAProductInfo productInfo)
 {
     RobotWork robotWork = new RobotWork();
     productInfo.CopyTo(robotWork.ProductInfo);
     WorkQueue.Add(robotWork);
 }
        public void AddWork(FAECInfo.PACKING_MASTER_INFO_RPY packingMasterInfo, FAProductInfo allProductInfo)
        {
            RobotWork robotWork = new RobotWork();
            allProductInfo.CopyTo(robotWork.AllProductInfo);

            packingMasterInfo.CopyTo(robotWork.ProductInfo);
            robotWork.SmallBoxCount = packingMasterInfo.LOT_QTY / packingMasterInfo.S_BOX_MOQ;
            if (packingMasterInfo.LOT_QTY % packingMasterInfo.S_BOX_MOQ > 0)
                robotWork.SmallBoxCount += 1;

            int largeBoxCount = robotWork.SmallBoxCount / robotWork.ProductInfo.L_BOX_MOQ;
            if (robotWork.SmallBoxCount % robotWork.ProductInfo.L_BOX_MOQ > 0)
                largeBoxCount += 1;

            int smallBoxCountIncludeEmptyBox = robotWork.ProductInfo.L_BOX_MOQ * largeBoxCount;
            robotWork.TotalSmallBoxCount = smallBoxCountIncludeEmptyBox;

            WorkQueue.Enqueue(robotWork);
        }
 public void AddWork(FAProductInfo productInfo)
 {
     var newProductInfo = new FAProductInfo();
     productInfo.CopyTo(newProductInfo);
     WorkQueue.Add(newProductInfo);
 }