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

📄 commonacceptinfo.jsp

📁 电信的网厅的整站代码
💻 JSP
字号:
<%@page contentType="text/html;charset=gb2312"%>
<%@ page import="com.doone.uurm.WebAuth"%>
<%@ page import="com.doone.data.*"%>
<%@ page import="com.doone.fj1w.fjmgr.order.*"%>
<%@ page import="java.util.*"%>
<%@ page import="com.doone.fj1w.common.AreaBean"%>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../../common/style/main.css" rel="stylesheet" type="text/css" />
<link href="../../../common/style/sty01.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="../../../common/mainTool.js"></script>
<script language="JavaScript" src="../../../common/script/ChangeStyle.js"></script>
<script language="JavaScript" src="../../../Resource/xmlhttpclient.js"></script>

<%request.setCharacterEncoding("gb2312");%>
<%
    String sPurvICode="NGB001001";
	WebAuth auth = WebAuth.getInstance(request);

    if ( ! auth.IsAuthed() ) {
	    out.write("<script language=\"javascript\">self.parent.location.replace(\"" + request.getContextPath() + "/view/login/login.jsp" + "\");</script>");
	    return;
    }
	else if ( ! auth.CheckPurv(sPurvICode) ) {
	    out.write("<script language=javascript src=\"../../../../common/script/RightForbidden.js\"></script>");
	    return;
	}
	
	String custRelationName = "";//客户的联系人姓名
	String custRelationPho = "";//客户的联系电话
	String custCard = "";//客户的证件
	String custCardNo = "";//客户的证件号码
	String acceptName = "";//受理人姓名
	String acceptPho = "";//受理人电话
	String acceptCard = "";//受理人证件
	String acceptCardNo = "";//受理人证件号码

	
	/*取客户信息*/
	String prodOrderId = (String)session.getAttribute("PRODORDERID");
%>
    <jsp:include page="isRecisionApply.jsp"/>
<%	                    
	TF_BSSFlowRecord tf_BSSFlowRecord = TF_BSSFlowRecord.getBSSFlowRecord(new DacClient(),Long.parseLong(prodOrderId));
	String cityCode = tf_BSSFlowRecord.getRecordIDS("CITYCODE"); //城市编号
	
	if(tf_BSSFlowRecord.getRecordIDS("CUSTICUST_RELATIONNAME") != null){
	    custRelationName = tf_BSSFlowRecord.getRecordIDS("CUSTICUST_RELATIONNAME");
	    custRelationPho = tf_BSSFlowRecord.getRecordIDS("CUSTICUST_RELATIONPHO");
	    custCard = tf_BSSFlowRecord.getRecordIDS("CUSTICUST_CARD");
	    custCardNo = tf_BSSFlowRecord.getRecordIDS("CUSTICUST_CARDNO");
	}
	
	if(tf_BSSFlowRecord.getRecordIDS("ACCEPTMEN_NAME") != null){
	    acceptName = tf_BSSFlowRecord.getRecordIDS("ACCEPTMEN_NAME");
	    acceptPho  = tf_BSSFlowRecord.getRecordIDS("ACCEPTMEN_PHO");
	    acceptCard = tf_BSSFlowRecord.getRecordIDS("ACCEPTMEN_CARD");
	    acceptCardNo = tf_BSSFlowRecord.getRecordIDS("ACCEPTMEN_CARDNO");
	}

	/*获取处理级别*/
	DataTable level_dt = BssInter2.callWebQrySPSTATUS("SO","PRIORITY",cityCode);
	String levelId = "";
	String levelName = "";
	
	/*获取预约时间*/
	Date date = new Date();
	
%>

</head>
<title>公共受理信息</title>
<head>
<script language="JavaScript">

  function init(){
  }
  
  function menInfo(menType){
      var url = "relationInfo.jsp?title="+menType+"&showType=1";
      // 弹出局向选择窗口。
      showModelDailog(url, 305, 168);
      return true;
  }
  
  function nexteven(){
      
      var relationName = document.form1.relationName.value;
      var acceptMen = document.form1.acceptMen.value;
      var developMen = document.form1.developMen.value;
      var fixType = document.form1.fixType.value;
      var operationLevel = document.form1.operationLevel.value;
      //var acceptSource = document.form1.acceptSource.value;
      var bespeakTime = document.form1.bespeakTime.value;
      var prodOrderId = document.form1.prodOrderId.value;
      var xmlHttp = new XMLHttpClient("<%= request.getContextPath()%>/XmlHttpService");
      xmlHttp.append("INFOTYPE","commonAcceptInfo");
      xmlHttp.append("PRODORDERID",prodOrderId);
      xmlHttp.append("RELATIONNAME",relationName);
      xmlHttp.append("ACCEPTMEN",acceptMen);
      xmlHttp.append("DEVELOPMEN",developMen);
      xmlHttp.append("FIXTYPE",fixType);
      xmlHttp.append("OPERATIONLEVEL",operationLevel);
      xmlHttp.append("ACCEPTSOURCE","N");
      xmlHttp.append("BESPEAKTIME",bespeakTime);
      var str = xmlHttp.submitAsString("AdslFlowService","saveInfo");
      if ( str.substr(0,6) == new String("str-->") ) {
          try {
			  var text = str.substr(6,str.length);
			  if ( text != null) {
				   if(text == 0){	
				       alert("记录失败,请重试!");	
				       return false;
				   }
		      }
		 	  else{
		      	   alert("记录失败,请重试!");
		      	   return false;
		      }
          		  
		  } 
		  catch(ex) {
			  throw ex;
			  return false;
		  }
	  }
	  else {
		  alert("记录失败,请重试!");
		  return false;
	  }
      if ( typeof(parent.nextOption) != undefined ) {
          parent.nextOption();
      }
      return true;
  }
  
  function fnQueryReload(name,title) {
      if ( title == "经办人" ) {
          document.getElementById("acceptMen").value = name;                
      }
      else if ( title == "联系人") {
          document.getElementById("relationName").value = name;                
      }
  }
  

</script>  

<body onload="init()">
<form action="" method="post" name="form1" >
<input type="hidden" name="prodOrderId" value="<%=prodOrderId%>"/>
<input type="hidden" name="cityCode" value="<%=cityCode%>"/>
<input type="hidden" name="custRelationPho" value="<%=custRelationPho%>"/>
<input type="hidden" name="custCard" value="<%=custCard%>"/>
<input type="hidden" name="custCardNo" value="<%=custCardNo%>"/>
<input type="hidden" name="acceptName" value="<%=acceptName%>"/>
<input type="hidden" name="acceptPho" value="<%=acceptPho%>"/>
<input type="hidden" name="acceptCard" value="<%=acceptCard%>"/>
<input type="hidden" name="acceptCardNo" value="<%=acceptCardNo%>"/>
<table id="box1" width="100%" height="116" border="0" cellpadding="0" cellspacing="0" class="OuterTable">
	 <tr class="InnerTable">
        <td colspan="4" class="title_td">
        <span id="ItemTitle"><font face="webdings">8</font>&nbsp;公共受理信息</span>
        </td>
     </tr>
     <tr>
          <td width="15%" class="Caption_Td" align="right">
              联系人:
          </td>
          <td width="35%" class="body_td" nowrap="nowrap">
              <input type="text" style="width:80%" name="relationName" value="<%=custRelationName%>">
              <input type="button" value="选择" style="width:18%" onclick="menInfo('联系人')">
          </td>
          <td width="15%" class="Caption_Td" align="right">
              安装类型:
          </td>
          <td width="35%" class="body_td">
              <select style="width:100%" name="fixType" disabled="disabled"></select>
          </td>
     </tr>	
     <tr>
        <td class="Caption_Td" align="right">
            经办人:
        </td>
        <td class="body_td" nowrap="nowrap">
            <input type="text" style="width:80%" name="acceptMen" value="<%=acceptName%>">
	        <input type="button" value="选择" style="width:18%" onclick="menInfo('经办人')">
        </td>
        <td class="Caption_Td" align="right">
            处理级别:
        </td>
        <td class="body_td">
            <select style="width: 100%" name="operationLevel">
			<%
			String priority = tf_BSSFlowRecord.getRecordIDS("OPERATIONLEVEL");//处理级别
			if(level_dt != null){
				for(int i=0;i<level_dt.getRows().getCount();i++){
				    String selected = "";
				    levelId = level_dt.getRow(i).getString("SP_STATUSiSTS_ID");
				    levelName = level_dt.getRow(i).getString("SP_STATUSiSTS_WORDS");
				    if(levelId.equals(priority)){
		                selected = "selected=\"selected\"";
		            }
				    out.println("<option value=\""+levelId+"\" "+selected+">"+levelName+"</option>");
			    }
		    }
			%>
			</select>
        </td>
	 </tr>
	 <tr>
        <td class="Caption_Td" align="right">
            发展员工:
        </td>
        <td class="body_td" nowrap="nowrap">
            <input style="width: 80%;" name="developMen" id="developMen" value="网上营业厅" readonly="readonly"/>
            <input type="button" value="选择" style="width:18%" disabled="true">
        </td>
        <td class="Caption_Td" align="right">
            预约时间:
        </td>
        <td class="body_td">
            <input style="width:100%" type="text" id="bespeakTime" name="bespeakTime" readonly="readonly" value="<%= com.doone.util.ExtString.fromDate(date)%>">
        </td>
     </tr>
     <tr class="InnerTable">
        <td colspan="4" align="right" class="body_td">
            <input type="button" class="button" name="button" value="下一步" onclick="return nexteven();" />
        </td>
     </tr>
</table>
</form>
</body>
</html>

⌨️ 快捷键说明

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