修改培养方案
This commit is contained in:
@@ -51,7 +51,8 @@ public static class GradeAnalysisWordReportGenerator
|
||||
DateTime generatedAt,
|
||||
HeaderFooterIds headerFooterIds)
|
||||
{
|
||||
var body = mainPart.Document.Body!;
|
||||
var body = mainPart.Document?.Body
|
||||
?? throw new InvalidOperationException("The report document body has not been initialized.");
|
||||
var summary = report.Summary!;
|
||||
|
||||
body.Append(Paragraph("成绩分析报告", 46, true, "000000", 0, 80));
|
||||
@@ -467,9 +468,10 @@ public static class GradeAnalysisWordReportGenerator
|
||||
{
|
||||
using var paint = new SKPaint { Color = color, StrokeWidth = 4, IsAntialias = true, Style = SKPaintStyle.Stroke };
|
||||
using var fill = new SKPaint { Color = color, IsAntialias = true };
|
||||
using var path = new SKPath();
|
||||
path.MoveTo(points[0]);
|
||||
foreach (var point in points.Skip(1)) path.LineTo(point);
|
||||
using var builder = new SKPathBuilder();
|
||||
builder.MoveTo(points[0]);
|
||||
foreach (var point in points.Skip(1)) builder.LineTo(point);
|
||||
using var path = builder.Detach();
|
||||
canvas.DrawPath(path, paint);
|
||||
for (var i = 0; i < points.Length; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user