private void SetDataSetToPage2() { P2ExtendRows.Clear(); for (int i = 0; i < P2ExtendSet.RowCount; i++) { P2ExtendSet.Fetch(i); ChemicalPage2ExtendRow p2ExtendRow = new ChemicalPage2ExtendRow(); p2ExtendRow.RecNo = P2ExtendSet.RecNo; p2ExtendRow.TotalLimit = "100"; p2ExtendRow.ReportLimit = P2ExtendSet.ReportValue; p2ExtendRow.Message = "Total Result(s)(mg/kg)"; p2ExtendRow.FormatValue = P2ExtendSet.FormatValue; p2ExtendRow.Name = P2ExtendSet.Name; P2ExtendRows.Add(p2ExtendRow); } P2Rows.Clear(); for (int i = 0; i < P2Set.RowCount; i++) { P2Set.Fetch(i); ChemicalPage2Row p2Row = new ChemicalPage2Row(); p2Row.RecNo = P2Set.RecNo; p2Row.HiLimit = P2Set.HiValue; p2Row.LoLimit = P2Set.LoValue; p2Row.ReportLimit = P2Set.ReportValue; p2Row.FormatValue = P2Set.FormatValue; p2Row.Name = P2Set.Name; P2Rows.Add(p2Row); } }
private void SetDataSetToPage2() { P2Rows.Clear(); for (int i = 0; i < P2Set.RowCount; i++) { P2Set.Fetch(i); ChemicalPage2Row p2Row = new ChemicalPage2Row(); p2Row.RecNo = P2Set.RecNo; p2Row.HiLimit = P2Set.HiValue; p2Row.LoLimit = P2Set.LoValue; p2Row.ReportLimit = P2Set.ReportValue; p2Row.FormatValue = P2Set.FormatValue; p2Row.Name = P2Set.Name; P2Rows.Add(p2Row); } }