Exemplo n.º 1
0
        public static void WriteActPeg(Mozart.SeePlan.Pegging.PegTarget target, Mozart.SeePlan.Pegging.IMaterial m, double qty)
        {
            try
            {
                MicronBEAssyPlanWip    wip = m as MicronBEAssyPlanWip;
                MicronBEAssyBEPegPart  pp  = target.PegPart as MicronBEAssyBEPegPart;
                MicronBEAssyBEMoMaster mo  = pp.MoMaster as MicronBEAssyBEMoMaster;

                PegHistory info = new PegHistory();

                info.LOT_ID        = LotType.ACT.ToString();
                info.LINE_ID       = wip.GetWipInfo().LineID;
                info.PRODUCT_ID    = wip.GetWipInfo().WipProductID;
                info.MAIN_QTY      = Convert.ToDecimal(wip.GetWipInfo().UnitQty);
                info.PEG_QTY       = Convert.ToDecimal(qty);
                info.STEP_ID       = StringUtility.IdentityNull;
                info.MO_PRODUCT_ID = mo.Product.ProductID;
                info.LOT_STATE     = StringUtility.IdentityNull;

                OutputMart.Instance.PegHistory.Add(info);
            }
            catch (Exception e)
            {
                WriteHelper.WriteErrorHistory(ErrorLevel.FATAL, string.Format("ErrorMessage : {0}   MethodName : {1}", e.Message, System.Reflection.MethodInfo.GetCurrentMethod().Name));
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// </summary>
        /// <param name="target"/>
        /// <param name="m"/>
        /// <param name="isRun"/>
        /// <param name="handled"/>
        /// <param name="prevReturnValue"/>
        /// <returns/>
        public bool CAN_PEG_MORE0(Mozart.SeePlan.Pegging.PegTarget target, Mozart.SeePlan.Pegging.IMaterial m, bool isRun, ref bool handled, bool prevReturnValue)
        {
            FabPlanWip   wip = m.ToFabPlanWip();
            FabPegTarget pt  = target.ToFabPegTarget();

            if (wip.IsHold == false)
            {
                return(true);
            }

            // Hold Peg 방지 옵션
            //if (pt.CalcDate < wip.AvailableTime)
            //    return false;

            return(true);
        }
Exemplo n.º 3
0
        public static void WritePeg(Mozart.SeePlan.Pegging.IMaterial m, Mozart.SeePlan.Pegging.PegTarget target, double qty)
        {
            try
            {
                MicronBEAssyPlanWip    wip    = m as MicronBEAssyPlanWip;
                MicronBEAssyBEPegPart  pp     = target.PegPart as MicronBEAssyBEPegPart;
                MicronBEAssyBEMoMaster mo     = pp.MoMaster as MicronBEAssyBEMoMaster;
                MicronBEAssyBEMoPlan   moPlan = target.MoPlan as MicronBEAssyBEMoPlan;

                PegHistory info = new PegHistory();

                info.LOT_ID        = wip.LotID;
                info.PRODUCT_ID    = wip.Product.ProductID;
                info.STEP_ID       = string.IsNullOrEmpty(wip.MapStep.StepID) ? StringUtility.IdentityNull : wip.MapStep.StepID;
                info.MAIN_QTY      = Convert.ToDecimal(wip.Wip.UnitQty);
                info.PEG_QTY       = Convert.ToDecimal(qty);
                info.LOT_STATE     = wip.Wip.CurrentState.ToString();
                info.LINE_ID       = wip.Product.LineID;
                info.MO_PRODUCT_ID = mo.Product.ProductID;
                info.DESIGN_ID     = wip.Product.DesignID();
                info.DEMAND_ID     = moPlan.DemandID;
                info.WEEK_NO       = moPlan.WeekNo;
                info.IS_BASE       = UtilityHelper.IsYN(pp.Product.IsBase());

                if (pp.Product is AssyMcpPart)
                {
                    info.COMP_SEQ = (pp.Product as AssyMcpPart).CompSeq;
                }
                else
                {
                    info.COMP_SEQ = 1;
                }


                OutputMart.Instance.PegHistory.Add(info);
            }
            catch (Exception e)
            {
                WriteHelper.WriteErrorHistory(ErrorLevel.FATAL, string.Format("ErrorMessage : {0}   MethodName : {1}", e.Message, System.Reflection.MethodInfo.GetCurrentMethod().Name));
            }
        }
Exemplo n.º 4
0
            public override void WritePeg(Mozart.SeePlan.Pegging.PegTarget target, Mozart.SeePlan.Pegging.IMaterial m, double qty)
            {
                bool handled = false;

                this.fpPEG_WIP.WRITE_PEG0(target, m, qty, ref handled);
            }
Exemplo n.º 5
0
            public override void UpdatePegInfo(Mozart.SeePlan.Pegging.PegTarget target, Mozart.SeePlan.Pegging.IMaterial m, double qty)
            {
                bool handled = false;

                this.fPEG_WIP.UPDATE_PEG_INFO0(target, m, qty, ref handled);
            }
Exemplo n.º 6
0
 /// <summary>
 /// </summary>
 /// <param name="target"/>
 /// <param name="m"/>
 /// <param name="qty"/>
 /// <param name="handled"/>
 public void WRITE_PEG0(Mozart.SeePlan.Pegging.PegTarget target, Mozart.SeePlan.Pegging.IMaterial m, double qty, ref bool handled)
 {
     PegHelper.WritePeg(target, m, qty);
 }
Exemplo n.º 7
0
 /// <summary>
 /// </summary>
 /// <param name="target"/>
 /// <param name="m"/>
 /// <param name="isRun"/>
 /// <param name="handled"/>
 /// <param name="prevReturnValue"/>
 /// <returns/>
 public double AVAIL_PEG_QTY0(Mozart.SeePlan.Pegging.PegTarget target, Mozart.SeePlan.Pegging.IMaterial m, bool isRun, ref bool handled, double prevReturnValue)
 {
     return(m.Qty);
 }