123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416 |
- <div class="container-fluid">
- <div class="well" ng-show="benutzer==null">
- Benutzer:<br/>
- <div class="dropdown">
- <a class="btn dropdown-toggle" role="button" data-toggle="dropdown">{{benutzer2||'unbekannt'}} <b class="caret"></b></a>
- <ul class="dropdown-menu" role="menu">
- <li ng-repeat="val in domain.benutzer"><a ng-click="benutzer2=val">{{val}}</a></li>
- </ul>
- </div>
- <br/>
- <button class="btn btn-default btn-sm" ng-click="saveUser(benutzer2)">Speichern</button>
- </div>
- <ul class="nav nav-pills">
- <li><a ng-href="#/overview/all/today/errors">Heutige Fehler</a></li>
- <li><a ng-href="#/overview/all/today/all">Heutige Statusmeldungen</a></li>
- <li><a ng-href="#/overview/all/all/missing">Alle Fehlenden</a></li>
- <li><a ng-href="#/overview/all/all/errors">Alle Fehler</a></li>
- </ul>
- </div>
- <div class="row">
- <div class="container-fluid col-md-7">
- <table class="table table-bordered table-striped">
- <tr>
- <th>
- <label>
- Datum <i class="glyphicon glyphicon-sort-by-alphabet" ng-click="Predicate='datum'"></i><br/>
- <input ng-model="Filter.datum" type="date" ng-change="refresh()" />
- </label>
- </th>
- <th>
- <label>
- Kunde <i class="glyphicon glyphicon-sort-by-alphabet" ng-click="Predicate='kunde'"></i><br/>
- <input ng-model="Filter.kunde" />
- </label>
- </th>
- <th>Start Soll<br/>Ende Soll <i class="glyphicon glyphicon-sort-by-alphabet" ng-click="Predicate='ende_soll'"></i></th>
- <th>Start Ist<br/>Ende Ist</th>
- <th>Abweichung</th>
- <th>Fehler / Statistik</th>
- <th>Kommentar</th>
- </tr>
- <tr>
- <td>
- </td>
- <td>
- <div class="dropdown">
- <a class="btn dropdown-toggle" role="button" data-toggle="dropdown">{{Filter.system||'alle'}} <b class="caret"></b></a>
- <ul class="dropdown-menu" role="menu">
- <li><a ng-click="Filter.system=''">alle</a></li>
- <li class="divider"></li>
- <li ng-repeat="val in domain.system"><a ng-click="Filter.system=val">{{val}}</a></li>
- </ul>
- </div>
- </td>
- <td></td>
- <td>
- <div class="dropdown">
- <a class="btn dropdown-toggle" role="button" data-toggle="dropdown">{{domain.fehlend[Filter.fehlend]||'alle'}} <b class="caret"></b></a>
- <ul class="dropdown-menu" role="menu">
- <li><a ng-click="Filter.fehlend=''">alle</a></li>
- <li class="divider"></li>
- <li ng-repeat="(key,val) in domain.fehlend"><a ng-click="Filter.fehlend=key">{{val}}</a></li>
- </ul>
- </div>
- </td>
- <td></td>
- <td>
- <div class="dropdown">
- <a class="btn dropdown-toggle" role="button" data-toggle="dropdown">{{domain.fehler[Filter.fehler]||'alle'}} <b class="caret"></b></a>
- <ul class="dropdown-menu" role="menu">
- <li><a ng-click="Filter.fehler=''">alle</a></li>
- <li class="divider"></li>
- <li ng-repeat="(key,val) in domain.fehler"><a ng-click="Filter.fehler=key">{{val}}</a></li>
- </ul>
- </div>
- </td>
- <td>
- <div class="dropdown">
- <a class="btn dropdown-toggle" role="button" data-toggle="dropdown">{{Filter.benutzer||'alle'}} <b class="caret"></b></a>
- <ul class="dropdown-menu" role="menu">
- <li><a ng-click="Filter.benutzer=''">alle</a></li>
- <li class="divider"></li>
- <li ng-repeat="val in domain.benutzer"><a ng-click="Filter.benutzer=val">{{val}}</a></li>
- </ul>
- </div>
- </td>
- </tr>
- <tr ng-repeat="zeile in overview | filter:SearchText | filter:Filter | orderBy:Predicate:Reverse" ng-class="{'danger':zeile.fehlend==1}">
- <td>{{dateFormat(zeile.datum)}}</td>
- <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></td>
- <td>{{zeile.start_soll}}<br/>{{zeile.ende_soll}}</td>
- <td>
- <a ng-click="saveStartTime(zeile)">{{zeile.start}}</a><br/>
- <a ng-click="saveEndTime(zeile)">{{zeile.ende}}</a>
- </td>
- <td>
- {{timeDiffStart(zeile)}}<br/>
- {{timeDiff(zeile)}}</td>
- <td>
- <button type="button" class="btn btn-default btn-sm" data-toggle="modal" data-target="#stats-modal" ng-click="setCurrent(zeile)" ng-show="zeile.anzahl != null">
- <span class="glyphicon glyphicon-stats"></span>
- </button>
- <!--<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>-->
- <!--<a ng-href="#/stats/{{zeile.kunde}}"><button type="button" class="btn btn-default" title="Statistik"><span class="glyphicon glyphicon-stats"></span></button></a>-->
- <!--<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>-->
- <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">
- <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>
- <span class="label label-danger label-{{zeile.anzahl}}"> {{zeile.anzahl}}</span>
- </button>
- <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">
- <span class="glyphicon glyphicon-question-sign"></span>
- </button>
- </td>
- <td>
- <button type="button" class="btn btn-default btn-sm" ng-init="c = getComments(zeile)" ng-show="c" data-toggle="popover" data-placement="bottom" title="test" data-content="{{c[0].kommentar}}
- {{domain.bearbeitet[c[0].status]}}">
- <span ng-show="c[0].datum != zeile.datum">{{dateFormat(c[0].datum)}}: </span>
- <span class="glyphicon {{getCommentIcon(c)}}"></span>
- <span class="label label-danger label-{{c[0].fehler}}"> {{c[0].fehler}}</span>
- {{c[0].benutzer}}
- </button>
- </td>
- </tr>
- </table>
- </div>
- </div>
- <!-- Modal -->
- <div class="modal fade" id="fehler-modal" tabindex="-1" role="dialog" aria-labelledby="fehler-modal-label" aria-hidden="true">
- <div class="modal-dialog modal-lg">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
- <h4 class="modal-title" id="fehler-modal-label"><span class="glyphicon glyphicon-exclamation-sign"></span> {{current.zeile.kunde}} - {{dateFormat(current.zeile.datum)}}</h4>
- </div>
- <div class="modal-body">
- <table class="table table-hover table-bordered">
- <tr>
- <td>
- <button class="btn btn-default" ng-click="current.kommentar=current.template"><span class="glyphicon glyphicon-plus"></span></button>
- </td>
- <th style="width: 130px;">Datum</th>
- <th style="width: 100px;">Benutzer</th>
- <th style="width: 170px;">Status</th>
- <th style="width: 70px;">Anzahl</th>
- <th style="width: 340px;">Kommentar</th>
- </tr>
- <tr>
- <td></td>
- <td></td>
- <td></td>
- <td>
- <div class="dropdown">
- <a class="btn dropdown-toggle" role="button" data-toggle="dropdown">{{domain.statusfilter[current.status]||'alle'}} <b class="caret"></b></a>
- <ul class="dropdown-menu" role="menu">
- <li><a ng-click="current.status=''">alle</a></li>
- <li class="divider"></li>
- <li ng-repeat="(key,val) in domain.statusfilter"><a ng-click="current.status=key">{{val}}</a></li>
- </ul>
- </div>
- </td>
- <td></td>
- <td></td>
- </tr>
- <tr ng-repeat="c in comments[current.zeile.kunde] | filter:statusFilter | orderBy: 'datum' ">
- <td><button class="btn btn-default" ng-click="current.kommentar=c;c.fehler=parseInt(c.fehler,10)"><span class="glyphicon glyphicon-pencil"></span></button></td>
- <td>{{dateFormat(c.datum)}}</td>
- <td>{{c.benutzer}}</td>
- <td><span class="glyphicon {{getCommentIcon(c)}}"></span> {{domain.bearbeitet[c.status]}}</td>
- <td><span class="label label-danger label-{{c.fehler}}"> {{c.fehler}}</span></td>
- <td>{{c.kommentar}}</td>
- </tr>
- </table>
- <table class="table table-hover table-bordered">
- <tr>
- <th>Benutzer</th>
- <td>
- <div class="dropdown">
- <a class="btn dropdown-toggle" role="button" data-toggle="dropdown">{{current.kommentar.benutzer||'unbekannt'}} <b class="caret"></b></a>
- <ul class="dropdown-menu" role="menu">
- <li ng-repeat="val in domain.benutzer"><a ng-click="current.kommentar.benutzer=val">{{val}}</a></li>
- </ul>
- </div>
- </td>
- </tr>
- <tr>
- <th>Bearbeitungsstand</th>
- <td>
- <div class="dropdown">
- <a class="btn dropdown-toggle" role="button" data-toggle="dropdown"><span class="glyphicon {{getCommentIcon(current.kommentar)}}"></span> {{domain.bearbeitet[current.kommentar.status]||'unbekannt'}} <b class="caret"></b></a>
- <ul class="dropdown-menu" role="menu">
- <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>
- </ul>
- </div>
- </td>
- </tr>
- <tr>
- <th>Anzahl Fehler
- <span class="label label-danger label-{{current.fehler.anzahl}}"> {{current.fehler.anzahl}}</span>
- </th>
- <td>
- <span class="label label-danger label-{{current.kommentar.fehler}}"> {{current.kommentar.fehler}}</span>
- <label>
- <input type="range" name="Anzahl" min="0" max="10" ng-model="current.kommentar.fehler" />
- </label>
- </td>
- </tr>
- <tr>
- <th>Kommentar</th>
- <td>
- <label>
- <textarea cols="60" rows="5" ng-model="current.kommentar.kommentar"></textarea>
- </label>
- </td>
- </tr>
- <tr>
- <td></td>
- <td>
- <button type="button" class="btn btn-default" ng-click="saveComments()">Speichern</button>
- <button type="button" class="btn btn-primary" ng-click="saveComments()" data-dismiss="modal">Speichern und schließen</button>
- </td>
- </tr>
- </table>
- <div class="logdatei" ng-repeat="e in current.fehler.fehlerbericht | filter: errorLevel | orderBy: 'ErrorLevel'">
- <a href="" onclick="$(this).next().toggle()">
- <p class="modell" ng-class="{'rot':e.ErrorLevel < 3}">{{e.Type}}: {{e.Name}} ({{errorCount(e)}})</p>
- </a>
- <div class="closed-tab">
- <ul class="fehler" ng-show="e.Type=='Modell'">
- <li ng-repeat="error in e.Errors"><a href="http://wiki.global-cube.de/{{error.Number}}">{{error.Number}}</a>:
- ({{error.Level}}) {{error.Message}}</li>
- </ul>
- <pre class="fehler" ng-show="e.Type=='Workflow'">{{e.Errors[0]}}</pre>
- <table class="ft" ng-show="e.Type=='Portal'||e.Type=='Versand'">
- <tbody ng-repeat="error in e.Errors">
- <tr>
- <td rowspan="5" class="number">{{$index+1}}
- <td>Datei:</td>
- <td>{{error.Filename}}</td>
- </tr>
- <tr>
- <td>Stand:</td>
- <td>{{error.Modified}}</td>
- </tr>
- <tr>
- <td>Benutzer:</td>
- <td>{{error.User}}</td>
- </tr>
- <tr>
- <td>Bericht:</td>
- <td>{{error.Report}} (Schicht {{error.Layer}})</td>
- </tr>
- <tr class="strich">
- <td>Empfänger:</td>
- <td><div ng-bind-html="mailFormat(error.MailTo)"></div></td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <table class="table table-hover table-bordered">
- <tr ng-repeat="(header, g) in current.fehler.weitere">
- <th>{{header}}</th>
- <td>
- <ul>
- <li ng-repeat="e in g">
- {{e.Name}}
- </li>
- </ul>
- </td>
- </tr>
- </table>
- </div>
- </div>
- </div>
- </div>
- <div class="modal fade" id="stats-modal" tabindex="-1" role="dialog" aria-labelledby="stats-modal-label" aria-hidden="true">
- <div class="modal-dialog modal-lg">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
- <h4 class="modal-title" id="stats-modal-label"><span class="glyphicon glyphicon-stats"></span> {{current.zeile.kunde}} - {{dateFormat(current.zeile.datum)}}</h4>
- </div>
- <div class="modal-body">
- <div id="duration" style="width: 750px; height: 550px">
- </div>
- <br/><br/>
- <table class="table table-bordered table-striped">
- <tr>
- <th>Name</th>
- <th>Datum</th>
- <th>Zeit</th>
- <th>Dauer</th>
- <th>Quellen</th>
- <th>Kategorien</th>
- <th>Datensätze</th>
- </tr>
- <tr ng-repeat="e in current.fehler.fehlerbericht" ng-show="e.Summary.Duration != null">
- <td>{{e.Type}}: <a href="" ng-click="showDetails(e)">{{e.Name}}</a></td>
- <td>{{dateFormat(e.Modified)}}</td>
- <td>{{timeFormat(e.Modified)}}</td>
- <td>{{e.Summary.Duration}}</td>
- <td>{{e.Sources.length}}</td>
- <td>{{e.Summary.Categories}}</td>
- <td>{{e.Summary.Entities}}</td>
- </tr>
- </table>
- <div ng-show="current.details!=null">
- <h3>Details zu {{current.details.Type}}: {{current.details.Name}}</h3>
- <div id="duration_details" style="width: 750px; height: 550px">
- </div>
- <br/><br/>
- <table class="table table-bordered table-striped">
- <tr>
- <th>Name</th>
- <th ng-show="current.details.Type!='Modell'">Report</th>
- <th ng-show="current.details.Type=='Modell'">Datensätze</th>
- <th>Dauer</th>
- </tr>
- <tr ng-repeat="e in current.details.Sources">
- <td>{{e.Filename}}</td>
- <td ng-show="current.details.Type!='Modell'">{{e.Report}} ({{e.Layer}})</td>
- <td ng-show="current.details.Type=='Modell'">{{e.Entities}}</td>
- <td>{{e.Duration}}</td>
- </tr>
- </table>
- </div>
- </div>
- </div>
- </div>
- </div>
- <style>
- .table tbody tr td {
- vertical-align: middle;
- }
- .label-0 {
- background-color: #aaaaaa;
- }
- .label-1 {
- background-color: #bbbb00;
- }
- .label-2 {
- background-color: #bb8800;
- }
- .label-3 {
- background-color: #bb0000;
- }
- table.ft {
- border: 1px solid #888;
- }
- table.ft td {
- padding: 3px 5px;
- margin: 2px;
- background-color: #ddd;
- }
- .logdatei {
- margin: 10px 5px 20px 5px;
- padding: 0 20px 10px 20px;
- background-color: #eee;
- border: 1px solid #888;
- }
- .modell {
- font-weight: bold;
- background-color: #ccc;
- padding: 10px;
- margin: 0 -20px;
- }
- .rot {
- background-color: #e88;
- }
- .number {
- font-weight: bold;
- background-color: #ccc;
- border: 1px solid #888888;
- }
- .strich {
- border-bottom: 1px solid #888888;
- }
- </style>
|