You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
881 B
30 lines
881 B
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
|
|
<%@page import="dao.CommDAO"%>
|
|
<%@page import="util.Info"%>
|
|
<%
|
|
String blno = request.getParameter("blno")==null?"":request.getParameter("blno");
|
|
String isyb = new CommDAO().select("select * from bl where blno='"+blno+"'").get(0).get("isyb").toString();
|
|
|
|
String select = "@@@";
|
|
|
|
if(isyb.equals("否")){
|
|
for(HashMap permap:new CommDAO().select("select * from yaopin")){
|
|
String optionstr = "";
|
|
select+=permap.get("yname")+" - 单价:"+permap.get("price")+"@@@";
|
|
}
|
|
}else{
|
|
for(HashMap permap:new CommDAO().select("select * from yaopin where isyb='是'")){
|
|
String optionstr = "";
|
|
select+=permap.get("yname")+" - 单价:"+permap.get("ybprice")+"@@@";
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
if(select.length()>3)select.substring(0,select.length()-3).trim();
|
|
|
|
out.print(select);
|
|
|
|
|
|
%> |