%@ page
language="java"
contentType="text/html; charset=GBK"
pageEncoding="GBK"
%>
<%@ page import="chapter8.model.CHD,
chapter8.bo.BusinessBO,
chapter8.model.Customer,
chapter8.model.Product,
chapter8.model.Element,
chapter8.bo.BaseInfoBO,
chapter8.util.RequestUtils,
chapter8.model.User,
chapter8.bo.UserManagerBO"
%>
<%
long id = RequestUtils.getParamLong(request,"id",0);
CHD chd = BusinessBO.getInstance().getCHD(id);
User user = UserManagerBO.getInstance().getUser(chd.getCustomerId());
Element[] elements = BusinessBO.getInstance().findElementByCHDId(chd.getDhdId());
float total = 0;
for(int i = 0, size = elements.length; i < size ; i++ ) {
total = total + elements[i].getTotal();
}
%>
<%@ include file="../common/head.jsp"%>
<%@ include file="../common/foot.jsp"%>