jsp数据库开发实例精粹全书原代码
无解压缩密码
包括 书店
源代码在线查看: guanli_ppm_edit1.jsp
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="0.00";
if(request.getParameter("shebei")!=null)
shebei=request.getParameter("shebei").trim();
String beijian="0.00";
if(request.getParameter("beijian")!=null)
beijian=request.getParameter("beijian").trim();
String jishu="0.00";
if(request.getParameter("jishu")!=null)
jishu=request.getParameter("jishu").trim();
String xuanxiang="0.00";
if(request.getParameter("xuanxiang")!=null)
xuanxiang=request.getParameter("xuanxiang").trim();
String peitao="0.00";
if(request.getParameter("peitao")!=null)
peitao =request.getParameter("peitao").trim();
String guonei="0.00";
if(request.getParameter("guonei")!=null)
guonei=request.getParameter("guonei").trim();
String toubiao="0.00";
if(request.getParameter("toubiao")!=null)
toubiao=request.getParameter("toubiao").trim();
String jiaohuo="0000-00-00";
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();
NewPrice newprice=new NewPrice();
ppm=basic.getPPM(ppmid);
ppm.setZhongbiao(zhongbiao);
price.setPrice_id(ppm.getPrice_id());
price.setDevice_price(shebei);
price.setTool_price(beijian);
price.setService_price(jishu);
price.setOptional_price(xuanxiang);
price.setRePro_price(peitao);
price.setInter_price(guonei);
price.setEnsure_price(toubiao);
price.setDeliver_time(jiaohuo);
newprice.updatePrice(price);
newppm.updatePPM(ppm);
basic.freeCon();
newppm.freeCon();
newprice.freeCon();
%>
guanli_typeadd1
function closewin()
{
window.opener.location.reload();
window.close();
}
修改成功!关闭本窗口