1app.controller('tescilliKebapcilarController', ['$scope', '$location', 'pageService', 'contextInfo', 'tools', 2 function ($scope, $location, pageService, contextInfo, tools) { 3 4 5 pageService.setParameters($scope.siteInfo.ID, $scope.siteInfo.LangCode); 6 7 pageService.getPageInfo($location.url(), false) 8 .then(function (info) { 9 $scope.info = info; 10 tools.scrollToTop(); 11 }); 12 13 14 var context = contextInfo.getContext(); 15 16 17 18 var belgeTipleri=[ 19 20 {id:1, ad:"Adana Kebabı"}, 21 {id:2, ad:"Adana Åalgamı"}, 22 {id:3, ad:"Adana TaÅ Kadayıfı"}, 23 {id:4, ad:"Adana KarakuÅ Tatlısı"}, 24 {id:5, ad:"Adana Åırdan"}, 25 {id:6, ad:"Adana İçli Köfte"}, 26 {id:7, ad:"Adana Halka Tatlısı"}, 27 {id:8, ad:"Adana Analı Kızlı"}, 28 {id:9, ad:"Adana Bici Bici"}, 29 {id:10, ad:"Adana AÅlama"}, 30 31 ]; 32 33 var instanceBelgeTipi = null; 34 35 36 var dsTescilliKebapcilar = new DevExpress.data.DataSource({ 37 store: context.TescilliKebapcilar, 38 paginate: true, 39 filter: ["Durum", 1] 40 }); 41 42 var instanceDataGrid = null; 43 44 $scope.dataGridOptions = { 45 dataSource: dsTescilliKebapcilar, 46 47 loadPanel: { 48 text: "Yükleniyor..." 49 }, 50 filterPanel: { visible: false }, 51 headerFilter: { visible: false }, 52 filterRow: { visible: false }, 53 pager: { 54 allowedPageSizes: [15, 30, 50, 100], 55 showInfo: true, 56 showNavigationButtons: true, 57 showPageSizeSelector: true, 58 visible: "auto" 59 }, 60 paging: { 61 enabled: true, 62 pageIndex: 0, 63 pageSize: 15 64 }, 65 scrolling: { 66 mode: "standard", 67 preloadEnabled: false, 68 scrollByContent: true, 69 scrollByThumb: false, 70 showScrollbar: "always", 71 useNative: false 72 }, 73 selection: { 74 mode: "single" 75 }, 76 width: "100%", 77 //hoverStateEnabled: true, 78 focusedRowEnabled: false, 79 showColumnLines: true, 80 showRowLines: true, 81 showBorders: true, 82 rowAlternationEnabled: true, 83 // bindingOptions: { 84 // "editing.form": "options.dataGridEditForm", 85 // }, 86 editing: { 87 allowAdding: false, 88 allowUpdating: false, 89 allowDeleting: false, 90 }, 91 twoWayBindingEnabled: true, 92 searchPanel: { 93 highlightCaseSensitive: false, 94 highlightSearchText: true, 95 placeholder: "Ara...", 96 searchVisibleColumnsOnly: true, 97 text: "", 98 visible: true 99 }, 100 columnAutoWidth: true, 101 noDataText: "Kayıt Bulunamadı...", 102 wordWrapEnabled: true, 103 export: { 104 enabled: true, 105 fileName: "Tescilli Kebapcilar" 106 }, 107 columnHidingEnabled: true, 108 columns: [ 109 { dataField: "ID", visible: false, dataType: "number" }, 110 111 { dataField: "BelgeNo", caption: "Belge No", dataType: "number", width: 70, allowHiding: false }, 112 113 { dataField: "Il", caption: "İl", dataType: "string", width: "auto", allowHiding: false }, 114 { dataField: "Unvan", caption: "Unvan", dataType: "string", allowHiding: false }, 115 { dataField: "Adres", caption: "Adres", dataType: "string" }, 116 { dataField: "Telefon", caption: "Telefon", dataType: "string", width: 110 }, 117 118 ], 119 onInitialized: function (e) { 120 instanceDataGrid = e.component; 121 }, 122 onEditorPreparing: function (e) { 123 124 }, 125 onRowPrepared: function (e) { 126 127 }, 128 onToolbarPreparing: function (e) { 129 var toolbarItems = e.toolbarOptions.items; 130 131 132 toolbarItems.push({ 133 text: "CoÄrafi İÅaret:", 134 location: "before" 135 }); 136 137 toolbarItems.push({ 138 widget: "dxSelectBox", 139 options: { 140 items: belgeTipleri, 141 valueExpr: "id", 142 displayExpr: "ad", 143 placeholder: "CoÄrafi İÅaret Seç...", 144 width: 200, 145 value:belgeTipleri[0].id, 146 showDropDownButton: true, 147 onInitialized: function (e) { 148 instanceBelgeTipi = e.component; 149 }, 150 onSelectionChanged: function (e) { 151 152 var id = e.selectedItem.id; 153 154 dsTescilliKebapcilar.filter([["BelgeTipi", id], "and", ["Durum", 1]]); 155 instanceDataGrid.refresh();
156 157 } 158 159 }, 160 location: "before" 161 }); 162 163 toolbarItems.push({ 164 widget: "dxButton", 165 options: { 166 icon: "refresh", 167 text: "", 168 onClick: function (e) { 169 instanceDataGrid.refresh(); 170 } 171 }, 172 location: "before" 173 }); 174 } 175 176 }; 177 178 179}]);
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.