1app.controller('etkinlikTakvimiController', ['$scope', '$location', 'pageService', 'tools', 'contextInfo', 2 function ($scope, $location, pageService, tools, contextInfo) { 3 4 pageService.setParameters($scope.siteInfo.ID, $scope.siteInfo.LangCode); 5 6 pageService.getPageInfo($location.url(), false) 7 .then(function (info) { 8 $scope.info = info; 9 tools.scrollToTop(); 10 }); 11 12 13 var context = contextInfo.getContext(); 14 15 16 var params = { 17 siteID: $scope.siteInfo.ID, 18 langCode: $scope.siteInfo.LangCode 19 } 20 21 var getSearchFilter = function () { 22 var startDate=new Date(); 23 startDate.setFullYear(startDate.getFullYear()-1); 24 25 return [ 26 ["SiteID", params.siteID], "and", 27 ["DilKodu", params.langCode], "and", 28 ["Durum", 1], "and", 29 ["BaslangicTarihi", ">=", startDate] 30 ]; 31 }; 32 33 $scope.dsEtkinlikler = new DevExpress.data.DataSource({ 34 store: context.Etkinlikler, 35 paginate: false, 36 map: function (item) { 37 return { 38 text: item.Baslik, 39 description: item.AltBaslik, 40 startDate: item.BaslangicTarihi, 41 endDate: item.BitisTarihi, 42 allDay: false//BAKALIM 43 }; 44 45 } 46 47 }); 48 49 $scope.data = null; 50 $scope.dsEtkinlikler.filter(getSearchFilter()); 51 $scope.dsEtkinlikler.load() 52 .done(function (data) { 53 $scope.data = data; 54 }); 55 56 $scope.schedulerOptions = { 57 58 views: ["week", "month", "agenda"], 59 currentView: "month", 60 startDayHour: 8, 61 currentDate: new Date(), 62 height: 600, 63 firstDayOfWeek: 1, 64 endDayHour: 20, 65 showAllDayPanel: true, 66 crossScrollingEnabled: true, 67 //useDropDownViewSwitcher: true, 68 editing: { 69 allowAdding: false, 70 allowDeleting: false, 71 allowDragging: false, 72 allowUpdating: false, 73 allowResizing: false 74 }, 75 bindingOptions: { 76 dataSource: "data" 77 } 78 }; 79 80}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.