Beispiel #1
0
        private static void AddDcnTarget(ShopInTarget inTarget)
        {
            if (inTarget == null)
            {
                return;
            }

            //CELL 제외
            if (BopHelper.IsCellShop(inTarget.ShopID))
            {
                return;
            }

            int qty = (int)inTarget.TargetQty;

            if (qty <= 0)
            {
                return;
            }

            var product = inTarget.Product;

            if (product == null)
            {
                return;
            }

            FabStep inTargetStep = inTarget.TargetStep;

            if (inTargetStep == null)
            {
                return;
            }

            var dcnMst = ReleasePlanMaster.DcnMst;

            string shopID = product.ShopID;

            //ARRAY=A000, CF=C000
            string   stepID     = ReleasePlanMaster.GetShopStep(shopID);
            DateTime targetDate = inTarget.TargetDate;

            DcnTarget target = new DcnTarget()
            {
                InTarget   = inTarget,
                TargetStep = inTargetStep,
                Product    = product,
                StepID     = stepID,
                TargetDate = targetDate,
                TargetQty  = qty
            };

            dcnMst.AllTargets.Add(target);
        }
Beispiel #2
0
        private static string GetShopStep(string shopID)
        {
            if (BopHelper.IsArrayShop(shopID))
            {
                return(ARRAY_STEP);
            }

            if (BopHelper.IsCfShop(shopID))
            {
                return(CF_STEP);
            }

            if (BopHelper.IsCellShop(shopID))
            {
                return(CELL_STEP);
            }

            return(Constants.NULL_ID);
        }