Update 20260529
This commit is contained in:
@@ -12,9 +12,9 @@
|
||||
<script src="/Scripts/ace/ext-searchbox.js"></script>
|
||||
<link href="/Content/bootstrap.min.css" ref="stylesheet" />
|
||||
<link href="/Scripts/bootstrap532.min.js" rel="stylesheet" />
|
||||
<%--<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" />--%>
|
||||
<%--<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" />--%>
|
||||
<%--<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>--%>
|
||||
<%--<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.23.4/ace.js"></script>--%>
|
||||
<%--<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.23.4/ace.js"></script>--%>
|
||||
|
||||
<style>
|
||||
html, body {
|
||||
@@ -159,7 +159,7 @@ padding-bottom:20px;
|
||||
|
||||
<!-- TITEL LINKS -->
|
||||
<span class="navbar-brand">OnDoc-JSON-Viewer
|
||||
</span>
|
||||
</span>
|
||||
|
||||
|
||||
<div class="ms-auto d-flex gap-2">
|
||||
@@ -169,7 +169,7 @@ padding-bottom:20px;
|
||||
Generieren
|
||||
</button>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
@@ -279,55 +279,55 @@ padding-bottom:20px;
|
||||
"Authorization": "Bearer " + "pZkuG6l6ORCEckqQimPK58PO1A9EnkMtL5oCgRX9WiWnD4xeH7ikGzhWnTBy/vk8J4Iiz8gCSx9uFHA4+DvITG0roO97sk82d/0BCjVlwLWINpXlJfGYEF3X96AdoCQvb3ruwv/tVqEHsSU5aNfyxBAe+EhLTHQ8t7ysgJZWh98="
|
||||
},
|
||||
success: function (response) {
|
||||
var pdfWindow = window.open("");
|
||||
pdfWindow.document.write("<iframe width='100%' height='100%' src='data:application/pdf;base64," + response.file + "'></iframe>");
|
||||
|
||||
},
|
||||
|
||||
PageMethods.SaveTempFile(
|
||||
response.file,
|
||||
function (response) {
|
||||
window.open("/PDFViewer.aspx", "_blank").focus();
|
||||
var a = 1;
|
||||
},
|
||||
function (err) {
|
||||
alert(err.get_message());
|
||||
}
|
||||
);
|
||||
},
|
||||
|
||||
error: function (err) {
|
||||
alert("Error: " + err.responseText);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
function showDoc(tableKey, id) {
|
||||
PageMethods.GetDoc(
|
||||
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) {
|
||||
PageMethods.GetDoc(
|
||||
tableKey,
|
||||
id,
|
||||
function (result) {
|
||||
PageMethods.SaveTempFile(
|
||||
result,
|
||||
function (result) {
|
||||
window.open("/PDFViewer.aspx", "_blank").focus();
|
||||
},
|
||||
function (err) {
|
||||
alert(err.get_message());
|
||||
}
|
||||
);
|
||||
},
|
||||
function (err) {
|
||||
alert(err.get_message());
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
alert(err.get_message())
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
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) {
|
||||
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>");
|
||||
window.open("\PDFViewer.aspx", '_blank').focus();
|
||||
|
||||
},
|
||||
function (err) {
|
||||
|
||||
@@ -336,6 +336,26 @@ padding-bottom:20px;
|
||||
);
|
||||
|
||||
}
|
||||
function showPacDoc(tableKey, id) {
|
||||
PageMethods.GetPacDoc(
|
||||
tableKey,
|
||||
id,
|
||||
function (result) {
|
||||
PageMethods.SaveTempFile(
|
||||
result,
|
||||
function (result) {
|
||||
window.open("/PDFViewer.aspx", "_blank").focus();
|
||||
},
|
||||
function (err) {
|
||||
alert(err.get_message());
|
||||
}
|
||||
);
|
||||
},
|
||||
function (err) {
|
||||
alert(err.get_message());
|
||||
}
|
||||
);
|
||||
}
|
||||
function loadJson(tableKey, id) {
|
||||
|
||||
editor.setValue("// lade JSON ...", -1);
|
||||
|
||||
Reference in New Issue
Block a user