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); } }
private void WriteTryInfo(EcnTryActionEventArgs actionEventArgs, DataCollectFacade facade, ActionCheckStatus actionCheckStatus) { SimulationReport report = actionEventArgs.ProductInfo.NowSimulationReport; List <string> TryList = new List <string>(); if (actionEventArgs.TryNo.Trim().Length > 0) { string TryCode = actionEventArgs.TryNo.Trim(); if (TryCode.IndexOf(",") >= 0) { string[] TryCodeList = TryCode.Split(','); for (int i = 0; i < TryCodeList.Length; i++) { TryList.Add(TryCodeList[i]); } } else { TryList.Add(TryCode); } } if (TryList.Count > 0) { for (int i = 0; i < TryList.Count; i++) { OnWIPTRY onWIPTRY = facade.CreateNewOnWIPTRY(); onWIPTRY.TRYNO = TryList[i].ToString().ToUpper(); onWIPTRY.RunningCard = report.RunningCard; onWIPTRY.RunningCardSequence = report.RunningCardSequence; onWIPTRY.MOCode = report.MOCode; onWIPTRY.ItemCode = report.ItemCode; onWIPTRY.ResourceCode = report.ResourceCode; onWIPTRY.OPCode = report.OPCode; onWIPTRY.RouteCode = report.RouteCode; onWIPTRY.ModelCode = report.ModelCode; onWIPTRY.MaintainDate = report.MaintainDate; onWIPTRY.MaintainTime = report.MaintainTime; onWIPTRY.MaintainUser = report.MaintainUser; onWIPTRY.ShiftTypeCode = report.ShiftTypeCode; onWIPTRY.StepSequenceCode = report.StepSequenceCode; onWIPTRY.SegmnetCode = report.SegmentCode; onWIPTRY.ShiftCode = report.ShiftCode; onWIPTRY.TimePeriodCode = report.TimePeriodCode; onWIPTRY.MOSeq = report.MOSeq; // Added by Icyer 2007/07/02 if (actionCheckStatus == null || actionCheckStatus.NeedUpdateSimulation == true) { facade.AddOnWIPTRY(onWIPTRY); } else { actionEventArgs.OnWIP.Add(onWIPTRY); } } } }
private void WriteTryInfo(EcnTryActionEventArgs actionEventArgs, DataCollectFacade facade) { WriteTryInfo(actionEventArgs, facade, null); }