You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pkguid.controller.js 989B

12345678910111213141516171819202122232425262728293031
  1. angular.module('app')
  2. .controller('PkGuidController', ['$scope', 'pkGuidBusiness', 'AppUtilsBusiness',
  3. function($scope, pkGuidBusiness, AppUtilsBusiness) {
  4. $scope.selected = [];
  5. $scope.query = {
  6. order: 'someText',
  7. limit: 5,
  8. page: 1
  9. };
  10. $scope.pkGuids = null;
  11. $scope.error = null;
  12. $scope.getPkGuids = function()
  13. {
  14. $scope.error = null;
  15. var orderBy = AppUtilsBusiness.convertOrderBy($scope.query.order);
  16. $scope.promise = pkGuidBusiness.getMultiple(orderBy, $scope.query.page - 1, $scope.query.limit).then(function(data)
  17. {
  18. $scope.pkGuids = data;
  19. }, function(error)
  20. {
  21. $scope.pkGuids = null;
  22. $scope.error = error;
  23. });
  24. };
  25. $scope.getPkGuids();
  26. }]);