public object createAgroForestryReport(AgroforestryValues values) { var Expected = values.GetExpected(); var Actual = values.GetActual(); var PYield = values.GetPYield(); var aReport = new { Live_Trees = MakeReportObj(Expected[0].ToString(), Actual[0], PYield[0]), Downed_Dead_Wood = MakeReportObj(Expected[1].ToString(), Actual[1], PYield[1]), Forest_Floor = MakeReportObj(Expected[2].ToString(), Actual[2], PYield[2]), Standing_Trees = MakeReportObj(Expected[3].ToString(), Actual[3], PYield[3]), Understory = MakeReportObj(Expected[4].ToString(), Actual[4], PYield[4]), Total = MakeReportObj(Expected[5].ToString(), Actual[5], PYield[5]), }; return(aReport); }
public void CreateAgroforestryTable(HtmlTextWriter writer, AgroforestryValues values) { var Expected = values.GetExpected(); var Actual = values.GetActual(); var PYield = values.GetPYield(); //Agroforestry Table writer.RenderBeginTag("table style='width:100%' border='2' border-collapse: 'collapse'"); CreateHeaderRow(writer, "Agroforestry", "Expected", "Reported", "Percent Yield"); CreateNormalRow(writer, "Live Trees", Expected[0].ToString(), Actual[0], PYield[0]); CreateNormalRow(writer, "Downed Dead Wood", Expected[1].ToString(), Actual[1], PYield[1]); CreateNormalRow(writer, "Forest Floor", Expected[2].ToString(), Actual[2], PYield[2]); CreateNormalRow(writer, "Standing Trees", Expected[3].ToString(), Actual[3], PYield[3]); CreateNormalRow(writer, "Understory", Expected[4].ToString(), Actual[4], PYield[4]); CreateNormalRow(writer, "Total", Expected[5].ToString(), Actual[5], PYield[5]); CreateNormalRow(writer, "Site", "", "", MainWindow.getTestLoc()); writer.RenderEndTag(); writer.Write("<br>"); }