gc-server3 10 сар өмнө
parent
commit
d9ff9a0c7a

+ 5 - 0
app/scripts/controllers/customers.js

@@ -70,6 +70,7 @@ angular.module('fehlerberichtApp')
         };
 
         $scope.kunden = [];
+        $scope.aworkKunden = [];
 
         $scope.current = {
             'zeile' : {},
@@ -91,6 +92,10 @@ angular.module('fehlerberichtApp')
             $http.get(webservice + 'a=kunden').success(function (data) {
                 $scope.kunden = data;
             });
+
+            $http.get(webservice + 'a=awork_projekte').success(function (data) {
+                $scope.aworkKunden = data.kunden;
+            });
         };
 
         $scope.refresh();

+ 3 - 0
app/views/customers.html

@@ -8,6 +8,7 @@
         <th style="width: 230px;">Kunde</th>
         <th style="width: 130px;">Aktiv</th>
         <th style="width: 180px;">System</th>
+        <th style="width: 200px;">Awork-Link</th>
         <th style="width: 140px;">Start</th>
         <th style="width: 140px;">Ende</th>
         <th style="width: 190px;">Erster Bericht</th>
@@ -42,6 +43,7 @@
         <td></td>
         <td></td>
         <td></td>
+        <td></td>
         <td>
             <div class="dropdown">
                 <a class="btn dropdown-toggle" role="button" data-toggle="dropdown">{{Filter.woche||'alle'}}&nbsp;<b class="caret"></b></a>
@@ -76,6 +78,7 @@
                 <select class="form-control" ng-model="zeile.system" ng-options="v for v in domain.system"></select>
             </div>
         </td>
+        <td><select class="form-control" ng-model="zeile.awork_company_id" ng-options="k.awork_company_id as k.kunde_name for k in aworkKunden"></select></td>
         <td><input class="form-control" type="time" ng-model="zeile.start_soll"/></td>
         <td><input class="form-control" type="time" ng-model="zeile.ende_soll"/></td>
         <td><input class="form-control" type="date" ng-model="zeile.erster_status"/></td>