luojian dc106901e3 2
2018-07-31 11:13:51 +08:00

20 lines
829 B
Plaintext

<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/IncludeBeginMDAJAX.jsp"%><%
String codeno = CurPage.getParameter("codeno");
String attribute1 = CurPage.getParameter("attribute1");
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();
sb.append("<option value selected>---ÇëÑ¡Ôñ---</option>");
while(res.next()){
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"%>