📄 gbs_loginactionlogic.java
字号:
/**
* method GBS_LoginActionLogic.java
* created on 07-29-2004
*
* @author GXK
* @version 1.0
*/
package LOGIC;
import javax.sql.DataSource;
import COMMON.ReturnValue;
import COMMON.SystemConstants;
import DB.GBS_MMember_DB;
import DB.GBS_MSubRelation_DB;
import DB.GBS_MSubsidiary_DB;
public class GBS_LoginActionLogic implements SystemConstants {
private DataSource datasource = null;
/**
* trans datasource to db
* @param datasource
*/
public GBS_LoginActionLogic(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 getMmmber_st(String UserId) throws Exception {
GBS_MMember_DB mMember_DB = new GBS_MMember_DB(this.datasource);
return mMember_DB.selectByUserId(UserId);
}
/**
* get DB.Subsidiarycode2 by Subsidiarycode1
* @param String Subsidiarycode1
* @return ReturnValue
* @exception Exception Exception for information of other errors
* @since 2004/07/29
*/
public ReturnValue getSubsidiarycode2(String subsidiarycode) throws Exception {
GBS_MSubRelation_DB mSubRelation_DB = new GBS_MSubRelation_DB(this.datasource);
return mSubRelation_DB.selectBySubsidiarycode1(subsidiarycode);
}
/**
* Get subsidiary name list from DB
* @param subsidiaryCode String
* @return ReturnValue(ArrayList SubsidiaryList)
* @throws Exception
*/
public ReturnValue getSubsidiaryName(String subsidiaryCode) throws Exception {
GBS_MSubsidiary_DB DB = new GBS_MSubsidiary_DB(this.datasource);
return DB.getSubsidiaryName(subsidiaryCode);
}
public ReturnValue getPlusHour(String subsidiaryCode) throws Exception {
GBS_MSubsidiary_DB DB = new GBS_MSubsidiary_DB(this.datasource);
return DB.getPlusHour(subsidiaryCode);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -