# HG changeset patch # User Torsten Irländer # Date 1367923850 -7200 # Node ID a05625ae08b1a2767ab34e2df54067935914d6ba # Parent 9e1a40312bbe192c798bd29862fc49f9937c697e Added more fields to the Edit-Dialog. diff -r 9e1a40312bbe -r a05625ae08b1 app/view/proben/Edit.js --- a/app/view/proben/Edit.js Mon May 06 16:41:39 2013 +0200 +++ b/app/view/proben/Edit.js Tue May 07 12:50:50 2013 +0200 @@ -3,23 +3,346 @@ alias: 'widget.probenedit', title: 'Maske für §3-Proben', + width: 800, layout: 'fit', autoShow: true, initComponent: function() { this.items = [ { + //Define the form xtype: 'form', items: [ + // Probenangaben { - xtype: 'textfield', - name : 'probeId', - fieldLabel: 'ID' + xtype: 'fieldset', + title: 'Probenangaben', + defaults: { + labelWidth: 150 + }, + items: [ + { + xtype: 'textfield', + name: 'x1', + fieldLabel: 'Messstelle' + }, + { + xtype: 'textfield', + name: 'x2', + fieldLabel: 'Hauptprobennr.' + }, + { + xtype: 'textfield', + name: 'x3', + fieldLabel: 'Probe-ID' + }, + { + xtype: 'fieldset', + title: 'Erweiterte Probenangaben', + collapsible: true, + collapsed: true, + items: [ + { + xtype: 'textfield', + name: 'x4', + fieldLabel: 'Datebasis' + }, + { + xtype: 'textfield', + name: 'x5', + fieldLabel: 'RB/IB' + }, + { + xtype: 'textfield', + name: 'x6', + fieldLabel: 'Testdatensatz' + }, + { + xtype: 'textfield', + name: 'x7', + fieldLabel: 'Probenart' + }, + { + xtype: 'textfield', + name: 'x8', + fieldLabel: 'Phase' + }, + { + xtype: 'textfield', + name: 'x9', + fieldLabel: 'Szenario' + }, + { + xtype: 'textfield', + name: 'x10', + fieldLabel: 'Probennehmer' + }, + { + xtype: 'textfield', + name: 'x11', + fieldLabel: 'Datensatzerzeuger' + } + ] + } + ] }, + // Medium { - xtype: 'textfield', - name : 'datenbasisId', - fieldLabel: 'Datenbasis' + xtype: 'fieldset', + title: 'Medium', + defaults: { + labelWidth: 150 + }, + items: [ + { + xtype: 'textfield', + name: 'x12', + fieldLabel: 'Umweltbereich' + }, + { + xtype: 'textfield', + name: 'x13', + fieldLabel: 'Medienbezeichnung' + }, + { + xtype: 'textfield', + name: 'x14', + fieldLabel: 'Deskriptoren' + }, + { + xtype: 'fieldset', + title: 'Details Deskriptoren', + collapsible: true, + collapsed: true, + defaultType: 'textfield', + items: this.buildDescriptors() + } + ] + }, + // Zeit + { + xtype: 'fieldset', + title: 'Zeit', + defaultType: 'datefield', + defaults: { + labelWidth: 150 + }, + items: [ + { + fieldLabel: 'Probennahme Beginn', + name: 'z1' + }, + { + fieldLabel: 'Probennahme Ende', + name: 'z2' + }, + { + fieldLabel: 'Sollzeit Von', + name: 'z3' + }, + { + fieldLabel: 'Sollzeit Bis', + name: 'z4' + }, + { + fieldLabel: 'Ursprungszeit', + name: 'z5' + } + ] + }, + // Ortsangaben + { + xtype: 'fieldset', + title: 'Ortsangaben', + padding: '10 10', + items: [ + { + xtype: 'grid', + dockedItems: [ + { + xtype: 'toolbar', + dock: 'top', + items: [ + { + text: 'Hinzufügen', + icon: 'gfx/plus.gif' + }, + { + text: 'Löschen', + icon: 'gfx/minus.gif' + } + ] + } + ], + columns: [ + { + text: 'Typ' + }, + { + text: 'Staat' + }, + { + text: 'Gem-ID' + }, + { + text: 'Gemeindebezeichnung', + flex: 1 + }, + { + text: 'Messpunkt', + flex: 1 + } + ] + } + ] + }, + // Probenzusatzwerte + { + xtype: 'fieldset', + title: 'Probenzusatzwerte', + collapsible: true, + collapsed: true, + padding: '10 10', + items: [ + { + xtype: 'grid', + dockedItems: [ + { + xtype: 'toolbar', + dock: 'top', + items: [ + { + text: 'Hinzufügen', + icon: 'gfx/plus.gif' + }, + { + text: 'Löschen', + icon: 'gfx/minus.gif' + } + ] + } + ], + columns: [ + { + text: 'PZW-ID' + }, + { + text: 'PZW-Größe' + }, + { + text: '< NWG' + }, + { + text: '< PZW' + }, + { + text: 'rel. Unsich.[%]' + }, + { + text: 'Maßeinheit', + flex: 1 + } + ] + } + ] + }, + // Probenkommentar + { + xtype: 'fieldset', + title: 'Probenkommentare', + collapsible: true, + collapsed: true, + padding: '10 10', + items: [ + { + xtype: 'grid', + dockedItems: [ + { + xtype: 'toolbar', + dock: 'top', + items: [ + { + text: 'Hinzufügen', + icon: 'gfx/plus.gif' + }, + { + text: 'Löschen', + icon: 'gfx/minus.gif' + } + ] + } + ], + columns: [ + { + text: 'Erzeuger' + }, + { + text: 'Datum' + }, + { + text: 'Text', + flex: 1 + } + ] + } + ] + }, + // Messungsangaben + { + xtype: 'fieldset', + title: 'Messungsangaben', + padding: '10 10', + items: [ + { + xtype: 'grid', + dockedItems: [ + { + xtype: 'toolbar', + dock: 'top', + items: [ + { + text: 'Hinzufügen', + icon: 'gfx/plus.gif' + }, + { + text: 'Löschen', + icon: 'gfx/minus.gif' + } + ] + } + ], + columns: [ + { + text: 'Mess.ID', + width: 50 + }, + { + text: 'NPR-Nr.', + width: 50 + }, + { + text: 'MMT', + width: 50 + }, + { + text: 'Messzeit' + }, + { + text: 'Status' + }, + { + text: 'OK-Flag' + }, + { + text: 'Anzahl Nuklide' + }, + { + text: 'Anzahl Kommentare', + flex: 1 + } + ] + } + ] } ] } @@ -37,5 +360,12 @@ } ]; this.callParent(arguments); + }, + buildDescriptors: function() { + var fields = new Array(); + for ($i=0; $i<12; $i++) { + fields[$i] = {fieldLabel: 'S'+$i, name: 's'+$i}; + } + return fields; } }); diff -r 9e1a40312bbe -r a05625ae08b1 gfx/minus.gif Binary file gfx/minus.gif has changed diff -r 9e1a40312bbe -r a05625ae08b1 gfx/plus.gif Binary file gfx/plus.gif has changed