📄 gbs_productmasterconditionactionlogic.java
字号:
package LOGIC;
import javax.servlet.http.HttpServletResponse;
import javax.sql.DataSource;
import COMMON.ReturnValue;
import COMMON.SystemConstants;
import DB.GBS_MProduct_DB;
/**
* <p>Title: struts sample </p>
* <p>Description: process sth about logic<br>
* </p>
* <p>Copyright: lp Copyright (c) 2003</p>
* @author shaohua
* @version 1.0
*/
public class GBS_productMasterConditionActionLogic implements SystemConstants {
private DataSource datasource = null;
/**
* trans datasource to db
* @param datasource
*/
public GBS_productMasterConditionActionLogic(DataSource datasource) {
this.datasource = datasource;
}
/**
* fill Subsidiary List
* @return
* @throws Exception
*/
/*
public ReturnValue getProducuCategoryList() throws Exception {
GBS_MProduct_DB Product_DB = new GBS_MProduct_DB(this.datasource);
ReturnValue returnValue = Product_DB.getProductCategoryList();
return returnValue;
}
public ReturnValue getOptionCategoryList () throws Exception {
GBS_MProduct_DB Product_DB = new GBS_MProduct_DB ( this.datasource );
ReturnValue returnValue = Product_DB.getOptionCategoryList();
return returnValue;
}
*/
/**
* get all user master info
* @param UserName
* @param Subsidiary
* @param Committe
* @param Support
* @param Operation
* @param LocalMember
* @return
* @throws Exception
*/
public ReturnValue getProductList( String ProductID,
String ProductName,
String McKind,
String OptionKind,
String ProductCategory,
String OptionCategory,
String ColorCPM,
String ColorCPM1,
String MonoColorCPM,
String MonoColorCPM1,
String BWCPM,
String BWCPM1,
String OthersCPM,
String OthersCPM1,
String admins )
throws Exception {
GBS_MProduct_DB productDB = new GBS_MProduct_DB(this.datasource);
ReturnValue retrunValue = productDB.getProductMasterConditionList (ProductID,
ProductName,
McKind,
OptionKind,
ProductCategory,
OptionCategory,
ColorCPM,
ColorCPM1,
MonoColorCPM,
MonoColorCPM1,
BWCPM,
BWCPM1,
OthersCPM,
OthersCPM1,
admins );
return retrunValue;
}
/**
* get attachmentfile by seqno
* @param String seqno
* @return byte attachmentfile
* @exception Exception Exception for information of other errors
* @since 2004/07/30
*/
public ReturnValue getAttachmentFile( String strProductID,
HttpServletResponse response )throws Exception{
GBS_MProduct_DB Product_DB = new GBS_MProduct_DB(this.datasource);
ReturnValue returnValue = Product_DB.getAttachmentFile( strProductID, response);
return returnValue;
}
//ATTACHMENT_FILE
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -