gt: 			if (getLandDto().getIID() == null) {
context: /*******************************************************************************
   * HELIUM V, Open Source ERP software for sustained success
   * at small and medium-sized enterprises.
   * Copyright (C) 2004 - 2015 HELIUM V IT-Solutions GmbH
   * 
   * This program is free software: you can redistribute it and/or modify
   * it under the terms of the GNU Affero General Public License as published 
   * by the Free Software Foundation, either version 3 of theLicense, or 
   * (at your option) any later version.
   * 
   * According to sec. 7 of the GNU Affero General Public License, version 3, 
   * the terms of the AGPL are supplemented with the following terms:
   * 
   * "HELIUM V" and "HELIUM 5" are registered trademarks of 
   * HELIUM V IT-Solutions GmbH. The licensing of the program under the 
   * AGPL does not imply a trademark license. Therefore any rights, title and
   * interest in our trademarks remain entirely with us. If you want to propagate
   * modified versions of the Program under the name "HELIUM V" or "HELIUM 5",
   * you may only do so if you have a written permission by HELIUM V IT-Solutions 
   * GmbH (to acquire a permission please contact HELIUM V IT-Solutions
   * at trademark@heliumv.com).
   * 
   * This program is distributed in the hope that it will be useful,
   * but WITHOUT ANY WARRANTY; without even the implied warranty of
   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   * GNU Affero General Public License for more details.
   * 
   * You should have received a copy of the GNU Affero General Public License
   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
   * 
   * Contact: developers@heliumv.com
   ******************************************************************************/
  package com.lp.client.system;
  
  import java.awt.Dimension;
  import java.awt.GridBagConstraints;
  import java.awt.GridBagLayout;
  import java.awt.Insets;
  import java.awt.event.ActionEvent;
  import java.math.BigDecimal;
  import java.util.EventObject;
  import java.util.HashMap;
  import java.util.Map;
  
  import javax.swing.BorderFactory;
  import javax.swing.JPanel;
  import javax.swing.SwingConstants;
  import javax.swing.border.Border;
  
  import com.lp.client.frame.Defaults;
  import com.lp.client.frame.HelperClient;
  import com.lp.client.frame.component.InternalFrame;
  import com.lp.client.frame.component.ItemChangedEvent;
  import com.lp.client.frame.component.PanelBasis;
  import com.lp.client.frame.component.WrapperCheckBox;
  import com.lp.client.frame.component.WrapperComboBox;
  import com.lp.client.frame.component.WrapperDateField;
  import com.lp.client.frame.component.WrapperLabel;
  import com.lp.client.frame.component.WrapperNumberField;
  import com.lp.client.frame.component.WrapperSelectField;
  import com.lp.client.frame.component.WrapperTextField;
  import com.lp.client.frame.delegate.DelegateFactory;
  import com.lp.client.pc.LPMain;
  import com.lp.server.system.service.LandDto;
  import com.lp.server.system.service.SystemFac;
  
  @SuppressWarnings("static-access")
  /*
   * <p><I>Diese Klasse kuemmert sich ...</I> </p>
   * 
   * <p>Copyright Logistik Pur Software GmbH (c) 2004-2008</p>
   * 
   * <p>Erstellungsdatum <I>18.02.05</I></p>
   * 
   * <p> </p>
   * 
   * @author josef erlinger
   * 
   * @version $Revision: 1.8 $
   */
  public class PanelLand extends PanelBasis {
  	/**
  	 * 
  	 */
  	private static final long serialVersionUID = 1L;
  
  	private LandDto landDto = new LandDto();
  
  	private JPanel jPanelWorkingOn = new JPanel();
  	private JPanel panelButtonAction = null;
  	private Border border = null;
  	private WrapperLabel wlaVorwahl = new WrapperLabel();
  	private WrapperTextField wtfVorwahl = new WrapperTextField();
  	private WrapperLabel wlaLKZ = new WrapperLabel();
  	private WrapperTextField wtfLKZ = new WrapperTextField();
  	private WrapperLabel wlaLand = new WrapperLabel();
  	private WrapperTextField wtfLand = new WrapperTextField();
  	private WrapperComboBox wcbWaehrung = null;
  	private WrapperLabel wlaWaehrung = new WrapperLabel();
  	private Map<?, ?> tmWaehrungen = null;
  	private WrapperDateField wdfEUMitgliedSeit = null;
  	private WrapperLabel wlaEUMitgliedSeit = null;
  	private WrapperNumberField wnfUIDNummerPruefenAbBetrag = null;
  	private WrapperLabel wlaUIDNummerPruefenAbBetrag = null;
  	private WrapperLabel wlaMandantenwaehrung = null;
  	private WrapperLabel wlaGmtVersatz = new WrapperLabel();
  	private WrapperNumberField wnfGmtVersatz = new WrapperNumberField();
  
  	private WrapperLabel wlaLaengeUIDNummer = new WrapperLabel();
  	private WrapperNumberField wnfLaengeUIDNummer = new WrapperNumberField();
  	private WrapperCheckBox wcbSepa = new WrapperCheckBox();
  	private WrapperCheckBox wcbPlzNachOrt = new WrapperCheckBox();
  
  	private WrapperSelectField wsfGemeinsamesPostland = new WrapperSelectField(
  			WrapperSelectField.LAND, getInternalFrame(), true);
  
  	private WrapperLabel wlaRundungswerte = new WrapperLabel();
  	private WrapperComboBox wcbRundungswerte = null;
  	private Map<BigDecimal, String> tmRundungswerte = null;
  
  	public PanelLand(InternalFrame internalFrame, String add2TitleI, Object pk)
  			throws Throwable {
  		super(internalFrame, add2TitleI, pk);
  
  		jbInit();
  		initComponents();
  		initPanel();
  	}
  
  	private void initRundungswerte() {
  		tmRundungswerte = new HashMap<BigDecimal, String>() {
  			{
  				// put(null, "<keine Rundung>");
  				put(new BigDecimal("0.05"), "0.05");
  				put(new BigDecimal("0.10"), "0.10");
  			}
  		};
  		wcbRundungswerte = new WrapperComboBox();
  		wcbRundungswerte.setMap(tmRundungswerte);
  		wlaRundungswerte.setText(LPMain.getInstance().getTextRespectUISPr(
  				"lp.land.muenzrundung"));
  
  	}
  
  	private void initPanel() throws Throwable {
  		tmWaehrungen = DelegateFactory.getInstance().getLocaleDelegate()
  				.getAllWaehrungen();
  		wcbWaehrung.setMap(tmWaehrungen);
  		// Mandantenwaehrung
  		wlaMandantenwaehrung.setText(LPMain.getInstance().getTheClient()
  				.getSMandantenwaehrung());
  	}
  
  	protected void eventActionSpecial(ActionEvent e) throws Throwable {
  	}
  
  	private void setDefaults() {
  	}
  
  	public void eventActionNew(EventObject eventObject, boolean bLockMeI,
  			boolean bNeedNoNewI) throws Throwable {
  		super.eventActionNew(eventObject, true, false);
  
  		// hier null setzen des Feldes lkz (update)
  		setLandDto(new LandDto());
  
  		leereAlleFelder(this);
  
  	}
  
  	protected void eventActionDelete(ActionEvent e,
  			boolean bAdministrateLockKeyI, boolean bNeedNoDeleteI)
  			throws Throwable {
  
  		DelegateFactory.getInstance().getSystemDelegate()
  				.removeLand(getLandDto());
  		super.eventActionDelete(e, false, false);
  	}
  
  	protected void components2Dto() throws Throwable {
  		getLandDto().setCLkz(wtfLKZ.getText());
  		getLandDto().setCName(wtfLand.getText());
  		getLandDto().setCTelvorwahl(wtfVorwahl.getText());
  		getLandDto()
  				.setWaehrungCNr((String) wcbWaehrung.getKeyOfSelectedItem());
  		getLandDto().setTEUMitglied(wdfEUMitgliedSeit.getDate());
  		getLandDto().setNUidnummerpruefenabbetrag(
  				wnfUIDNummerPruefenAbBetrag.getBigDecimal());
  		getLandDto().setILaengeuidnummer(wnfLaengeUIDNummer.getInteger());
  		getLandDto().setBSepa(wcbSepa.getShort());
  		getLandDto().setFGmtversatz(wnfGmtVersatz.getDouble());
  		getLandDto().setNMuenzRundung(
  				(BigDecimal) wcbRundungswerte.getKeyOfSelectedItem());
  		getLandDto().setLandIIdGemeinsamespostland(wsfGemeinsamesPostland.getIKey());
  		getLandDto().setBPlznachort(wcbPlzNachOrt.getShort());
  	}
  
  	protected void dto2Components() throws Throwable {
  		wtfVorwahl.setText(getLandDto().getCTelvorwahl());
  		wtfLKZ.setText(getLandDto().getCLkz());
  		wtfLand.setText(getLandDto().getCName());
  		wcbWaehrung.setKeyOfSelectedItem(getLandDto().getWaehrungCNr());
  		wdfEUMitgliedSeit.setDate(getLandDto().getEUMitglied());
  		wnfUIDNummerPruefenAbBetrag.setBigDecimal(getLandDto()
  				.getNUidnummerpruefenabbetrag());
  		wnfLaengeUIDNummer.setInteger(getLandDto().getILaengeuidnummer());
  
  		wcbSepa.setShort(getLandDto().getBSepa());
  		wnfGmtVersatz.setDouble(getLandDto().getFGmtversatz());
  		wcbRundungswerte.setKeyOfSelectedItem(getLandDto().getNMuenzRundung());
  		wsfGemeinsamesPostland.setKey(getLandDto().getLandIIdGemeinsamespostland());
  		wcbPlzNachOrt.setShort(getLandDto().getBPlznachort());
  	}
  
  	public void eventActionSave(ActionEvent e, boolean bNeedNoSaveI)
  			throws Throwable {
  
  		if (allMandatoryFieldsSetDlg()) {
  
  			Integer iId = null;
  
  			components2Dto();
  