📄 shineaccountinfo.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="com.doone.iossp.FormBody"%>
<%@ page import="com.doone.fj1w.common.AreaBean"%>
<%@ page import="com.doone.fj1w.fjmgr.order.list.ConfigQueryImpl"%>
<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 prodOrderId = (String)session.getAttribute("PRODORDERID");
%>
<jsp:include page="isRecisionApply.jsp"/>
<%
TF_BSSFlowRecord tf_BSSFlowRecord = TF_BSSFlowRecord.getBSSFlowRecord(new DacClient(),Long.parseLong(prodOrderId));
DataTable custArchives_dt = tf_BSSFlowRecord.getRecordFrom(BssParameter.CUST_ARCHIVES_TABLE);
String cityCode = tf_BSSFlowRecord.getRecordIDS("CITYCODE"); //城市编号
String account = custArchives_dt.getRow(0).getString("SERV_ACC_NBRISERV_ACC_NBR");
/**用于ADSL帐号取得地市的缩写***/
DataTable singleCity_dt = AreaBean.getSingleCityInfo(new DacClient(),cityCode);
String cityShortName = singleCity_dt.getRow(0).getString("cityShortName");
%>
</head>
<title>阳光帐号信息</title>
<head>
<script language="JavaScript">
function init(){
fuc_event_select();
var account = document.form1.addPhoNbr.value;
var hostName = document.form1.hostName.value;
document.form1.shineAccount.value = account+hostName;
}
function nexteven(){
var pel = document.getElementsByName("isGive");
var isGive = "0";
var shineAccount = "";
var studentPwd = "";
var familyPwd = "";
for ( i=0; i< pel.length; i++){
if (pel(i).checked == true && pel(i).value == "1") {
isGive = "1";
shineAccount = document.form1.shineAccount.value;
studentPwd = document.form1.studentPwd.value;
familyPwd = document.form1.familyPwd.value;
}
}
var prodOrderId = document.form1.prodOrderId.value;
var xmlHttp = new XMLHttpClient("<%= request.getContextPath()%>/XmlHttpService");
xmlHttp.append("INFOTYPE","shineAccountInfo");
xmlHttp.append("PRODORDERID",prodOrderId);
xmlHttp.append("ISGIVE",isGive);
xmlHttp.append("SHINEACCOUNT",shineAccount);
xmlHttp.append("STUDENTPWD",studentPwd);
xmlHttp.append("FAMILYPWD",familyPwd);
var str = xmlHttp.submitAsString("LanFlowService","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 fuc_event_select(){
var isGive = document.form1.isGive;
if(isGive.checked == true){
c1.style.display = "";
c2.style.display = "";
c3.style.display = "";
return;
}
else{
c1.style.display = "none";
c2.style.display = "none";
c3.style.display = "none";
return;
}
}
</script>
<body onload="init()">
<form action="" method="post" name="form1" >
<input type="hidden" name="addPhoNbr" value="<%=account%>">
<input type="hidden" name="hostName" value="@sunny.<%=cityShortName%>lan">
<input type="hidden" name="prodOrderId" value="<%=prodOrderId%>"/>
<input type="hidden" name="cityCode" value="<%=cityCode%>"/>
<table width="617" height="100" border="0" cellpadding="2" cellspacing="1" class="InnerTable" id ="basic" >
<tr height="33">
<td class="InnerHead" width="100%" height="30" colspan="2">
<div align="left">
开通阳光帐号:
<input type="checkbox" name="isGive" id="isGive" value="1" onclick="fuc_event_select()"></div></td>
</tr>
<tr id="c1" style="display:none" height="33">
<td class="InnerHead" width="35%" height="30">
<div align="right">
阳光帐号: </div></td>
<td class="InnerMain" width="65%">
<div align="left">
<input type="text" name="shineAccount" >
</tr>
<tr id="c2" style="display:none" height="33">
<td class="InnerHead" width="35%" height="30">
<div align="right">
学生密码: </div></td>
<td class="InnerMain" width="65%">
<div align="left">
<input type="text" name="studentPwd">
</tr>
<tr id="c3" style="display:none" height="33">
<td class="InnerHead" width="35%" height="30">
<div align="right">
家长密码: </div></td>
<td class="InnerMain" width="65%">
<div align="left">
<input type="text" name="familyPwd">
</tr>
<tr height="33">
<td class="InnerMain" colspan="2">
<div align="right">
<input type="button"
name="Submit"
class="button"
style="width:80px"
onClick="return nexteven();"
value="下一步">
</div></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -