📄 special_info.jsp
字号:
<%@page contentType="text/html;charset=gbk"%>
<%@ 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"%>
<%@ taglib uri="/WEB-INF/curstom-tags.tld" prefix="custom" %>
<%!String getCltMessage(String sMsg, String iStepSN) {
StringBuffer ret = new StringBuffer();
if (sMsg != null) {
ret.append("<script language=\"JavaScript\" type=\"text/JavaScript\">");
if ( sMsg.trim().length() > 0 ) {
ret.append("alert(\"").append(sMsg).append("\");");
}
ret.append("if ( typeof(parent.selectStepSN) != undefined ) {");
ret.append("parent.selectStepSN(").append(iStepSN).append(");");
ret.append("}");
ret.append("</script>");
}
return ret.toString();
}
%>
<%
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 prodOrderId = (String)session.getAttribute("PRODORDERID");
if ( prodOrderId == null ) {
CommonMethod.alertReturn("操作超时,请重新从列表中开始。",true);
return;
}
String accessPhone = null;
String feePhone = null;
String affairPhone = null;
String account = null;
String password = null;
String sOneTime = null;
String sMonthTime = null;
String sConnectCount = null;
String sInstallTime = null;
try {
MovePhoneBean phoneBean = MovePhoneBean.getMovePhoneBean(new DacClient(), Long.parseLong(prodOrderId));
accessPhone = phoneBean.getRecordIDS(BSSParamName.OTHER_ACCESS_PHONE);
feePhone = phoneBean.getRecordIDS(BSSParamName.OTHER_FEE_PHONE);
DataTable dt = phoneBean.getRecordFrom(BSSParamName.CUST_ARCHIVES_TABLE);
if ( dt == null || dt.getRows().getCount() < 0 ) {
out.println(getCltMessage("您没有通过客户档案查询,请先查询。","1"));
return ;
}
affairPhone = dt.getRow(0).getString(BSSParamName.CUST_ARCHIVES_SERV_ACC_NBR);
sOneTime = phoneBean.getRecordIDS("ONETIME");
sMonthTime = phoneBean.getRecordIDS("MONTHTIME");
sConnectCount = phoneBean.getRecordIDS("CONNECTCOUNT");
sInstallTime = phoneBean.getRecordIDS("INSTALLTIME");
com.doone.fj1w.fj1w.order.Tf_ProdOrder order = phoneBean.getProdOrder();
String aboutTel = order.getAbouttel();
if ( aboutTel != null ) {
if ( aboutTel.indexOf(",") != -1 ) {
accessPhone = aboutTel.substring(0, aboutTel.indexOf(","));
feePhone = aboutTel.substring(aboutTel.indexOf(",") + 1);
}
else {
accessPhone = aboutTel;
}
}
if (! com.doone.util.ExtString.isEmpty(accessPhone) ) {
account = accessPhone + "@qzadsl";
}
dt = phoneBean.getRecordFrom(BSSParamName.PWD_TABLE);
if ( dt != null && dt.getRows().getCount() > 0 ) {
password = dt.getRow(0).getString(BSSParamName.PWD_PASSWORD);
}
if ( accessPhone == null ) accessPhone = "";
if ( feePhone == null ) feePhone = accessPhone;
if ( affairPhone == null ) affairPhone = "";
if ( account == null ) account = "";
if ( password == null ) password = "";
if( sOneTime == null ) sOneTime = "";
if ( sMonthTime == null ) sMonthTime = "";
if ( sConnectCount == null ) sConnectCount = "";
if ( sInstallTime == null ) sInstallTime = com.doone.util.ExtString.fromDate(new Date());
}
catch(Exception ex){}
%>
<html>
<head>
<title>公共受理信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=gbk">
<link href="../../../common/style/main.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="../../../common/script/ChangeStyle.js"></script>
<script language="JavaScript" src="../../../common/mainTool.js"></script>
<script language="JavaScript" src="../../../Resource/xmlhttpclient.js"></script>
<script language="JavaScript">
function init(){
}
function to_next(){
// var sAffairPhone = document.getElementById("AFFAIRPHONE").value;
// var sDomainName = document.getElementById("DOMAINNAME").value;
var sAccessPhone = document.getElementById("ACCESSPHONE").value;
var sAccount = document.getElementById("ACCOUNT").value;
var sFeePhone = document.getElementById("FEEPHONE").value;
var sPassword = document.getElementById("PASSWORD").value;
var sOneTime = document.getElementById("ONETIME").value;
var sMonthTime = document.getElementById("MONTHTIME").value;
var sConnectCount = document.getElementById("CONNECTCOUNT").value;
//var sInstallTime = document.getElementById("INSTALLTIME").value;
// 检查电话是否存在,或者电话局向是否相同。
var xmlHttp = new XMLHttpClient("<%= request.getContextPath()%>/XmlHttpService");
xmlHttp.append("PRODORDERID","<%= prodOrderId%>");
// xmlHttp.append("AFFAIRPHONE", sAffairPhone);
// xmlHttp.append("DOMAINNAME", sDomainName);
xmlHttp.append("ACCESSPHONE", sAccessPhone);
xmlHttp.append("ACCOUNT", sAccount);
xmlHttp.append("FEEPHONE", sFeePhone);
xmlHttp.append("PASSWORD", sPassword);
xmlHttp.append("ONETIME", sOneTime);
xmlHttp.append("MONTHTIME", sMonthTime);
xmlHttp.append("CONNECTCOUNT", sConnectCount);
//xmlHttp.append("INSTALLTIME", sInstallTime);
var str = xmlHttp.submitAsString("JspService","/view/order/moveadsl/phone_check.jsp");
if ( str != "str-->true" ) {
alert(str);
return false;
}
if ( typeof(parent.nextOption) != undefined ) {
parent.nextOption();
}
return true;
}
</script>
</head>
<body onload="init()" scroll="no">
<form action="" method="post" name="form1">
<!--受理来源-->
<input type="hidden" name="ACCEPTSOURCE" value="N" />
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="OuterTable" id="basic">
<tr class="InnerTable">
<td colspan="4" class="title_td">
<span id="ItemTitle"><font face="webdings">8</font> 公共受理信息</span>
</td>
</tr>
<tr>
<td width="15%" class="Caption_Td" align="right">
数据号码:
</td>
<td width="35%" class="body_td" nowrap="nowrap">
<input style="width:100%" type="text" id="AFFAIRPHONE" name="AFFAIRPHONE" value="<%= affairPhone%>" readonly="readonly"/>
</td>
<td width="15%" class="Caption_Td" align="right">
主机域名:
</td>
<td width="35%" class="body_td">
<select style="width:100%" name="DOMAINNAME" disabled="disabled">
<option value="1">@qzlan</option>
</select>
</td>
</tr>
<tr>
<td class="Caption_Td" align="right">
接入号码:
</td>
<td class="body_td" nowrap="nowrap">
<input style="width:100%" type="text" id="ACCESSPHONE" name="ACCESSPHONE" value="<%=accessPhone%>"/>
</td>
<td class="Caption_Td" align="right">
拨号帐号:
</td>
<td class="body_td"><input style="width:100%" type="text" id="ACCOUNT" name="ACCOUNT" value="<%= account%>" readonly="readonly"/></td>
</tr>
<tr>
<td class="Caption_Td" align="right">
计费号码:
</td>
<td class="body_td" nowrap="nowrap">
<input style="width: 100%;" name="FEEPHONE" id="FEEPHONE" value="<%= feePhone%>"/>
</td>
<td class="Caption_Td" align="right">
拨号密码:
</td>
<td class="body_td">
<input style="width:100%" type="PASSWORD" id="PASSWORD" name="PASSWORD" value="<%= password%>">
</td>
</tr>
<tr>
<td class="Caption_Td" align="right">
每次上网时长:
</td>
<td class="body_td" nowrap="nowrap">
<input style="width: 100%;" name="ONETIME" id="ONETIME" value="<%= sOneTime%>"/>
</td>
<td class="Caption_Td" align="right">
每月上网时长:
</td>
<td class="body_td">
<input style="width:100%" type="text" id="MONTHTIME" name="MONTHTIME" value="<%= sMonthTime%>">
</td>
</tr>
<tr>
<td class="Caption_Td" align="right">
上网连接数:
</td>
<td class="body_td" nowrap="nowrap">
<input style="width: 100%;" name="CONNECTCOUNT" id="CONNECTCOUNT" value="<%= sConnectCount%>"/>
</td>
<td class="Caption_Td" align="right">
装机时间:
</td>
<td class="body_td">
<input style="width:100%" type="text" id="INSTALLTIME" name="INSTALLTIME" readonly="readonly" value="<%= sInstallTime%>">
</td>
</tr>
<tr class="InnerTable">
<td colspan="4" align="right" class="body_td">
<input type="button" class="button" name="button" value="下一步" onclick="to_next();" />
</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -