internal static void WriteUnpegHistory(BankWip item, string reason) { Outputs.UnpegHistory hist = new Outputs.UnpegHistory(); hist.VERSION_NO = ModelContext.Current.VersionNo; hist.FACTORY_ID = item.FACTORY_ID; hist.AREA_ID = Constants.NULL_ID; hist.SHOP_ID = item.SHOP_ID; hist.LOT_ID = item.LOT_ID; hist.UNPEG_REASON = reason; hist.REMAIN_QTY = item.GLASS_QTY; hist.PRODUCT_ID = item.PRODUCT_ID; hist.PRODUCT_VERSION = item.PRODUCT_VERSION; hist.PROCESS_ID = item.PROCESS_ID; hist.STEP_ID = item.STEP_ID; hist.LOT_QTY = item.PANEL_QTY; hist.HOLD_CODE = Constants.NULL_ID; hist.LOT_STATUS = item.LOT_STATUS; hist.OWNER_TYPE = item.OWNER_TYPE; hist.WIP_PROCESS_ID = item.PROCESS_ID; hist.WIP_STEP_ID = item.STEP_ID; hist.WIP_STATE = item.LOT_STATUS; OutputMart.Instance.UnpegHistory.Add(hist); }
//Post Process internal static void WriteUnpegHistory(FabPlanWip wip, string reason) { Outputs.UnpegHistory hist = new Outputs.UnpegHistory(); hist.VERSION_NO = ModelContext.Current.VersionNo; hist.FACTORY_ID = wip.FactoryID; hist.AREA_ID = wip.AreaID; hist.SHOP_ID = wip.ShopID; hist.STEP_ID = wip.StepID; hist.LOT_ID = wip.WipInfo.LotID; hist.UNPEG_REASON = reason; hist.REMAIN_QTY = wip.Qty; hist.PRODUCT_ID = wip.ProductID; hist.PRODUCT_VERSION = wip.ProductVersion; hist.PROCESS_ID = wip.ProcessID; hist.LOT_QTY = wip.Qty; hist.LOT_STATUS = wip.LotState.ToString(); hist.HOLD_CODE = wip.WipInfo.HoldCode; hist.WIP_PROCESS_ID = wip.WipInfo.WipProcessID; hist.WIP_STEP_ID = wip.WipInfo.WipStepID; hist.WIP_STATE = wip.WipInfo.WipState; hist.OWNER_TYPE = wip.WipInfo.OwnerType; OutputMart.Instance.UnpegHistory.Add(hist); }