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

📄 gbs_mwideuselogic.java

📁 对日软件外包 为东芝做的一个全球商业管理系统
💻 JAVA
字号:
/** 
 * method GBS_LoginActionLogic.java
 * created on 07-29-2004
 * 
 * @author   GXK
 * @version  1.0
 */

package LOGIC;

import java.util.ArrayList;

import javax.sql.DataSource;

import COMMON.ReturnValue;
import COMMON.SystemConstants;
import DB.GBS_MWideUse_DB;
import DataBean.GBS_CodeName_stBean;
import DataBean.GBS_MWideUse_stBean;

public class GBS_MWideUseLogic implements SystemConstants {
	private DataSource datasource = null;
	
	public final String TYPE_STRING1 = "1";
	public final String TYPE_STRING2 = "2";
	public final String TYPE_STRING3 = "3";
	
	public final String NUMERIC1 = "4";
	public final String NUMERIC2 = "5";
	public final String NUMERIC3 = "6";

	/**
	 * trans datasource to db
	 * @param datasource
	 */
	public GBS_MWideUseLogic(DataSource datasource) {
	  this.datasource = datasource;
	}
	
	/**
	 * get DB.GBS_MMember_st by userid
	 * @param		String UserId
	 * @return		ReturnValue
	 * @exception	Exception    Exception for information of other errors
	 * @since		2004/07/29
	 */
	public ReturnValue getCodeName( String targetUse ) throws Exception {
		GBS_MWideUse_DB mWideUse_DB = new GBS_MWideUse_DB( this.datasource );
		ReturnValue returnValue = new ReturnValue();
		returnValue = mWideUse_DB.selectByTargetUse( targetUse );
		if ( !returnValue.isError() ){
			ArrayList dataList = new ArrayList();
			ArrayList result = ( ArrayList) returnValue.getDataValue();
			for ( int i = 0; i < result.size() ; i++ ){
				GBS_MWideUse_stBean mWideUse_st = (GBS_MWideUse_stBean)result.get( i );
				GBS_CodeName_stBean st = new GBS_CodeName_stBean();
				st.setCode( mWideUse_st.getMainKey());
				st.setName( mWideUse_st.getString1());
				dataList.add( st );
			}
			returnValue.setDataValue( dataList );
		}
		return returnValue;
	}

}

⌨️ 快捷键说明

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