update 20260326

This commit is contained in:
Stefan Hutter
2026-03-26 18:26:34 +01:00
parent 399d63bc69
commit e82057b6e4
87 changed files with 5024 additions and 139 deletions

View File

@@ -1 +1 @@
0358c1c86ae90780049baadd92e8b1a6c37002f6fdab06531303b154229e8122
547a5879b1d21b43d7c36de65bf9d6e3dd3906cda020cd0d393b7de8221dc1a6

View File

@@ -20,9 +20,9 @@
"idField": "ID",
"displayField": "ID",
"jsonField": "JsonData",
"Buttons": "Öffnen",
"Buttons": "Öffnen;DokumenteAnzeigen",
"AnzeigeDokument": "",
"FilterColumns": "GUID"
"FilterColumns": "id;GUID"
},
{

View File

@@ -1,7 +1,7 @@
[
{
"UserID": "admin",
"Password": "1234"
"Password": "12345"
},
{
"UserID": "user1",

View File

@@ -304,15 +304,30 @@ padding-bottom:20px;
}
);
}
function showAPIDocs(tableKey, id) {
PageMethods.gwrAPIDocs(
tableKey,
id,
function (result) {
var pdfWindow = window.open("");
pdfWindow.document.write("<iframe width='100%' height='100%' src='data:application/pdf;base64," + result + "'></iframe>");
},
function (err) {
alert(err.get_message())
}
);
}
function showPacDoc(tableKey, id) {
PageMethods.GetPacDoc(
tableKey,
id,
function (result) {
var pdfWindow = window.open("");
pdfWindow.document.write("<iframe width='100%' height='100%' src='data:application/pdf;base64," + result + "'></iframe>");
window.open("\PDFViewer.aspx", '_blank').focus();
//var pdfWindow = window.open("");
//pdfWindow.document.write("<iframe width='100%' height='100%' src='data:application/pdf;base64," + result + "'></iframe>");
},
function (err) {

View File

@@ -0,0 +1,14 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PDFViewer.aspx.cs" Inherits="OnDocAPI_NetFramework.PDFViewer" %>
<!DOCTYPE html>
<html>
<head runat="server">
<title>PDF Viewer</title>
</head>
<body>
<form id="form1" runat="server">
<!-- Optional: Falls du die PDF im selben Layout anzeigen willst -->
<iframe src="PdfViewer.aspx?inline=true" width="100%" height="800px"></iframe>
</form>
</body>
</html>