父页面:

<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. JSP MVC

    Java的MVC玩起来比.Net的有意思,因为每一步你都知道它是如何运作的,都由自己去实现.而在.Net的MVC中,你却不知道一个Controller是如何对应到View中的,因为MS给了你IDE上的 ...

  2. 【Andorid开发框架学习】之Mina开发之客户端开发

    昨天我们讲到了Mina的基本知识点.如果还有不懂得同学可以看一下我昨天的博客.http://www.cnblogs.com/getherBlog/p/3934927.html今天我着重来讲一下基于Mi ...

  3. css之伪类选择器:before :after(::before ::after)

    一.总结: ::before是在标签内容前面添加内容, ::after是在标签内容后面添加内容 ::before ::after与:before  :after的区别:css3中修订后的伪元素使用:: ...

  4. SPOJ #429 Simple Numbers Conversion

    This is simply a human work simulation - exactly reproducing how you do it by hand. Nothing special. ...

  5. Bind 跨域名别名解析的问题

    我有一个域名 aaa.net 已经生效 ,并且下面有 xx的 A记录:现在我还有一个 aaa.com域名 ,我想用 别名方式把它下面 某个 记录以别名方式解析到 xx.aaa.net上去.应该在aaa ...

  6. HTML5 中已经可以用 Ajax 上传文件了,而且代码非常简单,借助 FormData 类即可发送文件数据。

    <?phpif (isset($_POST['upload'])) { var_dump($_FILES); move_uploaded_file($_FILES['upfile']['tmp_ ...

  7. [系统开发] Postfix 邮件管理系统

    一.简介 开发时间:2012年 开发工具:Perl CGI 这是我开发的 Postfix 邮件管理系统,通过它可以安全.方便的对邮件域名.用户.权限.组.邮箱容量.安全等进行各种设置:界面样式借鉴了 ...

  8. [摘]PE中安装Windows 7/8

    1. 用WinPE U盘启动盘进入电脑.2. 格式化C盘,C盘一定要是激活状态(活动状态).3. 把Win8的ISO文件提取到D:/win8下 4. 从提取的文件中拷备:bootmgr boot(整个 ...

  9. 75. Sort Colors

    Given an array with n objects colored red, white or blue, sort them so that objects of the same colo ...

  10. C# TextBox中只允许输入数字的方法

    1.在Winform(C#)中要实现限制Textbox只能输入数字,一般的做法就是在按键事件中处理, 判断keychar的值.限制只能输入数字,小数点,Backspace,del这几个键.数字0-9所 ...