jsp数据库开发实例精粹全书原代码
无解压缩密码
包括 书店
源代码在线查看: guanli_ppm_edit1.jsp~4~~1~
request.setCharacterEncoding("GBK");
long ppmid=0;
if(request.getParameter("ppmid")!=null)
ppmid=Long.parseLong(request.getParameter("ppmid").trim());
boolean zhongbiao=false;
if(request.getParameter("zhongbiao")!=null)
if(Long.parseLong(request.getParameter("zhongbiao"))==1)
zhongbiao=true;
String shebei=null;
if(request.getParameter("shebei")!=null)
shebei=request.getParameter("shebei").trim();
String beijian=null;
if(request.getParameter("beijian")!=null)
beijian=request.getParameter("beijian").trim();
String jishu=null;
if(request.getParameter("jishu")!=null)
jishu=request.getParameter("jishu").trim();
String xuanxiang=null;
if(request.getParameter("xuanxiang")!=null)
xuanxiang=request.getParameter("xuanxiang").trim();
String peitao=null;
if(request.getParameter("peitao")!=null)
peitao =request.getParameter("peitao").trim();
String guonei=null;
if(request.getParameter("guonei")!=null)
guonei=request.getParameter("guonei").trim();
String toubiao=null;
if(request.getParameter("toubiao")!=null)
toubiao=request.getParameter("toubiao").trim();
String jiaohuo=null;
if(request.getParameter("jiaohuo")!=null)
jiaohuo=request.getParameter("jiaohuo").trim();
NewPPM newppm=new NewPPM();
Basic basic=new Basic();
Price price=new Price();
PPM ppm=new PPM();
ppm=basic.getPPM(ppmid);
ppm.setZhongbiao(zhongbiao);
price.setPrice_id(ppm.getPrice_id());
price.setT1(shebei);
price.setT2(beijian);
price.setT3(jishu);
price.setT4(xuanxiang);
price.setT5(peitao);
price.setT6(guonei);
price.setT7(toubiao);
price.setT8(jiaohuo);
NewPrice newprice=new NewPrice();
newprice.updatePrice(prifce);
newppm.updatePPM(ppm);
basic.freeCon();
newppm.freeCon();
newprice.freeCon();
%>
guanli_typeadd1
function closewin()
{
window.opener.location.reload();
window.close();
}
修改成功!关闭本窗口