private bool InnerHandleGene(LabReport report, LabPK RK) { bool result = false; GeneCustom ci = null; CustomElement custom = null; List<IFillElement> items = null; List<LabPK> PKList = new List<LabPK>(3); this.PKDAL.InitKey(RK, PKList); foreach (LabPK key in PKList) { ci = new GeneCustom(); custom = new CustomElement(); result = this.GeneCustomHandler.HandleElement(ci, key); if (result) { this.GeneConvert(custom, ci); items = new List<IFillElement>(5); result = this.ItemHandler.HandleElement(items, key, typeof(ItemElement)); if (result) { this.GeneConvert(custom, report.SuperList, items); } } else { break; } report.CustomList.Add(custom); } return result; }
private void GeneConvert(CustomElement custom, GeneCustom item) { custom.C0 = item.SampleNo; custom.C1 = item.Name; custom.C2 = item.Age; custom.C3 = item.Relation; custom.C4 = item.EqualCount; }