// Path: src/java/is/idega/idegaweb/egov/cases/data/CaseType.java
// public interface CaseType extends IDOEntity {
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseTypeBMPBean#getName
// 	 */
// 	public String getName();
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseTypeBMPBean#getDescription
// 	 */
// 	public String getDescription();
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseTypeBMPBean#getOrder
// 	 */
// 	public int getOrder();
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseTypeBMPBean#setName
// 	 */
// 	public void setName(String name);
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseTypeBMPBean#setDescription
// 	 */
// 	public void setDescription(String description);
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseTypeBMPBean#setOrder
// 	 */
// 	public void setOrder(int order);
// }


import is.idega.idegaweb.egov.cases.data.CaseType;
import java.rmi.RemoteException;
import java.util.Collection;
import java.util.Iterator;
import java.util.Map;
import javax.ejb.CreateException;
import javax.ejb.FinderException;
import javax.ejb.RemoveException;
import com.idega.presentation.IWContext;
import com.idega.presentation.Layer;
import com.idega.presentation.Table2;
import com.idega.presentation.TableCell2;
import com.idega.presentation.TableColumn;
import com.idega.presentation.TableColumnGroup;
import com.idega.presentation.TableRow;
import com.idega.presentation.TableRowGroup;
import com.idega.presentation.text.Link;
import com.idega.presentation.text.Text;
import com.idega.presentation.ui.Form;
import com.idega.presentation.ui.HiddenInput;
import com.idega.presentation.ui.Label;
import com.idega.presentation.ui.SubmitButton;
import com.idega.presentation.ui.TextArea;
import com.idega.presentation.ui.TextInput;
import com.idega.util.PresentationUtil;
/*
 * $Id$
 * Created on Oct 30, 2005
 *
 * Copyright (C) 2005 Idega Software hf. All Rights Reserved.
 *
 * This software is the proprietary information of Idega hf.
 * Use is subject to license terms.
 */
package is.idega.idegaweb.egov.cases.presentation;






public class CaseTypeEditor extends CasesBlock {

	private static final String PARAMETER_ACTION = "cte_prm_action";
	
	private static final String PARAMETER_CASE_TYPE_PK = "prm_case_type_pk";
	private static final String PARAMETER_NAME = "prm_name";
	private static final String PARAMETER_DESCRIPTION = "prm_description";
	private static final String PARAMETER_ORDER = "prm_order";

	private static final int ACTION_VIEW = 1;
	private static final int ACTION_EDIT = 2;
	private static final int ACTION_NEW = 3;
// Path: src/java/is/idega/idegaweb/egov/cases/data/CaseType.java
// public interface CaseType extends IDOEntity {
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseTypeBMPBean#getName
// 	 */
// 	public String getName();
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseTypeBMPBean#getDescription
// 	 */
// 	public String getDescription();
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseTypeBMPBean#getOrder
// 	 */
// 	public int getOrder();
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseTypeBMPBean#setName
// 	 */
// 	public void setName(String name);
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseTypeBMPBean#setDescription
// 	 */
// 	public void setDescription(String description);
// 
// 	/**
// 	 * @see is.idega.idegaweb.egov.cases.data.CaseTypeBMPBean#setOrder
// 	 */
// 	public void setOrder(int order);
// }


// Path: src/java/is/idega/idegaweb/egov/cases/presentation/CaseTypeEditor.java
import is.idega.idegaweb.egov.cases.data.CaseType;
import java.rmi.RemoteException;
import java.util.Collection;
import java.util.Iterator;
import java.util.Map;
import javax.ejb.CreateException;
import javax.ejb.FinderException;
import javax.ejb.RemoveException;
import com.idega.presentation.IWContext;
import com.idega.presentation.Layer;
import com.idega.presentation.Table2;
import com.idega.presentation.TableCell2;
import com.idega.presentation.TableColumn;
import com.idega.presentation.TableColumnGroup;
import com.idega.presentation.TableRow;
import com.idega.presentation.TableRowGroup;
import com.idega.presentation.text.Link;
import com.idega.presentation.text.Text;
import com.idega.presentation.ui.Form;
import com.idega.presentation.ui.HiddenInput;
import com.idega.presentation.ui.Label;
import com.idega.presentation.ui.SubmitButton;
import com.idega.presentation.ui.TextArea;
import com.idega.presentation.ui.TextInput;
import com.idega.util.PresentationUtil;

/*
 * $Id$
 * Created on Oct 30, 2005
 *
 * Copyright (C) 2005 Idega Software hf. All Rights Reserved.
 *
 * This software is the proprietary information of Idega hf.
 * Use is subject to license terms.
 */
package is.idega.idegaweb.egov.cases.presentation;






public class CaseTypeEditor extends CasesBlock {

	private static final String PARAMETER_ACTION = "cte_prm_action";
	
	private static final String PARAMETER_CASE_TYPE_PK = "prm_case_type_pk";
	private static final String PARAMETER_NAME = "prm_name";
	private static final String PARAMETER_DESCRIPTION = "prm_description";
	private static final String PARAMETER_ORDER = "prm_order";

	private static final int ACTION_VIEW = 1;
	private static final int ACTION_EDIT = 2;
	private static final int ACTION_NEW = 3;
	private static final int ACTION_SAVE = 4;