예제 #1
0
        /// <summary>
        /// </summary>
        /// <param name="pegPart"/>
        /// <param name="handled"/>
        /// <param name="prevReturnValue"/>
        /// <returns/>
        public PegPart PREPARE_WIP0(PegPart pegPart, ref bool handled, PegPart prevReturnValue)
        {
            foreach (FabWipInfo wip in InputMart.Instance.FabWipInfo.Values)
            {
                FabPlanWip planWip = CreateHelper.CreatePlanWip(wip);

                //OwnerE 는 패깅하지 않음.
                if (wip.OwnerType == Constants.OwnerE)
                {
                    PegHelper.WriteUnpegHistory(planWip, wip.OwnerType);
                    continue;
                }

                InputMart.Instance.FabPlanWip.ImportRow(planWip);
            }

            return(pegPart);
        }
예제 #2
0
        private void WriteUnpegHistory(FabPlanWip planWip)
        {
            if (planWip.Qty == 0)
            {
                return;
            }

            if (planWip.Qty == 0)
            {
                PegHelper.WriteUnpegHistory(planWip, "LOT_KIT_REMAIN");
            }
            else if (planWip.MapCount == 0)
            {
                PegHelper.WriteUnpegHistory(planWip, "NO TARGET");
            }
            else if (planWip.Qty > 0)
            {
                PegHelper.WriteUnpegHistory(planWip, "EXCESS");
            }
        }