一、说在前面
1、今日工作
1)完成形式审核
2)完成部门审核
2、明日目标任务
1)完成分页显示。
二、成果
三、源代码
1、xssh.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page isELIgnored="false" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Insert title here</title> <link rel="stylesheet" href="../css/bootstrap.min.css" type="text/css" /> <script src="../js/jquery-1.11.3.min.js" type="text/javascript"></script> <script src="../js/bootstrap.min.js" type="text/javascript"></script> <style type="text/css"> table { border-collapse: collapse; margin: 0 auto; text-align: center; } </style> <script type="text/javascript"> function deletexiqiu(id){ var msg = "确定删除?"; if(confirm(msg)==true){ $.ajax({ url:"xvqiu", async:true, type:"POST", data:{"id":id,"method":"deletexvqiu"}, success:function(data){ var f = data.f; //alert(f); if(f){ alert("删除成功"); window.location="xvqiu?method=searchAll"; } }, error:function(){ alert("删除失败"); }, dataType:"json" }); } } </script> </head> <body style="background-color: #E8F6FF;"> <input type="hidden" value="qvba"> <div class="row" style="height: auto"> <form action="xvqiu?method=xqgl" method="post" style="margin-left: 20px;"> 机构全称: <input type="text" name="jgmc" id="jgmc" placeholder="机构全称"class="form-control" style=" 150px;display: inline;"> 所在地域: <input type="text" name="szdy" id="szdy" placeholder="所在地域" class="form-control" style=" 150px;display: inline;"> 技术需求名称: <input type="text" name="jsxqmc" id="jsxqmc" placeholder="技术需求名称" class="form-control" style=" 150px;display: inline;"> 归口管理单位: <input type="text" name="gkglbm" id="gkglbm" placeholder="归口管理单位" class="form-control" style=" 150px;display: inline;"> <br> <br> 机构属性: <input type="text" style=" 150px;display: inline;" name="jgsx" id="jgsx" placeholder="机构属性" class="form-control"> 科技活动类型: <input type="text" style=" 150px;display: inline;" name="yjlx" id="yjlx" placeholder="科技活动类型" class="form-control"> <input type="submit" value="查询" onclick="query()" class="form-control" style="display: inline; 100px;"> </form> </div> <table class="table table-bordered table-hover"> <!-- class="table table-bordered" --> <thead> <tr> <th>需求编号</th> <th>技术需求名称</th> <th>机构属性</th> <th>所在地域</th> <th>机构全称</th> <th>科技活动类型</th> <th>操作</th> </tr> </thead> <tbody> <c:forEach var="item" items="${xvQiuList}" varStatus="i"> <tr> <td>${i.index+1 }</td> <td><a href="xvqiu?method=queryById0&wjid=${item.wjid}">${item.jsxqmc}</a></td> <td>${item.jgsx}</td> <td>${item.szdy}</td> <td>${item.jgmc}</td> <td>${item.yjlx}</td> <td><a href="xvqiu?method=queryById&wjid=${item.wjid}">审核</a></td> </tr> </c:forEach> </tbody> </table> </body> </html>
2、shxq.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page isELIgnored="false" %> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Insert title here</title> <script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script> <script src="../js/jquery-1.11.3.min.js" type="text/javascript"></script> <link rel="stylesheet" href="../css/zTreeStyle/zTreeStyle.css" type="text/css"> <link rel="stylesheet" href="../css/bootstrap.min.css" type="text/css"> <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery,所以必须放在前边) --> <script src="../js/jquery.ztree.all.min.js"></script> <style type="text/css"> table { margin: auto; width: 80%; text-align: center; background-color: #E8F6FF; } input[type="text"]{ height:30px; width: 100%; } input[type="checkbox"]{ zoom:1.5; } input[type="radio"]{ zoom:1.2; } h5{ color: #E8F6FF; } td{ width: 24%; font-size:10pt; } </style> <script> $(function () { $("#btyx").hide(); $("#bmcz").hide(); }); function bty() { $("#btyx").show(); $("#sfsh").val(2); } function tyxq() { $("#bmcz").show(); } function qx() { window.location="xvqiu?method=xsallxq"; } function fsxz() { $("#allbm").empty(); var data0=["办公室","人事处","机关党委","政策法规处","计划财务处","平台与基础处","国际合作处","高新技术处","农村科技处"]; var data1=["社会发展处","成果与市场处","监察室","离退休干部处","知识产权局","半干旱中心","山办","机关服务中心"]; var data2=["科技研发中心","科技情报研究院","器材公司","基金办","档案馆","科技管理信息中心","科技投资中心","成果转换中心","中小企业创新资金管理中心","对外交流中心"]; var xz = $("select[id = 'xz']").val(); //alert(xz); if(xz=='0'){ for(var i=0;i<data0.length;i++){ var value = data0[i]; $("#allbm").append("<option value="+value+">"+value+"</option>") } }else if(xz=='1'){ for(var i=0;i<data1.length;i++){ var value = data1[i]; $("#allbm").append("<option value="+value+">"+value+"</option>") } }else if(xz=='2'){ for(var i=0;i<data2.length;i++){ var value = data2[i]; $("#allbm").append("<option value="+value+">"+value+"</option>") } } } </script> </head> <body style="background-color: #E8F6FF;"> <!-- <form action="${pageContext.request.contextPath }/xvqiu?method=createXvQiu" method="post"> --> <form action="sh?method=shenhe" method="post" > <input type="text" value="${xvqiu.wjid}" name="wjid" hidden="hidden"> <input type="text" value="1" name="sfsh" id="sfsh" hidden="hidden"> <div style="align-content: center;margin-top: 20px; 90%;margin-left: 4%"> <table class="table" border="1"> <tr> <td colspan="4" ><h1 align="center">河北省重大技术需求征集表</h1></td> </tr> <tr> <td><h3 align="center">机构全称 </h3></td> <td><input type="text" name="jgmc" id="jgmc" value="${xvqiu.jgmc }" class="form-control"></td> <td><h3 align="center">通讯地址 </h3></td> <td><input type="text" name="txdz" id="txdz" value="${xvqiu.txdz }" class="form-control"></td> </tr> <tr> <td><h3 align="center">归口管理部门 </h3></td> <td><input type="text" name="gkglbm" id="gkglbm" value="${xvqiu.gkglbm }" class="form-control"></td> <td><h3 align="center">所在地域 </h3></td> <td> <input type="text" name="szdy" value="${xvqiu.szdy }" class="form-control"> </td> </tr> <tr> <td><h3 align="center">网 址 </h3></td> <td><input type="text" name="dwwz" id="dwwz" value="${xvqiu.dwwz }" class="form-control"></td> <td><h3 align="center">电子信箱 </h3></td> <td><input type="text" name="dzyx" id="dzyx" value="${xvqiu.dzyx }" class="form-control"></td> </tr> <tr> <td><h3 align="center">法人代表 </h3></td> <td><input type="text" name="frdb" id="frdb" value="${xvqiu.frdb }" class="form-control"></td> <td><h3 align="center">邮政编码 </h3></td> <td><input type="text" name="yzbm" id="yzbm" value="${xvqiu.yzbm }" class="form-control"></td> </tr> <tr> <td><h3 align="center">联 系 人 </h3></td> <td><input type="text" name="lxr" id="lxr" value="${xvqiu.lxr }" class="form-control"></td> <td><h3 align="center">固定电话: </h3></td> <td><input type="text" name="gddh" id="gddh" value="${xvqiu.gddh }" class="form-control"></td> </tr> <tr> <td><h3 align="center">手 机 </h3></td> <td><input type="text" name="yddh" id="yddh" value="${xvqiu.yddh }" class="form-control"></td> <td><h3 align="center">机构属性 </h3></td> <td> <input type="text" name="jgsx" id="jgsx" value="${xvqiu.jgsx }" class="form-control"> </td> </tr> <tr> <td><h3 align="center">机构简介: </h3></td> <td colspan="3" align="center"> <textarea style="height: 100px; 100%" name="jgjj" id="content" maxlength="500" onchange="this.value=this.value.substring(0,500)" onkeydown="this.value=this.value.substring(0,500)" onkeyup="this.value=this.value.substring(0,500)" >${xvqiu.jgjj } </textarea> </td> </tr> <tr> <td><h3 align="center">技术需求名称 </h3></td> <td><input type="text" name="jsxqmc" id="jsxqmc" value="${xvqiu.jsxqmc }" class="form-control"></td> <td><h3 align="center">传 真 </h3></td> <td><input type="text" name="cz" id="cz" value="${xvqiu.cz }" class="form-control"></td> </tr> <tr> <td><h3 align="center">起始需求年份 </h3></td> <td><input type="text" name="qsxqnf" id="qsxqnf" value="${xvqiu.qsxqnf }" class="form-control"></td> <td><h3 align="center">截至需求年份 </h3></td> <td><input type="text" name="jzxqnf" id="jzxqnf" value="${xvqiu.jzxqnf }" class="form-control"></td> </tr> <tr > <td><h3 align="center">1、主要问题 </h3></td> <td colspan="3" align="center"> <textarea style="height: 200px; 100%" name="zywt" id="zywt" class="form-control" maxlength="500" onchange="this.value=this.value.substring(0,500)" onkeydown="this.value=this.value.substring(0,500)" onkeyup="this.value=this.value.substring(0,500)" > ${xvqiu.zywt } </textarea></td> </tr> <tr> <td><h3 align="center">2、技术关键 </h3></td> <td colspan="3" align="center"> <textarea style="height: 200px; 100%" name="jsgj" id="jsgj" class="form-control" maxlength="500" onchange="this.value=this.value.substring(0,500)" onkeydown="this.value=this.value.substring(0,500)" onkeyup="this.value=this.value.substring(0,500)" > ${xvqiu.jsgj } </textarea></td> </tr> <tr> <td><h3 align="center"> 3、预期目标 </h3></td> <td colspan="3" align="center"> <textarea style="height: 200px; 100%" name="tqmb" id="yqmb" class="form-control" maxlength="500" onchange="this.value=this.value.substring(0,500)" onkeydown="this.value=this.value.substring(0,500)" onkeyup="this.value=this.value.substring(0,500)" > ${xvqiu.tqmb } </textarea></td> </tr> <tr> <td><h3 align="center">关 键 字 </h3></td> <td> <input type="text" name="gjz" id="gjz" value="${xvqiu.gjz }" class="form-control"> </td> <td align="center"><h3 >科技活动类型 </h3></td> <td > <input type="text" name="yjlx" id="jcyj" value="${xvqiu.yjlx }" class="form-control"> </td> </tr> <tr id="xkflx"> <td align="center"><h3 >学科分类 </h3></td> <td > <input type="text" name="xkfl" value="${xvqiu.xkfl }" class="form-control"> </td> <td align="center"><h3 >需求技术所属领域 </h3></td> <td > <input type="text" id="xqjsssly" name="xqjsssly" value="${xvqiu.xqjsssly }" class="form-control"> </td> </tr> <tr id="xqjsyyhyx"> <td align="center"><h3 >需求技术应用行业 </h3></td> <td> <input type="text" name="xqjsyyhy" value="${xvqiu.xqjsyyhy }" class="form-control"> </td> <td align="center"><h3 >技术需求解决方式 </h3></td> <td > <input type="text" id="dl" name="jsxqhzms" value="${xvqiu.jsxqhzms }" class="form-control"> </td> </tr> <tr> <td align="center"><h3 >资金需求总额 </h3></td> <td><input type="text" name="zjxqze" id="zjxqze" value="${xvqiu.zjxqze }" class="form-control"></td> <td><h3 >拟投入自有资金总额 </h3></td> <td><input type="text" name="zyzj" id="zyzj" value="${xvqiu.zyzj }" class="form-control"></td> </tr> <tr id="btyx"> <td><h3 align="center"> 意见和建议 </h3></td> <td colspan="3" align="center"> <textarea style="height: 200px; 100%" name="yj" id="yj" class="form-control" maxlength="500" onchange="this.value=this.value.substring(0,500)" onkeydown="this.value=this.value.substring(0,500)" onkeyup="this.value=this.value.substring(0,500)" >请说明不同意的原因! </textarea></td> </tr> <tr id="bmcz"> <td><h3 align="center">管理处室选择</h3></td> <td colspan="3" align="center"> <select onchange="fsxz()" class="form-control" style=" 200px;height: 30px;display: inline;align-self: center;" id="xz"> <option value="99">筛选条件</option> <option value="0">0</option> <option value="1">1</option> <option value="2">2</option> </select> <select class="form-control" name="bmsh"style=" 200px;height: 30px;display: inline;margin-right: 50%" id="allbm"> </select> </td> </tr> <tr> <td > <input type="button" value="同意" class="btn btn-default" onclick="tyxq()"></td> <td > <input type="button" value="不同意" class="btn btn-default" onclick="bty()"></td> <td > <input type="submit" value="提交" class="btn btn-default" ></td> <td > <input type="button" value="取消" class="btn btn-default" onclick="qx()"></td> </tr> </table> </div> </form> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> <h5>111111111111</h5> </body> </html>
3、bmsh.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page isELIgnored="false" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Insert title here</title> <link rel="stylesheet" href="../css/bootstrap.min.css" type="text/css" /> <script src="../js/jquery-1.11.3.min.js" type="text/javascript"></script> <script src="../js/bootstrap.min.js" type="text/javascript"></script> <style type="text/css"> table { border-collapse: collapse; margin: 0 auto; text-align: center; } </style> <script type="text/javascript"> function deletexiqiu(id){ var msg = "确定删除?"; if(confirm(msg)==true){ $.ajax({ url:"xvqiu", async:true, type:"POST", data:{"id":id,"method":"deletexvqiu"}, success:function(data){ var f = data.f; //alert(f); if(f){ alert("删除成功"); window.location="xvqiu?method=searchAll"; } }, error:function(){ alert("删除失败"); }, dataType:"json" }); } } </script> </head> <body style="background-color: #E8F6FF;"> <input type="hidden" value="qvba"> <div class="row" style="height: auto"> <form action="xvqiu?method=xqgl" method="post" style="margin-left: 20px;"> 机构全称: <input type="text" name="jgmc" id="jgmc" placeholder="机构全称"class="form-control" style=" 150px;display: inline;"> 所在地域: <input type="text" name="szdy" id="szdy" placeholder="所在地域" class="form-control" style=" 150px;display: inline;"> 技术需求名称: <input type="text" name="jsxqmc" id="jsxqmc" placeholder="技术需求名称" class="form-control" style=" 150px;display: inline;"> 归口管理单位: <input type="text" name="gkglbm" id="gkglbm" placeholder="归口管理单位" class="form-control" style=" 150px;display: inline;"> <br> <br> 机构属性: <input type="text" style=" 150px;display: inline;" name="jgsx" id="jgsx" placeholder="机构属性" class="form-control"> 科技活动类型: <input type="text" style=" 150px;display: inline;" name="yjlx" id="yjlx" placeholder="科技活动类型" class="form-control"> <input type="submit" value="查询" onclick="query()" class="form-control" style="display: inline; 100px;"> </form> </div> <table class="table table-bordered table-hover"> <!-- class="table table-bordered" --> <thead> <tr> <th>需求编号</th> <th>技术需求名称</th> <th>机构属性</th> <th>所在地域</th> <th>机构全称</th> <th>科技活动类型</th> <th>操作</th> </tr> </thead> <tbody> <c:forEach var="item" items="${xvQiuList}" varStatus="i"> <tr> <td>${i.index+1 }</td> <td><a href="xvqiu?method=queryById0&wjid=${item.wjid}">${item.jsxqmc}</a></td> <td>${item.jgsx}</td> <td>${item.szdy}</td> <td>${item.jgmc}</td> <td>${item.yjlx}</td> <td><a href="xvqiu?method=queryById&wjid=${item.wjid}">审核</a></td> </tr> </c:forEach> </tbody> </table> </body> </html>