📄 accountinfo.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="com.doone.uurm.WebAuth"%>
<%@ page import="com.doone.data.DataTable"%>
<%@ page import="com.doone.data.DataRow"%>
<%@ page import="com.doone.fj1w.fjmgr.sysmgr.Register"%>
<%@ page import="com.doone.fj1w.fjmgr.sysmgr.RegisterService"%>
<%@ taglib uri="/WEB-INF/curstom-tags.tld" prefix="custom" %>
<%!
String getCltMessage(String sMsg, boolean bClose) {
StringBuffer sb = new StringBuffer();
if (sMsg != null) {
sb.append("<script language=\"JavaScript\" type=\"text/JavaScript\">");
sb.append("alert(\"").append(sMsg).append("\");");
sb.append("window.close();");
sb.append("</script>");
}
return sb.toString();
}
%>
<%
request.setCharacterEncoding("GBK");
String sPurvICode = "NGB005005";
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 cityCode = auth.getCityCode();
DataTable accInfo = null;
if (cityCode == null || cityCode.equals("") ) cityCode = "0590";
String userId=request.getParameter("userid"); //帐号主键ID
if (userId==null || userId.equals("")){
out.print(getCltMessage("对不起,您没有选择具体的帐号,请选择一个帐号之后进入!",false));
return ;
}
java.util.Map map=new java.util.HashMap();
map.put("USERID",userId);
accInfo=RegisterService.getAccInfo(request,response,map);
if(accInfo==null || accInfo.getRows().getCount()<=0 )
{
out.print(getCltMessage("对不起,取帐号详细信息出错,请选择重试!",false));
return ;
}
DataRow row=accInfo.getRow(0);
/**
* USERSTATE VARCHAR2(9) 'N' 帐号状态:A-激活,N-待激活,L-自动锁定
* STATE VARCHAR2(9) 'E' 帐号是否可用:E-可用,D不可用
*/
String userState=row.getString("USERSTATE");
if(userState.equals("A")) userState="激活";
if(userState.equals("N")) userState="待激活";
if(userState.equals("L")) userState="自动锁定";
String state=row.getString("STATE").equals("E")? "可用":"D不可用";
%>
<html>
<head>
<title>四川4008用户帐号管理--帐号基本信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="../../common/style/main.css" type="text/css" rel="stylesheet" />
<meta name="Microsoft Theme" content="compass 1011, default">
<meta name="Microsoft Border" content="tlb, default">
</head>
<script language="javascript">
function fnClose()
{
window.close();
}
</script>
<body onload="return fn_onload() ;">
<script id="event_id"></script>
<form id="Default" method="post" action="" onsubmit="">
<div onresize="cltScript_Toolbar();" style="width: 100%">
<div id="divTop" style="overflow: hidden">
<jsp:include page="../../common/inc_top.jsp" >
<jsp:param name="purvCode" value="<%=sPurvICode%>"/>
</jsp:include>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="OuterTable">
<tr>
<td width="100%" colspan="2" class="OuterHead" align="left">
<span id="ItemTitle"><font face="webdings">8</font>帐号详细信息:</span>
</td>
</tr>
<tr>
<td width="100%" colspan="2" class="InnerMain" align="left">
<table id="QueryTable" border="0" cellspacing="0" cellpadding="0" width="100%">
<caption style="display:none;">
</caption>
<tbody>
<tr>
<td width="8%" class="Caption_Td" align="right" nowrap="nowrap">客户帐号:</td>
<td width="15%" class="body_td" align="left" nowrap="nowrap">
<input type="text" readonly="true" id="ACCOUNTID" name="ACCOUNTID" value="<%=row.getString("ACCOUNTID")%>" style="width: 100%;">
</td>
<td width="8%" class="Caption_Td" align="right" nowrap="nowrap">帐号类型:</td>
<td width="15%" class="body_td" align="left" nowrap="nowrap">
<input type="text" readonly="true" id="CUSTTYPEID" name="CUSTTYPEID" value="<%="网上报税用户"%>" style="width: 100%;">
</td>
</tr>
<tr>
<td width="8%" class="Caption_Td" align="right" nowrap="nowrap">客户名称:</td>
<td width="15%" class="body_td" nowrap="nowrap">
<input type="text" readonly="true" id="NAME" name="NAME" value="<%=row.getString("NAME")%>" style="width: 100%;"></td>
<td width="10%" class="Caption_Td" align="right" nowrap="nowrap">客户Email:</td>
<td width="15%" class="body_td" nowrap="nowrap">
<input type="text" readonly="true" id="EMAIL" name="EMAIL" value="<%=row.getString("EMAIL")%>" style="width: 100%;">
</td>
</tr>
<tr>
<td class="Caption_Td" align="right" nowrap="nowrap">所属地区:</td>
<td width="15%" class="body_td" align="left" nowrap="nowrap">
<input type="text" readonly="true" id="CITYCODE" name="CITYCODE" value="<%=row.getString("CITYCODE")%>" style="width: 100%;">
</td>
<td width="5%" class="Caption_Td" align="right" nowrap="nowrap">所属区域:</td>
<td width="15%" class="body_td" align="left" nowrap="nowrap">
<input type="text" readonly="true" id="AREACODE" name="AREACODE" value="<%=row.getString("AREACODE")%>" style="width: 100%;">
</td>
</tr>
<tr>
<td width="5%" class="Caption_Td" align="right" nowrap="nowrap">帐号状态:</td>
<td width="15%" class="body_td" align="left" nowrap="nowrap">
<input type="text" readonly="true" id="USERSTATE" name="USERSTATE" value="<%=userState%>" style="width: 100%;">
</td>
<td class="Caption_Td" align="right" nowrap="nowrap">建立时间:</td>
<td width="15%" class="body_td" align="left" nowrap="nowrap">
<input type="text" readonly="true" id="CREATETIME" name="CREATETIME" value="<%=row.getString("CREATETIME")%>" style="width: 100%;">
</td>
</tr>
<tr>
<td width="5%" class="Caption_Td" align="right" nowrap="nowrap">帐号是否可用:</td>
<td width="15%" class="body_td" align="left" nowrap="nowrap">
<input type="text" readonly="true" id="STATE" name="STATE" value="<%=state%>" style="width: 100%;">
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr id="">
<input type="hidden">
</tr>
<tr class="OuterFoot">
<td width="100%" align="center" class="Caption_Td">
<input type="submit" class="button" value="关闭" onMouseDown="fnClose()" style="cursor:hand ">
</tr>
<tr height="5"><td colspan="2"><img src="../../common/images/spacer.gif"></td></tr>
</table>
</div>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -