Example #1
0
        protected override bool RecordServiceHistory()
        {
            CollectResDataHistory h = new CollectResDataHistory();

            AssignToCollectResourceDataHistory(h);
            foreach (ParametricDataDetail sd in Details)
            {
                CollectResDataHistoryDetail hd = new CollectResDataHistoryDetail();
                AssignDetailsToHistoryDetail(sd, hd);
                hd.ServiceHistorySummary = h;
                ObjScope.Add(hd);
            }
            ObjScope.Add(h);
            return(true);
        }
Example #2
0
 protected virtual void AssignToCollectResourceDataHistory(CollectResDataHistory t)
 {
     t.HistoryMainLine = this.HistoryMainLine;
     t.CollectDate     = this.HistoryMainLine.TxnDate;
 }