<%@page import="org.apache.batik.css.engine.value.Value"%>
<%@ page language="java" contentType="text/html; charset=GBK"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/ifs-app.tld" prefix="ifs"%>
<%@ page import="java.util.*, org.apache.struts.*, org.apache.struts.util.*, org.apache.commons.beanutils.*"%>
<%@ page import="org.apache.struts.action.*"%>
<%@ page import="com.glorycube.ifs.common.*,com.glorycube.util.*"%>
<%@ page import="com.glorycube.beans.*,com.glorycube.gct.*"%>
<%@ page import="com.glorycube.framework.bo.*"%>
<%@ page import="com.glorycube.command.ReturnSet"%>
<%
StatusBean stBean = StatusBean.getBean(request);
String path = request.getContextPath();
String brLevel = stBean.getBrLevel();
ReturnSet returnset = (ReturnSet)request.getAttribute("records");
ReturnSet recordCounts = (ReturnSet)request.getAttribute("recordCounts");
String startPage = (String)request.getAttribute("pageNo");
String pageCount = (String)request.getAttribute("pageSize");
String brLevelPage = (String)request.getParameter("brLevelPage");
String brIDPage = (String)request.getParameter("brID");
String brName = (String)request.getParameter("brName");
String cust_no = (String)request.getParameter("cust_no");
if("".equals(startPage)||null==startPage){
startPage = "1";
}
%>
<head>
<link rel="stylesheet" type="text/css" href="<%=path%>/skin/styles/hrb/glorycube.css" />
<SCRIPT type="text/javascript" src="<%=path%>/common/gct.js"></SCRIPT>
<SCRIPT type="text/javascript" src="<%=path%>/common/ifs-v6.js"></SCRIPT>
<SCRIPT type="text/javascript" src="<%=path%>/common/jquery-1.4.2.min.js"></SCRIPT>
<script type="text/javascript">
$(document).ready(function(){
var brLevelPage = $("#brLevelPage").val();
if(brLevelPage!="null"){
var srt = $("select[name='brLevelPage']").find("option");
for(var i=0; i<srt.length; i++){
if(srt[i].value==brLevelPage){
srt[i].selected="selected";
break;
}
}
}
var pageCount = "<%=pageCount%>";
if(pageCount!="null"){
var srt = $("select[name='pageSize']").find("option");
for(var i=0; i<srt.length; i++){
if(srt[i].value==pageCount){
srt[i].selected="selected";
break;
}
}
}
});
function gotoPage(pno,totalpage){
if('' == pno){
return;
}
pno = pno + '';
if(isNaN(pno) || pno.indexOf(".") != -1){
alert("请输入正确格式的整数");
return;
}else if(pno < 1){
pno = 1;
}else if(pno > totalpage){
pno = totalpage;
}
document.f1.pageNo.value = pno;
document.f1.submit();
}
function f1submit(){
var brIDPage = $.trim($("#brID").val());
var brName = $.trim($("#brName").val());
var cust_no = $.trim($("#cust_no").val());
var brLevelPage = $.trim($("select[name='brLevelPage']").find("option:selected").val());
if (brIDPage==''&&brName==''&&cust_no==''&&brLevelPage=='') {
alert("请输入要查询的选项");
return;
}
window.location = "<%=request.getContextPath()%>/gct.do?inputFlag=true&outputForward=apply&method=executeAct"
+ "&topic=doubleCodeSearch&func=search&brIDPage=" + brIDPage + "&brName=" + brName+"&cust_no="+cust_no+"&brLevelPage="+brLevelPage+"&ifPage=true";
}
function searchAll(){
$("#brID").val("");
$("#brName").val("");
$("#cust_no").val("")
$("select[name='brLevelPage']").val("");
document.f1.submit();
}
function modifyPageCount(){
document.f1.submit();
}
</script>
</head>
<body>
<form name="f1" method="get" action="<%=request.getContextPath()%>/doubleCodeSearch.do">
<input type="hidden" name="method" value="doubleCode"/>
<input type="hidden" name="pageNo" >
<input type="hidden" name="brLevel" value="<%=brLevel%>">
<input type="hidden" id="brLevelPage" value="<%=brLevelPage%>">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="titleFunc">疑似重号查询</td>
</tr>
<tr>
<td class=errorGlobal></td>
</tr>
</table>
<table width=100% cellspacing=1 border="0" cellpadding="0">
<tr>
<td class=labelNormal width='15%'>机构层级:</td>
<td class=fieldInput width='35%'>
<select name='brLevelPage' class="selectBody" size="1">
<option value=''>----请选择----</option>
<option value='1'>全行疑似重号</option>
<option value='2'>分行疑似重号</option>
<option value='3'>支行疑似重号</option>
<option value='4'>网点疑似重号</option>
</select>
<td class=labelNormal width='15%'>机构代码:</td>
<td class=fieldInput width='35%'>
<input type="text" id="brID" name="brID" value="<%=CommUtil.getNotNull(brIDPage)%>">
</td>
</tr>
<tr>
<td class=labelNormal width='15%'>机构名称:</td>
<td class=fieldInput width='30%'>
<input type="text" id="brName" name="brName" value="<%=CommUtil.getNotNull(brName)%>">
</td>
<td class=labelNormal width='15%'>包含客户号:</td>
<td class=fieldInput width='35%'>
<input type="text" id="cust_no" name="cust_no" value="<%=CommUtil.getNotNull(cust_no)%>">
</td>
</tr>
<tr>
<td colspan=40 class=lineTable></td>
</tr>
<tr>
<td colspan=5 align=center>
<input type="submit" value='查询' class='btnNormal'>
</td>
</tr>
</table>
<table width="100%" border="1" cellpadding="0" cellspacing="0">
<tr>
<td colspan=40 class=lineTable></td>
</tr>
<tr>
<td class="listHead" align="center">客户号</td>
<td class="listHead" align="center">客户姓名</td>
<td class="listHead" align="center">疑似客户分组号</td>
<td class="listHead" align="center">所属机构</td>
<td class="listHead" align="center">所属分行</td>
<td class="listHead" align="center">所属支行</td>
</tr>
<%
for(int i = 0;returnset!=null&&i<returnset.getRowSize(); i++ ){
%>
<tr>
<td class="listCont" align="center"><%=(String)returnset.getValue(i,"cust_no")%></td>
<td class="listCont" align="center">
<%
if("1".equals((String)returnset.getValue(i,"flag"))){%>
<a href="javascript:openGctWindow('func','/hrbank/gct.do?method=view&topic=customer&custID=<%=(String)returnset.getValue(i,"custID")%>','',false)" style="color: blue;"><%=(String)returnset.getValue(i,"cust_name")%></a>
<%}else{%>
<%=(String)returnset.getValue(i,"cust_name")%>
<%}
%>
</td>
<td class="listCont" align="center"><%=(String)returnset.getValue(i,"suspect_group_id")%></td>
<td class="listCont" align="center"><%=(String)returnset.getValue(i,"brIDName")%></td>
<td class="listCont" align="center"><%=(String)returnset.getValue(i,"subBankIDName")%></td>
<td class="listCont" align="center"><%=(String)returnset.getValue(i,"subBrIDName")%></td>
</tr>
<%
}
%>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="right">
<%
if(recordCounts!=null&&recordCounts.getRowSize()>0){
int pageSize = Integer.parseInt(pageCount);
int totalRecords = Integer.parseInt(recordCounts.getValue(0,"counts"));
int pageNo = Integer.parseInt(startPage);
int pages = (int)Math.ceil((double)totalRecords / pageSize);
%>
每页显示<select name="pageSize" οnchange="modifyPageCount()">
<option value="10">10</option>
<option value="20">20</option>
<option value="50">50</option>
<option value="100">100</option>
</select>条记录 <%=pageNo%> / <%=pages%> 页 共<%=totalRecords%>条数据
<%
if(pageNo > 1){
%>
<a href="#" οnclick="gotoPage(1,<%=pages%>)">首页</a>
<a href="#" οnclick="gotoPage(<%=(pageNo - 1)%>,<%=pages%>)">上一页</a>
<%
}else{
%>
首页
上一页
<%
}
if(pageNo < pages){
%>
<a href="#" οnclick="gotoPage(<%=(pageNo + 1)%>,<%=pages%>)">下一页</a>
<a href="#" οnclick="gotoPage(<%=pages%>,<%=pages%>)">尾页</a>
<%
}else{
%>
下一页
尾页
<%
}
%>
Go<input type='text' size='3' οnblur="gotoPage(this.value,<%=pages%>)">
<%
}else{
%>
每页显示<select name="pageSize">
<option value="10">10</option>
<option value="20">20</option>
<option value="50">50</option>
<option value="100">100</option>
</select>条记录 1 / 1 页 共0条数据
首页 上一页 下一页 尾页 Go<input type='text' size='3' readonly='true'>
<%
}
%>
</td>
</tr>
</table>
</form>
</body>
<%@ page language="java" contentType="text/html; charset=GBK"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/ifs-app.tld" prefix="ifs"%>
<%@ page import="java.util.*, org.apache.struts.*, org.apache.struts.util.*, org.apache.commons.beanutils.*"%>
<%@ page import="org.apache.struts.action.*"%>
<%@ page import="com.glorycube.ifs.common.*,com.glorycube.util.*"%>
<%@ page import="com.glorycube.beans.*,com.glorycube.gct.*"%>
<%@ page import="com.glorycube.framework.bo.*"%>
<%@ page import="com.glorycube.command.ReturnSet"%>
<%
StatusBean stBean = StatusBean.getBean(request);
String path = request.getContextPath();
String brLevel = stBean.getBrLevel();
ReturnSet returnset = (ReturnSet)request.getAttribute("records");
ReturnSet recordCounts = (ReturnSet)request.getAttribute("recordCounts");
String startPage = (String)request.getAttribute("pageNo");
String pageCount = (String)request.getAttribute("pageSize");
String brLevelPage = (String)request.getParameter("brLevelPage");
String brIDPage = (String)request.getParameter("brID");
String brName = (String)request.getParameter("brName");
String cust_no = (String)request.getParameter("cust_no");
if("".equals(startPage)||null==startPage){
startPage = "1";
}
%>
<head>
<link rel="stylesheet" type="text/css" href="<%=path%>/skin/styles/hrb/glorycube.css" />
<SCRIPT type="text/javascript" src="<%=path%>/common/gct.js"></SCRIPT>
<SCRIPT type="text/javascript" src="<%=path%>/common/ifs-v6.js"></SCRIPT>
<SCRIPT type="text/javascript" src="<%=path%>/common/jquery-1.4.2.min.js"></SCRIPT>
<script type="text/javascript">
$(document).ready(function(){
var brLevelPage = $("#brLevelPage").val();
if(brLevelPage!="null"){
var srt = $("select[name='brLevelPage']").find("option");
for(var i=0; i<srt.length; i++){
if(srt[i].value==brLevelPage){
srt[i].selected="selected";
break;
}
}
}
var pageCount = "<%=pageCount%>";
if(pageCount!="null"){
var srt = $("select[name='pageSize']").find("option");
for(var i=0; i<srt.length; i++){
if(srt[i].value==pageCount){
srt[i].selected="selected";
break;
}
}
}
});
function gotoPage(pno,totalpage){
if('' == pno){
return;
}
pno = pno + '';
if(isNaN(pno) || pno.indexOf(".") != -1){
alert("请输入正确格式的整数");
return;
}else if(pno < 1){
pno = 1;
}else if(pno > totalpage){
pno = totalpage;
}
document.f1.pageNo.value = pno;
document.f1.submit();
}
function f1submit(){
var brIDPage = $.trim($("#brID").val());
var brName = $.trim($("#brName").val());
var cust_no = $.trim($("#cust_no").val());
var brLevelPage = $.trim($("select[name='brLevelPage']").find("option:selected").val());
if (brIDPage==''&&brName==''&&cust_no==''&&brLevelPage=='') {
alert("请输入要查询的选项");
return;
}
window.location = "<%=request.getContextPath()%>/gct.do?inputFlag=true&outputForward=apply&method=executeAct"
+ "&topic=doubleCodeSearch&func=search&brIDPage=" + brIDPage + "&brName=" + brName+"&cust_no="+cust_no+"&brLevelPage="+brLevelPage+"&ifPage=true";
}
function searchAll(){
$("#brID").val("");
$("#brName").val("");
$("#cust_no").val("")
$("select[name='brLevelPage']").val("");
document.f1.submit();
}
function modifyPageCount(){
document.f1.submit();
}
</script>
</head>
<body>
<form name="f1" method="get" action="<%=request.getContextPath()%>/doubleCodeSearch.do">
<input type="hidden" name="method" value="doubleCode"/>
<input type="hidden" name="pageNo" >
<input type="hidden" name="brLevel" value="<%=brLevel%>">
<input type="hidden" id="brLevelPage" value="<%=brLevelPage%>">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="titleFunc">疑似重号查询</td>
</tr>
<tr>
<td class=errorGlobal></td>
</tr>
</table>
<table width=100% cellspacing=1 border="0" cellpadding="0">
<tr>
<td class=labelNormal width='15%'>机构层级:</td>
<td class=fieldInput width='35%'>
<select name='brLevelPage' class="selectBody" size="1">
<option value=''>----请选择----</option>
<option value='1'>全行疑似重号</option>
<option value='2'>分行疑似重号</option>
<option value='3'>支行疑似重号</option>
<option value='4'>网点疑似重号</option>
</select>
<td class=labelNormal width='15%'>机构代码:</td>
<td class=fieldInput width='35%'>
<input type="text" id="brID" name="brID" value="<%=CommUtil.getNotNull(brIDPage)%>">
</td>
</tr>
<tr>
<td class=labelNormal width='15%'>机构名称:</td>
<td class=fieldInput width='30%'>
<input type="text" id="brName" name="brName" value="<%=CommUtil.getNotNull(brName)%>">
</td>
<td class=labelNormal width='15%'>包含客户号:</td>
<td class=fieldInput width='35%'>
<input type="text" id="cust_no" name="cust_no" value="<%=CommUtil.getNotNull(cust_no)%>">
</td>
</tr>
<tr>
<td colspan=40 class=lineTable></td>
</tr>
<tr>
<td colspan=5 align=center>
<input type="submit" value='查询' class='btnNormal'>
</td>
</tr>
</table>
<table width="100%" border="1" cellpadding="0" cellspacing="0">
<tr>
<td colspan=40 class=lineTable></td>
</tr>
<tr>
<td class="listHead" align="center">客户号</td>
<td class="listHead" align="center">客户姓名</td>
<td class="listHead" align="center">疑似客户分组号</td>
<td class="listHead" align="center">所属机构</td>
<td class="listHead" align="center">所属分行</td>
<td class="listHead" align="center">所属支行</td>
</tr>
<%
for(int i = 0;returnset!=null&&i<returnset.getRowSize(); i++ ){
%>
<tr>
<td class="listCont" align="center"><%=(String)returnset.getValue(i,"cust_no")%></td>
<td class="listCont" align="center">
<%
if("1".equals((String)returnset.getValue(i,"flag"))){%>
<a href="javascript:openGctWindow('func','/hrbank/gct.do?method=view&topic=customer&custID=<%=(String)returnset.getValue(i,"custID")%>','',false)" style="color: blue;"><%=(String)returnset.getValue(i,"cust_name")%></a>
<%}else{%>
<%=(String)returnset.getValue(i,"cust_name")%>
<%}
%>
</td>
<td class="listCont" align="center"><%=(String)returnset.getValue(i,"suspect_group_id")%></td>
<td class="listCont" align="center"><%=(String)returnset.getValue(i,"brIDName")%></td>
<td class="listCont" align="center"><%=(String)returnset.getValue(i,"subBankIDName")%></td>
<td class="listCont" align="center"><%=(String)returnset.getValue(i,"subBrIDName")%></td>
</tr>
<%
}
%>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="right">
<%
if(recordCounts!=null&&recordCounts.getRowSize()>0){
int pageSize = Integer.parseInt(pageCount);
int totalRecords = Integer.parseInt(recordCounts.getValue(0,"counts"));
int pageNo = Integer.parseInt(startPage);
int pages = (int)Math.ceil((double)totalRecords / pageSize);
%>
每页显示<select name="pageSize" οnchange="modifyPageCount()">
<option value="10">10</option>
<option value="20">20</option>
<option value="50">50</option>
<option value="100">100</option>
</select>条记录 <%=pageNo%> / <%=pages%> 页 共<%=totalRecords%>条数据
<%
if(pageNo > 1){
%>
<a href="#" οnclick="gotoPage(1,<%=pages%>)">首页</a>
<a href="#" οnclick="gotoPage(<%=(pageNo - 1)%>,<%=pages%>)">上一页</a>
<%
}else{
%>
首页
上一页
<%
}
if(pageNo < pages){
%>
<a href="#" οnclick="gotoPage(<%=(pageNo + 1)%>,<%=pages%>)">下一页</a>
<a href="#" οnclick="gotoPage(<%=pages%>,<%=pages%>)">尾页</a>
<%
}else{
%>
下一页
尾页
<%
}
%>
Go<input type='text' size='3' οnblur="gotoPage(this.value,<%=pages%>)">
<%
}else{
%>
每页显示<select name="pageSize">
<option value="10">10</option>
<option value="20">20</option>
<option value="50">50</option>
<option value="100">100</option>
</select>条记录 1 / 1 页 共0条数据
首页 上一页 下一页 尾页 Go<input type='text' size='3' readonly='true'>
<%
}
%>
</td>
</tr>
</table>
</form>
</body>