Procházet zdrojové kódy

Neue System-Namen übernommen

gc-server3 před 11 měsíci
rodič
revize
0e44269bdf
2 změnil soubory, kde provedl 40 přidání a 12 odebrání
  1. 39 11
      app/scripts/controllers/overview.js
  2. 1 1
      app/views/overview.html

+ 39 - 11
app/scripts/controllers/overview.js

@@ -52,17 +52,34 @@ angular.module('fehlerberichtApp')
             },
             'system': [
                 '?',
-                'Autosys',
-                'Autosys-Light',
-                'CarIT-Audev',
-                'EDS',
-                'Filaks',
-                'GlobalCube',
-                'Locosoft',
-                'Navision',
-                'Optima',
-                'Optima-Light'
+				'ARI',
+                'AUDEV',
+				'AUTOLINE',
+				'CARLO',
+				'HS',
+				'LOCOSOFT',
+				'NAVISION',
+				'OPTIMA',
+				'WERWISO',
+				'Autosys',
+				'Filaks',
+				'O21-Light'
             ],
+			'sys': {
+                '?': '?',
+				'ARI': 'AI',
+                'AUDEV_CARIT': 'AC',
+				'AUTOLINE': 'AL',
+				'CARLO': 'C',
+				'HS': 'HS',
+				'LOCOSOFT': 'LO',
+				'NAVISION': 'NV',
+				'OPTIMA': 'O',
+				'WERWISO': 'W',
+				'Autosys': 'AS',
+				'Filaks': 'F',
+				'Optima-Light': 'OL'
+            },
             'datum': {},
             'kunde': {},
           'status': [
@@ -296,9 +313,20 @@ angular.module('fehlerberichtApp')
             if (e === null) {
                 return '0';
             }
-            if (e.Errors.length === 0 || e.Errors.length === 1 && e.Errors[0] === '') {
+            if (e.LastChangedDays > 0) {
                 return $scope.daysCount(e);
             }
+			if (e.Errors.length === 0) {
+				if(e.Sources.length === 0) {
+					return "Transformer-Protokollierung unvollständig";
+				}
+				else if (e.Summary === null) {
+					return "Cube nicht erstellt, Protokoll fehlerhaft";
+				}
+			} 
+			if (e.Errors.length === 1 && e.Type === "Modell" && e.Errors[0].Message !== null && e.Errors[0].Message.indexOf("has been deployed") > 0) {
+				return "Transformer-Protokollierung im falschen Format (englisch)";
+			}
             var type = 'Info';
             if (e.ErrorLevel < 3) {
                 type = 'Fehler';

+ 1 - 1
app/views/overview.html

@@ -120,7 +120,7 @@
                     data-datum="{{zeile[7].datum}}">{{getCount(zeile[7].anzahl)}}</button>
             <button type="button" class="btn btn-default label2 label-{{getCount2(zeile[6].anzahl)}}" data-toggle="modal" data-target="#fehler-modal"
                     ng-click="setCurrent(zeile[6])" data-placement="bottom" data-popover="{{zeile[6].status}}" data-kunde="{{zeile[6].kunde}}"
-                    data-datum="{{zeile[0].datum}}">{{getCount(zeile[6].anzahl)}}</button>
+                    data-datum="{{zeile[6].datum}}">{{getCount(zeile[6].anzahl)}}</button>
             <button type="button" class="btn btn-default label2 label-{{getCount2(zeile[5].anzahl)}}" data-toggle="modal" data-target="#fehler-modal"
                     ng-click="setCurrent(zeile[5])" data-placement="bottom" data-popover="{{zeile[5].status}}" data-kunde="{{zeile[5].kunde}}"
                     data-datum="{{zeile[5].datum}}">{{getCount(zeile[5].anzahl)}}</button>