gbs_resultactionlogic.java
来自「对日软件外包 为东芝做的一个全球商业管理系统」· Java 代码 · 共 89 行
JAVA
89 行
package LOGIC;
/**
* method GBS_ResultActionLogic.java
* created on 08-09-2004
* @author xusheng
* @version1.0
*/
import javax.sql.DataSource;
import COMMON.ReturnValue;
import COMMON.SystemConstants;
import DB.GBS_MCustomer_DB;
import DB.GBS_MWideUse_DB;
import DB.GBS_Result_DB;
import DB.GBS_RfpCountry_DB;
import DB.GBS_TRfp_DB;
import DataBean.GBS_Result_stBean;
public class GBS_ResultActionLogic implements SystemConstants {
private DataSource datasource = null;
/**
* trans datasource to db
* @param datasource
*/
public GBS_ResultActionLogic(DataSource datasource) {
this.datasource = datasource;
}
/**
* update UserData from DB by CustomerId
* @param GBS_Result_stBean in_st
* @return ReturnValue
* @throws Exception
*/
public ReturnValue updateCustomerId(GBS_Result_stBean in_st) throws Exception {
GBS_Result_DB result_DB = new GBS_Result_DB(this.datasource);
return result_DB.updateByCustomerId(in_st);
}
/**
* get selectByRFPNo data from DB
* @param
* @return ReturnValue
* @throws Exception
*/
public ReturnValue selectRFPNo(String customerId, String rfpNo) throws Exception {
//GBS_Result_DB result_DB = new GBS_Result_DB(this.datasource);
//return result_DB.selectByRFPNo(customerId, rfpNo);
GBS_TRfp_DB tRfpDb = new GBS_TRfp_DB(this.datasource);
return tRfpDb.selectByCustomerIDRfpID(customerId, rfpNo);
}
/**
* Get wideUse list from db
* @param str String
* @return ReturnValue
* @throws Exception
*/
public ReturnValue getWideUse(String str) throws Exception {
GBS_MWideUse_DB DB = new GBS_MWideUse_DB(this.datasource);
return DB.selectByTargetUse(str);
}
/**
* Get mail list to send mail
* @param customerId String
* @param rfpNo String
* @return ReturnValue
* @throws Exception
*/
public ReturnValue getMail(String customerId,String rfpNo) throws Exception{
GBS_RfpCountry_DB DB = new GBS_RfpCountry_DB(this.datasource);
return DB.selectEmailList(customerId,rfpNo);
}
/**
* get Custome information
* @param String customerID
* @return ReturnValue *
* @exception Exception Exception for information of other errors
* @since 08-15-2004
*/
public ReturnValue getCustomer( String CustomerID ) throws Exception {
GBS_MCustomer_DB mCustomerDb = new GBS_MCustomer_DB(this.datasource);
return mCustomerDb.selectByCustmerID( CustomerID );
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?