コード例 #1
0
        public static bool TryGetPrevStepInfo(this FabProduct product, ref FabStep step, ref FabProduct prod)
        {
            bool isRouteChanged = false;

            FabStep orgStep = step;


            FabInterBom shopbom;

            if (product.TryGetInterRoute(orgStep, out shopbom, false))
            {
                step           = shopbom.ChangeStep;
                prod           = shopbom.ChangeProduct;
                isRouteChanged = true;
            }

            if (isRouteChanged == false && step != null)
            {
                //step = orgStep.PrevStep as FabStep;

                if (step.IsAlignStep == false)
                {
                    List <FabInnerBom> list = product.GetPrevInnerBom(orgStep.PrevStep as FabStep, Position.IN);

                    if (list != null)
                    {
                        step           = list[0].ChangeStep;
                        isRouteChanged = true;
                    }
                }
            }

            if (isRouteChanged == false)
            {
                step = orgStep.GetPrevMainStep(product, false); //orgStep.GetDefaultPrevStep() as FabStep;
            }
            return(isRouteChanged);
        }
コード例 #2
0
 public static bool TryGetPrevInterRoute(this FabProduct product, FabStep step, out FabInterBom interBom)
 {
     return(product.TryGetInterRoute(step, out interBom, false));
 }