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 CopyTo(RobotWork obj)
 {
     ProductInfo.CopyTo(obj.ProductInfo);
     obj.LargeBoxCount = LargeBoxCount;
 }
 public void CopyTo(RobotWork obj)
 {
     ProductInfo.CopyTo(obj.ProductInfo);
     obj.SmallBoxCount = SmallBoxCount;
     obj.TotalSmallBoxCount = TotalSmallBoxCount;
     AllProductInfo.CopyTo(obj.AllProductInfo);
 }
        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)
 {
     RobotWork robotWork = new RobotWork();
     productInfo.CopyTo(robotWork.ProductInfo);
     WorkQueue.Add(robotWork);
 }