This commit is contained in:
2020-09-22 20:29:56 +00:00
parent b29def1d18
commit 8b3abaa9b8
6 changed files with 71 additions and 12 deletions

View File

@@ -21,7 +21,7 @@ namespace AyaNova.Models
[Required]
public AyaType ObjectType { get; set; }
public string Template { get; set; }
public string Style { get; set; }
public string JsPrerender { get; set; }
@@ -29,9 +29,23 @@ namespace AyaNova.Models
[Required]
public ReportRenderType RenderType { get; set; }
//tentative in case of need in future
// public string Header { get; set; }
// public string Footer { get; set; }
//PDF options
//http://www.puppeteersharp.com/api/PuppeteerSharp.PdfOptions.html
public string HeaderTemplate { get; set; }
public string FooterTemplate { get; set; }
public bool DisplayHeaderFooter { get; set; }
public ReportPaperFormat PaperFormat { get; set; }
public bool Landscape { get; set; }
public string MarginOptionsBottom { get; set; }
public string MarginOptionsLeft { get; set; }
public string MarginOptionsRight { get; set; }
public string MarginOptionsTop { get; set; }
public string PageRanges { get; set; }
public bool PreferCSSPageSize { get; set; }
public bool PrintBackground { get; set; }
public decimal Scale { get; set; }
public Report()
{
@@ -39,8 +53,19 @@ namespace AyaNova.Models
ObjectType = AyaType.NoType;
Roles = AuthorizationRoles.All;
Active = true;
//these are pdf option defaults as per PuppeteerSharp
DisplayHeaderFooter=false;
PaperFormat=ReportPaperFormat.NotSet;
Landscape=false;
PreferCSSPageSize=false;
PrintBackground=false;
Scale=1;
}
}//eoc
}//eons