Skip to content
Snippets Groups Projects
Commit 1254c7fc authored by wactbprot's avatar wactbprot
Browse files

waiting for bur- docs

parent e753371b
No related branches found
No related tags found
No related merge requests found
......@@ -2,16 +2,20 @@ function(head, req) {
var mustache = require("lib/couchapp/mustache")
, share = require("lib/vaclab/share")
, startyear = req.query.startkey.split("_")[0]
, endyear = req.query.endkey.split("_")[0]
, sk = req.query.startkey
, ek = req.query.endkey
, header = this.templates.header
, body = this.templates.body
, foot = this.templates.foot
, row, i= 1, all = {};
, row, i= 1, all = {}, titleadd ="";
start({headers: {"Content-type": "text/html; charset=utf-8"}});
var titleadd = startyear == endyear ? startyear : startyear + " bis " + endyear
if(sk && ek){
var startyear = sk.split("_")[0]
, endyear = ek.split("_")[0]
titleadd = startyear == endyear ? startyear : startyear + " bis " + endyear
}
send( mustache.to_html(header, {"Title":"Übersicht Aktenzeichen " + titleadd }));
while(row = getRow()) {
......
......@@ -20,7 +20,7 @@
title="{{CustomerComment}}" data-row="{{Number}}">
{{CustomerName}}
</td>
<td class="no_{{Number}}" title="Kundenkürzel" data-row="{{Number}}">
<td class="no_{{Number}}" title="Kundenkürzel (Link zum Kundendokument)" data-row="{{Number}}">
<a href="http://a73434.berlin.ptb.de:5984/_utils/#database/vl_db/{{CustomerDocId}}">
{{CustomerSign}}</a>
</td>
......@@ -73,10 +73,11 @@
</td>
<td class="no_{{Number}}" title="Gegenstand" data-row="{{Number}}">
{{DeviceType}}
<a href="http://a73434.berlin.ptb.de:5984/_utils/#/database/vl_db/_design/share/_view/CalibrationObject?key=%22{{DeviceName}}%22">
{{DeviceType}}
</td>
<td class="no_{{Number}}" title="Kalibrierziel" data-row="{{Number}}">
{{ToDoName}}
<td class="no_{{Number}}" title="Name des Kalibrierziels (Typ)" data-row="{{Number}}">
<a href="http://a73434.berlin.ptb.de:5984/_utils/#/database/vl_db/_design/share/_view/ToDo?key=%22{{ToDoName}}({{ToDoType}})%22">{{ToDoName}} ({{ToDoType}})</a>
</td>
<td class="no_{{Number}} {{Standard}}" title="Normal" data-row="{{Number}}">
{{Standard}}
......
</table>
<a name="db-doc-info"></a>
<h5>1) Link zu einem Bestandsdokument</h5>
<p>
Die Verlinkung in dieser Spalte führt zu Bestandsdokumenten in der
Datenbank. Änderungen werden in der AZ-Liste erst wirksam, wenn diese
in das Kalibrierdokument übernommen werden. In Diwan gibt es hierzu je
den Knopf "Aus Bestand".
</p>
</body>
<script>
$( "td" ).click(function() {
......
......@@ -26,12 +26,11 @@
.missing { color:black; background-color: #EDE15C; }
.info { color:black;background-color: #CEED5C; }
.selected { color:black; background-color: #EBFAF3; }
.waiting {color:black;background-color: #ECE8FA; }
.waiting { color:black;background-color: #ECE8FA; }
overflow: scroll; /* Scrollbar are always visible */
overflow: auto; /* Scrollbar is displayed as it's needed */
</style>
</head>
<body>
......@@ -48,7 +47,7 @@
<th>Kunde</th>
<th>Kürzel</th>
<th>AZ (Kunde)</th>
<th>AZ (Kunde)<sup><a href="#db-doc-info">1)</a></sup></th>
<th>Debitorennummer</th>
<th>Typ</th>
......@@ -66,8 +65,8 @@
<th>Faktura</th>
<th>tech. abgeschl.</th>
<th>Gegenstand</th>
<th>Kalibrierziel</th>
<th>Gegenstand<sup><a href="#db-doc-info">1)</a></sup></th>
<th>Kalibrierziel<sup><a href="#db-doc-info">1)</a></sup></th>
<th>Standard</th>
<th>Messbeauftragter</th>
<th>Standardgebühr</th>
......
......@@ -64,6 +64,7 @@ function(doc) {
DeviceName: cdcuco.Name,
DeviceType: cdcuco.Type,
ToDoName:dct.Name,
ToDoType:dct.Type,
Standard:dct.Standard,
Fee: dct.Fee ,
MeasMaintainer:pcm.Maintainer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment