public static string getFullHtml(ISPDBL patComp, long year, long halfyear, ActionKind actionKind) { StringBuilder sb = new StringBuilder(); IList<PatientData> patients = patComp.FindPatientsWithNextAction(year, halfyear, actionKind); sb.Append("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"" + Environment.NewLine); sb.Append("\"http://www.w3.org/TR/html4/loose.dtd\">" + Environment.NewLine); sb.Append("<html><head><title>SPD-NextAction</title>" + Environment.NewLine); sb.Append(css()); sb.Append("</head>" + Environment.NewLine + "<body>" + Environment.NewLine); sb.Append("<table style='width:100%'>"); sb.Append(headline(year, halfyear, actionKind, patients.Count)); sb.Append(allPatients(patComp, patients, year, halfyear, actionKind)); sb.Append("</table>" + Environment.NewLine); sb.Append("</body>" + Environment.NewLine + "</html>"); return sb.ToString(); }