private void WriteECNInfo(EcnTryActionEventArgs actionEventArgs, DataCollectFacade facade, ActionCheckStatus actionCheckStatus) { SimulationReport report = actionEventArgs.ProductInfo.NowSimulationReport; OnWIPECN onWIPECN = facade.CreateNewOnWIPECN(); onWIPECN.ECNNO = actionEventArgs.ECNNo; onWIPECN.RunningCard = report.RunningCard; onWIPECN.RunningCardSequence = report.RunningCardSequence; onWIPECN.MOCode = report.MOCode; onWIPECN.ItemCode = report.ItemCode; onWIPECN.ResourceCode = report.ResourceCode; onWIPECN.OPCode = report.OPCode; onWIPECN.RouteCode = report.RouteCode; onWIPECN.ModelCode = report.ModelCode; onWIPECN.MaintainDate = report.MaintainDate; onWIPECN.MaintainTime = report.MaintainTime; onWIPECN.MaintainUser = report.MaintainUser; onWIPECN.ShiftTypeCode = report.ShiftTypeCode; onWIPECN.StepSequenceCode = report.StepSequenceCode; onWIPECN.SegmnetCode = report.SegmentCode; onWIPECN.ShiftCode = report.ShiftCode; onWIPECN.TimePeriodCode = report.TimePeriodCode; onWIPECN.MOSeq = report.MOSeq; // Added by Icyer 2007/07/02 if (actionCheckStatus == null || actionCheckStatus.NeedUpdateSimulation == true) { facade.AddOnWIPECN(onWIPECN); } else { actionEventArgs.OnWIP.Add(onWIPECN); } }