torsten@279: /** torsten@279: * A Probe. torsten@279: * This class represents and defines the model of a "Probe" torsten@279: * */ torsten@13: Ext.define('Lada.model.Probe', { torsten@13: extend: 'Ext.data.Model', torsten@304: requires: ['Lada.lib.Helpers'], torsten@21: fields: [ torsten@50: {name: "probeId"}, torsten@21: {name: "baId"}, torsten@21: {name: "datenbasisId"}, torsten@21: {name: "erzeugerId"}, torsten@21: {name: "hauptprobenNr"}, torsten@99: {name: "messmethode"}, torsten@99: {name: "nebenprobenNr"}, torsten@304: {name: "letzteAenderung", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()}, 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: "probeNehmerId"}, torsten@304: {name: "probeentnahmeBeginn", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()}, torsten@304: {name: "probeentnahmeEnde", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()}, torsten@21: {name: "probenartId"}, torsten@304: {name: "solldatumBeginn", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()}, torsten@304: {name: "solldatumEnde", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()}, torsten@21: {name: "test"}, torsten@187: {name: "umwId"}, torsten@187: torsten@187: // Readonly-Flag (sent additionaly by the server, not part of the torsten@187: // model) torsten@187: {name: "readonly"} torsten@50: ], torsten@134: idProperty: "probeId", torsten@50: proxy: { torsten@50: type: 'rest', torsten@50: appendId: true, //default torsten@50: url: 'server/rest/proben', torsten@50: reader: { torsten@77: type: 'json', torsten@77: root: 'data' torsten@50: } torsten@50: } torsten@13: });