Esempio n. 1
0
        public static bool AvailableChangeProductVer(FabStdStep stdStep, string productVer)
        {
            string shopID = stdStep.ShopID;
            string stepID = stdStep.StepID;

            //1300 이전 공정 이면서 Ver에 X가 없는 Version은 변경 투입 가능함.
            if (BopHelper.IsArrayShop(shopID))
            {
                if (IsProductVer_X(productVer) == false)
                {
                    if (LcdHelper.Equals(Constants.GATE_PHOTO_STEP, stepID))
                    {
                        return(true);
                    }

                    //1300 이전 공정은 ProductVersion 변경가능 함.
                    var fromStep = BopHelper.FindStdStep(Constants.ArrayShop, Constants.GATE_PHOTO_STEP);
                    if (fromStep != null)
                    {
                        if (stdStep.StepSeq <= fromStep.StepSeq)
                        {
                            return(true);
                        }
                    }
                }
            }

            return(false);
        }
Esempio n. 2
0
        public static bool IsFixedProductVer(FabStdStep stdStep, string productVer)
        {
            string shopID = stdStep.ShopID;

            //Ver는 Array Shop에서만 유효
            if (BopHelper.IsArrayShop(shopID) == false)
            {
                return(false);
            }

            //1300 ~ 5300 공정까지만 ProductVersion 유효(2020.01.13 - by.liujian(유건))
            //5300 이후 ProductVersion 무시
            var toStep = BopHelper.FindStdStep(Constants.ArrayShop, Constants.ITO_PHOTO_STEP);

            if (toStep != null)
            {
                if (stdStep.StepSeq > toStep.StepSeq)
                {
                    return(false);
                }
            }

            //1300 이전 공정 이면서 Ver에 X가 없는 Version은 변경 투입 가능함.
            if (AvailableChangeProductVer(stdStep, productVer))
            {
                return(false);
            }

            if (LcdHelper.IsEmptyID(productVer))
            {
                return(false);
            }

            return(true);
        }
Esempio n. 3
0
        private static void SetSupportSteps(this DcnMaster mst)
        {
            var gate = BopHelper.FindStdStep(Constants.ArrayShop, Constants.GATE_PHOTO_STEP);

            if (gate != null)
            {
                mst.SupportSteps.Add(gate);
            }

            var bm = BopHelper.FindStdStep(Constants.CfShop, Constants.BM__PHOTO_STEP);

            if (bm != null)
            {
                mst.SupportSteps.Add(bm);
            }
        }