overview.html 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562
  1. <div class="container-fluid">
  2. <ul class="nav nav-pills">
  3. <li><a ng-href="#/overview/all/today/errors">Heutige Fehler</a></li>
  4. <li><a ng-href="#/overview/all/today/all">Heutige Statusmeldungen</a></li>
  5. <li><a ng-href="#/overview/all/all/missing">Alle Fehlenden</a></li>
  6. <li><a ng-href="#/overview/all/all/errors">Alle Fehler</a></li>
  7. <li>
  8. <div class="dropdown">
  9. <a class="btn dropdown-toggle" role="button" data-toggle="dropdown">Benutzer: {{benutzer||'bitte auswählen'}}&nbsp;<b class="caret"></b></a>
  10. <ul class="dropdown-menu" role="menu">
  11. <li ng-repeat="val in domain.benutzer"><a ng-click="saveUser(val)">{{val}}</a></li>
  12. </ul>
  13. </div>
  14. </li>
  15. </ul>
  16. </div>
  17. <div class="row">
  18. <div class="container-fluid col-md-8">
  19. <table class="table table-bordered table-striped">
  20. <tr>
  21. <th>
  22. <label>
  23. Datum <i class="glyphicon glyphicon-sort-by-alphabet" ng-click="Predicate='datum'"></i><br/>
  24. <input ng-model="DatumFilter.von" type="date" ng-change="refresh()" /><br/>
  25. <input ng-model="DatumFilter.bis" type="date" ng-change="refresh()" />
  26. </label>
  27. </th>
  28. <th>
  29. <label>
  30. Kunde <i class="glyphicon glyphicon-sort-by-alphabet" ng-click="Predicate='kunde'"></i><br/>
  31. <input ng-model="Filter.kunde" ng-change="refresh()" />
  32. </label>
  33. </th>
  34. <th>Info</th>
  35. <th>Start Soll<br/>Ende Soll <i class="glyphicon glyphicon-sort-by-alphabet" ng-click="Predicate='ende_soll'"></i></th>
  36. <th>Start Ist<br/>Ende Ist</th>
  37. <th>Abweichung</th>
  38. <th>Fehler / Statistik</th>
  39. <th>Kommentar</th>
  40. </tr>
  41. <tr>
  42. <td>
  43. </td>
  44. <td>
  45. <div class="dropdown">
  46. <a class="btn dropdown-toggle" role="button" data-toggle="dropdown">{{Filter.system||'alle'}}&nbsp;<b class="caret"></b></a>
  47. <ul class="dropdown-menu" role="menu">
  48. <li><a ng-click="Filter.system=''">alle</a></li>
  49. <li class="divider"></li>
  50. <li ng-repeat="val in domain.system"><a ng-click="Filter.system=val">{{val}}</a></li>
  51. </ul>
  52. </div>
  53. </td>
  54. <td></td>
  55. <td></td>
  56. <td>
  57. <div class="dropdown">
  58. <a class="btn dropdown-toggle" role="button" data-toggle="dropdown">{{domain.fehlend[Filter.fehlend]||'alle'}}&nbsp;<b class="caret"></b></a>
  59. <ul class="dropdown-menu" role="menu">
  60. <li><a ng-click="Filter.fehlend=''">alle</a></li>
  61. <li class="divider"></li>
  62. <li ng-repeat="(key,val) in domain.fehlend"><a ng-click="Filter.fehlend=key">{{val}}</a></li>
  63. </ul>
  64. </div>
  65. </td>
  66. <td></td>
  67. <td>
  68. <div class="dropdown">
  69. <a class="btn dropdown-toggle" role="button" data-toggle="dropdown">{{domain.fehler[Filter.fehler]||'alle'}}&nbsp;<b class="caret"></b></a>
  70. <ul class="dropdown-menu" role="menu">
  71. <li><a ng-click="Filter.fehler=''">alle</a></li>
  72. <li class="divider"></li>
  73. <li ng-repeat="(key,val) in domain.fehler"><a ng-click="Filter.fehler=key">{{val}}</a></li>
  74. </ul>
  75. </div>
  76. </td>
  77. <td>
  78. <div class="dropdown">
  79. <a class="btn dropdown-toggle" role="button" data-toggle="dropdown">{{Filter.benutzer||'alle'}}&nbsp;<b class="caret"></b></a>
  80. <ul class="dropdown-menu" role="menu">
  81. <li><a ng-click="Filter.benutzer=''">alle</a></li>
  82. <li class="divider"></li>
  83. <li ng-repeat="val in domain.benutzer"><a ng-click="Filter.benutzer=val">{{val}}</a></li>
  84. </ul>
  85. </div>
  86. </td>
  87. </tr>
  88. <tr ng-repeat="zeile in overview | filter:DatumFilter.datum | filter:Filter | orderBy:Predicate:Reverse" ng-class="{'danger':zeile.fehlend==1}">
  89. <td>{{dateFormat(zeile.datum)}}</td>
  90. <td><span class="label label-danger label-{{zeile.system}}">{{left(zeile.system, 1)}}</span> <a ng-href="#/overview/{{zeile.kunde}}/all/all">{{zeile.kunde}}</a> {{zeile.aufgabe}}</td>
  91. <td>
  92. <a href="file:///v:/Kunden/{{zeile.kunde}}/" target="_blank">
  93. <button type="button" class="btn btn-default" title="Verzeichnis">
  94. <span class="glyphicon glyphicon-folder-open"></span>
  95. </button>
  96. </a>
  97. <a href="file:///v:/Kunden/{{zeile.kunde}}/Dokumente/Installationsdaten_{{zeile.kunde}}.xlsx" target="_blank">
  98. <button type="button" class="btn btn-default" title="Installationsdaten">
  99. <span class="glyphicon glyphicon-wrench"></span>
  100. </button>
  101. </a>
  102. </td>
  103. <td>{{zeile.start_soll}}<br/>{{zeile.ende_soll}}</td>
  104. <td>
  105. <a ng-click="saveStartTime(zeile)">{{zeile.start}}</a><br/>
  106. <a ng-click="saveEndTime(zeile)">{{zeile.ende}}</a>
  107. </td>
  108. <td>
  109. {{timeDiffStart(zeile)}}<br/>
  110. {{timeDiff(zeile)}}</td>
  111. <td>
  112. <!--<a ng-href="#/overview/{{zeile.kunde}}/all/all"><button type="button" class="btn btn-default" title="Fehlermeldungen"><span class="glyphicon glyphicon-exclamation-sign"></span></button></a>-->
  113. <!--<a ng-href="#/stats/{{zeile.kunde}}"><button type="button" class="btn btn-default" title="Statistik"><span class="glyphicon glyphicon-stats"></span></button></a>-->
  114. <!--<a ng-href="#/config/{{zeile.kunde}}/current"><button type="button" class="btn btn-default" title="Konfiguration"><span class="glyphicon glyphicon-list-alt"></span></button></a>-->
  115. <button type="button" class="btn btn-default btn-sm" data-toggle="modal" data-target="#fehler-modal" ng-click="setCurrent(zeile)" ng-show="zeile.anzahl != null">
  116. <span class="glyphicon" ng-class="{'glyphicon-check': zeile.anzahl == 0 && zeile.bearbeitet == 1, 'glyphicon-eye-close': zeile.anzahl == 0 && zeile.bearbeitet == 0, 'glyphicon-exclamation-sign': zeile.anzahl > 0 && zeile.bearbeitet == 0, 'glyphicon-ok': zeile.anzahl > 0 && zeile.bearbeitet == 1}"></span>
  117. <span class="label label-danger label-{{zeile.anzahl}}"> {{zeile.anzahl}}</span>
  118. </button>
  119. <button type="button" data-trigger="focus" class="btn btn-default btn-sm" data-toggle="modal" data-target="#fehler-modal" ng-click="setCurrent(zeile)" ng-show="zeile.anzahl == null">
  120. <span class="glyphicon" ng-class="{'glyphicon-check': zeile.bearbeitet == 1, 'glyphicon-question-sign': zeile.bearbeitet != 1 }"></span>
  121. </button>
  122. </td>
  123. <td>
  124. <button type="button" class="btn btn-default btn-sm" ng-init="c = getComments(zeile)" ng-show="c" data-toggle="popover" data-placement="bottom"
  125. title="" data-content="" data-popover="{{c[0].id}}" data-kunde="{{c[0].kunde}}" data-datum="{{c[0].datum}}">
  126. <span ng-show="c[0].datum != zeile.datum">{{dateFormat(c[0].datum)}}: </span>
  127. <span class="glyphicon {{getCommentIcon(c)}}"></span>
  128. <span class="label label-danger label-{{c[0].fehler}}"> {{c[0].fehler}}</span>
  129. {{c[0].benutzer}}
  130. </button>
  131. </td>
  132. </tr>
  133. </table>
  134. </div>
  135. </div>
  136. <!-- Modal -->
  137. <div class="modal fade" id="fehler-modal" tabindex="-1" role="dialog" aria-labelledby="fehler-modal-label" aria-hidden="true">
  138. <div class="modal-dialog modal-lg">
  139. <div class="modal-content">
  140. <div class="modal-header">
  141. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  142. <h4 class="modal-title" id="fehler-modal-label"><span class="glyphicon glyphicon-exclamation-sign"></span>&nbsp; {{current.zeile.kunde}} - {{dateFormat(current.zeile.datum)}}</h4>
  143. </div>
  144. <div class="modal-body">
  145. <h3>Kommentar</h3>
  146. <table class="table table-hover table-bordered">
  147. <tr>
  148. <th>Benutzer</th>
  149. <td>
  150. <div class="dropdown">
  151. <a class="btn dropdown-toggle" role="button" data-toggle="dropdown">{{current.kommentar.benutzer||'unbekannt'}}&nbsp;<b class="caret"></b></a>
  152. <ul class="dropdown-menu" role="menu">
  153. <li ng-repeat="val in domain.benutzer"><a ng-click="current.kommentar.benutzer=val">{{val}}</a></li>
  154. </ul>
  155. </div>
  156. </td>
  157. </tr>
  158. <tr>
  159. <th>Bearbeitungsstand</th>
  160. <td>
  161. <div class="dropdown">
  162. <a class="btn dropdown-toggle" role="button" data-toggle="dropdown"><span class="glyphicon {{getCommentIcon(current.kommentar)}}"></span> {{domain.bearbeitet[current.kommentar.status]||'unbekannt'}}&nbsp;<b class="caret"></b></a>
  163. <ul class="dropdown-menu" role="menu">
  164. <li ng-repeat="(key,val) in domain.bearbeitet"><a ng-click="current.kommentar.status=key"><span class="glyphicon {{domain.comment[key]}}"></span> {{val}}</a></li>
  165. </ul>
  166. </div>
  167. </td>
  168. </tr>
  169. <tr ng-show="current.kommentar.status=='7'">
  170. <th>Empfänger</th>
  171. <td>
  172. <div class="dropdown">
  173. <a class="btn dropdown-toggle" role="button" data-toggle="dropdown">{{current.kommentar.benutzer2||'unbekannt'}}&nbsp;<b class="caret"></b></a>
  174. <ul class="dropdown-menu" role="menu">
  175. <li ng-repeat="val in domain.benutzer"><a ng-click="current.kommentar.benutzer2=val;current.kommentar.kommentar='weitergeleitet an '+val">{{val}}</a></li>
  176. </ul>
  177. </div>
  178. </td>
  179. </tr>
  180. <tr>
  181. <th>Anzahl Fehler
  182. <span class="label label-danger label-{{current.fehler.anzahl}}"> {{current.fehler.anzahl}}</span>
  183. </th>
  184. <td>
  185. <span class="label label-danger label-{{current.kommentar.fehler}}"> {{current.kommentar.fehler}}</span> &nbsp;
  186. <label>
  187. <input type="range" name="Anzahl" min="0" max="10" ng-model="current.kommentar.fehler" />
  188. </label>
  189. </td>
  190. </tr>
  191. <tr>
  192. <th>Kommentar</th>
  193. <td>
  194. <label>
  195. <textarea cols="60" rows="5" ng-model="current.kommentar.kommentar"></textarea>
  196. </label>
  197. </td>
  198. </tr>
  199. <tr>
  200. <td></td>
  201. <td>
  202. <button type="button" class="btn btn-default" ng-click="saveComments()">Speichern</button>
  203. <button type="button" class="btn btn-primary" ng-click="saveComments()" data-dismiss="modal">Speichern und schließen</button>
  204. </td>
  205. </tr>
  206. </table>
  207. <h3>Fehler</h3>
  208. <div class="logdatei" ng-repeat="e in current.fehler.fehlerbericht | filter: errorLevel | orderBy: 'ErrorLevel'">
  209. <a href="" onclick="$(this).next().toggle()" ng-click="e.Errors3 = e.Errors">
  210. <p class="modell" ng-class="{'rot':e.ErrorLevel < 3}">{{e.Type}}: {{e.Name}} ({{errorCount(e)}})</p>
  211. </a>
  212. <div class="closed-tab">
  213. <ul class="fehler" ng-show="e.Type=='Modell'">
  214. <li ng-repeat="error in e.Errors3"><a href="http://rbs06/wiki/{{error.Number}}" target="_blank">{{error.Number}}</a>:
  215. ({{error.Level}}) {{error.Message}}</li>
  216. </ul>
  217. <pre class="fehler" ng-show="e.Type=='Workflow'" ng-bind-html="e.Errors3[0]"></pre>
  218. <table class="ft" ng-show="e.Type=='Portal'||e.Type=='Versand'">
  219. <tbody ng-repeat="error in e.Errors3">
  220. <tr>
  221. <td rowspan="6" class="number">{{$index+1}}
  222. <td>Datei:</td>
  223. <td></td>
  224. <td>{{error.Filename}}</td>
  225. </tr>
  226. <tr>
  227. <td>Stand:</td>
  228. <td></td>
  229. <td>{{error.Modified}}</td>
  230. </tr>
  231. <tr>
  232. <td>Benutzer:</td>
  233. <td><button class="btn btn-default btn-sm" ng-show="!inWhitelist('User', error.User)" ng-click="whitelistToggle('User', error.User)"><span class="glyphicon glyphicon-ban-circle"></span></button></td>
  234. <td>{{error.User}}</td>
  235. </tr>
  236. <tr>
  237. <td>Bericht:</td>
  238. <td><button class="btn btn-default btn-sm" ng-show="!inWhitelist('Report', error.Report)" ng-click="whitelistToggle('Report', error.Report)"><span class="glyphicon glyphicon-ban-circle"></span></button></td>
  239. <td>{{error.Report}}</td>
  240. </tr>
  241. <tr>
  242. <td>Schicht:</td>
  243. <td><button class="btn btn-default btn-sm" ng-show="!inWhitelist('Layer', error.Layer)" ng-click="whitelistToggle('Layer', error.Layer)"><span class="glyphicon glyphicon-ban-circle"></span></button></td>
  244. <td>{{error.Layer}}</td>
  245. </tr>
  246. <tr class="strich">
  247. <td><div ng-show="e.Type=='Versand'">Empfänger:</div></td>
  248. <td></td>
  249. <td><div ng-bind-html="mailFormat(error.MailTo)"></div></td>
  250. </tr>
  251. </tbody>
  252. <tr ng-show="e.Errors2">
  253. <td colspan="4"><a ng-click="e.Show=!e.Show;">Ausgeblendete Berichte</a></td>
  254. </tr>
  255. <tbody ng-repeat="error in e.Errors2" ng-show="e.Show">
  256. <tr>
  257. <td rowspan="6" class="number">{{$index+1}}
  258. <td>Datei:</td>
  259. <td></td>
  260. <td>{{error.Filename}}</td>
  261. </tr>
  262. <tr>
  263. <td>Stand:</td>
  264. <td></td>
  265. <td>{{error.Modified}}</td>
  266. </tr>
  267. <tr>
  268. <td>Benutzer:</td>
  269. <td><button class="btn btn-default btn-sm" ng-show="!inWhitelist('User', error.User)" ng-click="whitelistToggle('User', error.User)"><span class="glyphicon glyphicon-ban-circle"></span></button></td>
  270. <td>{{error.User}}</td>
  271. </tr>
  272. <tr>
  273. <td>Bericht:</td>
  274. <td><button class="btn btn-default btn-sm" ng-show="!inWhitelist('Report', error.Report)" ng-click="whitelistToggle('Report', error.Report)"><span class="glyphicon glyphicon-ban-circle"></span></button></td>
  275. <td>{{error.Report}}</td>
  276. </tr>
  277. <tr>
  278. <td>Schicht:</td>
  279. <td><button class="btn btn-default btn-sm" ng-show="!inWhitelist('Layer', error.Layer)" ng-click="whitelistToggle('Layer', error.Layer)"><span class="glyphicon glyphicon-ban-circle"></span></button></td>
  280. <td>{{error.Layer}}</td>
  281. </tr>
  282. <tr class="strich">
  283. <td><div ng-show="e.Type=='Versand'">Empfänger:</div></td>
  284. <td></td>
  285. <td><div ng-bind-html="mailFormat(error.MailTo)"></div></td>
  286. </tr>
  287. </tbody>
  288. </table>
  289. </div>
  290. </div>
  291. <h3>Weitere Logdateien</h3>
  292. <table class="table table-hover table-bordered">
  293. <tr ng-repeat="(header, g) in current.fehler.weitere">
  294. <th>{{header}}</th>
  295. <td>
  296. <ul>
  297. <li ng-repeat="e in g" >
  298. <a ng-click="current.fehlerdetails = e" ng-show="header != 'Modell'">{{e.Name}}</a>
  299. <span ng-show="header == 'Modell'">{{e.Name}}</span>
  300. </li>
  301. </ul>
  302. </td>
  303. </tr>
  304. </table>
  305. <div class="logdatei" ng-show="current.fehlerdetails != null">
  306. <p class="modell">{{current.fehlerdetails.Type}}: {{current.fehlerdetails.Name}} ({{errorCount(current.fehlerdetails)}})</p>
  307. <pre class="fehler" ng-repeat="error in current.fehlerdetails.Errors">{{error}}</pre>
  308. <table class="ft" ng-show="current.fehlerdetails.Errors2">
  309. <tbody ng-repeat="error in current.fehlerdetails.Errors2">
  310. <tr>
  311. <td rowspan="6" class="number">{{$index+1}}
  312. <td>Datei:</td>
  313. <td></td>
  314. <td>{{error.Filename}}</td>
  315. </tr>
  316. <tr>
  317. <td>Stand:</td>
  318. <td></td>
  319. <td>{{error.Modified}}</td>
  320. </tr>
  321. <tr>
  322. <td>Benutzer:</td>
  323. <td><button class="btn btn-default btn-sm" ng-show="!inWhitelist('User', error.User)" ng-click="whitelistToggle('User', error.User)"><span class="glyphicon glyphicon-ban-circle"></span></button></td>
  324. <td>{{error.User}}</td>
  325. </tr>
  326. <tr>
  327. <td>Bericht:</td>
  328. <td><button class="btn btn-default btn-sm" ng-show="!inWhitelist('Report', error.Report)" ng-click="whitelistToggle('Report', error.Report)"><span class="glyphicon glyphicon-ban-circle"></span></button></td>
  329. <td>{{error.Report}}</td>
  330. </tr>
  331. <tr>
  332. <td>Schicht:</td>
  333. <td><button class="btn btn-default btn-sm" ng-show="!inWhitelist('Layer', error.Layer)" ng-click="whitelistToggle('Layer', error.Layer)"><span class="glyphicon glyphicon-ban-circle"></span></button></td>
  334. <td>{{error.Layer}}</td>
  335. </tr>
  336. <tr class="strich">
  337. <td><div ng-show="e.Type=='Versand'">Empfänger:</div></td>
  338. <td></td>
  339. <td><div ng-bind-html="mailFormat(error.MailTo)"></div></td>
  340. </tr>
  341. </tbody>
  342. </table>
  343. </div>
  344. <div ng-show="current.fehler.whitelist.User || current.fehler.whitelist.Report || current.fehler.whitelist.Layer">
  345. <h3>Ausgeblendete Berichte</h3>
  346. <table class="table table-hover table-bordered">
  347. <tr ng-show="current.fehler.whitelist.User">
  348. <th>Benutzer</th>
  349. <td>
  350. <ul>
  351. <li ng-repeat="val in current.fehler.whitelist.User"><a ng-click="whitelistToggle('User', val)">{{val}}</a></li>
  352. </ul>
  353. </td>
  354. </tr>
  355. <tr ng-show="current.fehler.whitelist.Report">
  356. <th>Bericht</th>
  357. <td>
  358. <ul>
  359. <li ng-repeat="val in current.fehler.whitelist.Report"><button ng-click="whitelistToggle('Report', val)"><span class="glyphicon glyphicon-trash"></span></button> {{val}}</li>
  360. </ul>
  361. </td>
  362. </tr>
  363. <tr ng-show="current.fehler.whitelist.Layer">
  364. <th>Schicht</th>
  365. <td>
  366. <ul>
  367. <li ng-repeat="val in current.fehler.whitelist.Layer"><a ng-click="whitelistToggle('Layer', val)">{{val}}</a></li>
  368. </ul>
  369. </td>
  370. </tr>
  371. </table>
  372. </div>
  373. <h3>Historie</h3>
  374. <table class="table table-hover table-bordered table-condensed">
  375. <tr>
  376. <th style="width: 140px;">Datum</th>
  377. <th style="width: 100px;">Start<br/>Ende</th>
  378. <th style="width: 110px;">Abweichung</th>
  379. <th style="width: 120px;">Fehler</th>
  380. <th style="width: 340px;">Kommentar</th>
  381. </tr>
  382. <tr ng-repeat="z in current.overview | orderBy: 'datum':true | limitTo: current.limit " ng-class="{'danger':z.fehlend==1}">
  383. <td>{{dateFormat(z.datum)}}</td>
  384. <td>
  385. <a ng-click="saveStartTime(z)">{{z.start}}</a><br/>
  386. <a ng-click="saveEndTime(z)">{{z.ende}}</a>
  387. </td>
  388. <td>
  389. {{timeDiffStart(z)}}<br/>
  390. {{timeDiff(z)}}
  391. </td>
  392. <td>
  393. <button type="button" class="btn btn-default btn-sm" ng-click="setCurrent(z)" ng-show="z.anzahl != null">
  394. <span class="glyphicon" ng-class="{'glyphicon-check': z.anzahl == 0 && z.bearbeitet == 1, 'glyphicon-eye-close': z.anzahl == 0 && z.bearbeitet == 0, 'glyphicon-exclamation-sign': z.anzahl > 0 && z.bearbeitet == 0, 'glyphicon-ok': z.anzahl > 0 && z.bearbeitet == 1}"></span>
  395. <span class="label label-danger label-{{z.anzahl}}"> {{z.anzahl}}</span>
  396. </button>
  397. <button type="button" data-trigger="focus" class="btn btn-default btn-sm" ng-click="setCurrent(zeile)" ng-show="z.anzahl == null">
  398. <span class="glyphicon glyphicon-question-sign"></span>
  399. </button>
  400. </td>
  401. <td>
  402. <button type="button" class="btn btn-default btn-sm" ng-init="c = getComments(z, '1')" ng-show="c" data-toggle="popover" data-placement="bottom"
  403. title="" data-content="" data-popover="{{c.id}}">
  404. <span ng-show="c[0].datum != z.datum">{{dateFormat(c[0].datum)}}: </span>
  405. <span class="glyphicon {{getCommentIcon(c)}}"></span>
  406. <span class="label label-danger label-{{c[0].fehler}}"> {{c[0].fehler}}</span>
  407. {{c[0].benutzer}}
  408. </button>
  409. </td>
  410. </tr>
  411. <tr>
  412. <td>
  413. <button class="btn btn-default" ng-click="current.limit=100"><span class="glyphicon glyphicon-plus"></span></button>
  414. </td>
  415. </tr>
  416. </table>
  417. <h3>Statistik</h3>
  418. <div>
  419. <div id="durationChart" style="width: 750px; height: 550px"></div>
  420. </div>
  421. <br/><br/>
  422. <table class="table table-bordered table-striped">
  423. <tr>
  424. <th>Name</th>
  425. <th>Datum</th>
  426. <th>Zeit</th>
  427. <th>Dauer</th>
  428. <th>Quellen</th>
  429. <th>Kategorien</th>
  430. <th>Datensätze</th>
  431. </tr>
  432. <tr ng-repeat="e in current.fehler.fehlerbericht" ng-show="e.Summary.Duration != null">
  433. <td>{{e.Type}}: <a href="" ng-click="showDetails(e)">{{e.Name}}</a></td>
  434. <td>{{dateFormat(e.Modified)}}</td>
  435. <td>{{timeFormat(e.Modified)}}</td>
  436. <td>{{e.Summary.Duration}}</td>
  437. <td>{{e.Sources.length}}</td>
  438. <td>{{e.Summary.Categories}}</td>
  439. <td>{{e.Summary.Entities}}</td>
  440. </tr>
  441. </table>
  442. <div ng-show="current.details!=null">
  443. <h3>Details zu {{current.details.Type}}: {{current.details.Name}}</h3>
  444. <div id="durationDetailsChart" style="width: 750px; height: 550px">
  445. </div>
  446. <br/><br/>
  447. <table class="table table-bordered table-striped">
  448. <tr>
  449. <th>Name</th>
  450. <th ng-show="current.details.Type!='Modell'">Report</th>
  451. <th ng-show="current.details.Type=='Modell'">Datensätze</th>
  452. <th>Dauer</th>
  453. </tr>
  454. <tr ng-repeat="e in current.details.Sources">
  455. <td>{{e.Filename}}</td>
  456. <td ng-show="current.details.Type!='Modell'">{{e.Report}} ({{e.Layer}})</td>
  457. <td ng-show="current.details.Type=='Modell'">{{e.Entities}}</td>
  458. <td>{{e.Duration}}</td>
  459. </tr>
  460. </table>
  461. </div>
  462. </div>
  463. </div>
  464. </div>
  465. </div>
  466. </div>
  467. <style>
  468. .table tbody tr td {
  469. vertical-align: middle;
  470. }
  471. .label-0 {
  472. background-color: #aaaaaa;
  473. }
  474. .label-1 {
  475. background-color: #bbbb00;
  476. }
  477. .label-2 {
  478. background-color: #bb8800;
  479. }
  480. .label-3 {
  481. background-color: #bb0000;
  482. }
  483. table.ft {
  484. border: 1px solid #888;
  485. }
  486. table.ft td {
  487. padding: 3px 5px;
  488. margin: 2px;
  489. background-color: #ddd;
  490. }
  491. .logdatei {
  492. margin: 10px 5px 20px 5px;
  493. padding: 0 20px 10px 20px;
  494. background-color: #eee;
  495. border: 1px solid #888;
  496. }
  497. .modell {
  498. font-weight: bold;
  499. background-color: #ccc;
  500. padding: 10px;
  501. margin: 0 -20px;
  502. }
  503. .rot {
  504. background-color: #e88;
  505. }
  506. .number {
  507. font-weight: bold;
  508. background-color: #ccc;
  509. border: 1px solid #888888;
  510. }
  511. .strich {
  512. border-bottom: 1px solid #888888;
  513. }
  514. </style>