torsten@13: Ext.define('Lada.model.Probe', { torsten@13: extend: 'Ext.data.Model', torsten@21: fields: [ torsten@21: {name: "baId"}, torsten@21: {name: "datenbasisId"}, torsten@21: {name: "erzeugerId"}, torsten@21: {name: "hauptprobenNr"}, torsten@21: {name: "letzteAenderung"}, torsten@21: {name: "media"}, torsten@21: {name: "mediaDesk"}, torsten@21: {name: "mittelungsdauer"}, torsten@21: {name: "mpKat"}, torsten@21: {name: "mplId"}, torsten@21: {name: "mprId"}, torsten@21: {name: "mstId"}, torsten@21: {name: "netzbetreiberId"}, torsten@21: {name: "probeId"}, torsten@21: {name: "probeNehmerId"}, torsten@21: {name: "probeentnahmeBeginn", type: 'date', convert: ts2date}, torsten@21: {name: "probeentnahmeEnde", type: 'date', convert: ts2date}, torsten@21: {name: "probenartId"}, torsten@21: {name: "solldatumBeginn", type: 'date', convert: ts2date}, torsten@21: {name: "solldatumEnde", type: 'date', convert: ts2date}, torsten@21: {name: "test"}, torsten@21: {name: "umwId"} torsten@21: ] torsten@13: }); torsten@21: torsten@21: function ts2date(v, record){ torsten@21: // Converts a timestamp into a date object. torsten@21: return new Date(v); torsten@21: }