父页面:

<td nowrap>

合同名称:

</td>

<td colspan="2" nowrap>

<param:popup clientCondition="true" condition="$bmbh,$nd"

type="cght1" empty="true" label="合同名称" readonly="true"

name="cghtzdwhListForm" property="mc" popupModal="dropdown"

popupDisplayModal="body" clickImg="/images/search.gif"

validator="text(0,350)" styleId="mc" targets="ht,mc,zje"

size="110" />

</td>子页面cghtzdList.jsp

<%

String path = request.getContextPath();

String basePath = request.getScheme() + "://"

+ request.getServerName() + ":" + request.getServerPort()

+ path + "/";

%>

<%

String parentElementId = request.getParameter("parentElementId");

String syb = request.getParameter("bmbh");

String qdrq = request.getParameter("nd");

BaseCghtzdwhDAO bj = new BaseCghtzdwhDAO();

List<CghtzdwhPO> l = bj.queryHt(syb, qdrq);

int si=l.size();

request.setAttribute("listHt", l);

%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>

<common:theme />

<title>采购合同名称</title>

<script language='JavaScript'>

function clickJs(ht,mc,zje)

{

var returnValue = new Object();

returnValue.id=ht;

if(ht==""|| ht == null){

returnValue.name='';

}else{

returnValue.name="<"+ht+">"+mc+"("+zje+"元)";

}

returnValue.id=ht;

window.returnValue=returnValue;

window.parent.floatWindow<%=parentElementId%>.returnValue=returnValue;

window.parent.floatWindow<%=parentElementId%>.hidden();

}

function clear1(){

var ms=document.getElementById("selectText").value;

if(ms=="输入筛选条件"){

document.getElementById("selectText").value="";

document.getElementById("selectText").style.color="black";

}

}

function set1(){

if(document.getElementById("selectText").value==""){

document.getElementById("selectText").value="输入筛选条件";

document.getElementById("selectText").style.color="";

}

}

function sel(){

// alert(sss);

var length1 = <%=si%>;

var selectText = document.getElementById("selectText").value;

var td1 = null;

var tr1 = null;

//  if(selectText!="" ){

for (var i = 0 ;i<length1;i++){

tr1 = document.getElementById(i);

td1  =  tr1.childNodes[0];

if((td1.innerText).indexOf(selectText)<0[c1] ){

tr1.style.display="none";

}else{

tr1.style.display="";

}

}

//}

}

</script>

</head>

<body bgColor="#F8FBFC">

<table>

<tr>

<td bordercolor="red" background="green"><font color="black">输入<Strong>合同或合同号</Strong>进行模糊匹配<br/></font>

<input type="text" onkeyup="sel()" id="selectText"  onblur="set1()"  value="输入筛选条件" onfocus="clear1()" size="24" style="" >

</td>

</tr>

</table>

<table>

<tr>

<td onMouseOver=" this.style.cursor='hand';this.style.backgroundColor='#99E2FB'  "

onclick="clickJs('','--请选择合同--','')" style="text-align: left; font-size: 12; color: blue" nowrap="nowrap" onmouseout="this.style.backgroundColor=''">

--请选择合同--

</td>

</tr>

<tr id="0">

<%

for (int i = 0; i < si; i++) {

%>

<td onMouseOver=" this.style.cursor='hand';this.style.backgroundColor='#99E2FB'  "

onclick="clickJs('<%=l.get(i).getHt().trim()%>','<%=l.get(i).getMc().trim()%>','<%=l.get(i).getZje()%>')" style="text-align: left; font-size: 12; color: blue" nowrap="nowrap" onmouseout="this.style.backgroundColor=''">

&lt;<%=l.get(i).getHt().trim()%>&gt;<%=l.get(i).getMc().trim()%>&nbsp;&nbsp;(金额:<%=l.get(i).getZje()%>元)

</td>

</tr>

<tr id="<%=i + 1%>">

<%

}

%>

</tr>

</table>

</body>

Popup配置:

<!-- 采购合同付款计划维护 采购合同编号  -->

<entry key="cght2">

<bean class="com.cvicse.commons.param.config.PopupParameterConfig">

<property name="URL" value="/cvicdns/htgl/cght/cghtzdList.jsp?bmbh=?&amp;nd=?" />

<property name="style" value="top:0;" />

<property name="height" value="100" />

<property name="width" value="560" />

<property name="returnValueSeperatorOrProperties" value="id,name" />

</bean>

</entry>


[c1]B.indexOf(c),C在字符串B中的索引

项目积累——POPUP的更多相关文章

  1. (转载) android快速搭建项目积累

    android快速搭建项目积累 2016-04-05 20:07 519人阅读 评论(0) 收藏 举报  分类: android优化(8)   Rx技术(5)  版权声明:本文为博主原创文章,未经博主 ...

  2. 项目积累——JAVA知识积累

    调用天气: <iframe src="http://www.thinkpage.cn/weather/weather.aspx?uid=&c=CHXX0008&l=zh ...

  3. 项目积累——js应用

    //解决由前台向后台传值中文乱码的问题 encodeURI($("#xmjhbgFile").val())//前台JS中数据加码 String fjmc = java.net.UR ...

  4. 【angular5项目积累总结】遇到的一些问题以及解决办法

    1.项目中字符串特别是\r\n,替换成br之后,在页面换行无法生效? 答:绑定元素 innerHTML. <div class="panel-body" [innerHTML ...

  5. 项目积累(三)CSS

    公司不是专门做网站的,偶尔会接到客户让修改前端,有时候和让头疼,自己浏览器兼容问题处理不好. 慢慢积累吧. 先贴出来一些前端代码吧,如下: <div class="test" ...

  6. 项目积累html标签

    今天遇到一个不太常用都标签,网上以后慢慢记下项目中用到都东西. 1.<em> 标签 告诉浏览器把其中的文本表示为强调的内容.对于所有浏览器来说,这意味着要把这段文字用斜体来显示. 在文本中 ...

  7. 项目积累——Blockingqueue,ConcurrentLinkedQueue,Executors

    背景 通过做以下一个小的接口系统gate,了解一下mina和java并发包里的东西.A系统为javaweb项目,B为C语言项目,gate是本篇须要完毕的系统. 需求 1. A为集群系统,并发较高,会批 ...

  8. 【angular5项目积累总结】结合adal4实现http拦截器(token)

    import { Injectable } from '@angular/core'; import { HttpEvent, HttpInterceptor, HttpHandler, HttpRe ...

  9. 【angular5项目积累总结】消息订阅服务

    code import { Injectable } from '@angular/core'; import { Subject } from 'rxjs/Subject'; @Injectable ...

随机推荐

  1. SQL Server 2005 分区表创建实例

    --创建一个分区函数(默认为左边界)CREATE PARTITION FUNCTION PARTFUNC1(INT)AS RANGEFOR VALUES(1000,2000,3000,4000,500 ...

  2. Splashscreen

    Splashscreen Enables developers to show/hide the application's splash screen. Methods show hide Perm ...

  3. LintCode "Longest Increasing Continuous subsequence II" !!

    DFS + Memorized Search (DP) class Solution { int dfs(int i, int j, int row, int col, vector<vecto ...

  4. [git]Git与Repo入门

    转自:http://www.cnblogs.com/angeldevil/archive/2013/11/26/3238470.html 注:非常推荐的一篇关于git的博文 目录: 版本控制 一.原始 ...

  5. 转--Android学习笔记-实用代码合集

    http://blog.csdn.net/yf210yf/article/details/7295577 转载请注明原文出处:奔跑的蜗牛(袁方的技术博客)点击打开链接 一.当利用textview显示内 ...

  6. Android网络通信库Volley简介

    1. 什么是Volley 在这之前,我们在程序中需要和网络通信的时候,大体使用的东西莫过于AsyncTaskLoader,HttpURLConnection,AsyncTask,HTTPClient( ...

  7. JAVA 流式布局管理器

    //流式布局管理器 import java.awt.*; import javax.swing.*; public class Jiemian2 extends JFrame{ //定义组件 JBut ...

  8. mongoDB数据库备份

    mongodump -h dbhost -d dbname -o dbdirectory 备份mongoDB数据库 重新打开 dos命令框 mongodump -h 127.0.0.1:27017 - ...

  9. Tornado

    Tornado 是 FriendFeed 使用的可扩展的非阻塞式 web 服务器及其相关工具的开源版本.这个 Web 框架看起来有些像web.py 或者 Google 的 webapp,不过为了能有效 ...

  10. ice介绍 z

    什么是ICE(Internet Communications Engine)呢,它是由Zeroc公司开 发的一套开源中间件系统,与DCOM,CORBA,WEB SERVICEDcom类似,支持RPC( ...