Ejemplo n.º 1
0
 protected virtual void AssignDetailsToHistoryDetail(ComponentIssueDetail s, ComponentIssueHistoryDetail t)
 {
     t.IssueControl = s.IssueControl;
     t.Product = ResolveCDO("Product", s.Product_Name) as Product;
     t.QtyRequired = s.QtyRequired;
     t.ActualQtyIssued = s.ActualQtyIssued;
     t.IssueReason = ResolveCDO("IssueReason", s.IssueReason_Name) as IssueReason;
     t.Container = ResolveContainer(s.Container_Name) as Container;
     t.FromLocation = s.FromLocation;
     t.ToLocation = s.ToLocation;
 }
Ejemplo n.º 2
0
 protected override bool RecordServiceHistory()
 {
     ComponentIssueHistory h = new ComponentIssueHistory();
     AssignToComponentIssueHistory(h);
     foreach (ComponentIssueDetail sd in Details)
     {
         ComponentIssueHistoryDetail hd = new ComponentIssueHistoryDetail();
         AssignDetailsToHistoryDetail(sd, hd);
         hd.ServiceHistorySummary = h;
         ObjScope.Add(hd);
     }
     ObjScope.Add(h);
     return true;
 }