<%
String plselect = request.getParameter("plselect");
PBIResourceCategoryProcess process = new PBIResourceCategoryProcess();
QueryResult pmResult = null;
if(plselect!=null&&!plselect.equals("")){
pmResult = process.queryAllChilds(plselect);
}
PBIResourceCategory pbiRC = null;
if(pmResult!=null){
out.println("<font class='wizardlabel'>产品族:</font>");
out.println("<selectname='pmselect' onchange='onChangeProduct(this);'>");
out.println("<option value=''> </option>");
while (pmResult.hasMoreElements()) {
pbiRC = (PBIResourceCategory) pmResult.nextElement();
String productFamilyID = pbiRC.getPbiID();
String productFamilyName = pbiRC.getCategoryValue();
if(productFamilyID.equals(plselect)){
out.println("<option value="+productFamilyID+" selected>"+productFamilyName+"</option>");
//out.println("<option value="+productFamilyID+" selected>"+productFamilyName+"</option>");
}
else{
out.println("<option value="+productFamilyID+">"+productFamilyName+"</option>");
}
}
}
%>