public void UpdateDetails(CollectDataDetail s) { foreach (CollectDataDetail t in Details) { if (t.ServiceDetailID == s.ServiceDetailID) { AssignDetailToDetail(s, t); } } }
public void DeleteDetail(CollectDataDetail s) { int i = -1; foreach (CollectDataDetail t in Details) if (t.ServiceDetailID == s.ServiceDetailID) { i = Details.IndexOf(t); break; } if(-1 != i) Details.RemoveAt(i); }
public void DeleteDetail(CollectDataDetail s) { int i = -1; foreach (CollectDataDetail t in Details) { if (t.ServiceDetailID == s.ServiceDetailID) { i = Details.IndexOf(t); break; } } if (-1 != i) { Details.RemoveAt(i); } }
public void T140_CollectData_LOT1() { CollectData s = new CollectData(); Container co = new Container(); co.ContainerName = "LOT1"; s.Container = co; CollectDataDetail d = new CollectDataDetail(); // d stands for detail d.DataCollectionDef_Name = "WIPData(r1)"; d.DataCollectionValue = "10"; s.InsertDetail(d); Assert.IsTrue(s.ExecuteService(), s.CompletionMessage); }
protected virtual void AssignDetailToDetail(CollectDataDetail f, CollectDataDetail t) { t.DataCollectionDef_Name = f.DataCollectionDef_Name; t.DataCollectionValue = f.DataCollectionValue; }
public void InsertDetail(CollectDataDetail s) { s.ServiceDetailID = detailIDCount++; Details.Add(s); }
protected virtual void AssignDetailsToHistoryDetail(CollectDataDetail s, CollectDataHistoryDetail t) { t.DataCollectionDef = ResolveCDO("DataCollectionDef", s.DataCollectionDef_Name) as DataCollectionDef; t.DataCollectionValue = s.DataCollectionValue; }