📄 gbs_replyfromactionlogic.java
字号:
/**
* method GBS_ReplyFromActionLogic.java
* created on 08-15-2004
*
* @author QIN
* @version1.0
*/
package LOGIC;
import java.util.ArrayList;
import javax.servlet.http.HttpServletResponse;
import javax.sql.DataSource;
import COMMON.ReturnValue;
import COMMON.SystemConstants;
import DB.GBS_MCustomer_DB;
import DB.GBS_MSubsidiary_DB;
import DB.GBS_MWideUse_DB;
import DB.GBS_Reply_DB;
import DB.GBS_RfpCountry_DB;
import DB.GBS_TRfp_DB;
import DataBean.GBS_ReplyList_stBean;
public class GBS_ReplyFromActionLogic implements SystemConstants {
private DataSource datasource = null;
/**
* trans datasource to db
* @param datasource
*/
public GBS_ReplyFromActionLogic(DataSource datasource) {
this.datasource = datasource;
}
/**
* 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 );
}
/**
* get Rfp information
* @param String customerID , String rfpNo
* @return ReturnValue *
* @exception Exception Exception for information of other errors
* @since 08-15-2004
*/
public ReturnValue getRfpInfo( String customerID, String rfpNo ) throws Exception {
GBS_TRfp_DB tRfpDb = new GBS_TRfp_DB(this.datasource);
return tRfpDb.selectByCustomerIDRfpID( customerID, rfpNo);
}
/**
* getRfpCountryInfo
* @param String customerID , String rfpNo
* @return ReturnValue *
* @exception Exception Exception for information of other errors
* @since 08-15-2004
*/
public ReturnValue getRfpCountryInfo( String CustomerID, String RfpID ) throws Exception {
GBS_RfpCountry_DB RfpCountry_DB = new GBS_RfpCountry_DB(this.datasource);
return RfpCountry_DB.selectByCustomerIDRfpID(CustomerID, RfpID );
}
/**
* get Reply information
* @param String customerID , String rfpNo
* @return ReturnValue *
* @exception Exception Exception for information of other errors
* @since 08-15-2004
*/
public ReturnValue getReplyInfo( String CustomerID, String RfpID,int plusHour ) throws Exception {
GBS_Reply_DB Reply_DB = new GBS_Reply_DB(this.datasource);
return Reply_DB.getReplyList(CustomerID, RfpID,plusHour);
}
/**
* saveReplyAttachment
* @param ArrayList replayData
* @return ReturnValue *
* @exception Exception Exception for information of other errors
* @since 08-15-2004
*/
public ReturnValue saveReplyAttachment(
ArrayList replayData,
String updaterUserID,
String updaterSubsidiaryCode,
String customerId,
String rfpNo)
throws Exception {
GBS_Reply_DB reply_DB = new GBS_Reply_DB(this.datasource);
return reply_DB.saveReplyAttachment(replayData, updaterUserID, updaterSubsidiaryCode, customerId, rfpNo);
}
/**
* getAttachmentFile
* @param GBS_ReplyList_stBean replyListBean , HttpServletResponse response
* @return ReturnValue *
* @exception Exception Exception for information of other errors
* @since 08-15-2004
*/
public ReturnValue getAttachmentFile( GBS_ReplyList_stBean replyListBean,
HttpServletResponse response)throws Exception{
GBS_Reply_DB reply_DB = new GBS_Reply_DB(this.datasource);
ReturnValue returnValue = reply_DB.getAttachmentFile( replyListBean, response);
return returnValue;
}
//Add by Gxk 2004/08/23
/**
* Get subsidiary name by code
* @param subsidiaryCode String
* @return ReturnValue
* @throws Exception
*/
public ReturnValue getSubsidiaryName(String subsidiaryCode) throws Exception {
GBS_MSubsidiary_DB DB = new GBS_MSubsidiary_DB(this.datasource);
return DB.getSubsidiaryName(subsidiaryCode);
}
/**
* 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 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);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -