jsp数据库开发实例精粹全书原代码
无解压缩密码
包括 书店
源代码在线查看: guanli_ppm_qx.jsp~4~~1~
request.setCharacterEncoding("GBK");
long pjid=0;
if(request.getParameter("pjid")!=null)
pjid=Long.parseLong(request.getParameter("pjid").trim());
out.print("pjid="+pjid);
long typeid=0;
if(request.getParameter("typeid")!=null)
type=Long.parseLong(request.getParameter("typeid").trim());
out.print("typeid="+typeid);
String[] pdidlist;
pdidlist=request.getParameterValues("pdidlist");
NewPPM newppm=NewPPM();
newppm.delPPMProjectidTypeid(pjid,typeid);
if(pdidlist!=null)
{
for(int i=0;i {
long pdid;
boolean isok=false;
Basic basic=new Basic();
PPM ppm=new PPM();
pdid=Long.parseLong(pdlist[i]);
Product pd=new Product();
pd=Basic.getProduct(pdid);
ppm.setProject_id(pjid);
ppm.setProduct_id(pd.getProduct_id());
ppm.setMaker_id(pd.getMaker_id());
ppm.setZhongbiao(isok);
ppm.setPrice_id(i);
newppm.addPPM(ppm);
}
}
%>
guanli_ppm_qx
JBuilder Generated JSP