39 lines
1.2 KiB
C#
39 lines
1.2 KiB
C#
using System.Collections.Generic;
|
|
|
|
namespace XP.ReportEngine.Models
|
|
{
|
|
/// <summary>
|
|
/// 报告模板定义 | Report template definition
|
|
/// </summary>
|
|
public class ReportTemplate
|
|
{
|
|
public DocumentSettings Document { get; set; }
|
|
public List<TemplatePage> Pages { get; set; } = new();
|
|
public Dictionary<string, StyleDefinition> Styles { get; set; } = new();
|
|
}
|
|
|
|
public class DocumentSettings
|
|
{
|
|
public string PageSize { get; set; } = "A4";
|
|
public string Orientation { get; set; } = "Portrait";
|
|
public MarginSettings Margins { get; set; } = new();
|
|
}
|
|
|
|
public class MarginSettings
|
|
{
|
|
public float Top { get; set; } = 20f;
|
|
public float Bottom { get; set; } = 20f;
|
|
public float Left { get; set; } = 20f;
|
|
public float Right { get; set; } = 20f;
|
|
}
|
|
|
|
public class TemplatePage
|
|
{
|
|
/// <summary>
|
|
/// 页面类型:homepage / metricData / defectDetails / bgaInspection / voidInspection / viaFillInspection
|
|
/// </summary>
|
|
public string Type { get; set; }
|
|
public List<TemplateElement> Elements { get; set; } = new();
|
|
}
|
|
}
|