using System.Collections.Generic; namespace XP.ReportEngine.Models { /// /// 报告模板定义 | Report template definition /// public class ReportTemplate { public DocumentSettings Document { get; set; } public List Pages { get; set; } = new(); public Dictionary 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 { /// /// 页面类型:homepage / metricData / defectDetails / bgaInspection / voidInspection / viaFillInspection /// public string Type { get; set; } public List Elements { get; set; } = new(); } }