jsp数据库开发实例精粹全书原代码
无解压缩密码
包括 书店
源代码在线查看: guanli_makerupdate1.jsp~5~~1~
request.setCharacterEncoding("GBK");
long mkid=0;
String maker_name=null;
String maker_address=null;
String maker_cr_address=null;
String maker_cr_time=null;
String maker_cr_cost=null;
String maker_fr_name=null;
String maker_fr_position=null;
String maker_attribute=null;
String maker_relation=null;
String maker_db_content=null;
if(request.getParameter("mkid")!=null)
mkid=Long.parseLong(request.getParameter("mkid").trim());
if(request.getParameter("name")!=null)
maker_name=request.getParameter("name").trim();
if(request.getParameter("address")!=null)
maker_address=request.getParameter("address").trim();
if(request.getParameter("cr_address")!=null)
maker_cr_address=request.getParameter("cr_address").trim();
if(request.getParameter("cr_time")!=null)
maker_cr_time=request.getParameter("cr_time").trim();
if(request.getParameter("cr_cost")!=null)
maker_cr_cost=request.getParameter("cr_cost").trim();
if(request.getParameter("fr_name")!=null)
maker_fr_name=request.getParameter("fr_name").trim();
if(request.getParameter("fr_position")!=null)
maker_fr_position=request.getParameter("fr_position").trim();
if(request.getParameter("attribute")!=null)
maker_attribute=request.getParameter("attribute").trim();
if(request.getParameter("lianluo")!=null)
maker_relation=request.getParameter("lianluo").trim();
if(request.getParameter("content")!=null)
maker_db_content=request.getParameter("content").trim();
NewMaker newmk=new NewMaker();
Maker mk=new Maker();
mk.setMaker_id(mkid);
mk.setMaker_name(maker_name);
mk.setMaker_address(maker_address);
mk.setMaker_attribute(maker_attribute);
mk.setMaker_cr_address(maker_cr_address);
mk.setMaker_cr_cost(maker_cr_cost);
mk.setMaker_cr_time(maker_cr_time);
mk.setMaker_db_content(maker_db_content);
mk.setMaker_fr_name(maker_fr_name);
mk.setMaker_fr_position(maker_fr_position);
mk.setMaker_relation(maker_relation);
newmk.updateMaker(mk);
newmk.freeCon();
%>
guanli_makerupdate
function closewin()
{
window.opener.location.reload();
window.close();
}
修改厂商成功!关闭本窗口