⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 select_address_trans.jsp

📁 电信的网厅的整站代码
💻 JSP
字号:
<%@page contentType="text/html;charset=GBK"%>

<%@ page import="com.doone.data.DataTable"%>
<%@ page import="com.doone.fj1w.fjmgr.order.*"%>
<%@ page import="com.doone.fj1w.fjmgr.order.CommonMethod"%>
<%@ page import="com.doone.fj1w.fjmgr.order.newphone.FlowsEngie"%>
<%@ page import="com.doone.fj1w.fjmgr.order.newphone.ExtraBssParameter"%>
<%@ page import="com.doone.fj1w.fjmgr.order.Bss_infoEntity.BssAddressBean"%>

<%
		  if (request.getProtocol().compareTo("HTTP/1.0") == 0)
				response.setHeader("Pragma", "no-cache");
		  else if (request.getProtocol().compareTo("HTTP/1.1") == 0)
				response.setHeader("Cache-Control", "no-cache");
		  response.setDateHeader("Expires", 0);		
		  request.setCharacterEncoding("GBK");
		  
		  FlowsEngie _flowEngie = (FlowsEngie)session.getAttribute("TF_BSSENTITY");
		  
		  /**初始化*/
		  String init = request.getParameter("init");
		  if(init != null && !init.equals("")){
		    
		     if(_flowEngie.getRecordFrom(ExtraBssParameter.NP_AddRESS_TBL) != null){
		        BssAddressBean _bab = new BssAddressBean();   
		        _bab.parseDataTable(_flowEngie.getRecordFrom(ExtraBssParameter.NP_AddRESS_TBL));
		        %>
		         document.all.SECTIONADDR.value   = "<%=_bab.getSO_ACCESSIADDR_NAME()%>";
		         document.all.SECTIONADDRID.value = "<%=_bab.getSO_ACCESSiADDR_ID()%>";
		         document.all.DETAILADDR.value    = "<%=_bab.getSO_ACCESSiDETAIL_ADD()%>";
		         document.all.HANDYADDR.value     = "<%= _bab.getSO_ACCESSiREF_ADDR_ID()%>";
		         document.all.HANDYTEL.value      = "<%=_bab.getSO_ACCESSiREF_TEL_NBR()%>";
		        <%
		     }  
		   return;
		  }
		  
		  
		  
		  /**提交结果*/
		  String sectionAddr   = request.getParameter("sectionAddr");//地址名称
		  String sectionAddrId = request.getParameter("sectionAddrId");//地址编码
		  String detailadd     = request.getParameter("detailadd");//详细地址
		  String handyaddr     = request.getParameter("handyaddr");//就近地址
		  String handytel      = request.getParameter("handytel");//就近电话
		 
		  if(sectionAddr != null && !sectionAddr.equals("")
		     && sectionAddrId != null && !sectionAddrId.equals("")){
		   try{
		     //String citycode = _flowEngie.getbssCustMess().getCITYCODE();
		 
		     //判断是否所选地址是否合理。
		     /**
		     String flag = CommonMethod.isTrueAddress(sectionAddrId,citycode);
		     if(flag.startsWith("0")){
		       %>
			     alert("所选地址不合理,原因:<%=flag%>");
			   <%
			   return;
			   }
		     */
		     BssAddressBean _bab = new BssAddressBean();   
		     
             _bab.setSO_ACCESSiADDR_ID(sectionAddrId);
             _bab.setSO_ACCESSIADDR_NAME(sectionAddr);
             _bab.setSO_ACCESSiREF_TEL_NBR(handytel);
             _bab.setSO_ACCESSiREF_ADDR_ID(handyaddr);
		     _bab.setSO_ACCESSiDETAIL_ADD(detailadd);
		    
		    _flowEngie.setRecordFrom(_bab.toFormBody().toDataTable(),
		                             ExtraBssParameter.NP_AddRESS_TBL);
		    _flowEngie.setStepSN(ExtraBssParameter.STEP_2);
		    _flowEngie.save();
		    
		    %>
		      window.location.href = "select_exch.jsp";
		    <%
		   }catch(Exception ex){
		   %>
		     alert("异常:<%=ex.getMessage()%>");
		   <%
		   }
		   return;
		  }
		  
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -