24 lines
980 B
Plaintext
24 lines
980 B
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@ include file="/IncludeBeginMDAJAX.jsp"%><%
|
|
String codeno = CurPage.getParameter("codeno");
|
|
String attribute1 = CurPage.getParameter("attribute1");
|
|
String selectOpinion = CurPage.getParameter("selectOpinion");
|
|
try{
|
|
String sql = "select c.itemno,c.itemname from code_library c where c.codeno='"+codeno+"' and c.attribute1="+attribute1;
|
|
ASResultSet res = Sqlca.getASResultSet(new SqlObject(sql));
|
|
StringBuilder sb = new StringBuilder();
|
|
while(res.next()){
|
|
if(res.getString("itemno").toString().equals(selectOpinion)){
|
|
sb.append("<option value='"+res.getString("itemno")+"' selected>"+res.getString("itemname")+"</option>");
|
|
}else{
|
|
sb.append("<option value='"+res.getString("itemno")+"'>"+res.getString("itemname")+"</option>");
|
|
}
|
|
}
|
|
if(sb.length()>0){
|
|
out.print(sb.toString());
|
|
}
|
|
}catch(Exception e){
|
|
e.printStackTrace();
|
|
out.print("FALSE");
|
|
}
|
|
%><%@ include file="/IncludeEndAJAX.jsp"%> |