services

dashboardService: verwendet: security,appPath – $q , $http, $resource

  • query(params) => +/api/RDashboardApi/action/paramsPOSTisArray:false
  • get(id) => + /api/ + id
  • identityResolve(params)
  • getRoleReports(params)

fisService: verwendet: security appPath

  • Get(id) => appPath + ‚/api/fis/saveprofil‘
  • Save(parameter) appPath + ‚/api/fis/saveprofil‘
  • executeReport(parameter) appPath + ‚/api/fis/executereport‘
  • executeReportAndSave(parameter) appPath + ‚/api/fis/executereportandsave‘
  • getReportProfil(parameter)
  • resetDashboardProfil(parameter)
  • isSingleReport()
  • hasReports()
  • storeReport(report)
  • clearReport()
  • getReport()
  • add2Reports(key,report)
  • clearReports()
  • getReports()
  • setReportsAlertIdx(idx)
  • getReportsAlertIdx()
  • nightrunner(parameter)
  • setAutoload(value)
  • getAutoload()

layoutService : verwendet appPath

  • getJsonFile(filename)

chartOptionsService: verwendet reportBaseService

  • getChartOptionsTestDelayed()
  • getChartOptionsTestDirect()
  • getChartOptions() => return reportBaseService.getChartOptions()

chartTypeService

  • getCharType(scope,chartType) entweder column oder pie

rdokumentDashboardService

  • percentToRed(value)
  • percentToGreen(value)

rdokumentCtrlService

  • query()
  • get(id)
  • fisExportUnload()
  • fisExportZip()

rdokumentService

  • query()
  • queryFilter(param)
  • add(row)
  • update(row)
  • get(id)
  • getAction(action,id)
  • queryAction(action,id)
  • delete(id)
  • querynav(action)
  • action(action,id)

fileUploadService

  • fileUploadService(filename,data)

 

Routes

/dashboardOld/:action    

  • controller: „dashboardListCtrl“,
  • templateUrl: appPath + „/templates/dashboard.tpl.html“,
  • resolve: securityAuthorizationProvider.requireAuthenticatedUser

/dashboardKeep/:action

  • controller: „dashboardList2Ctrl“,
  • templateUrl: appPath + „/app/partials/viewDashboard02.tpl.html“,
  • resolve: securityAuthorizationProvider.requireAuthenticatedUser

/dashboard/:action

  • controller: „dashboardList3Ctrl“,
  • templateUrl: appPath + „/app/partials/viewDashboard03.tpl.html“,
  • resolve: securityAuthorizationProvider.requireAuthenticatedUser

/dashboard

  • redirectTo: „/dashboard/default“

/document/:id

/fis/actionDrilldownChart

  • controller: „fisActionDrilldownChartCtrl“
  • /templates/fis.drilldownchart.tpl.html
  • Resove: chartOptionsService.getChartOptions()

/fis/actionDrilldownChart/detail/:report

  • controller: „fisActionDrilldownChartCtrl“,
  • templateUrl: appPath + „/templates/fis.drilldownchart.tpl.html“,
  • resolve: securityAuthorizationProvider.requireAuthenticatedUser

/user/rdokument/dashboard

  • controller: „rdokumentListCtrl“,
  • templateUrl: appPath + „/templates/rdokument.filtered.tpl.html“,
  • resolve: securityAuthorizationProvider.requireAuthenticatedUser

/user/rdokument/user

  • controller: „rdokumentListCtrl“,
  • templateUrl: appPath + „/templates/rdokument.filtered.tpl.html“,
  • resolve: securityAuthorizationProvider.requireAuthenticatedUser

/user/rdokument/admin

  • controller: „rdokumentListCtrl“,
  • templateUrl: appPath + „/templates/rdokumentDash.tpl.html“,
  • resolve: securityAuthorizationProvider.requireAuthenticatedUser

 

/user/rdokument/delete

  • controller: „rdokumentDeleteCtrl“,
  • templateUrl: appPath + „/templates/rdokument.tpl.html“,
  • resolve: securityAuthorizationProvider.requireAuthenticatedUser

 

 

routing ngRoute

<p class=„well“> <a href=„#/“>Start</a> | <a href=„#/about“>Über</a> </p>
<div ng-view></div>

ng-view ist dabei er Container für alle Unterseiten.

.config(function($routeProvider) {
$routeProvider
.when(‚/‘, { templateUrl: ‚articles.html‘ })
.when(‚/about‘, { template: ‚Über unsere Pizzeria‘ })
.otherwise({ redirectTo: ‚/‘ });
})

 

Factory module (Service)

angular.module('tutorialApp', []) 
.factory('Cart', function() { 
    var items = []; 
    return { getItems: function() { 
          return items; 
          }, 
          addArticle: function(article) { 
          items.push(article); 
          }, 
          sum: function() { 
                 return items.reduce(function(total, article) { return total + article.price; }, 0); } }; })

Dann dem $scope zuweisen:
.controller('ArticlesCtrl', function($scope, $http, Cart){ $scope.cart = Cart;
//... usw

Dann im doom verwenden:
<td><a href  ng-click="cart.addArticle(article);" >Hinzufügen</a></td>