父页面:

<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. ORACLE 常用数值函数

    1 ABS(n)返回数值弄参数的绝对值.它接受一个数值型值作为输入参数,或者任何可以隐式地转换为数值型值的值.并且返回数值型值的绝对值. Select abs(-1) from dual ABS(-1 ...

  2. Elasticsearch安装和使用

    Elasticsearch安装和使用 Elasticsearch 是开源搜索平台的新成员,实时数据分析的神器,发展迅猛,基于 Lucene.RESTful.分布式.面向云计算设计.实时搜索.全文搜索. ...

  3. R(二): http与R脚本通讯环境安装

    结合实际的工作环境,在开始R研究的时候,首先着手收集的就是能以Web方式发布R运行结果的基础框架,无耐的是,R一直以来常使用于个人电脑的客户端程序上,大家习惯性的下载R安装包,在自己的电脑上安装 -- ...

  4. ubuntu 创建快捷方式

    sudo ln -s /opt/eclipse/eclipse /usr/bin/eclipse 这样就可以在命令行中敲:eclipse,来打开eclipse了. 应该还有一种方式,就像快捷方式一样. ...

  5. .NET导入openssl生成的公钥之BEGIN RSA PUBLIC KEY

    .NET导入openssl生成的公钥之BEGIN RSA PUBLIC KEY 我得到了一个公钥,形式如下 -----BEGIN RSA PUBLIC KEY----- MIGJAoGBAMroxz3 ...

  6. [转]使用 Minidumps 和 Visual Studio .NET 进行崩溃后调试

    本文关键字:Minidumps, Windows, SEH, VisualC, .NET 摘要 本文讲述了 minidumps 是怎样工作的.当你的程序崩溃的时候应该如何生成它们.以及如何在 Visu ...

  7. 【jmter】逻辑控制器(Logic Controller)

    1. Jmeter官网对逻辑控制器的解释是:“Logic Controllers determine the order in which Samplers are processed.”.意思是说, ...

  8. UIDatePicker自定义背景

    selectDatePicker = [[UIDatePicker alloc]init];    selectDatePicker.frame = CGRectMake(0, 10, 280, 21 ...

  9. bzoj3136

    Description 给定m个素数和Q个询问.每个询问有n个人,每次操作可以任意选择其中的一个素数p(素数可以重复使用),然后去掉剩余人数 mod p个人.对于每个询问,我们想知道,至少需要多少步操 ...

  10. <limits.h>和<float.h>

    头文件<limits.h>中定义了用于表示整类型大小的常量.以下所列的值是可接受的最小值,实际系统中可能有更大的值. CHAR_BIT char类型的位数 CHAR_MAX UCHAR_M ...