Persönliche Werkzeuge

Vorlage:BV-BgPreisIndex

Aus BogenWiki

(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
 
(Der Versionsvergleich bezieht 14 dazwischenliegende Versionen mit ein.)
Zeile 57: Zeile 57:
       sBN = '<a href="/bogenwiki/index.php?title=Bund MiNr. '+BVBgList[b].BogenNr+' groß">'+BVBgList[b].BogenNr+'</a>';
       sBN = '<a href="/bogenwiki/index.php?title=Bund MiNr. '+BVBgList[b].BogenNr+' groß">'+BVBgList[b].BogenNr+'</a>';
     var sPreis = BVBgList[b].Eingang.Preis;
     var sPreis = BVBgList[b].Eingang.Preis;
-
     if (!BVCheckPrice(sPreis,BVBgList[b].Eingang.Art,BVGetBgFieldValue(BVBgList[b],'EM.Art.Key')))
+
    console.log('BVGetBgFieldValue(BVBgList['+b+'],"Zustand") = '+BVGetBgFieldValue(BVBgList[b],'Zustand'));
 +
     if (!BVCheckPrice(sPreis,BVBgList[b].Eingang.Art,BVGetBgFieldValue(BVBgList[b],'EM.Art.Key'),BVGetBgFieldValue(BVBgList[b],'Erhaltung'),BVGetBgFieldValue(BVBgList[b],'Zustand')))
       sPreis = '<span style="color:silver;"><i>'+sPreis+'€</i></span>';
       sPreis = '<span style="color:silver;"><i>'+sPreis+'€</i></span>';
     sTabHTML += '  <tr style="background:#FCFCFC" valign=top>'+
     sTabHTML += '  <tr style="background:#FCFCFC" valign=top>'+
Zeile 78: Zeile 79:
     var aGroupByParts = aGroupBy[g].split('.');
     var aGroupByParts = aGroupBy[g].split('.');
     var sGroupByText = aGroupByParts[0];
     var sGroupByText = aGroupByParts[0];
 +
    if (aGroupByParts[0] == 'Erhaltung') sGroupByText = 'Erh.';
     if (aGroupByParts[0] == 'Eingang') sGroupByText = aGroupByParts[1];
     if (aGroupByParts[0] == 'Eingang') sGroupByText = aGroupByParts[1];
     if (aGroupByParts[0] == 'Ausgang') sGroupByText = aGroupByParts[1];
     if (aGroupByParts[0] == 'Ausgang') sGroupByText = aGroupByParts[1];
     if (aGroupByParts[0] == 'BRS') sGroupByText = aGroupByParts[1];
     if (aGroupByParts[0] == 'BRS') sGroupByText = aGroupByParts[1];
-
     if (aGroupByParts[0] == 'PF') sGroupByText = aGroupByParts[1];
+
     if (aGroupByParts[0] == 'PF') sGroupByText = aGroupByParts[0];
     if (aGroupByParts[0] == 'EM') sGroupByText = aGroupByParts[1];
     if (aGroupByParts[0] == 'EM') sGroupByText = aGroupByParts[1];
-
     sTabHTML += '    <td><div style="'+sCellPadding+'"><b>'+sGroupByText+'</b></div></td>';
+
     sTabHTML += '    <td><div style="'+sCellPadding+'">'+sGroupByText+'</div></td>';
   }
   }
-
   sTabHTML += '    <td align=center><div style="'+sCellPadding+'"><b>Mittel</b></div></td>'+
+
   sTabHTML += '    <td align=center><div style="'+sCellPadding+'">Mittel</div></td>'+
-
               '    <td align=center><div style="'+sCellPadding+'"><b>Median</b></div></td>'+
+
               '    <td align=center><div style="'+sCellPadding+'">Median</div></td>'+
-
               '    <td align=center><div style="'+sCellPadding+'"><b>Min - Max</b></div></td>'+
+
               '    <td align=center><div style="'+sCellPadding+'">Min - Max</div></td>'+
-
               '    <td align=center><div style="'+sCellPadding+'"><b>Anz.</b></div></td>'+
+
               '    <td align=center><div style="'+sCellPadding+'">Anz.</div></td>'+
               '  </tr>';
               '  </tr>';
   if (BVBgPreise.length > 0) {
   if (BVBgPreise.length > 0) {
Zeile 105: Zeile 107:
         var aGroupValues = BVBgPreise[p].GroupValue.split('::');
         var aGroupValues = BVBgPreise[p].GroupValue.split('::');
         sTabHTML += '  <tr style="background:#FCFCFC" valign=top>';
         sTabHTML += '  <tr style="background:#FCFCFC" valign=top>';
-
         for (v = 0; v < aGroupValues.length-1; v++)
+
         for (v = 0; v < aGroupValues.length-1; v++) {
-
           sTabHTML += '    <td><div style="'+sCellPadding+'">'+aGroupValues[v]+'</div></td>';
+
          var aGroupByParts = aGroupBy[v].split('.');
 +
          var sGroupByValueText = aGroupValues[v];
 +
          console.log('aGroupByParts['+v+']="'+aGroupByParts[v]+'"; aGroupValues['+v+']="'+aGroupValues[v]+'"');
 +
          if (aGroupByParts[v] == 'Erhaltung') {
 +
            switch (aGroupValues[v]) {
 +
              case 'Pf': sGroupByValueText = '<div style="padding-top:2px"><img src="/bogenwiki/images/Symbol_Pfr1T.png" width="27" height="14" alt="**" title="postfrisch"></div>'; break;
 +
              case 'Gs': sGroupByValueText = '<div style="padding-top:2px"><img src="/bogenwiki/images/Symbol_GesT1.png" width="13" height="14" alt="**" title="gestempelt"></div>'; break;
 +
              case 'Ug': sGroupByValueText = '<div style="padding-top:2px"><img src="/bogenwiki/images/Symbol_UgsT1.png" width="13" height="14" alt="**" title="ungebraucht"></div>'; break;
 +
              case 'Bt': sGroupByValueText = '<span title="Bogentasche">BT</span>'; break;
 +
            }
 +
          }
 +
           sTabHTML += '    <td><div style="'+sCellPadding+'">'+sGroupByValueText+'</div></td>';
 +
        }
         sTabHTML += '    <td align=right><div style="'+sCellPadding+'">'+BVBgPreise[p].Avg.toFixed(2).replace(/\./,',')+'€</div></td>'+
         sTabHTML += '    <td align=right><div style="'+sCellPadding+'">'+BVBgPreise[p].Avg.toFixed(2).replace(/\./,',')+'€</div></td>'+
                     '    <td align=right><div style="'+sCellPadding+'">'+BVBgPreise[p].Median.toFixed(2).replace(/\./,',')+'€</div></td>'+
                     '    <td align=right><div style="'+sCellPadding+'">'+BVBgPreise[p].Median.toFixed(2).replace(/\./,',')+'€</div></td>'+

Aktuelle Version vom 18:16, 1. Dez. 2023

Template BV_BgPreisIndex: Invalid value for parameter Cmd ("empty")!!!