internal void RemoveAirlineStats(int firstDay, int lastDay) { GrossProfit.RemoveStats(firstDay, lastDay); OperatingProfit.RemoveStats(firstDay, lastDay); NetProfit.RemoveStats(firstDay, lastDay); GrossMargin.RemoveStats(firstDay, lastDay); OperatingMargin.RemoveStats(firstDay, lastDay); NetMargin.RemoveStats(firstDay, lastDay); }
internal override string ForTable(PrintOptions printOptions = null) { string str = $"<tr class=\"statGroup\"><th colspan=\"2\"><a class=\"loadChart\" href=\"/chartdata?dataset=profits{(!string.IsNullOrEmpty(printOptions.AirlineName) ? "&airline=" + printOptions.AirlineName : string.Empty)}\" rel=\"#dialog\">{name}</a></th></tr>\n"; //str += GrossProfit.ForTable(printOptions, true); //str += GrossMargin.ForTable(printOptions); //str += OperatingProfit.ForTable(printOptions, true); //str += OperatingMargin.ForTable(printOptions); str += NetProfit.ForTable(printOptions, true); str += NetMargin.ForTable(printOptions); return(str); }
internal override string ForChart(PrintOptions printOptions = null) { string str = string.Empty; for (int day = printOptions.FirstDay; day <= printOptions.LastDay; day++) { str += day > printOptions.FirstDay ? "," : string.Empty; // str += $"\"{day}\":{{{GrossProfit.ForChart(day)},{OperatingProfit.ForChart(day)},{NetProfit.ForChart(day)},{GrossMargin.ForChart(day)},{OperatingMargin.ForChart(day)},{NetMargin.ForChart(day)}}}"; str += $"\"{day}\":{{{NetProfit.ForChart(day)},{NetMargin.ForChart(day)}}}"; } return(str); }