Beispiel #1
0
        public void CreateForestryTable(HtmlTextWriter writer, ForestryValues values)
        {
            var Expected = values.GetExpected();
            var Actual   = values.GetActual();
            var PYield   = values.GetPYield();

            //Forestry Table
            writer.RenderBeginTag("table style='width:100%' border='2' border-collapse: collapse");
            CreateHeaderRow(writer, values.ScenarioName, values.ParcelName, "", "");
            CreateHeaderRow(writer, "Forestry", "Expected", "Reported", "Percent Yield");
            //CreateNormalRow(writer, "Live Trees", Expected[0].ToString(), Actual[0], PYield[0]);
            //CreateNormalRow(writer, "Standing Dead", Expected[1].ToString(), Actual[1], PYield[1]);
            //CreateNormalRow(writer, "Forest Floor", Expected[2].ToString(), Actual[2], PYield[2]);
            //CreateNormalRow(writer, "Understory", Expected[3].ToString(), Actual[3], PYield[3]);
            //CreateNormalRow(writer, "Downed Dead Wood", Expected[4].ToString(), Actual[4], PYield[4]);
            //CreateNormalRow(writer, "Soil Organic", Expected[5].ToString(), Actual[5], PYield[5]);
            //CreateNormalRow(writer, "Products In Use", Expected[6].ToString(), Actual[6], PYield[6]);
            //CreateNormalRow(writer, "In Landfills", Expected[7].ToString(), Actual[7], PYield[7]);
            //CreateNormalRow(writer, "Total", Expected[8].ToString(), Actual[8], PYield[8]);

            CreateNormalRow(writer, "Total Stand Carbon", Expected[0].ToString(), Actual[0], PYield[0]);
            CreateNormalRow(writer, "Harvested Carbon", Expected[1].ToString(), Actual[1], PYield[1]);
            CreateNormalRow(writer, "Total", Expected[2].ToString(), Actual[2], PYield[2]);
            CreateNormalRow(writer, "Site", "", "", MainWindow.getTestLoc());
            writer.RenderEndTag();
        }
Beispiel #2
0
        public object createForestryReport(ForestryValues values)
        {
            var Expected = values.GetExpected();
            var Actual   = values.GetActual();
            var PYield   = values.GetPYield();

            var fReport = new
            {
                scenario = values.ScenarioName,
                location = values.ParcelName,
                //Live_Trees = MakeReportObj(Expected[0].ToString(), Actual[0], PYield[0]),
                //Standing_Dead = MakeReportObj(Expected[1].ToString(), Actual[1], PYield[1]),
                //Forest_Floor = MakeReportObj(Expected[2].ToString(), Actual[2], PYield[2]),
                //Understory = MakeReportObj(Expected[3].ToString(), Actual[3], PYield[3]),
                //Downed_Dead_Wood = MakeReportObj(Expected[4].ToString(), Actual[4], PYield[4]),
                //Soil_Organic = MakeReportObj(Expected[5].ToString(), Actual[5], PYield[5]),
                //Products_In_Use = MakeReportObj(Expected[6].ToString(), Actual[6], PYield[6]),
                //In_Landfills = MakeReportObj(Expected[7].ToString(), Actual[7], PYield[7]),
                Total_Stand_Carbon = MakeReportObj(Expected[0].ToString(), Actual[0], PYield[0]),
                Harvested_Carbon   = MakeReportObj(Expected[1].ToString(), Actual[1], PYield[1]),
                Total = MakeReportObj(Expected[2].ToString(), Actual[2], PYield[2]),
            };


            return(fReport);
        }