This commit is contained in:
2020-09-22 23:06:30 +00:00
parent 1e3a7e7871
commit cd4ce9b129
6 changed files with 54 additions and 3 deletions

View File

@@ -185,9 +185,7 @@ namespace AyaNova.Biz
Report dbObject = await ct.Report.SingleOrDefaultAsync(z => z.Id == id);
ValidateCanDelete(dbObject);
if (HasErrors)
return false;
if (HasErrors)
return false;
return false;
ct.Report.Remove(dbObject);
await ct.SaveChangesAsync();
await EventLogProcessor.DeleteObjectLogAsync(UserId, BizType, dbObject.Id, dbObject.Name, ct);

View File

@@ -727,6 +727,19 @@
"RegionWOStatusChanged": "WO status changed",
"ReportActive": "Aktiv",
"ReportDesignReport": "Bericht bearbeiten",
"ReportPdfOptions":"PDF options",
"ReportDisplayHeaderFooter":"Display header & footer",
"ReportHeaderTemplate":"Header template",
"ReportFooterTemplate":"Footer template",
"ReportPaperFormat":"Paper format",
"ReportLandscape":"Landscape",
"ReportMarginOptionsBottom":"Bottom margin",
"ReportMarginOptionsLeft":"Left margin",
"ReportMarginOptionsRight":"Right margin",
"ReportMarginOptionsTop":"Top margin",
"ReportPrintBackground":"Print background",
"ReportScale":"Scale",
"ReportPreferCSSPageSize":"Prefer CSS page size",
"ReportImportDuplicate": "Ausgewählter Bericht kann nicht importiert werden: In Ihrer Datenbank ist bereits ein Bericht mit der gleichen internen ID vorhanden",
"ReportExport": "Exportieren nach ...",
"ReportExportHTML": "HTML-Datei (*.html)",

View File

@@ -727,6 +727,19 @@
"RegionWOStatusChanged": "WO status changed",
"ReportActive": "Active",
"ReportDesignReport": "Edit report",
"ReportPdfOptions":"PDF options",
"ReportDisplayHeaderFooter":"Display header & footer",
"ReportHeaderTemplate":"Header template",
"ReportFooterTemplate":"Footer template",
"ReportPaperFormat":"Paper format",
"ReportLandscape":"Landscape",
"ReportMarginOptionsBottom":"Bottom margin",
"ReportMarginOptionsLeft":"Left margin",
"ReportMarginOptionsRight":"Right margin",
"ReportMarginOptionsTop":"Top margin",
"ReportPrintBackground":"Print background",
"ReportScale":"Scale",
"ReportPreferCSSPageSize":"Prefer CSS page size",
"ReportImportDuplicate": "Selected report can not be imported: There is already a report with the same internal ID value in your database",
"ReportExport": "Export to...",
"ReportExportHTML": "HTML file (*.html)",

View File

@@ -726,6 +726,19 @@
"RegionWOStatusChanged": "WO status changed",
"ReportActive": "Activo",
"ReportDesignReport": "Editar informe",
"ReportPdfOptions":"PDF options",
"ReportDisplayHeaderFooter":"Display header & footer",
"ReportHeaderTemplate":"Header template",
"ReportFooterTemplate":"Footer template",
"ReportPaperFormat":"Paper format",
"ReportLandscape":"Landscape",
"ReportMarginOptionsBottom":"Bottom margin",
"ReportMarginOptionsLeft":"Left margin",
"ReportMarginOptionsRight":"Right margin",
"ReportMarginOptionsTop":"Top margin",
"ReportPrintBackground":"Print background",
"ReportScale":"Scale",
"ReportPreferCSSPageSize":"Prefer CSS page size",
"ReportImportDuplicate": "El informe seleccionado no puede importarse: Ya existe un informe con el mismo valor de identificación interna en la base de datos",
"ReportExport": "Exportar a...",
"ReportExportHTML": "Archivo HTML (*.html)",

View File

@@ -727,6 +727,19 @@
"RegionWOStatusChanged": "WO status changed",
"ReportActive": "Actif",
"ReportDesignReport": "Modifier le rapport",
"ReportPdfOptions":"Options PDF",
"ReportDisplayHeaderFooter":"Afficher l'en-tête et le pied de page",
"ReportHeaderTemplate":"Modèle d'en-tête",
"ReportFooterTemplate":"Modèle de pied de page",
"ReportPaperFormat":"Format papier",
"ReportLandscape":"Paysage",
"ReportMarginOptionsBottom":"Marge inférieure",
"ReportMarginOptionsLeft":"Marge de gauche",
"ReportMarginOptionsRight":"Marge droite",
"ReportMarginOptionsTop":"Marge supérieure",
"ReportPrintBackground":"Imprimer l'arrière-plan",
"ReportScale":"Échelle",
"ReportPreferCSSPageSize":"Préférez la taille de la page CSS",
"ReportImportDuplicate": "Impossible d'importer le rapport sélectionné : votre base de données contient déjà un rapport portant cet ID interne",
"ReportExport": "Exporter vers...",
"ReportExportHTML": "Fichier HTML (*.html)",

View File

@@ -0,0 +1 @@
{"Name":"EXAMPLE PDF Options page number","Active":true,"Notes":"","Roles":124927,"ObjectType":2,"Template":"<html>\n\n<body>\n\t{{#each ayReportData}}\n\t<h2>{{ Name }}</h2>\n\t<div>Notes: <span class='example'>{{ Notes }}</span></div>\n\t{{/each}}\n</body>\n\n</html>","Style":"","JsPrerender":"","JsHelpers":"","RenderType":0,"HeaderTemplate":" <span style=\"font-size:12px;color:blue; \">&nbsp;Header: Page&nbsp;<span class=\"pageNumber\"></span>&nbsp;of&nbsp;<span class=\"totalPages\"></span></span>","FooterTemplate":" <span style=\"font-size:12px;color:green; \">&nbsp;Footer: Page&nbsp;<span class=\"pageNumber\"></span>&nbsp;of&nbsp;<span class=\"totalPages\"></span></span>","DisplayHeaderFooter":true,"PaperFormat":10,"Landscape":false,"MarginOptionsBottom":"40px","MarginOptionsLeft":"40px","MarginOptionsRight":"40px","MarginOptionsTop":"40px","PageRanges":null,"PreferCSSPageSize":false,"PrintBackground":true,"Scale":1.0000}