📄 calaloginfo.java
字号:
package com.saas.biz.infoClassMgr;
import java.util.ArrayList;
import java.util.HashMap;
import com.saas.biz.commen.commMethodMgr;
import com.saas.biz.dao.infoclassDAO.InfoClassExt;
import com.saas.sys.buffer.Buffers;
import com.saas.sys.dbm.Dbtable;
import com.saas.sys.exp.SaasApplicationException;
import com.saas.sys.log.Logger;
public class CalalogInfo {
Logger log;
Buffers inBuffer;
Buffers outBuffer;
Dbtable tradeQuery;
commMethodMgr commen;
ArrayList queryResult = new ArrayList();
public CalalogInfo() {
log = new Logger(this);
tradeQuery = new Dbtable();
commen = new commMethodMgr();
outBuffer = new Buffers();
}
public void setOutBuffer(Buffers outBuffer) {
this.outBuffer = outBuffer;
}
public Buffers getOutBuffer() {
return this.outBuffer;
}
public void setTradeQuery(Dbtable tradeQuery) {
this.tradeQuery = tradeQuery;
}
public Dbtable getTradeQuery() {
return this.tradeQuery;
}
public ArrayList getQueryResult() {
return this.queryResult;
}
public void setQueryResult(ArrayList queryResult) {
this.queryResult = queryResult;
}
/**
* @param class_id
* @return 取出销售信息
* @throws SaasApplicationException
*/
public ArrayList getSaleInfoByClassGroup(int iStart, int limit, String class_id) throws SaasApplicationException {
if (iStart > 0) {
iStart = (iStart - 1) * limit;
}
else {
iStart = 0;
}
InfoClassExt infoExt = new InfoClassExt();
infoExt.setParam(":VCLASS_ID", class_id);
ArrayList list = infoExt.selByList("SEL_SALE_BY_CLASS", iStart, limit);
return list;
}
/**
* @param class_id
* @return 统计销售信息
* @throws SaasApplicationException
*/
public int getSaleInfoByClassCount(String class_id) throws SaasApplicationException {
int size = 0;
InfoClassExt infoExt = new InfoClassExt();
infoExt.setParam(":VCLASS_ID", class_id);
ArrayList list = infoExt.selByList("SEL_SALE_BY_CLASS_CT");
if (list != null && list.size() > 0) {
HashMap map = (HashMap) list.get(0);
size = (Integer.parseInt(map.get("ct").toString()));
}
return size;
}
/**
* @param class_id
* @return 取出采购信息
* @throws SaasApplicationException
*/
public ArrayList getStockInfoByClassGroup(int iStart, int limit, String class_id) throws SaasApplicationException {
if (iStart > 0) {
iStart = (iStart - 1) * limit;
}
else {
iStart = 0;
}
InfoClassExt infoExt = new InfoClassExt();
infoExt.setParam(":VCLASS_ID", class_id);
ArrayList list = infoExt.selByList("SEL_STOCK_BY_CLASS", iStart, limit);
return list;
}
/**
* @param class_id
* @return 统计采购信息
* @throws SaasApplicationException
*/
public int getStockInfoByClassCount(String class_id) throws SaasApplicationException {
int size = 0;
InfoClassExt infoExt = new InfoClassExt();
infoExt.setParam(":VCLASS_ID", class_id);
ArrayList list = infoExt.selByList("SEL_STOCK_BY_CLASS_CT");
if (list != null && list.size() > 0) {
HashMap map = (HashMap) list.get(0);
size = (Integer.parseInt(map.get("ct").toString()));
}
return size;
}
/**
* @param class_id
* @return 取出企业信息
* @throws SaasApplicationException
*/
public ArrayList getEnterpriseInfoByClassGroup(int iStart, int limit, String class_id) throws SaasApplicationException {
if (iStart > 0) {
iStart = (iStart - 1) * limit;
}
else {
iStart = 0;
}
InfoClassExt infoExt = new InfoClassExt();
infoExt.setParam(":VCLASS_ID", class_id);
ArrayList list = infoExt.selByList("SEL_CUSTOMER_BY_CLASS", iStart, limit);
return list;
}
/**
* @param class_id
* @return 统计企业信息
* @throws SaasApplicationException
*/
public int getEnterpriseInfoByClassCount(String class_id) throws SaasApplicationException {
int size = 0;
InfoClassExt infoExt = new InfoClassExt();
infoExt.setParam(":VCLASS_ID", class_id);
ArrayList list = infoExt.selByList("SEL_CUSTOMER_BY_CLASS_CT");
if (list != null && list.size() > 0) {
HashMap map = (HashMap) list.get(0);
size = (Integer.parseInt(map.get("ct").toString()));
}
return size;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -