项目积累——POPUP
父页面:
<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=''">
<<%=l.get(i).getHt().trim()%>><%=l.get(i).getMc().trim()%> (金额:<%=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=?&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的更多相关文章
- (转载) android快速搭建项目积累
android快速搭建项目积累 2016-04-05 20:07 519人阅读 评论(0) 收藏 举报 分类: android优化(8) Rx技术(5) 版权声明:本文为博主原创文章,未经博主 ...
- 项目积累——JAVA知识积累
调用天气: <iframe src="http://www.thinkpage.cn/weather/weather.aspx?uid=&c=CHXX0008&l=zh ...
- 项目积累——js应用
//解决由前台向后台传值中文乱码的问题 encodeURI($("#xmjhbgFile").val())//前台JS中数据加码 String fjmc = java.net.UR ...
- 【angular5项目积累总结】遇到的一些问题以及解决办法
1.项目中字符串特别是\r\n,替换成br之后,在页面换行无法生效? 答:绑定元素 innerHTML. <div class="panel-body" [innerHTML ...
- 项目积累(三)CSS
公司不是专门做网站的,偶尔会接到客户让修改前端,有时候和让头疼,自己浏览器兼容问题处理不好. 慢慢积累吧. 先贴出来一些前端代码吧,如下: <div class="test" ...
- 项目积累html标签
今天遇到一个不太常用都标签,网上以后慢慢记下项目中用到都东西. 1.<em> 标签 告诉浏览器把其中的文本表示为强调的内容.对于所有浏览器来说,这意味着要把这段文字用斜体来显示. 在文本中 ...
- 项目积累——Blockingqueue,ConcurrentLinkedQueue,Executors
背景 通过做以下一个小的接口系统gate,了解一下mina和java并发包里的东西.A系统为javaweb项目,B为C语言项目,gate是本篇须要完毕的系统. 需求 1. A为集群系统,并发较高,会批 ...
- 【angular5项目积累总结】结合adal4实现http拦截器(token)
import { Injectable } from '@angular/core'; import { HttpEvent, HttpInterceptor, HttpHandler, HttpRe ...
- 【angular5项目积累总结】消息订阅服务
code import { Injectable } from '@angular/core'; import { Subject } from 'rxjs/Subject'; @Injectable ...
随机推荐
- android 插件化开发 开源项目列表
开源的插件化框架 Qihoo360/DroidPlugin CtripMobile/DynamicAPK mmin18/AndroidDynamicLoader singwhatiwanna/dyna ...
- Spring实战1:Spring初探
主要内容 Spring的使命--简化Java开发 Spring容器 Spring的整体架构 Spring的新发展 现在的Java程序员赶上了好时候.在将近20年的历史中,Java的发展历经沉浮.尽管有 ...
- android学习笔记39——使用原始资源
原始资源 android中没有专门提供管理支持的类型文件,都被称为原始资源.例如:声音资源... android原始资源存放位置: 1.res/raw,android SDK会处理该目录下的原始资源, ...
- showdialog窗体不在任务栏显示的问题处理
场景: c#开发的windows窗体用showdialog弹出时,在任务栏中 win7系统显示,win xp和win 2003却不显示. 窗体的ShowInTaskbar已设置为True. 解决: 在 ...
- SVN学习之参数定义及设置
http://jackyrong.iteye.com/blog/238835 conf目录中打开svnserve.conf ,去掉注释,搞成如下这样 [general] anon-access = r ...
- Cygwin之SSH服务安装过程问题
1.折磨了最长时间的一个问题 $ ssh localhostssh: connect to host localhost port 22: Connection refused 各种google,百度 ...
- java 中文 乱码 问号
在基于Java的编程中,经常会碰到汉字的处里及显示的问题,比如一大堆乱码或问号. 这是因为JAVA中默认的编码方式是UNICODE,而中国人通常使用的文件和DB都是基于GB2312或者BIG5等编码, ...
- WLS_Oracle Weblogic安装和环境搭建(案例)
2014-01-03 Created By BaoXinjian
- mongoDB数据库备份
mongodump -h dbhost -d dbname -o dbdirectory 备份mongoDB数据库 重新打开 dos命令框 mongodump -h 127.0.0.1:27017 - ...
- Jetty服务器jmx监控
Jetty服务器jmx监控 Jetty 服务器增加jmx,jmx-remote模块 1.修改对应jetty服务器的配置文件start.ini追加如下两行–module=jmx–module=jmx-r ...