|
|
(Der Versionsvergleich bezieht 39 dazwischenliegende Versionen mit ein.) |
Zeile 9: |
Zeile 9: |
| <tr style="background:#F8F8F8;" valign=top> | | <tr style="background:#F8F8F8;" valign=top> |
| <td> | | <td> |
- | </html>{{Button|Caption=MB-Types |ID=BGF.MB.TestMBTypes |OnEvent=BtnPageEvent}}<html> | + | <table style="background:transparent;" cellspacing=1 cellpadding=4> |
- | </html>{{Button|Caption=Test 2 |ID=BGF.MB.Test2 |OnEvent=BtnPageEvent}}<html>
| + | <tr valign=center> |
| + | <td> |
| + | Testcases: |
| + | </td> |
| + | <td> |
| + | <select id="BGF.MB.Tests" name="Tests"> |
| + | <option value="BGF_Number.ctor">BGF_Number.ctor</option> |
| + | <option value="BGF_Number.GetValueAs">BGF_Number.GetValueAs()</option> |
| + | <option value="BGF_Number.ConvertTo">BGF_Number.ConvertTo()</option> |
| + | </select> |
| + | </td> |
| + | <td> |
| + | </html> {{Button|Caption=Run |ID=BGF.MB.RunTest |OnEvent=BtnPageEvent}}<html> |
| + | </td> |
| + | </tr> |
| + | </table> |
| </td> | | </td> |
| </tr> | | </tr> |
Zeile 24: |
Zeile 39: |
| <tr style="background:#F8F8F8;" valign=top> | | <tr style="background:#F8F8F8;" valign=top> |
| <td> | | <td> |
- | <div id="BGF.MB.Output" style="width:100%;height:60vh;"></div> | + | <div id="BGF.MB.Output" style="width:100%;overflow:auto;height:75vh;"></div> |
| </td> | | </td> |
| </tr> | | </tr> |
Zeile 31: |
Zeile 46: |
| </tr> | | </tr> |
| </table> | | </table> |
- | <template id="BGF.BtV.Sample.Template"> | + | <template id="BGF.MB.Test.Output.Template"> |
- | <template id="Body"></template> | + | <template id="Head"></template> |
- | <div id="BGF.BtV.Sample.%%Sample.ID%%.div" style="width:100%;border:0px solid silver;margin:0px 0px 4px 0px;"> | + | <div id="BGF.MB.Test.%%BGFType%%.%%Method%%.%%Name%%.Create.div" style="width:100%;border:0px solid silver;margin:6px 0px 12px 4px;"> |
- | <table style="background:#F8F8F8;margin:0px;" width=100% cellspacing=0 cellpadding=4> | + | <table style="background:silver;" cellspacing=1 cellpadding=4> |
- | <tr valign=top> | + | <tr style="background:#E0E0E0;" valign=top> |
- | <td width=10px rowspan=3> | + | <td style="padding:2px 6px 1px 6px">Test: <b>%%TCTitle%%</b> (%%BGFType%%.%%Method%%.%%Name%%)</td> |
- | <img src="%%Sample.FN%%" width="%%GUI.MaxSampleImgWidth%%"/>
| + | </tr> |
- | </td>
| + | <tr style="background:#F8F8F8;" valign=top> |
- | <td width=2px> </td>
| + | |
| <td> | | <td> |
- | <table width=100% cellspacing=0 cellpadding=0> | + | <table style="background:silver;" width=100% cellspacing=1 cellpadding=4> |
- | <tr valign=top> | + | <template id="TabHead"></template> |
- | <td nowrap colspan=2 style="padding-bottom:8px"> | + | <tr style="background:#E0E0E0;" valign=top> |
- | <b>%%Sample.ID%%</b> (%%Sample.IDSrc%%)<br>
| + | <td style="padding:2px 6px 1px 6px"><b>Code</b></td> |
- | </td> | + | <td style="padding:2px 6px 1px 6px"><b>Variables</b></td> |
| + | <td style="padding:2px 6px 1px 6px"><b>Result</b></td> |
| </tr> | | </tr> |
- | <tr valign=top> | + | <template id="Body"></template> |
- | <td nowrap>Kat-Nr.: </td>
| + | <tr style="background:#F8F8F8;" valign=top> |
- | <td width=100%>%%Stamp.KatNr%%%%Sample.KatNrVar%%</td>
| + | <td style="padding:2px 6px 1px 6px"><tt>%%Code%%</tt></td> |
- | </tr> | + | <td style="padding:2px 6px 1px 6px">%%Variables%%</td> |
- | <tr valign=top>
| + | <td style="padding:2px 6px 1px 6px">%%Result%%</td> |
- | <td nowrap>BRS: </td>
| + | |
- | <td width=100%>%%Sample.BRS.Text%%</td>
| + | |
- | </tr>
| + | |
- | <tr valign=top>
| + | |
- | <td nowrap>Quelle: </td> | + | |
- | <td width=100%>%%Sample.Source.Type.Text%%</td>
| + | |
- | </tr>
| + | |
- | <tr valign=top>
| + | |
- | <td nowrap> Name: </td>
| + | |
- | <td>%%Sample.Source.Name%%</td>
| + | |
- | </tr>
| + | |
- | <tr style="display:%%Sample.Source.ArtNr.Display%%" valign=top>
| + | |
- | <td nowrap> %%Sample.Source.ArtNr.Title%%: </td>
| + | |
- | <td width=100%>%%Sample.Source.ArtNr%%</td>
| + | |
- | </tr>
| + | |
- | <tr valign=top>
| + | |
- | <td nowrap> Datum: </td> | + | |
- | <td width=100%>%%Sample.Source.Date%%</td>
| + | |
- | </tr>
| + | |
- | <tr style="display:%%Sample.Source.Price.Display%%" valign=top>
| + | |
- | <td nowrap> %%Sample.Source.PrType.Text%%: </td>
| + | |
- | <td width=100%>%%Sample.Source.Price%%</td> | + | |
- | </tr>
| + | |
- | <tr valign=top>
| + | |
- | <td nowrap>Größe: </td>
| + | |
- | <td width=100%>
| + | |
- | <span id="BGF.BtV.Sample.%%Sample.ID%%.Image.Width">%%Sample.ImageData.Width%%</span> x
| + | |
- | <span id="BGF.BtV.Sample.%%Sample.ID%%.Image.Height">%%Sample.ImageData.Height%%</span>
| + | |
- | </td>
| + | |
- | </tr>
| + | |
- | <tr valign=top>
| + | |
- | <td nowrap colspan=2 style="padding-top:8px">
| + | |
- | <button id="BGF.BtV.Sample.Edit.ID%%Sample.ID%%" type="button"
| + | |
- | onclick="BGF_BtV_OnClick(this)">Bearbeiten</button>
| + | |
- | <button id="BGF.BtV.Sample.Delete.ID%%Sample.ID%%" type="button"
| + | |
- | onclick="BGF_BtV_OnClick(this)">Löschen</button>
| + | |
- | <button id="BGF.BtV.Sample.Clone.ID%%Sample.ID%%" type="button" style="display:%%Sample.CloneBtn.Display%%"
| + | |
- | onclick="BGF_BtV_OnClick(this)">Klonen</button>
| + | |
- | </td>
| + | |
| </tr> | | </tr> |
| + | <template id="ResOK"><span style="color:green"><b>OK</b></span></template> |
| + | <template id="ResKO"><span style="color:red"><b>failed</b></span></template> |
| + | <template id="HashBegin">{</template> |
| + | <template id="HashNext">, </template> |
| + | <template id="HashEnd">}</template> |
| + | <template id="ValueOK">%%VarName%%: %%Value%%</template> |
| + | <template id="ValueKO">%%VarName%%: <span style="color:red">%%Value%%</span> <span style="color:green">(%%ValueExp%%)</span></template> |
| + | <template id="ValueKO1"><span style="color:red">%%Value%%</span></template> |
| + | <template id="Foot"></template> |
| </table> | | </table> |
| </td> | | </td> |
Zeile 98: |
Zeile 83: |
| </div> | | </div> |
| </template> | | </template> |
- | <template id="BGF.BtV.Sample.Edit.Template"> | + | <script src="/bogenwiki_bgf/src/bgf_libaux.js"></script> |
- | <template id="Body"></template>
| + | <script src="/bogenwiki_bgf/src/bgf_libdebug.js"></script> |
- | <table style="background:silver;" width=100% cellspacing=1 cellpadding=4>
| + | <script src="/bogenwiki_bgf/src/bgf_libgui.js"></script> |
- | <tr style="background:#E0E0E0;" valign=top>
| + | |
- | <td style="padding:2px 6px 1px 6px"><b><span id="BGF.BtV.Sample.Edit.Title">%%Sample.Edit.Title%%</span></b></td>
| + | |
- | </tr>
| + | |
- | <tr style="background:#F8F8F8;" valign=top>
| + | |
- | <td>
| + | |
- | <table style="background:#F8F8F8;margin:0px;" width=100% cellspacing=0 cellpadding=4>
| + | |
- | <tr valign=top>
| + | |
- | <td width=10px>
| + | |
- | <img id="BGF.BtV.Sample.Edit.Image" src="/bogenwiki_bgf/BGF_Sample_Dummy_Image.jpg" width="200"/><br>
| + | |
- | <div id="BGF.BtV.Sample.Edit.Image.None">
| + | |
- | <p>
| + | |
- | <button id="BGF.BtV.Sample.Edit.Image.Select" type="button"
| + | |
- | onclick="document.getElementById('BGF.BtV.Sample.Edit.Image.Upload').click();">Bild auswählen</button>
| + | |
- | <input id="BGF.BtV.Sample.Edit.Image.Upload" name="ImageUpload" type="file" size="20" accept="image/jpeg,image/png"
| + | |
- | style="display:none;" onchange="BGF_BtV_OnChange(this)">
| + | |
- | </p>
| + | |
- | </div>
| + | |
- | <div id="BGF.BtV.Sample.Edit.Image.Avail" style="max-width:200px">
| + | |
- | <p id="BGF.BtV.Sample.Edit.Image.OrgFN" style="max-width:200px;word-wrap:break-word;">...</p>
| + | |
- | <button id="BGF.BtV.Sample.Edit.Image.Remove" type="button" onclick="BGF_BtV_OnClick(this)">Bild entfernen</button>
| + | |
- | </div>
| + | |
- | </td>
| + | |
- | <td width=2px> </td>
| + | |
- | <td>
| + | |
- | <table width=100% cellspacing=0 cellpadding=2>
| + | |
- | <tr valign=top>
| + | |
- | <td nowrap>ID Source:</td>
| + | |
- | <td> </td>
| + | |
- | <td width=100%>
| + | |
- | <select id="BGF.BtV.Sample.Edit.IDSrc" name="Gebiet" onchange="BGF_BtV_OnChange(this)">
| + | |
- | <option value="BGF">Bogenforschung</option>
| + | |
- | <option value="BV">Bestandsverwaltung</option>
| + | |
- | </select>
| + | |
- | </td>
| + | |
- | </tr>
| + | |
- | <tr valign=top>
| + | |
- | <td nowrap>ID:</td>
| + | |
- | <td> </td>
| + | |
- | <td width=100%>
| + | |
- | <input type="text" id="BGF.BtV.Sample.Edit.IDBGF" name="IDBGF" style="margin:0px;color:grey;" readonly>
| + | |
- | <select id="BGF.BtV.Sample.Edit.IDBV" name="IDBV" onchange="BGF_BtV_OnChange(this)">
| + | |
- | </select>
| + | |
- | </td>
| + | |
- | </tr>
| + | |
- | <tr valign=top>
| + | |
- | <td nowrap>Kat-Nr.:</td><td> </td>
| + | |
- | <td width=100%>
| + | |
- | <span id="BGF.BtV.Sample.Edit.KatNr">1234</span>
| + | |
- | <input type="text" id="BGF.BtV.Sample.Edit.KatNrVar" name="KatNrVar" size=10 style="margin:0px"
| + | |
- | onchange="BGF_BtV_OnChange(this)">
| + | |
- | </td>
| + | |
- | </tr>
| + | |
- | <tr valign=top>
| + | |
- | <td nowrap>BRS:</td><td> </td>
| + | |
- | <td width=100%>
| + | |
- | <input type="text" id="BGF.BtV.Sample.Edit.BRSBGF" name="BRSBGF" style="margin:0px"
| + | |
- | onchange="BGF_BtV_OnChange(this)" oninput="BGF_BtV_OnChange(this)">
| + | |
- | <div id="BGF.BtV.Sample.Edit.BRSBV"></div>
| + | |
- | </td>
| + | |
- | </tr>
| + | |
- | <tr valign=top>
| + | |
- | <td nowrap>Quelle:</td><td> </td>
| + | |
- | <td width=100%>
| + | |
- | <select id="BGF.BtV.Sample.Edit.Source.Type" name="SourceType" onchange="BGF_BtV_OnChange(this)">
| + | |
- | <option value="un">unbekannt</option>
| + | |
- | <option value="eb">ebay</option>
| + | |
- | <option value="ot">oldthing</option>
| + | |
- | <option value="ah">Auktionshaus</option>
| + | |
- | <option value="fo">Forum/Internet</option>
| + | |
- | <option value="sh">Shop</option>
| + | |
- | <option value="pr">Privat</option>
| + | |
- | <option value="li">Literatur</option>
| + | |
- | </select>
| + | |
- | </td>
| + | |
- | </tr>
| + | |
- | <tr valign=top>
| + | |
- | <td nowrap> Name:</td><td> </td>
| + | |
- | <td width=100%>
| + | |
- | <input type="text" id="BGF.BtV.Sample.Edit.Source.Name" name="SourceName" style="margin:0px"
| + | |
- | onchange="BGF_BtV_OnChange(this)" oninput="BGF_BtV_OnChange(this)">
| + | |
- | </td>
| + | |
- | </tr>
| + | |
- | <tr id="BGF.BtV.Sample.Edit.Source.ArtNr.Row" style="display:table-row" valign=top>
| + | |
- | <td nowrap> <span id="BGF.BtV.Sample.Edit.Source.ArtNr.Title">Art-Nr.</span>:</td><td> </td>
| + | |
- | <td width=100%>
| + | |
- | <input type="text" id="BGF.BtV.Sample.Edit.Source.ArtNr" name="SourceArtNr" style="margin:0px"
| + | |
- | onchange="BGF_BtV_OnChange(this)" oninput="BGF_BtV_OnChange(this)">
| + | |
- | </td>
| + | |
- | </tr>
| + | |
- | <tr valign=top>
| + | |
- | <td nowrap> Datum:</td><td> </td>
| + | |
- | <td width=100%>
| + | |
- | <input type="date" id="BGF.BtV.Sample.Edit.Source.Date" name="SourceDate" style="margin:0px"
| + | |
- | onchange="BGF_BtV_OnChange(this)" oninput="BGF_BtV_OnChange(this)">
| + | |
- | </td>
| + | |
- | </tr>
| + | |
- | <tr id="BGF.BtV.Sample.Edit.Source.Price.Row" style="display:table-row" valign=top>
| + | |
- | <td nowrap> Preis:</td><td> </td>
| + | |
- | <td width=100%>
| + | |
- | <input type="text" id="BGF.BtV.Sample.Edit.Source.Price" name="SourcePrice" style="margin:0px"
| + | |
- | size=7 onchange="BGF_BtV_OnChange(this)" oninput="BGF_BtV_OnChange(this)">
| + | |
- | <select id="BGF.BtV.Sample.Edit.Source.PrType" name="SourcePrType" onchange="BGF_BtV_OnChange(this)">
| + | |
- | <option value="un">unbekannt</option>
| + | |
- | <option value="zu" selected>Zuschlag</option>
| + | |
- | <option value="ar">Ausruf</option>
| + | |
- | <option value="nv">nicht verk.</option>
| + | |
- | <option value="fp">Festpreis</option>
| + | |
- | </select>
| + | |
- | </td>
| + | |
- | </tr>
| + | |
- | <tr valign=top>
| + | |
- | <td colspan=3 style="padding-top:8px">
| + | |
- | <button id="BGF.BtV.Sample.Save" type="button" onclick="BGF_BtV_OnClick(this)">Speichern</button>
| + | |
- | <button id="BGF.BtV.Sample.Abort" type="button" onclick="BGF_BtV_OnClick(this)">Abbrechen</button>
| + | |
- | </td>
| + | |
- | </tr>
| + | |
- | </table>
| + | |
- | </td>
| + | |
- | </tr>
| + | |
- | </table>
| + | |
- | </td>
| + | |
- | </tr>
| + | |
- | </table>
| + | |
- | </template>
| + | |
- | <template id="BGF.BtV.StampFilter.Template">
| + | |
- | <template id="Body"></template>
| + | |
- | <div id="BGF.BtV.StampFilter.div" style="width:500px;background:#F8F8F8;">
| + | |
- | <table style="background:silver;" width=100% cellspacing=1 cellpadding=4>
| + | |
- | <tr style="background:#E0E0E0;" valign=top>
| + | |
- | <td style="padding:2px 6px 1px 6px"><b>Auswahl / Filter</b></td>
| + | |
- | </tr>
| + | |
- | <tr style="background:#F8F8F8;" valign=top>
| + | |
- | <td>
| + | |
- | <table width=100% cellspacing=0 cellpadding=2>
| + | |
- | <tr valign=top>
| + | |
- | <td nowrap>Gebiet: </td><td> </td>
| + | |
- | <td width=100%>
| + | |
- | <select id="BGF.BtV.StampFilter.Stamp.Gebiet" name="Gebiet" onchange="BGF_BtV_OnChange(this)">
| + | |
- | <option value="-">bitte auswählen</option>
| + | |
- | <option value="Bund">Bund</option>
| + | |
- | <option value="Berlin">Berlin</option>
| + | |
- | <option value="DDR">DDR</option>
| + | |
- | <option value="Saar">Saarland</option>
| + | |
- | </select> /
| + | |
- | <select id="BGF.BtV.StampFilter.Stamp.Gebiet1" name="Gebiet1" onchange="BGF_BtV_OnChange(this)">
| + | |
- | <option value="-">bitte auswählen</option>
| + | |
- | <option value=""></option>
| + | |
- | <option value="SMBM">SMBM</option>
| + | |
- | <option value="DienstA">Dienstmarken A</option>
| + | |
- | <option value="DienstB">Dienstmarken B</option>
| + | |
- | <option value="DienstC">Dienstmarken C</option>
| + | |
- | <option value="DienstD">Dienstmarken D</option>
| + | |
- | <option value="DienstE">Dienstmarken E</option>
| + | |
- | </select>
| + | |
- | <button id="BGF.BtV.StampFilter.Stat" type="button" onclick="BGF_BtV_OnClick(this)">Übersicht</button>
| + | |
- | </td>
| + | |
- | </tr>
| + | |
- | <tr valign=top>
| + | |
- | <td nowrap>Kat-Nr.:</td><td> </td>
| + | |
- | <td width=100%>
| + | |
- | <input type="number" id="BGF.BtV.StampFilter.Stamp.KatNr" name="KatNr" min="1" max="9999" style="margin:0px"
| + | |
- | onchange="BGF_BtV_OnChange(this)" oninput="BGF_BtV_OnChange(this)">
| + | |
- | (<span id="BGF.BtV.StampFilter.Stamp.KatNr.Min">min</span> -
| + | |
- | <span id="BGF.BtV.StampFilter.Stamp.KatNr.Max">max</span>)
| + | |
- | <button id="BGF.BtV.StampFilter.OK" type="button" onclick="BGF_BtV_OnClick(this)">OK</button>
| + | |
- | </td>
| + | |
- | </tr>
| + | |
- | <tr valign=top>
| + | |
- | <td nowrap>Filter:</td><td> </td>
| + | |
- | <td width=100%>
| + | |
- | <select id="BGF.BtV.StampFilter.Filter.Category" name="FilterKat" onchange="BGF_BtV_OnChange(this)">
| + | |
- | <option value="-">Kein Filter</option>
| + | |
- | <option value="BRS">BRS</option>
| + | |
- | <option value="Quelle">Quelle</option>
| + | |
- | </select>
| + | |
- | <select id="BGF.BtV.StampFilter.Filter.BRS" name="FilterBRS" onchange="BGF_BtV_OnChange(this)" style="display:none">
| + | |
- | <option value="-">Kein Filter</option>
| + | |
- | </select>
| + | |
- | <select id="BGF.BtV.StampFilter.Filter.Quelle" name="FilterQuelle" onchange="BGF_BtV_OnChange(this)" style="display:none">
| + | |
- | <option value="-">Kein Filter</option>
| + | |
- | </select><br>
| + | |
- | <input type="checkbox" id="BGF.BtV.StampFilter.Filter.Quelle.NoFinalPrice" name="FilterNoFinalPrice" onchange="BGF_BtV_OnChange(this)">
| + | |
- | <label for="BGF.BtV.StampFilter.Filter.Quelle.NoFinalPrice">Nur beendete Lose mit Startpreis/Ausruf anzeigen</label>
| + | |
- | </td>
| + | |
- | </tr>
| + | |
- | </table>
| + | |
- | </td>
| + | |
- | </tr>
| + | |
- | </table>
| + | |
- | </div>
| + | |
- | </template>
| + | |
- | <template id="BGF.BtV.Sample.CompactList.Template">
| + | |
- | <template id="Head"></template>
| + | |
- | <table style="background:silver;" width=100% cellspacing=1 cellpadding=4>
| + | |
- | <tr style="background:#E0E0E0;" valign=top>
| + | |
- | <td style="padding:2px 6px 1px 6px"><b>KatNr</b></td>
| + | |
- | <td style="padding:2px 6px 1px 6px"><b>ID</b></td>
| + | |
- | <td style="padding:2px 6px 1px 6px"><b>BRS</b></td>
| + | |
- | <td style="padding:2px 6px 1px 6px"><b>Quelle</b></td>
| + | |
- | </tr>
| + | |
- | <template id="Body"></template>
| + | |
- | <tr style="background:#F8F8F8;" valign=top>
| + | |
- | <td style="padding:2px 6px 1px 6px">%%Stamp.KatNr%%%%Sample.KatNrVar%%</td>
| + | |
- | <td style="padding:2px 6px 1px 6px">%%Sample.ID%%</td>
| + | |
- | <td style="padding:2px 6px 1px 6px" nowrap>%%Sample.BRS.Text%%</td>
| + | |
- | <td style="padding:2px 6px 1px 6px">%%Sample.Source.Type%% %%Sample.Source.Name%% %%Sample.Source.ArtNr%%</td>
| + | |
- | </tr>
| + | |
- | <template id="Empty"></template>
| + | |
- | <tr style="background:#F8F8F8;" valign=top>
| + | |
- | <td colspan=4 style="padding:2px 6px 1px 6px"><i>Keine Ausschnitte vorhanden</i></td>
| + | |
- | </tr>
| + | |
- | <template id="Foot"></template>
| + | |
- | </table>
| + | |
- | </template>
| + | |
- | <template id="BGF.BtV.Sample.StatList.Template">
| + | |
- | <template id="Head"></template>
| + | |
- | <table style="background:silver;" cellspacing=1 cellpadding=4>
| + | |
- | <tr style="background:#E0E0E0;" valign=top>
| + | |
- | <td style="padding:2px 6px 1px 6px"><b>Gebiet</b></td>
| + | |
- | <td style="padding:2px 6px 1px 6px"><b>Gebiet1</b></td>
| + | |
- | <td style="padding:2px 6px 1px 6px"><b>KatNr</b></td>
| + | |
- | <td style="padding:2px 6px 1px 6px"><b>Anzahl</b></td>
| + | |
- | <td style="padding:2px 6px 1px 6px"><b>...</b></td>
| + | |
- | </tr>
| + | |
- | <template id="Body"></template>
| + | |
- | <tr style="background:#F8F8F8;" valign=top>
| + | |
- | <td style="padding:2px 6px 1px 6px">%%Statistic.Gebiet%%</td>
| + | |
- | <td style="padding:2px 6px 1px 6px">%%Statistic.Gebiet1%%</td>
| + | |
- | <td style="padding:2px 6px 1px 6px">%%Statistic.KatNr%%</td>
| + | |
- | <td style="padding:2px 6px 1px 6px">%%Statistic.Count%%</td>
| + | |
- | <td style="padding:2px 6px 1px 6px">
| + | |
- | <button id="BGF.BtV.Sample.StatList.Select.%%Statistic.Gebiet%%.%%Statistic.Gebiet1%%.%%Statistic.KatNr%%"
| + | |
- | type="button" onclick="BGF_BtV_OnClick(this)">Auswählen</button>
| + | |
- | </td>
| + | |
- | </tr>
| + | |
- | <template id="Empty"></template>
| + | |
- | <tr style="background:#F8F8F8;" valign=top>
| + | |
- | <td colspan=4 style="padding:2px 6px 1px 6px"><i>Keine Ausschnitte vorhanden</i></td>
| + | |
- | </tr>
| + | |
- | <template id="Foot"></template>
| + | |
- | <tr style="background:#F8F8F8;" valign=top>
| + | |
- | <td style="padding:2px 6px 1px 6px" colspan=3>Summe:</td>
| + | |
- | <td style="padding:2px 6px 1px 6px">%%Statistic.Total%%</td>
| + | |
- | <td style="padding:2px 6px 1px 6px"> </td>
| + | |
- | </tr>
| + | |
- | </table>
| + | |
- | </template>
| + | |
- | <template id="BGF.BtV.Sample.ImgCompare.Template">
| + | |
- | <div id="BGF.BtV.Sample.Compare.Can" style="padding:2px;border:1px solid silver;display:inline-block">
| + | |
- | <canvas id="BGF.BtV.Sample.Compare.Can" width="386" height="606"></canvas>
| + | |
- | </div>
| + | |
- | </template> | + | |
| <script src="/bogenwiki_bgf/src/bgf_mbtypes.js"></script> | | <script src="/bogenwiki_bgf/src/bgf_mbtypes.js"></script> |
| + | <script src="/bogenwiki_bgf/src/bgf_mbtests.js"></script> |
| <script> | | <script> |
| function MGF_MB_OnClick(eElement) | | function MGF_MB_OnClick(eElement) |
| { | | { |
| console.log('[MGF_MB_OnClick] eElement.id='+eElement.id); | | console.log('[MGF_MB_OnClick] eElement.id='+eElement.id); |
- | var sElementID = eElement.id; | + | var sElementID = eElement.id; |
| switch (sElementID) { | | switch (sElementID) { |
- | case 'BGF.MB.TestMBTypes': | + | case 'BGF.MB.RunTest': |
- | ExecTest('Create type BGF_Number', | + | var sSelectedTest = document.getElementById('BGF.MB.Tests').value; |
- | 'var TestNum = new BGF_Number(\'TestNum\',BGF_Number.Unit_MM,1234.0);');
| + | console.log('sSelectedTest = '+sSelectedTest); |
| + | var [sClass,sMethod] = sSelectedTest.split('.'); |
| + | ExecTests(sClass,sMethod); |
| break; | | break; |
| } | | } |
- | }
| |
- |
| |
- | function ExecTest(sTitle,sCode)
| |
- | {
| |
- | console.log('ExecTest('+sTitle+','+sCode+')');
| |
- | eOut = document.getElementById('BGF.MB.Output');
| |
- | sOut = eOut.innerHTML;
| |
- | sOut += 'Test: <b>'+sTitle+'</s><br>';
| |
- | sOut += eval(sCode);
| |
- | console.log('sOut = "'+sOut+'"');
| |
- | eOut.innerHTML = sOut;
| |
| } | | } |
| | | |