示例#1
0
文件: Defect.cs 项目: Eric-Guo/uo-mes
 protected override bool RecordServiceHistory()
 {
     DefectHistory h = new DefectHistory();
     AssignToDefectHistory(h);
     foreach (DefectDetail d in DefectDetails)
     {
         DefectHistoryDetail hd = new DefectHistoryDetail();
         AssignDefectDetailsToDefectHistoryDetail(d, hd);
         hd.ServiceHistorySummary = h;
         ObjScope.Add(hd);
     }
     ObjScope.Add(h);
     return true;
 }
示例#2
0
文件: Defect.cs 项目: Eric-Guo/uo-mes
 protected virtual void AssignToDefectHistory(DefectHistory t)
 {
     t.HistoryMainLine = this.HistoryMainLine;
     t.QtyInspected = this.QtyInspected;
 }