%@page contentType="text/html;charset=gb2312" %> <%@ page import=" java.io.*, javax.servlet.*, java.util.*, javax.servlet.http.*, java.text.*, java.sql.*, com.drp.* " %> <% Vector Vector_Bnet = (Vector)session.getAttribute("Vector_Bnet"); String BnetID = new String(""); //Bnet系统的用户ID String ProductID = new String(""); //产品ID,在Bnet系统中事先建立了产品表,描述产品ID和产品名称等 String ReturnURL = new String(""); //AP返回订购结果时需要重定向回来的URL String customerName = new String(""); //客户名称 if (Vector_Bnet==null) Vector_Bnet = new Vector(); else{ BnetID = (String)Vector_Bnet.elementAt(0); ProductID = (String)Vector_Bnet.elementAt(1); ReturnURL = (String)Vector_Bnet.elementAt(2); if (BnetID==null) BnetID=""; if (ProductID==null) ProductID=""; if (ReturnURL==null) ReturnURL=""; } /* if (("".equals(BnetID))||("".equals(ProductID))||("".equals(ReturnURL))) { //session中的数据生存周期结束 session.setAttribute("gotourl","http://www.bnet.cn"); //跳转到蓝色魅力的页面上重新登录 //response.sendRedirect("message.jsp?msg="+Drp.urlencode("请重新登录!")); } else{ session.setAttribute("gotourl",ReturnURL); } */ String pr_identifyname = new String(""); ResultSet res = null; DbObj dbobj = new DbObj(); int i_code = dbobj.DBConnect(); if (i_code <0) { //out.println("连接数据库失败"); //return; }else{ //System.out.println("BnetID-"+BnetID); String sql = "select pr_identifyname from bnet_order where pr_code='1072419581621' and BnetID='" + BnetID + "' and bind='1' and flag='Y'" ; //只对企业邮箱有用 //System.out.println("sql:"+sql); res=dbobj.DBSelect(sql); try{ while (res.next()) { pr_identifyname = new String(""); pr_identifyname = res.getString(1); } //End while }catch (Exception e){ //out.println("读数据错误"); //return; }//End dbobj.DBClose(); } if (pr_identifyname==null) pr_identifyname=""; if (!"".equals(pr_identifyname)) pr_identifyname="@"+pr_identifyname; %>