public virtual bool Start( MeasurementJobInformation job, Guid batchID, string sn, int order, int saveType) { MeasurementJob = job; TestOrderID = order; TestData = new TestDataCollection( job.SpecData.TestSystemGroups.Where(q => job.SpecData.WorkInfoSpecItems.Any(a => a.TestGroupID == q.TestGroupID)).Select(q => q.TestGroupTestType).ToArray(), job.SpecData.TempSetting, job.SpecData.Ports); testInfo.WorkInfoID = job.WorkInfo.WorkInfoID; testInfo.SN = sn; testInfo.TestItemSetting = batchID.ToString(); testInfo.TempSetting = string.Join(",", job.SpecData.TempSetting); testInfo.TestSaveType = saveType; testInfo.StartTestDateTime = DateTime.Now; testInfo.TestResult = -1; return(true); }