| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1112 人关注过本帖
标题:查询页面 点击查询显示空白页 不显示查询结果 转到增加界面做修改 表单提交 ...
只看楼主 加入收藏
kevin1032
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2011-5-16
结帖率:0
收藏
已结贴  问题点数:20 回复次数:1 
查询页面 点击查询显示空白页 不显示查询结果 转到增加界面做修改 表单提交怎么是空的
action类中 flag(query查询,insert新增,update修改,delete删除)有相应的数据库操作
查询界面  地址上如果手写参数 可以查的到并显示出来------------------------------------------------------
<%@ page contentType="text/html; charset=GB2312" %>
<%@ page import="java.util.*"%>
<%@ page import="java.math.BigDecimal"%>
<%@ page import="com.arison.orientnpl.util.SplitPage"%>
<%@ page import="com.arison.orientnpl.contractinfo.vo.*"%>
<%@ page import="com.arison.orientnpl.util.ref.*"%>
<%@ page import="com.arison.orientnpl.util.*"%>
<%@ page import="com.arison.orientnpl.npllogin.vo.LoginUsersVO"%>
<%@ taglib uri="/WEB-INF/orient-reference.tld" prefix="reference"%>
<%@ include file="/util/include_page_v2.jsp"%>

<%
    LoginUsersVO loginUsersVO = (LoginUsersVO) request.getAttribute("userVO");   
    ContractinfoVO vo = (ContractinfoVO)request.getAttribute("vo");
     ArrayList list = (ArrayList) request.getAttribute("list");   
    SplitPage splitPage = (SplitPage) request.getAttribute("sp");
    if (splitPage == null) {
        splitPage = new SplitPage();
    }
   
   
 %>
<html xmlns="http://www.
<head>
<title></title>
<link href="/orientnpl/js/SpryTabbedPanels.css" rel="stylesheet"
            type="text/css" />
<script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
<script type="text/JavaScript" src="SpryAssets/curvycorners.js"></script>
<script type="text/javascript" src="/orientnpl/js/SpryTabbedPanels.js"></script>
<script type="text/JavaScript" src="/orientnpl/js/curvycorners.js"></script>
<link href="/orientnpl/js/SpryTabbedPanels.css" rel="stylesheet"
            type="text/css" />
</head>
<script type="text/JavaScript">        
function addContractinfo(){
        document.location.href='ContractinfoAction.do?FLAG=new';            
        }   
function queryContractinfo(){
        document.ContractinfoForm.action="/orientnpl/ContractinfoAction.do?FLAG=query";               
        document.ContractinfoForm.submit();
        }

</script>
<body class="margin-l10">
<form name="ContractinfoForm" id="ContractinfoForm" action="/orientnpl/ContractinfoAction.do?FLAG=query" method="post"  >

    <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="word_nav">
  <tr>
    <td> 费用列表维护</td>
  </tr>
</table>

<table width="98%" border="0" cellpadding="0" cellspacing="0" class="word_table">
  <tr>
    <th colspan="4">查询条件</th>
  </tr>
  <tr>
      <td class="word_title">合同编号</td>
    <td class="word_text" >
      <input name="contractCode" type="text" class="width160px" id="textfield2" value="<%=vo.getContractCode()==null?"":vo.getContractCode()%>"/>
    </td>   
    <td class="word_title">录入时间</td>
    <td class="word_text" >
      <input name="operDate" type="text" class="width160px" id="textfield2" value="<page:date date="<%=vo.getOperDate()%>"/>" onFocus="style.backgroundColor='#BCFF8A'" onBlur="style.backgroundColor='white'" onClick="CalendarWebControl.show(this,this.value);return false" readonly maxlength="20" validPat="datePat" message="录入时间"  nullable="1">
   </td>
  </tr>  
  <tr>
    <td class="word_title">分行</td>
    <td class="word_text">
                        <%
                            if (loginUsersVO.getOrgCode().equals()) {
                        %>
                        <select name="orgCode" id="orgSelect" nullable="1"
                            message="所属机构" class="width160px">
                            <orglist:options orgproperty="<%= orgcode="<%=""%>" />
                        </select>
                        <%
                            } else {
                        %>
                        <select name="orgCode" id="orgSelect" nullable="1"
                            message="所属机构" disabled class="width160px">
                            <orglist:options orgproperty="<%=
                                orgcode="<%=loginUsersVO.getOrgCode()%>" />
                        </select>
                        <%
                            }
                        %>
                    </td>
    <td class="word_title">客户名称</td>
    <td class="word_text" >
         <input name="customerName" type="text"  class="width160px" id="textfield2" value="<%=vo.getCustomerName()==null?"":vo.getCustomerName()%>"/>
   </td>
  </tr>
</table>
<div class="div_anBox"><span class="btn"><b> <input type="button" value="查询" onclick="queryContractinfo()"/></b>
<b> <input type="button" value="新增" onclick="addContractinfo()"/></b>
</span></div>


      <div class="TabbedPanelsContent">
      <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="word_table">
          <tr>
            <th class="word_head">合同业务支出费用列表</th>
  </tr>
          <tr>
            <td ><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="list_table" >
          <tr>
                 <td class="list_table_head " width="12%"  nowrap>序号</td>         
            <td class="list_table_head " width="12%"  nowrap>合同编号</td>
            <td class="list_table_head " width="12%"  nowrap>客户名称</td>
            <td class="list_table_head " width="10%"  nowrap>诉讼费<br></td>
            <td class="list_table_head " width="15%"  nowrap>律师代理费</td>
            <td class="list_table_head " width="10%"  nowrap>评估费</td>
            <td class="list_table_head " width="10%"  nowrap>拍卖费</td>
               <td class="list_table_head " width="15%"  nowrap>其他</td>
               <td class="list_table_head " width="15%"  nowrap>当月实际上划</td>
               <td class="list_table_head " width="15%"  nowrap>当月实际未上划</td>
               <td class="list_table_head " width="15%"  nowrap>实际入分行利息收入</td>
            </tr>
            <% if(list==null||list.size()==0){ %>
            <tr>
                      <td colspan="6" class="content_chrct_td"></td>
             </tr>
            <%} else{%>
           <%   
                    for (int i = 0; i < list.size(); i++) {
                        ContractinfoVO cvo = (ContractinfoVO)list.get(i);
                %>
          <tr  <%=i%2==0?"":"class=\"odd\""%>>
               <td width="15%" align="left">&nbsp;<a href="/orientnpl/ContractinfoAction.do?FLAG=add&contractID=<%=cvo.getContractID()%>"><%=cvo.getContractID() %></a></td>
            <td width="15%" align="left">&nbsp;<%=cvo.getContractCode()%></td>
            <td width="25%" align="left"><%=UtilHelper.tooltipText(cvo.getCustomerName())%></td>
            <td width="15%" align="left">&nbsp;<page:currency money="<%=cvo.getLegalFee() %>"/></td>
            <td width="15%" align="left">&nbsp;<page:currency money="<%=cvo.getCounselFee() %>"/></td>
            <td width="15%" align="left">&nbsp;<page:currency money="<%=cvo.getAssessFee() %>"/></td>
            <td width="15%" align="left">&nbsp;<page:currency money="<%=cvo.getAuctionFee() %>"/></td>
            <td width="15%" align="left">&nbsp;<page:currency money="<%=cvo.getOtherFee() %>"/></td>
            <td width="15%" align="left">&nbsp;<page:currency money="<%=cvo.getDesignatedFee()%>"/></td>
            <td width="15%" align="left">&nbsp;<page:currency money="<%=cvo.getNotZonedFee() %>"/></td>
            <td width="10%" align="left">&nbsp;<page:currency money="<%=cvo.getIntoBranch() %>"/></td>
            </tr>
              <%
                       }
                }
                          
               %>
               
            
        </table>
        
       <table border="0" align="center" cellpadding="0"
                                        cellspacing="0" class="page">
                                        <tr align="left" class="page">
                                            <td height="24" align="right">
                                                <table border="0" cellpadding="0" cellspacing="0"
                                                    class="page_tongji">
                                                    <tr>
                                                        <td><paging:display pagingobj="<%=splitPage%>" /></td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
</div>
</form>
</body>
</html>

新增页面   --------------------------------------------------------------------------------
<%@ page language="java" pageEncoding="GB2312"%>
<%@page import="com.arison.orientnpl.contractinfo.vo.*"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.math.BigDecimal"%>
<%@ include file="../util/include_page_v2.jsp"%>
<%@ page import="com.arison.orientnpl.npllogin.vo.LoginUsersVO"%>
<%@ page import="com.arison.orientnpl.util.*"%>
<%@ page import="com.arison.orientnpl.util.ref.*"%>
<%@ page import="com.arison.orientnpl.util.SplitPage"%>
<%@ page import="com.arison.orientnpl.util.vo.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%
    LoginUsersVO userVO = (LoginUsersVO) request.getAttribute("userVO");
    ContractinfoVO vo = (ContractinfoVO)request.getAttribute("vo");        
    String disable  = "";
    String svmsg =(String)request.getAttribute("svmsg");
    String delemsg =(String)request.getAttribute("delemsg");
    String FLAG = "";
    if (vo.getContractID()!=null){
        FLAG = "update";
    }else{
        FLAG = "add";
    }   
   
%>
<html xmlns="http://www.
<head>
    <title></title>
    <link href="/orientnpl/css/css.css" rel="stylesheet" type="text/css" />
</head>

<body class="margin-l10" >
    <form name="ContractinfoForm" id="" action="/orientnpl/ContractinfoAction.do?FLAG=<%=FLAG%>" method="post">
        
        <table border="0" cellspacing="0" cellpadding="0" class="nav_daohang">
            <tr>
                <td>
                    合同业务费用支出管理 > 合同业务费用详细信息
                </td>
            </tr>
        </table>

        <table border="0" cellpadding="0" cellspacing="0" class="word_table">
            <tr>
                <th colspan="4">
                    合同业务支出费用新增
                </th>
            </tr>
            <tr>
                <td class="word_title">
                    序号
                </td>
                <td class="word_text">
                    <input type="text" name="contractID" id="contractID" class="width160px"
                        value="<%=vo.getContractID()==null?"":vo.getContractID()%>" maxlength="100" readonly/>系统自动生成
                </td>
            </tr>
            <tr>
                <td class="word_title">
                    合同编号
                </td>
                <td class="word_text">
                    <input type="text" name="contractCode" id="contractCode" class="width160px"
                        value="<%=vo.getContractCode()==null?"":vo.getContractCode()%>" validPat="stringPat" message="合同编号" nullable="0"
                        maxlength="100" /> *
                        
                </td>
                <td class="word_title">
                    分行
                </td>
                <td class="word_text">
               
                    <%
                            if ((userVO.getOrgCode())) {
                        %>
                        <select name="orgCode" id="orgSelect" nullable="1"
                            message="分行" class="width160px">
                            <orglist:options orgproperty="<%= orgcode="<%=vo.getBranchCode()%>" />
                        </select>
                        <%
                            } else {
                        %>
                        <select name="orgCode" id="orgSelect" nullable="1"
                            message="分行" disabled class="width160px">
                            <orglist:options orgproperty="<%=
                                orgcode="<%=userVO.getOrgCode()%>" />
                        </select>
                        <%
                            }
                        %>
                </td>
            </tr>
            
            <tr>               
                <td class="word_title">
                    诉讼费
                </td>
                <td class="word_text">
                    <input type="text" name="legalFee" id="legalFee"  <%=disable %>
                    class="width160px bgClolr" onBlur="blurDeal(this)" onFocus="focusDeal(this)" validPat="currencyPat"  message="诉讼费"  nullable="0"
                    value=<page:currency money="<%=vo.getLegalFee()%>"/>>
                </td>
                <td class="word_title">
                    律师代理费
                </td>
                <td class="word_text">
                    <input type="text"  name="counselFee" id="counselFee" <%=disable %>
                        class="width160px bgClolr" onBlur="blurDeal(this)" onFocus="focusDeal(this)"
                        validPat="currencyPat" message="律师代理费"  nullable="1"
                        value=<page:currency money="<%=vo.getCounselFee()%>"/>>
                </td>
            </tr>
            <tr>
            
                <td class="word_title">
                    评估费</td>
                <td class="word_text">
                    <input type="text" name="assessFee" id="assessFee"
                        class="width160px bgClolr"  <%=disable %> onBlur="blurDeal(this)" onFocus="focusDeal(this)"
                        validPat="currencyPat" message="评估费"  nullable="1"
                        value=<page:currency money="<%=vo.getAssessFee()%>"/>>
                </td>            
            
                <td class="word_title">
                    拍卖费
                </td>
                <td class="word_text">
               
                    <input type="text" name="auctionFee" id="auctionFee" <%=disable %>
                        class="width160px bgClolr" onBlur="blurDeal(this)" onFocus="focusDeal(this)"
                        validPat="currencyPat" message="拍卖费"  nullable="1"
                        value=<page:currency money="<%=vo.getAuctionFee()%>"/>>
               
                </td>
                </tr>
                <tr>
                <td class="word_title">
                其他
                </td>
                <td class="word_text">
                    <input type="text" name="otherFee" id="otherFee" <%=disable %>
                        class="width160px bgClolr" onBlur="blurDeal(this)" onFocus="focusDeal(this)"
                        validPat="currencyPat" message="其他"  nullable="1"
                        value=<page:currency money="<%=vo.getOtherFee()%>"/>>
                </td>
            
            
                <td class="word_title">
                当月实际上划
                </td>
                <td class="word_text">
                    <input type="text" name="designatedFee" id="designatedFee"<%=disable %>
                     class="width160px bgClolr" onBlur="blurDeal(this)" onFocus="focusDeal(this)"
                     validPat="currencyPat" message="当月实际上划"  nullable="1"
                     value=<page:currency money="<%=vo.getDesignatedFee()%>"/>>
                </td>
                </tr>
                <tr>
                <td class="word_title">
                当月实际未上划
                </td>
                <td class="word_text">
                    <input type="text" name="notZonedFee" id="notZonedFee" <%=disable %>
                     class="width160px bgClolr" onBlur="blurDeal(this)" onFocus="focusDeal(this)"
                     validPat="currencyPat" message="当月实际未上划"  nullable="1"
                     value=<page:currency money="<%=vo.getNotZonedFee()%>"/>>
                </td>
            
            
                <td class="word_title">
                实际入分行利息收入
                </td>
                <td class="word_text">
                    <input type="text" name="intoBranch" id="intoBranch" <%=disable %>
                     class="width160px bgClolr" onBlur="blurDeal(this)" onFocus="focusDeal(this)"
                     validPat="currencyPat" message="实际入分行利息收入"  nullable="1"
                     value=<page:currency money="<%=vo.getIntoBranch()%>"/>>
                </td>
            </tr>
            <tr>
                <td class="word_title">
                    其他情况说明
                </td>
                <td colspan="3" class="word_text">
                    <textarea rows="5" cols="80" class="textarea" name="otherStatusExpr" <%=disable %> id="otherStatusExpr"                     
                     NPLMaxlength="2000" message="其他情况说明" validPat="stringPat" nullable="1"><%=vo.getOtherStatusExpr()==null?"":vo.getOtherStatusExpr()%></textarea>
                </td>
            </tr>            
        </table>
        <div class="div_anBox">                                
                <span class="btn"><b> <input type="button" value="返回"
                      onclick="document.location.href='ContractinfoAction.do?FLAG=query'"></b></span>                    
                <span class="btn"><b> <input type="button" value="保存" onclick="saveContractinfo()"></b></span>               
                <%if(vo.getContractID()!=null){%>
                <span class="btn"><b> <input type="button" value="删除" onclick="gotoDelete()"></b></span>
                <% } %>                        
        </div>
    </form>   
</body>
</html>
<script type="text/javascript">
    function saveContractinfo(){
            var contractCode = document.getElementById("contractCode").value;                  
            if(contractCode==null||contractCode==''){
                    rdShowMessageDialog("合同编号不能为空!",1);
                    return;
                }else{            
                     if(rdShowConfirmDialog("确认保存?")!=rdConstOK){                  
                          return;
                       }                                 
                          document.ContractinfoForm.submit();
             }              
        }        

    function gotoDelete(){
        if(window.confirm("是否删除此合同费用信息?")){        
            document.ContractinfoForm.action="/orientnpl/ContractinfoAction.do?FLAG=delete&contractID=<%=vo.getContractID()%>";
            document.ContractinfoForm.submit();                                            
            }
        return;            
    }
   
    </script>

搜索更多相关主题的帖子: 数据库 空白页 
2011-05-16 09:01
柏新星
Rank: 2
等 级:论坛游民
帖 子:13
专家分:99
注 册:2011-5-16
收藏
得分:20 
代码太长 把项目打包给我发过来吧 baixinxing@
2011-05-16 21:13
快速回复:查询页面 点击查询显示空白页 不显示查询结果 转到增加界面做修改 表 ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.090650 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved