Example #1
0
        private void WriteSoftwareInfo(SoftwareActionEventArgs actionEventArgs, DataCollectFacade facade, ActionCheckStatus actionCheckStatus)
        {
            SimulationReport report = actionEventArgs.ProductInfo.NowSimulationReport;

            OnWIPSoftVersion onWIPSoftVersion = facade.CreateNewOnWIPSoftVersion();

            onWIPSoftVersion.SoftwareVersion     = actionEventArgs.SoftwareVersion;
            onWIPSoftVersion.SoftwareName        = actionEventArgs.SoftwareName;
            onWIPSoftVersion.RunningCard         = report.RunningCard;
            onWIPSoftVersion.RunningCardSequence = report.RunningCardSequence;
            onWIPSoftVersion.MOCode           = report.MOCode;
            onWIPSoftVersion.ItemCode         = report.ItemCode;
            onWIPSoftVersion.ResourceCode     = report.ResourceCode;
            onWIPSoftVersion.OPCode           = report.OPCode;
            onWIPSoftVersion.RouteCode        = report.RouteCode;
            onWIPSoftVersion.ModelCode        = report.ModelCode;
            onWIPSoftVersion.MaintainDate     = report.MaintainDate;
            onWIPSoftVersion.MaintainTime     = report.MaintainTime;
            onWIPSoftVersion.MaintainUser     = report.MaintainUser;
            onWIPSoftVersion.ShiftTypeCode    = report.ShiftTypeCode;
            onWIPSoftVersion.StepSequenceCode = report.StepSequenceCode;
            onWIPSoftVersion.SegmnetCode      = report.SegmentCode;
            onWIPSoftVersion.ShiftCode        = report.ShiftCode;
            onWIPSoftVersion.TimePeriodCode   = report.TimePeriodCode;
            onWIPSoftVersion.MOSeq            = report.MOSeq; // Added by Icyer 2007/07/02

            if (actionCheckStatus == null || actionCheckStatus.NeedUpdateSimulation == true)
            {
                facade.AddOnWIPSoftVersion(onWIPSoftVersion);
            }
            else
            {
                actionEventArgs.OnWIP.Add(onWIPSoftVersion);
            }
        }
Example #2
0
        // Added end

        private void WriteSoftwareInfo(SoftwareActionEventArgs actionEventArgs, DataCollectFacade facade)
        {
            WriteSoftwareInfo(actionEventArgs, facade, null);
        }