Ejemplo n.º 1
0
        public static void WriteUnpeg(MicronBEAssyPlanWip planWip, UnpegReason unpegReason)
        {
            try
            {
                MicronBEAssyWipInfo wipInfo = planWip.GetWipInfo();

                if (planWip.Product != null)
                {
                    WriteUnpeg(wipInfo.LineID, wipInfo.LotID, planWip.Product.ProductID,
                               planWip.MapStep.StepID, (decimal)wipInfo.UnitQty, (decimal)planWip.Qty,
                               planWip.Product.DesignID(), planWip.Product.IsBase(), wipInfo.CurrentState.ToString(),
                               unpegReason.ToString(), string.Empty);
                }
            }
            catch (Exception e)
            {
                WriteHelper.WriteErrorHistory(ErrorLevel.FATAL, string.Format("ErrorMessage : {0}   MethodName : {1}", e.Message, System.Reflection.MethodInfo.GetCurrentMethod().Name));
            }
        }
Ejemplo n.º 2
0
 internal static void WriteUnpeg(Inputs.Wip entity, string designID, bool isBase, EntityState state, UnpegReason reason, string reasonDeatil)
 {
     try
     {
         WriteUnpeg(entity.LINE_ID, entity.LOT_ID, entity.PRODUCT_ID, entity.STEP_ID, entity.LOT_QTY, entity.LOT_QTY, designID, isBase, state.ToString(), reason.ToString(), reasonDeatil);
     }
     catch (Exception e)
     {
         WriteHelper.WriteErrorHistory(ErrorLevel.FATAL, string.Format("ErrorMessage : {0}   MethodName : {1}", e.Message, System.Reflection.MethodInfo.GetCurrentMethod().Name));
     }
 }