⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mprocess_para.java

📁 Java写的ERP系统
💻 JAVA
字号:
/******************************************************************************
 * The contents of this file are subject to the   Compiere License  Version 1.1
 * ("License"); You may not use this file except in compliance with the License
 * You may obtain a copy of the License at http://www.compiere.org/license.html
 * Software distributed under the License is distributed on an  "AS IS"  basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
 * the specific language governing rights and limitations under the License.
 * The Original Code is             Compiere  ERP & CRM Smart Business Solution
 * The Initial Developer of the Original Code is Jorg Janke  and ComPiere, Inc.
 * Portions created by Jorg Janke are Copyright (C) 1999-2003 Jorg Janke, parts
 * created by ComPiere are Copyright (C) ComPiere, Inc.;   All Rights Reserved.
 * Contributor(s): ______________________________________.
 *****************************************************************************/
package org.compiere.process;

import java.util.*;
import java.sql.*;
import java.math.*;
import java.io.Serializable;

import org.compiere.model.*;


/**
 *  Process Parameter Model
 *
 *  @author Jorg Janke
 *  @version $Id: MProcess_Para.java,v 1.1 2003/04/16 06:07:00 jjanke Exp $
 */
public class MProcess_Para extends PO
{
	public MProcess_Para (Properties ctx, int AD_Process_Para_ID)
	{
		super (ctx, AD_Process_Para_ID);
		if (AD_Process_Para_ID == 0)
		{
			setFieldLength (0);
			setSeqNo (0);
			setAD_Reference_ID (0);
			setIsCentrallyMaintained (false);
			setIsRange (false);
			setColumnName (null);
			setIsMandatory (false);
			setEntityType (null);
			setAD_Process_Para_ID (0);
			setAD_Process_ID (0);
			setName (null);
		}
	}
	public MProcess_Para (Properties ctx, ResultSet rs)
	{
		super (ctx, rs);
	}

	protected POInfo initPO (Properties ctx)
	{
		int AD_Table_ID = 285;
		POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
		return poi;
	}

	public boolean save ()
	{
		log.debug ("save");
		return super.save ();
	}

	public String toString ()
	{
		StringBuffer sb = new StringBuffer ("MProcess_Para[").append (getID ()).
						  append ("]");
		return sb.toString ();
	}

	public void setAD_Reference_Value_ID (int AD_Reference_Value_ID)
	{
		setValue ("AD_Reference_Value_ID", new Integer (AD_Reference_Value_ID));
	}

	public int getAD_Reference_Value_ID ()
	{
		Integer ii = (Integer)getValue ("AD_Reference_Value_ID");
		if (ii == null)
			return 0;
		return ii.intValue ();
	}

	public void setFieldLength (int FieldLength)
	{
		setValue ("FieldLength", new Integer (FieldLength));
	}

	public int getFieldLength ()
	{
		Integer ii = (Integer)getValue ("FieldLength");
		if (ii == null)
			return 0;
		return ii.intValue ();
	}

	public void setSeqNo (int SeqNo)
	{
		setValue ("SeqNo", new Integer (SeqNo));
	}

	public int getSeqNo ()
	{
		Integer ii = (Integer)getValue ("SeqNo");
		if (ii == null)
			return 0;
		return ii.intValue ();
	}

	public void setAD_Reference_ID (int AD_Reference_ID)
	{
		setValue ("AD_Reference_ID", new Integer (AD_Reference_ID));
	}

	public int getAD_Reference_ID ()
	{
		Integer ii = (Integer)getValue ("AD_Reference_ID");
		if (ii == null)
			return 0;
		return ii.intValue ();
	}

	public void setIsCentrallyMaintained (boolean IsCentrallyMaintained)
	{
		setValue ("IsCentrallyMaintained", new Boolean (IsCentrallyMaintained));
	}

	public boolean isCentrallyMaintained ()
	{
		Boolean bb = (Boolean)getValue ("IsCentrallyMaintained");
		if (bb != null)
			return bb.booleanValue ();
		return false;
	}

	public void setIsRange (boolean IsRange)
	{
		setValue ("IsRange", new Boolean (IsRange));
	}

	public boolean isRange ()
	{
		Boolean bb = (Boolean)getValue ("IsRange");
		if (bb != null)
			return bb.booleanValue ();
		return false;
	}

	public void setColumnName (String ColumnName)
	{
		if (ColumnName == null)
			throw new IllegalArgumentException ("ColumnName is mandatory");
		setValue ("ColumnName", ColumnName);
	}

	public String getColumnName ()
	{
		return (String)getValue ("ColumnName");
	}

	public void setAD_Val_Rule_ID (int AD_Val_Rule_ID)
	{
		setValue ("AD_Val_Rule_ID", new Integer (AD_Val_Rule_ID));
	}

	public int getAD_Val_Rule_ID ()
	{
		Integer ii = (Integer)getValue ("AD_Val_Rule_ID");
		if (ii == null)
			return 0;
		return ii.intValue ();
	}

	public void setValueMax (String ValueMax)
	{
		setValue ("ValueMax", ValueMax);
	}

	public String getValueMax ()
	{
		return (String)getValue ("ValueMax");
	}

	public void setIsMandatory (boolean IsMandatory)
	{
		setValue ("IsMandatory", new Boolean (IsMandatory));
	}

	public boolean isMandatory ()
	{
		Boolean bb = (Boolean)getValue ("IsMandatory");
		if (bb != null)
			return bb.booleanValue ();
		return false;
	}

	public void setVFormat (String VFormat)
	{
		setValue ("VFormat", VFormat);
	}

	public String getVFormat ()
	{
		return (String)getValue ("VFormat");
	}

	public static final String EntityType_Dictionary = "D";
	public static final String EntityType_Compiere = "C";
	public static final String EntityType_UserMaintained = "U";
	public static final String EntityType_Applications = "A";

	public void setEntityType (String EntityType)
	{
		if (EntityType.equals ("D") || EntityType.equals ("C")
		  || EntityType.equals ("U") || EntityType.equals ("A"))
			;
		else
			throw new IllegalArgumentException (
			  "EntityType Invalid value - Reference_ID=245 - D - C - U - A");
		if (EntityType == null)
			throw new IllegalArgumentException ("EntityType is mandatory");
		setValue ("EntityType", EntityType);
	}

	public String getEntityType ()
	{
		return (String)getValue ("EntityType");
	}

	public void setAD_Element_ID (int AD_Element_ID)
	{
		setValue ("AD_Element_ID", new Integer (AD_Element_ID));
	}

	public int getAD_Element_ID ()
	{
		Integer ii = (Integer)getValue ("AD_Element_ID");
		if (ii == null)
			return 0;
		return ii.intValue ();
	}

	public void setValueMin (String ValueMin)
	{
		setValue ("ValueMin", ValueMin);
	}

	public String getValueMin ()
	{
		return (String)getValue ("ValueMin");
	}

	public void setDefaultValue (String DefaultValue)
	{
		setValue ("DefaultValue", DefaultValue);
	}

	public String getDefaultValue ()
	{
		return (String)getValue ("DefaultValue");
	}

	void setAD_Process_Para_ID (int AD_Process_Para_ID)
	{
		setValueNoCheck ("AD_Process_Para_ID", new Integer (AD_Process_Para_ID));
	}

	public int getAD_Process_Para_ID ()
	{
		Integer ii = (Integer)getValue ("AD_Process_Para_ID");
		if (ii == null)
			return 0;
		return ii.intValue ();
	}

	public void setDescription (String Description)
	{
		setValue ("Description", Description);
	}

	public String getDescription ()
	{
		return (String)getValue ("Description");
	}

	public void setHelp (String Help)
	{
		setValue ("Help", Help);
	}

	public String getHelp ()
	{
		return (String)getValue ("Help");
	}

	void setAD_Process_ID (int AD_Process_ID)
	{
		setValueNoCheck ("AD_Process_ID", new Integer (AD_Process_ID));
	}

	public int getAD_Process_ID ()
	{
		Integer ii = (Integer)getValue ("AD_Process_ID");
		if (ii == null)
			return 0;
		return ii.intValue ();
	}

	public void setName (String Name)
	{
		if (Name == null)
			throw new IllegalArgumentException ("Name is mandatory");
		setValue ("Name", Name);
	}

	public String getName ()
	{
		return (String)getValue ("Name");
	}

	public void setDefaultValue2 (String DefaultValue2)
	{
		setValue ("DefaultValue2", DefaultValue2);
	}

	public String getDefaultValue2 ()
	{
		return (String)getValue ("DefaultValue2");
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -