📄 gbs_presentationactionlogic.java
字号:
package LOGIC;
import javax.servlet.http.HttpServletResponse;
import javax.sql.DataSource;
import COMMON.ReturnValue;
import COMMON.SystemConstants;
import DB.GBS_MSubsidiary_DB;
import DB.GBS_TPresentation_DB;
import DB.GBS_TRfp_DB;
/**
* GBS_PresentationActionLogic implements SystemConstants
* created on 11-08-2004
* @author mxx
* @version 1.0
*/
public class GBS_PresentationActionLogic implements SystemConstants {
private DataSource datasource = null;
/**
* method GBS_PresentationActionLogic
* @param datasource
* @return
* @throws Exception
*/
public GBS_PresentationActionLogic(DataSource datasource) {
this.datasource = datasource;
}
/**
* method getPresentationList
* @param strCustomerId
* @param strRfpNo
* @return ReturnValue
* @throws Exception
*/
public ReturnValue getPresentationList(String strCustomerId,
String strRfpNo) throws Exception {
GBS_TPresentation_DB tPresentation_DB = new GBS_TPresentation_DB(this.datasource);
ReturnValue returnValue = tPresentation_DB.getPresentationList(strCustomerId,strRfpNo);
return returnValue;
}
/**
* method getAttachmentfilename
* @param strCustomerId
* @param strRfpNo
* @param strLineNo
* @return ReturnValue
* @throws Exception
*/
public ReturnValue getAttachmentfilename(String strCustomerId,
String strRfpNo ,
String strLineNo) throws Exception {
GBS_TPresentation_DB tPresentation_DB = new GBS_TPresentation_DB(this.datasource);
ReturnValue returnValue = tPresentation_DB.selPresentationByKey(strCustomerId,strRfpNo,strLineNo);
return returnValue;
}
/**
* method getAttachmentFile
* @param strCustomerId
* @param strRfpNo
* @param strLineNo
* @param response
* @return ReturnValue
* @throws Exception
*/
public ReturnValue getAttachmentFile( String strCustomerId,
String strRfpNo ,
String strLineNo,
HttpServletResponse response )throws Exception{
GBS_TPresentation_DB tPresentation_DB = new GBS_TPresentation_DB(this.datasource);
ReturnValue returnValue = tPresentation_DB.getAttachmentFile( strCustomerId,strRfpNo,strLineNo,response);
return returnValue;
}
//ATTACHMENT_FILE
/**
* method getCustomerName
* @param strCustomerId
* @return ReturnValue
* @throws Exception
*/
public ReturnValue getCustomerName(String strCustomerId) throws Exception {
GBS_TPresentation_DB tPresentation_DB = new GBS_TPresentation_DB(this.datasource);
return tPresentation_DB.getCustomerName(strCustomerId);
}
/**
* method getSubsidiaryName
* @param strCustomerId
* @return ReturnValue
* @throws Exception
*/
public ReturnValue getSubsidiaryName(String strSubsidiaryId) throws Exception {
GBS_MSubsidiary_DB mSubsidiary_DB = new GBS_MSubsidiary_DB(this.datasource);
return mSubsidiary_DB.getSubsidiaryName(strSubsidiaryId);
}
/**
* method getSubsidiaryName
* @param strCustomerId
* @return ReturnValue
* @throws Exception
*/
public ReturnValue getSubsidiaryCode(String strCustomerId,String strRfpNo) throws Exception {
GBS_TRfp_DB gBS_TRfp_DB = new GBS_TRfp_DB(this.datasource);
return gBS_TRfp_DB.selectByCustomerIDRfpID(strCustomerId,strRfpNo);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -