[Lada-commits] [PATCH] Issue50: Added sorting on the most stores
Wald Commits
scm-commit at wald.intevation.org
Thu Jul 25 15:40:25 CEST 2013
# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1374759555 -7200
# Node ID 70a1b59629300af900c5c06d76d31f0525e07755
# Parent d19ad9d28de5117451d5d4231a90741447c25377
Issue50: Added sorting on the most stores.
diff -r d19ad9d28de5 -r 70a1b5962930 app/store/Messeinheit.js
--- a/app/store/Messeinheit.js Thu Jul 25 14:26:06 2013 +0200
+++ b/app/store/Messeinheit.js Thu Jul 25 15:39:15 2013 +0200
@@ -1,6 +1,16 @@
Ext.define('Lada.store.Messeinheit', {
extend: 'Ext.data.Store',
fields: ['mehId', 'einheit'],
+ sorters: [{
+ property: 'einheit',
+ transform: function(val) {
+ if (val) {
+ return val.toLowerCase();
+ } else {
+ return "";
+ };
+ }
+ }],
autoLoad: true,
proxy: {
type: 'ajax',
diff -r d19ad9d28de5 -r 70a1b5962930 app/store/Messgroessen.js
--- a/app/store/Messgroessen.js Thu Jul 25 14:26:06 2013 +0200
+++ b/app/store/Messgroessen.js Thu Jul 25 15:39:15 2013 +0200
@@ -1,6 +1,16 @@
Ext.define('Lada.store.Messgroessen', {
extend: 'Ext.data.Store',
fields: ['messgroesseId', 'messgro0esse'],
+ sorters: [{
+ property: 'messgro0esse',
+ transform: function(val) {
+ if (val) {
+ return val.toLowerCase();
+ } else {
+ return "";
+ };
+ }
+ }],
autoLoad: true,
proxy: {
type: 'ajax',
diff -r d19ad9d28de5 -r 70a1b5962930 app/store/Ortedetails.js
--- a/app/store/Ortedetails.js Thu Jul 25 14:26:06 2013 +0200
+++ b/app/store/Ortedetails.js Thu Jul 25 15:39:15 2013 +0200
@@ -1,5 +1,8 @@
Ext.define('Lada.store.Ortedetails', {
extend: 'Ext.data.Store',
model: 'Lada.model.Ortdetail',
+ sorters: [{
+ property: 'bezeichnung',
+ }],
autoLoad: true
});
diff -r d19ad9d28de5 -r 70a1b5962930 app/store/Probenzusatzwerte.js
--- a/app/store/Probenzusatzwerte.js Thu Jul 25 14:26:06 2013 +0200
+++ b/app/store/Probenzusatzwerte.js Thu Jul 25 15:39:15 2013 +0200
@@ -1,4 +1,7 @@
Ext.define('Lada.store.Probenzusatzwerte', {
extend: 'Ext.data.Store',
+ sorters: [{
+ property: 'beschreibung',
+ }],
model: 'Lada.model.Probenzusatzwert'
});
diff -r d19ad9d28de5 -r 70a1b5962930 app/store/Staaten.js
--- a/app/store/Staaten.js Thu Jul 25 14:26:06 2013 +0200
+++ b/app/store/Staaten.js Thu Jul 25 15:39:15 2013 +0200
@@ -1,5 +1,8 @@
Ext.define('Lada.store.Staaten', {
extend: 'Ext.data.Store',
+ sorters: [{
+ property: 'staat',
+ }],
model: 'Lada.model.Staat',
autoLoad: true,
proxy: {
diff -r d19ad9d28de5 -r 70a1b5962930 app/store/Verwaltungseinheiten.js
--- a/app/store/Verwaltungseinheiten.js Thu Jul 25 14:26:06 2013 +0200
+++ b/app/store/Verwaltungseinheiten.js Thu Jul 25 15:39:15 2013 +0200
@@ -1,6 +1,9 @@
Ext.define('Lada.store.Verwaltungseinheiten', {
extend: 'Ext.data.Store',
fields: ['gemId', 'bezeichnung'],
+ sorters: [{
+ property: 'bezeichnung',
+ }],
autoLoad: true,
proxy: {
type: 'ajax',
diff -r d19ad9d28de5 -r 70a1b5962930 app/view/widgets/Datenbasis.js
--- a/app/view/widgets/Datenbasis.js Thu Jul 25 14:26:06 2013 +0200
+++ b/app/view/widgets/Datenbasis.js Thu Jul 25 15:39:15 2013 +0200
@@ -1,6 +1,9 @@
// Combobox for Datenbasis
var datenbasisStore = Ext.create('Ext.data.Store', {
fields: ['datenbasisId', 'beschreibung', 'datenbasis'],
+ sorters: [{
+ property: 'datenbasis',
+ }],
proxy: {
type: 'ajax',
api: {
diff -r d19ad9d28de5 -r 70a1b5962930 app/view/widgets/Messmethode.js
--- a/app/view/widgets/Messmethode.js Thu Jul 25 14:26:06 2013 +0200
+++ b/app/view/widgets/Messmethode.js Thu Jul 25 15:39:15 2013 +0200
@@ -1,6 +1,9 @@
// Combobox for Messmethode
var mmtStore = Ext.create('Ext.data.Store', {
fields: ['mmtId', 'messmethhode'],
+ sorters: [{
+ property: 'mmtId',
+ }],
proxy: {
type: 'ajax',
api: {
diff -r d19ad9d28de5 -r 70a1b5962930 app/view/widgets/Mst.js
--- a/app/view/widgets/Mst.js Thu Jul 25 14:26:06 2013 +0200
+++ b/app/view/widgets/Mst.js Thu Jul 25 15:39:15 2013 +0200
@@ -1,6 +1,9 @@
// Combobox for Messtelle
var mstStore = Ext.create('Ext.data.Store', {
- fields: ['mstId'],
+ fields: ['mstId', 'messStelle'],
+ sorters: [{
+ property: 'messStelle',
+ }],
proxy: {
type: 'ajax',
api: {
@@ -17,7 +20,7 @@
extend: 'Ext.form.ComboBox',
alias: 'widget.mst',
store: mstStore,
- displayField:'mstId',
+ displayField:'messStelle',
valueField: 'mstId',
typeAhead: true,
emptyText:'Wählen Sie eine Messstelle',
diff -r d19ad9d28de5 -r 70a1b5962930 app/view/widgets/Netzbetreiber.js
--- a/app/view/widgets/Netzbetreiber.js Thu Jul 25 14:26:06 2013 +0200
+++ b/app/view/widgets/Netzbetreiber.js Thu Jul 25 15:39:15 2013 +0200
@@ -1,6 +1,9 @@
// Combobox for Netzbetreiber
var netzbetreiberStore = Ext.create('Ext.data.Store', {
fields: ['netzbetreiberId', 'netzbetreiber'],
+ sorters: [{
+ property: 'netzbetreiber',
+ }],
proxy: {
type: 'ajax',
api: {
diff -r d19ad9d28de5 -r 70a1b5962930 app/view/widgets/Ortdetail.js
--- a/app/view/widgets/Ortdetail.js Thu Jul 25 14:26:06 2013 +0200
+++ b/app/view/widgets/Ortdetail.js Thu Jul 25 15:39:15 2013 +0200
@@ -3,7 +3,7 @@
extend: 'Ext.form.ComboBox',
alias: 'widget.ortdetail',
store: 'Ortedetails',
- displayField: 'beschreibung',
+ displayField: 'bezeichnung',
valueField: 'ortId',
emptyText:'Wählen Sie einen Ort',
initComponent: function() {
diff -r d19ad9d28de5 -r 70a1b5962930 app/view/widgets/Uwb.js
--- a/app/view/widgets/Uwb.js Thu Jul 25 14:26:06 2013 +0200
+++ b/app/view/widgets/Uwb.js Thu Jul 25 15:39:15 2013 +0200
@@ -1,6 +1,9 @@
// Combobox for Umweltbereich
var uwbStore = Ext.create('Ext.data.Store', {
fields: ['umwId'],
+ sorters: [{
+ property: 'umwId',
+ }],
proxy: {
type: 'ajax',
api: {
More information about the Lada-commits
mailing list