1.通过一个中间的jsp进行json查询传递
<%@ page import="java.util.Map" %> <%@ page import="java.util.ArrayList" %> <%@ page import="java.util.List" %> <%@ page import="com.velcro.workflow.pipe.service.ExtendJspService" %> <%@ page import="com.velcro.kernel.base.IDataService" %> <%@ page import="com.velcro.base.BaseContext" %> <%@ page import="com.alibaba.fastjson.JSONObject" %> <%@ page import="java.io.PrintWriter" %> <%@ page import="java.util.HashMap" %> <%@ page import="com.velcro.base.util.StringHelper" %> <%@ page import="com.velcro.humres.base.service.HumresService" %> <%@ page import="com.velcro.humres.base.service.StationinfoService" %> <%@ page import="com.velcro.base.orgunit.service.OrgunitService" %> <%@ page contentType="text/html;charset=UTF-8" language="java" %> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <% String projectid=StringHelper.null2String(request.getParameter("projectid")); System.out.println("===导入项目:"+projectid+"的工业科技、科学技术、专利开始==="); if (StringHelper.isEmpty(projectid)){ System.out.println("====项目id为空===="); } String projectids=""; if (StringHelper.isNotEmpty(projectid)){ String[] split = projectid.split(","); for(String uId: split){ projectids += "'"+uId+"',"; } projectids = projectids.substring(0, projectids.length()-1); } List<Map<String, Object>> valList=new ArrayList<Map<String, Object>>();//工业科技列表 List<Map<String, Object>> valList2=new ArrayList<Map<String, Object>>();//科学技术列表 List<Map<String, Object>> valList3=new ArrayList<Map<String, Object>>();//专家列表 //工具类 ExtendJspService extendJspService=(ExtendJspService)BaseContext.getBean("extendJspService"); IDataService dataService = (IDataService) BaseContext.getBean("dataService"); HumresService humresService = (HumresService)BaseContext.getBean("humresService"); StationinfoService stationinfoService = (StationinfoService)BaseContext.getBean("stationinfoService"); OrgunitService orgunitService=(OrgunitService) BaseContext.getBean("orgunitService"); if (StringHelper.isNotEmpty(projectids)){ //工业科技列表 String industriallistSql="select title,no,creator,orgunit,createDate as createdate from ufw1y4w21510196696523 where projectid in("+projectids+") and requestid in(select id from workflowbase where isdelete=0)"; List industriallist=dataService.getValues(industriallistSql); for (int i=0;i<industriallist.size();i++){ Map map=(Map) industriallist.get(i); String title= StringHelper.null2String(map.get("title"));//报告名称 String no=StringHelper.null2String(map.get("no"));//报告编号 String humresid= StringHelper.null2String(map.get("creator"));//联系人id String objname=humresService.getHrmresNameById(humresid);//联系人姓名 String orgunitid=StringHelper.null2String(map.get("orgunit"));//部门 //String stationname=stationinfoService.getStationinfoName(station);//岗位名称 String orgunitname=orgunitService.getOrgunitName(orgunitid);//部门名称 String createDate=StringHelper.null2String(map.get("createdate"));//申报日期 addMapIcHumresList(valList,title,no,humresid,objname,orgunitid,orgunitname,createDate);//增加人员 } //科学技术列表 String technologylistSql="select name as title,gfno as no,contacts as creator,contactunit as orgunit,createDate as createdate from uff8u2d71496301735377 where proid in("+projectids+") and requestid in(select id from workflowbase where isdelete=0)"; List technologylist=dataService.getValues(technologylistSql); for (int i=0;i<technologylist.size();i++){ Map map=(Map) technologylist.get(i); String title= StringHelper.null2String(map.get("title"));//报告名称 String no=StringHelper.null2String(map.get("no"));//报告编号 String humresid= StringHelper.null2String(map.get("creator"));//联系人id String objname=humresService.getHrmresNameById(humresid);//联系人姓名 String orgunitid=StringHelper.null2String(map.get("orgunit"));//部门 //String stationname=stationinfoService.getStationinfoName(station);//岗位名称 String orgunitname=orgunitService.getOrgunitName(orgunitid);//部门名称 String createDate=StringHelper.null2String(map.get("createdate"));//申报日期 addMapIcHumresList(valList2,title,no,humresid,objname,orgunitid,orgunitname,createDate);//增加人员 } //专利列表 String patentlistSql="select id,name,application,objno,authorization,internation from uft2c2c21496299009188 where field009 in("+projectids+") and requestid in(select id from workflowbase where isdelete=0)"; List patentlist=dataService.getValues(patentlistSql); for (int i=0;i<patentlist.size();i++){ Map map=(Map) patentlist.get(i); String id= StringHelper.null2String(map.get("id"));//专利id String name= StringHelper.null2String(map.get("name"));//专利名称 String applications=StringHelper.null2String(map.get("application"));//类别 String objno= StringHelper.null2String(map.get("objno"));//申请号 String authorization=StringHelper.null2String(map.get("authorization"));//授权号 String internation=StringHelper.null2String(map.get("internation"));//国别组织 addPatentList(valList3,id,name,applications,objno,authorization,internation); } JSONObject jo=new JSONObject(); jo.put("valList", valList); jo.put("valList2",valList2); jo.put("valList3",valList3); PrintWriter pw=response.getWriter(); //System.out.println(jo.toString()); pw.print(jo.toString()); } System.out.println("====导入项目:"+projectids+"的工业科技、科学技术结束===="); %> <%! private void addMapIcHumresList( List<Map<String, Object>> valList,String title,String no,String humresid,String objname,String orgunitid,String orgunitname,String createDate){ Map<String, Object> map=new HashMap<String, Object>(); map.put("title",title); map.put("no",no); map.put("humresid",humresid); map.put("objname",objname); map.put("orgunitid",orgunitid); map.put("orgunitname",orgunitname); map.put("createDate",createDate); valList.add(map); } private void addPatentList( List<Map<String, Object>> valList,String id,String name,String application,String objno,String authorization,String internation){ Map<String, Object> map=new HashMap<String, Object>(); map.put("id",id); map.put("name",name); map.put("application",application); map.put("objno",objno); map.put("authorization",authorization); map.put("internation",internation); valList.add(map); } %>
2.首布局中js的写法渲染
<p><br></p> <p><link href="/vcss/ake.css" rel="STYLESHEET" type="text/css"></p><p><p<p><script src="/vjs/selectOption.js"></script> <div id="controlall"> <div class="divtitle">科学技术成果申报</div> <div> <input name="402880e55e32c1b6015e32d18ab80003" class="InputStyle2" id="$402880e75e7af96a015e7b0e7023006c$" value="[隐藏]科学技术成果申报.流程id[field019]"><table align="center" class="mceItemTable" style="width: 100%;"> <colgroup> <col width="12%"> <col width="38%"> <col width="12%"> <col width="38%"></colgroup> <tbody id="tbody_402880ec5df3dc37015df4641fb30137"> <tr> <td id="tdheader" colspan="4"><span class="Apple-style-span" style="font-weight: bold;" mce_name="strong">基本信息</span></td></tr> <tr> <th>成果名称</th> <td><input type="text" class="InputStyle2" id="$402880e55e32c1b6015e32d25feb0008$" name="402880e55e32c1b6015e32d18ab80003" value="[可编辑]科学技术成果申报.成果名称[field002]"></td> <th>成果类别<br mce_bogus="1"></th> <td><input name="402880e55e32c1b6015e32d18ab80003" id="$402880e55e32c1b6015e32d22ae60006$" value="[可编辑]科学技术成果申报.成果类别"><br mce_bogus="1"></td> </tr> <tr> <th>奖项</th> <td><input name="402880e55e32c1b6015e32d18ab80003" class="InputStyle2" id="$402880e78923bdc6018924c8ce580064$" type="text" value="[可编辑]科学技术成果申报.奖项[field032]" style=""></td></tr> <tr> <th>项目名称</th> <td><input name="402880e55e32c1b6015e32d18ab80003" class="InputStyle2" id="$8a070cd88924cf1301892516626c0010$" type="text" value="[可编辑]科学技术成果申报.项目名称[field035]"></td> <th>项目起止时间<br mce_bogus="1"></th> <td><input name="402880e55e32c1b6015e32d18ab80003" class="InputStyle2" id="$8a070cd88924cf130189251e855c0028$" type="text" value="[可编辑]科学技术成果申报.项目起时间[field046]">-<input name="402880e55e32c1b6015e32d18ab80003" class="InputStyle2" id="$8a070cd88924cf130189251eb7f8002a$" type="text" value="[可编辑]科学技术成果申报.项目止时间[field047]"><br mce_bogus="1"></td> </tr> <tr> <th>主要完成单位<br mce_bogus="1"></th> <td><input name="402880e55e32c1b6015e32d18ab80003" class="InputStyle2" id="$8a070cd88924cf13018925180f770014$" type="text" value="[可编辑]科学技术成果申报.主要完成单位[field037]"><br mce_bogus="1"></td> <th>公布名</th> <td><input name="402880e55e32c1b6015e32d18ab80003" class="InputStyle2" id="$8a070cd88924cf13018925177aca0012$" type="text" value="[可编辑]科学技术成果申报.公布名[field036]" style=""></td> </tr> <tr> <th>申报人<br mce_bogus="1"></th> <td><input name="402880e55e32c1b6015e32d18ab80003" id="$402880e55e32c1b6015e32d42fa5000e$" value="[可编辑]科学技术成果申报.申报人"><br mce_bogus="1"></td> <th>主要完成人</th> <td><input name="402880e55e32c1b6015e32d18ab80003" class="InputStyle2" id="$8a070cd88924cf130189251889540016$" type="text" value="[可编辑]科学技术成果申报.主要完成人[field038]" style=""></td> </tr> <tr> <th>主管部门(单位)<br mce_bogus="1"></th> <td><input name="402880e55e32c1b6015e32d18ab80003" class="InputStyle2" id="$8a070cd88924cf1301892519f064001a$" type="text" value="[可编辑]科学技术成果申报.主管部门(单位)[field039]"><br mce_bogus="1"></td> <th>密级<br mce_bogus="1"></th> <td><input name="402880e55e32c1b6015e32d18ab80003" class="InputStyle2" id="$402880e65e5f0811015e5f24c2bf0004$" value="[可编辑]科学技术成果申报.密级[intensive]"><br mce_bogus="1"></td> </tr> <tr> <th>申报等级<br mce_bogus="1"></th> <td><input name="402880e55e32c1b6015e32d18ab80003" class="InputStyle2" id="$402880e55e32c1b6015e32e19c5d0018$" type="text" value="[可编辑]科学技术成果申报.获奖等级[field010]"><br mce_bogus="1"></td> <th>申报日期<br mce_bogus="1"></th> <td><input name="402880e55e32c1b6015e32d18ab80003" id="$402880e55e32c1b6015e32d2da82000a$" value="[可编辑]科学技术成果申报.申报日期"><br mce_bogus="1"></td> </tr> <tr> <th>主题词<br mce_bogus="1"></th> <td><input name="402880e55e32c1b6015e32d18ab80003" class="InputStyle2" id="$8a070cd88924cf130189251ddeb80026$" type="text" value="[可编辑]科学技术成果申报.主题词[field045]"><br mce_bogus="1"></td> </tr> <tr> <th>应用领域<br mce_bogus="1"></th> <td><input name="402880e55e32c1b6015e32d18ab80003" class="InputStyle2" id="$8a070cd88924cf130189251f16e3002c$" type="text" value="[可编辑]科学技术成果申报.应用领域[field048]"><br mce_bogus="1"></td> <th>是否应用<br mce_bogus="1"></th> <td><input name="402880e55e32c1b6015e32d18ab80003" class="InputStyle2" id="$8a070cd88924cf130189251f50bd002e$" type="text" value="[可编辑]科学技术成果申报.是否应用[field049]"><br mce_bogus="1"></td> </tr> <tr> <th>应用起始时间</th> <td><input name="402880e55e32c1b6015e32d18ab80003" class="InputStyle2" id="$8a070cd88924cf130189251f93a10030$" type="text" value="[可编辑]科学技术成果申报.应用起时间[field050]">-<input name="402880e55e32c1b6015e32d18ab80003" class="InputStyle2" id="$8a070cd88924cf130189251fe94d0032$" type="text" value="[可编辑]科学技术成果申报.应用始时间[field051]"></td> <th>工程代号</th> <td><input name="402880e55e32c1b6015e32d18ab80003" class="InputStyle2" id="$8a070cd88924cf1301892521054d0034$" type="text" value="[可编辑]科学技术成果申报.工程代号[field052]"></td> </tr> <tr> <th>技术评价方式</th> <td><input name="402880e55e32c1b6015e32d18ab80003" class="InputStyle2" id="$8a070cd88924cf13018925216a9e0036$" type="text" value="[可编辑]科学技术成果申报.技术评价方式[field053]"></td> <th>技术评价时间</th> <td><input name="402880e55e32c1b6015e32d18ab80003" class="InputStyle2" id="$8a070cd88924cf130189252192480038$" type="text" value="[可编辑]科学技术成果申报.技术评价时间[field054]"></td> </tr> <tr> <th>技术评价组织单位</th> <td><input name="402880e55e32c1b6015e32d18ab80003" class="InputStyle2" id="$8a070cd88924cf1301892521f7ab003a$" type="text" value="[可编辑]科学技术成果申报.技术评价组织单位[field055]"></td> <th>申报单位</th> <td><input name="402880e55e32c1b6015e32d18ab80003" id="$402880e55e32c1b6015e32d3857a000c$" value="[可编辑]科学技术成果申报.申报单位" style=""></td> </tr> <tr> <td id="tdheader" colspan="4"><span class="Apple-style-span" style="font-weight: bold;" mce_name="strong">二、项目简介</span></td></tr> <tr> <th>项目所属科学技术领域,主要科技内容,技(战)术、经济指标及应用推广情况</th> <td colspan="3"><input name="402880e55e32c1b6015e32d18ab80003" class="InputStyle2" id="$402880e65e4cc649015e4ce1476101c4$" style="width: 90%; height: 128px;" size="126" value="[可编辑]科学技术成果申报.简介[field012]"></td></tr> <tr> <td id="tdheader" colspan="4"><span class="Apple-style-span" style="font-weight: bold;" mce_name="strong">三、项目详细内容</span></td></tr> <tr> <th>1.立项背景(相关科学技术状况及其存在的问题)</th> <td colspan="3"><input name="402880e55e32c1b6015e32d18ab80003" class="InputStyle2" id="$8a070cd88924cf1301892524f92f003c$" style="width: 90%; height: 128px;" type="text" size="126" value="[可编辑]科学技术成果申报.立项背景[field056]"></td></tr> <tr> <th>2.详细科学技术内容</th> <td colspan="3"><input name="402880e55e32c1b6015e32d18ab80003" class="InputStyle2" id="$8a070cd88924cf130189252529ac003e$" style="width: 90%; height: 128px;" type="text" size="126" value="[可编辑]科学技术成果申报.详细科学技术内容[field057]"></td></tr> <tr> <th>3.该项目与当前国内外同类研究、同类技术(产品)的综合比较</th> <td colspan="3"><input name="402880e55e32c1b6015e32d18ab80003" class="InputStyle2" id="$8a070cd88924cf130189252589420040$" style="width: 90%; height: 128px;" type="text" size="126" value="[可编辑]科学技术成果申报.综合比较[field058]"></td></tr> <tr> <th>4.创新点</th> <td colspan="3"><input name="402880e55e32c1b6015e32d18ab80003" class="InputStyle2" id="$8a070cd88924cf1301892525ad570042$" style="width: 90%; height: 128px;" type="text" size="126" value="[可编辑]科学技术成果申报.创新点[field059]"></td></tr> <tr> <th>5.保密要点</th> <td colspan="3"><input name="402880e55e32c1b6015e32d18ab80003" class="InputStyle2" id="$8a070cd88924cf1301892525cf860044$" style="width: 90%; height: 128px;" type="text" size="126" value="[可编辑]科学技术成果申报.保密要点[field060]"></td></tr> <tr> <th>6.应用情况及前景</th> <td colspan="3"><input name="402880e55e32c1b6015e32d18ab80003" class="InputStyle2" id="$8a070cd88924cf1301892525f73f0046$" style="width: 90%; height: 128px;" type="text" size="126" value="[可编辑]科学技术成果申报.应用情况及前景[field061]"></td></tr> <tr> </tr><tr> <td id="tdheader" colspan="4"><span class="Apple-style-span" style="font-weight: bold;" mce_name="strong">7.经济、军事及社会效益情况表</span></td></tr> <tr> <th>项目总投资额(万元)</th> <td><input name="402880e55e32c1b6015e32d18ab80003" class="InputStyle2" id="$8a070cd88924cf130189252644160048$" type="text" value="[可编辑]科学技术成果申报.项目总投资额(万元)[field062]"></td> <th>经济效益总额(万元)</th> <td><input name="402880e55e32c1b6015e32d18ab80003" class="InputStyle2" id="$8a070cd88924cf1301892526d01e004a$" type="text" value="[可编辑]科学技术成果申报.经济效益总额(万元)[field063]"></td> </tr> </tbody></table></div> <div class="formOuter"> <div class="lTab"> <table class="newdetailformtable mceItemTable" id="oTable8a070cd88924cf13018925343d080062"> <caption class="cap"> <div class="fLef"><span class="icoPiPUp" onclick="ShowHide.shByUpD(this,'#tbody_8a070cd88924cf13018925343d080062');"></span>经济军事社会效益情况</div> <div class="fMid" id="div8a070cd88924cf13018925343d080062button"><input class="btn" id="add_otable8a070cd88924cf13018925343d080062" onclick="addrow('otable8a070cd88924cf13018925343d080062')" type="button" value="添加"><input class="btn" id="dlt_otable8a070cd88924cf13018925343d080062" onclick="delrow('otable8a070cd88924cf13018925343d080062','checkList_8a070cd88924cf13018925343d080062')" type="button" value="删除"><input class="btn" id="copy_otable8a070cd88924cf13018925343d080062" onclick="copyrow('otable8a070cd88924cf13018925343d080062','checkList_8a070cd88924cf13018925343d080062')" type="button" value="复制"></div></caption> <colgroup> <col width="2%"> <col width="32.6%"> <col width="32.6%"> <col width="32.6%"></colgroup> <thead> <tr> <th>年份</th> <th>新增产值</th> <th>项目名称</th> </tr></thead> <tbody id="tbody_8a070cd88924cf13018925343d080062"> <tr> <td><input name="8a070cd88924cf13018925343d080062" id="$8a070cd88924cf1301892535dc040065$" value="[可编辑]经济军事社会效益情况.年份"></td> <td><input name="8a070cd88924cf13018925343d080062" id="$8a070cd88924cf1301892536a5730067$" value="[可编辑]经济军事社会效益情况.新增产值"></td> <td><input name="8a070cd88924cf13018925343d080062" class="InputStyle2" id="$8a070cd88924cf1301892f59b2f60dff$" type="text" value="[可编辑]经济军事社会效益情况.项目名称[field007]"></td> </tr></tbody></table></div></div> <div> <table align="center" class="mceItemTable" style="width: 100%;"> <colgroup> <col width="12%"> <col width="38%"> <col width="12%"> <col width="38%"></colgroup> <tbody id="tbody_402880ec5df3dc37015df4641fb30137"> <tr> <th>本表所列效益额的计算依据及军事、社会效益说明:</th> <td colspan="3"><input name="402880e55e32c1b6015e32d18ab80003" class="InputStyle2" id="$8a070cd88924cf13018925296e7e0054$" style="width: 90%; height: 128px;" type="text" size="126" value="[可编辑]科学技术成果申报.效益说明[field068]"></td></tr> <tr> <td id="tdheader" colspan="4"><span class="Apple-style-span" style="font-weight: bold;" mce_name="strong">四、知识产权状况报告</span></td></tr> </tbody></table></div> <div class="formOuter"> <div class="lTab Patent"> <table class="newdetailformtable mceItemTable" id="oTable8a070cd88924cf130189253b90b90071"> <caption class="cap"> <div class="fLef"><span class="icoPiPUp" onclick="ShowHide.shByUpD(this,'#tbody_8a070cd88924cf130189253b90b90071');"></span>专利</div> <div class="fMid" id="div8a070cd88924cf130189253b90b90071button"><input class="btn" id="add_otable8a070cd88924cf130189253b90b90071" onclick="addrow('otable8a070cd88924cf130189253b90b90071')" type="button" value="添加"><input class="btn" id="dlt_otable8a070cd88924cf130189253b90b90071" onclick="delrow('otable8a070cd88924cf130189253b90b90071','checkList_8a070cd88924cf130189253b90b90071')" type="button" value="删除"><input class="btn" id="copy_otable8a070cd88924cf130189253b90b90071" onclick="copyrow('otable8a070cd88924cf130189253b90b90071','checkList_8a070cd88924cf130189253b90b90071')" type="button" value="复制"></div></caption> <thead> <tr> <th>专利名称</th> <th>类别</th> <th>申请号</th> <th>授权号</th> <th>国别组织</th></tr></thead> <tbody id="tbody_8a070cd88924cf130189253b90b90071"> <tr> <td><input name="8a070cd88924cf130189253b90b90071" id="$8a070cd88924cf130189255e5ca600a8$" value="[可编辑]所内专利.专利名称"></td> <td><input name="8a070cd88924cf130189253b90b90071" id="$8a070cd88924cf130189256411d400ac$" value="[可编辑]所内专利.类别"></td> <td><input name="8a070cd88924cf130189253b90b90071" id="$8a070cd88924cf1301892566acd600ae$" value="[可编辑]所内专利.申请号"></td> <td><input name="8a070cd88924cf130189253b90b90071" id="$8a070cd88924cf1301892566ca6900b0$" value="[可编辑]所内专利.授权号"></td> <td><input name="8a070cd88924cf130189253b90b90071" id="$8a070cd88924cf1301892569ebd700b2$" value="[可编辑]所内专利.国别组织"></td></tr></tbody></table></div></div> <div class="formOuter"> <div class="lTab Industrial"> <table class="newdetailformtable mceItemTable" id="oTable8a070cd8899a7dc60189cdbf64670284"> <caption class="cap"> <div class="fLef"> <span onclick="ShowHide.shByUpD(this,'#tbody_8a070cd8899a7dc60189cdbf64670284');" class="icoPiPUp"></span>工业科技明细</div> <div id="div8a070cd8899a7dc60189cdbf64670284button" class="fMid"> <input type="button" id="add_otable8a070cd8899a7dc60189cdbf64670284" onclick="addrow('otable8a070cd8899a7dc60189cdbf64670284')" class="btn" value="添加"><input type="button" id="dlt_otable8a070cd8899a7dc60189cdbf64670284" onclick="delrow('otable8a070cd8899a7dc60189cdbf64670284','checkList_8a070cd8899a7dc60189cdbf64670284')" class="btn" value="删除"> <input type="button" id="copy_otable8a070cd8899a7dc60189cdbf64670284" onclick="copyrow('otable8a070cd8899a7dc60189cdbf64670284','checkList_8a070cd8899a7dc60189cdbf64670284')" class="btn" value="复制"></div> </caption> <thead> <tr> <th>报告名称</th> <th>报告编号</th> <th>联系人</th> <th>承但单位</th> <th>申报日期</th> </tr> </thead> <tbody id="tbody_8a070cd8899a7dc60189cdbf64670284"> <tr> <td><input type="text" id="$8a070cd8899a7dc60189cdc04f9e0287$" name="8a070cd8899a7dc60189cdbf64670284" value="[可编辑]工业科技明细.报告名称"></td> <td><input type="text" id="$8a070cd8899a7dc60189cdc0717c0289$" name="8a070cd8899a7dc60189cdbf64670284" value="[可编辑]工业科技明细.报告编号"></td> <td><input type="text" id="$8a070cd8899a7dc60189cdc0fb45028b$" name="8a070cd8899a7dc60189cdbf64670284" value="[可编辑]工业科技明细.联系人"></td> <td><input type="text" id="$8a070cd8899a7dc60189cdc16153028d$" name="8a070cd8899a7dc60189cdbf64670284" value="[可编辑]工业科技明细.承但单位"></td> <td><input type="text" id="$8a070cd8899a7dc60189cdc2ac38028f$" name="8a070cd8899a7dc60189cdbf64670284" value="[可编辑]工业科技明细.申报日期"></td> </tr></tbody></table></div></div> <div class="formOuter"> <div class="lTab Technology"> <table class="newdetailformtable mceItemTable" id="oTable8a070cd8899a7dc60189cdc376a90291"> <caption class="cap"> <div class="fLef"> <span onclick="ShowHide.shByUpD(this,'#tbody_8a070cd8899a7dc60189cdc376a90291');" class="icoPiPUp"></span>科学技术明细</div> <div id="div8a070cd8899a7dc60189cdc376a90291button" class="fMid"> <input type="button" id="add_otable8a070cd8899a7dc60189cdc376a90291" onclick="addrow('otable8a070cd8899a7dc60189cdc376a90291')" class="btn" value="添加"><input type="button" id="dlt_otable8a070cd8899a7dc60189cdc376a90291" onclick="delrow('otable8a070cd8899a7dc60189cdc376a90291','checkList_8a070cd8899a7dc60189cdc376a90291')" class="btn" value="删除"><input type="button" id="copy_otable8a070cd8899a7dc60189cdc376a90291" onclick="copyrow('otable8a070cd8899a7dc60189cdc376a90291','checkList_8a070cd8899a7dc60189cdc376a90291')" class="btn" value="复制"> </div> </caption> <thead> <tr> <th>报告名称</th> <th>报告编号</th> <th>联系人</th> <th>承但单位</th> <th>申报日期</th> </tr> </thead> <tbody id="tbody_8a070cd8899a7dc60189cdc376a90291"> <tr> <td><input type="text" id="$8a070cd8899a7dc60189cdc41d740294$" name="8a070cd8899a7dc60189cdc376a90291" value="[可编辑]科学技术明细.报告名称"></td> <td><input type="text" id="$8a070cd8899a7dc60189cdc43d2f0296$" name="8a070cd8899a7dc60189cdc376a90291" value="[可编辑]科学技术明细.报告编号"></td> <td><input type="text" id="$8a070cd8899a7dc60189cdc49b430298$" name="8a070cd8899a7dc60189cdc376a90291" value="[可编辑]科学技术明细.联系人"></td> <td><input type="text" id="$8a070cd8899a7dc60189cdc4e9fe029a$" name="8a070cd8899a7dc60189cdc376a90291" value="[可编辑]科学技术明细.承但单位"></td> <td><input type="text" id="$8a070cd8899a7dc60189cdc51840029c$" name="8a070cd8899a7dc60189cdc376a90291" value="[可编辑]科学技术明细.申报日期"></td> </tr> </tbody></table></div></div> <div class="formOuter"> <div class="lTab"> <table class="newdetailformtable mceItemTable" id="oTable8a070cd88924cf130189256ba81000b4"> <caption class="cap"> <div class="fLef"><span class="icoPiPUp" onclick="ShowHide.shByUpD(this,'#tbody_8a070cd88924cf130189256ba81000b4');"></span>专著论文</div> <div class="fMid" id="div8a070cd88924cf130189256ba81000b4button"><input class="btn" id="add_otable8a070cd88924cf130189256ba81000b4" onclick="addrow('otable8a070cd88924cf130189256ba81000b4')" type="button" value="添加"><input class="btn" id="dlt_otable8a070cd88924cf130189256ba81000b4" onclick="delrow('otable8a070cd88924cf130189256ba81000b4','checkList_8a070cd88924cf130189256ba81000b4')" type="button" value="删除"><input class="btn" id="copy_otable8a070cd88924cf130189256ba81000b4" onclick="copyrow('otable8a070cd88924cf130189256ba81000b4','checkList_8a070cd88924cf130189256ba81000b4')" type="button" value="复制"></div></caption> <colgroup> <col width="2%"> <col width="24.5%"> <col width="24.5%"> <col width="24.5%"> <col width="24.5%"></colgroup> <thead> <tr> <th>专著书名</th> <th>刊物名称(期号)</th> <th>发表时间</th> <th>发表场所</th></tr></thead> <tbody id="tbody_8a070cd88924cf130189256ba81000b4"> <tr> <td><input name="8a070cd88924cf130189256ba81000b4" id="$8a070cd88924cf130189256cc1fb00b9$" value="[可编辑]专著论文.专著书名"></td> <td><input name="8a070cd88924cf130189256ba81000b4" id="$8a070cd88924cf130189256cfd0200bb$" value="[可编辑]专著论文.刊物名称(期号)"></td> <td><input name="8a070cd88924cf130189256ba81000b4" id="$8a070cd88924cf130189256d26e000bd$" value="[可编辑]专著论文.发表时间"></td> <td><input name="8a070cd88924cf130189256ba81000b4" id="$8a070cd88924cf130189256d49cf00bf$" value="[可编辑]专著论文.发表场所"></td></tr></tbody></table></div></div> <div class="formOuter"> <div class="lTab"> <table class="newdetailformtable mceItemTable" id="oTable8a070cd88924cf130189256dd40e00c1"> <caption class="cap"> <div class="fLef"><span class="icoPiPUp" onclick="ShowHide.shByUpD(this,'#tbody_8a070cd88924cf130189256dd40e00c1');"></span>软件登记</div> <div class="fMid" id="div8a070cd88924cf130189256dd40e00c1button"><input class="btn" id="add_otable8a070cd88924cf130189256dd40e00c1" onclick="addrow('otable8a070cd88924cf130189256dd40e00c1')" type="button" value="添加"><input class="btn" id="dlt_otable8a070cd88924cf130189256dd40e00c1" onclick="delrow('otable8a070cd88924cf130189256dd40e00c1','checkList_8a070cd88924cf130189256dd40e00c1')" type="button" value="删除"><input class="btn" id="copy_otable8a070cd88924cf130189256dd40e00c1" onclick="copyrow('otable8a070cd88924cf130189256dd40e00c1','checkList_8a070cd88924cf130189256dd40e00c1')" type="button" value="复制"></div></caption> <colgroup> <col width="2%"> <col width="49%"> <col width="49%"></colgroup> <thead> <tr> <th>名称</th> <th>登记号</th></tr></thead> <tbody id="tbody_8a070cd88924cf130189256dd40e00c1"> <tr> <td><input name="8a070cd88924cf130189256dd40e00c1" id="$8a070cd88924cf130189256e50f100c6$" value="[可编辑]软件登记.名称"></td> <td><input name="8a070cd88924cf130189256dd40e00c1" id="$8a070cd88924cf130189256e873500c8$" value="[可编辑]软件登记.登记号"></td></tr></tbody></table></div></div> <div class="formOuter"> <div class="lTab"> <table class="newdetailformtable mceItemTable" id="oTable8a070cd88924cf130189256f948500ca"> <caption class="cap"> <div class="fLef"><span class="icoPiPUp" onclick="ShowHide.shByUpD(this,'#tbody_8a070cd88924cf130189256f948500ca');"></span>技术秘密</div> <div class="fMid" id="div8a070cd88924cf130189256f948500cabutton"><input class="btn" id="add_otable8a070cd88924cf130189256f948500ca" onclick="addrow('otable8a070cd88924cf130189256f948500ca')" type="button" value="添加"><input class="btn" id="dlt_otable8a070cd88924cf130189256f948500ca" onclick="delrow('otable8a070cd88924cf130189256f948500ca','checkList_8a070cd88924cf130189256f948500ca')" type="button" value="删除"><input class="btn" id="copy_otable8a070cd88924cf130189256f948500ca" onclick="copyrow('otable8a070cd88924cf130189256f948500ca','checkList_8a070cd88924cf130189256f948500ca')" type="button" value="复制"></div></caption> <colgroup> <col width="2%"> <col width="49%"> <col width="49%"></colgroup> <thead> <tr> <th>名称</th> <th>确密文号</th></tr></thead> <tbody id="tbody_8a070cd88924cf130189256f948500ca"> <tr> <td><input name="8a070cd88924cf130189256f948500ca" id="$8a070cd88924cf1301892570260f00cf$" value="[可编辑]科学技术成果技术秘密.名称"></td> <td><input name="8a070cd88924cf130189256f948500ca" id="$8a070cd88924cf13018925703f3f00d1$" value="[可编辑]科学技术成果技术秘密.确密文号"></td></tr></tbody></table></div></div> <div> <table align="center" class="mceItemTable" style="width: 100%;"> <colgroup> <col width="12%"> <col width="38%"> <col width="12%"> <col width="38%"></colgroup> <tbody id="tbody_402880ec5df3dc37015df4641fb30137"> <tr> <th>其它</th> <td colspan="3"><input name="402880e55e32c1b6015e32d18ab80003" class="InputStyle2" id="$8a070cd88924cf1301892529e2180056$" style="width: 90%; height: 128px;" type="text" size="126" value="[可编辑]科学技术成果申报.其它[field069]"></td></tr> </tbody></table></div> <div class="formOuter"> <div class="lTab"> <table class="newdetailformtable mceItemTable" id="oTable8a070cd88924cf13018925712ee300d3"> <caption class="cap"> <div class="fLef"><span class="icoPiPUp" onclick="ShowHide.shByUpD(this,'#tbody_8a070cd88924cf13018925712ee300d3');"></span>五、主要完成人情况表</div> <div class="fMid" id="div8a070cd88924cf13018925712ee300d3button"><input class="btn" id="add_otable8a070cd88924cf13018925712ee300d3" onclick="addrow('otable8a070cd88924cf13018925712ee300d3')" type="button" value="添加"><input class="btn" id="dlt_otable8a070cd88924cf13018925712ee300d3" onclick="delrow('otable8a070cd88924cf13018925712ee300d3','checkList_8a070cd88924cf13018925712ee300d3')" type="button" value="删除"><input class="btn" id="copy_otable8a070cd88924cf13018925712ee300d3" onclick="copyrow('otable8a070cd88924cf13018925712ee300d3','checkList_8a070cd88924cf13018925712ee300d3')" type="button" value="复制"></div></caption> <colgroup> <col width="2%"> <col width="19.6%"> <col width="19.6%"> <col width="19.6%"> <col width="19.6%"> <col width="19.6%"></colgroup> <thead> <tr> <th>完成人顺序</th> <th>姓名</th> <th>参加本项目的开始时间</th> <th>参加本项目的结束时间</th> <th>创造性贡献</th></tr></thead> <tbody id="tbody_8a070cd88924cf13018925712ee300d3"> <tr> <td><input name="8a070cd88924cf13018925712ee300d3" id="$8a070cd88924cf130189257279ad00d8$" value="[可编辑]主要完成人情况表.完成人顺序"></td> <td><input name="8a070cd88924cf13018925712ee300d3" id="$8a070cd88924cf13018925731b1900da$" value="[可编辑]主要完成人情况表.姓名"></td> <td><input name="8a070cd88924cf13018925712ee300d3" id="$8a070cd88924cf1301892574d94b00dc$" value="[可编辑]主要完成人情况表.参加本项目的起"></td> <td><input name="8a070cd88924cf13018925712ee300d3" id="$8a070cd88924cf13018925750b3f00de$" value="[可编辑]主要完成人情况表.参加本项目的止"></td> <td><input name="8a070cd88924cf13018925712ee300d3" id="$8a070cd88924cf13018925754c0f00e0$" value="[可编辑]主要完成人情况表.创造性贡献"></td></tr></tbody></table></div></div> <div class="formOuter"> <div class="lTab"> <table class="newdetailformtable mceItemTable" id="oTable8a070cd88924cf1301892576496400e2"> <caption class="cap"> <div class="fLef"><span class="icoPiPUp" onclick="ShowHide.shByUpD(this,'#tbody_8a070cd88924cf1301892576496400e2');"></span>六、主要完成单位情况表</div> <div class="fMid" id="div8a070cd88924cf1301892576496400e2button"><input class="btn" id="add_otable8a070cd88924cf1301892576496400e2" onclick="addrow('otable8a070cd88924cf1301892576496400e2')" type="button" value="添加"><input class="btn" id="dlt_otable8a070cd88924cf1301892576496400e2" onclick="delrow('otable8a070cd88924cf1301892576496400e2','checkList_8a070cd88924cf1301892576496400e2')" type="button" value="删除"><input class="btn" id="copy_otable8a070cd88924cf1301892576496400e2" onclick="copyrow('otable8a070cd88924cf1301892576496400e2','checkList_8a070cd88924cf1301892576496400e2')" type="button" value="复制"></div></caption> <colgroup> <col width="2%"> <col width="19.6%"> <col width="19.6%"> <col width="19.6%"> <col width="19.6%"> <col width="19.6%"></colgroup> <thead> <tr> <th>完成单位顺序</th> <th>单位名称</th> <th>主管部门(单位)</th> <th>单位性质</th> <th>对本项目技术创造性贡献</th></tr></thead> <tbody id="tbody_8a070cd88924cf1301892576496400e2"> <tr> <td><input name="8a070cd88924cf1301892576496400e2" id="$8a070cd88924cf130189257776eb00e7$" value="[可编辑]主要完成单位情况表.完成单位顺序"></td> <td><input name="8a070cd88924cf1301892576496400e2" id="$8a070cd88924cf1301892578119400e9$" value="[可编辑]主要完成单位情况表.单位名称"></td> <td><input name="8a070cd88924cf1301892576496400e2" id="$8a070cd88924cf13018925784f8700eb$" value="[可编辑]主要完成单位情况表.主管部门(单位)"></td> <td><input name="8a070cd88924cf1301892576496400e2" id="$8a070cd88924cf1301892579031200ed$" value="[可编辑]主要完成单位情况表.单位性质"></td> <td><input name="8a070cd88924cf1301892576496400e2" id="$8a070cd88924cf13018925793f2600ef$" value="[可编辑]主要完成单位情况表.对本项目技术创造性贡献"></td></tr></tbody></table></div></div> <div> <table align="center" class="mceItemTable" style="width: 100%;"> <colgroup> <col width="12%"> <col width="38%"> <col width="12%"> <col width="38%"></colgroup> <tbody id="tbody_402880ec5df3dc37015df4641fb30137"> <tr> <td id="tdheader" colspan="4"><span class="Apple-style-span" style="font-weight: bold;" mce_name="strong">七、附件材料</span></td></tr> <tr> <th>1、技术评价证明</th> <td colspan="3"><input name="402880e55e32c1b6015e32d18ab80003" class="InputStyle2" id="$8a070cd88924cf130189252acf790058$" style="width: 70%; height: 17px;" type="text" size="59" value="[可编辑]科学技术成果申报.技术评价证明[field070]"></td> </tr> <tr> <th>2、应用证明(或应用前景证明)</th> <td colspan="3"><input name="402880e55e32c1b6015e32d18ab80003" class="InputStyle2" id="$8a070cd88924cf130189252afe3a005a$" style="width: 70%; height: 17px;" type="text" size="59" value="[可编辑]科学技术成果申报.应用证明[field071]"></td> </tr> <tr> <th>3、主要完成单位和主要完成人协调一致证明</th> <td colspan="3"><input name="402880e55e32c1b6015e32d18ab80003" class="InputStyle2" id="$8a070cd88924cf130189252b8f4a005e$" style="width: 70%; height: 17px;" type="text" size="59" value="[可编辑]科学技术成果申报.一致证明[field073]"></td> </tr> <tr> <th>4、其它必要的证明材料</th> <td colspan="3"><input name="402880e55e32c1b6015e32d18ab80003" class="InputStyle2" id="$8a070cd88924cf130189252beb6b0060$" style="width: 70%; height: 17px;" type="text" size="59" value="[可编辑]科学技术成果申报.证明材料[field074]"></td> </tr> </tbody></table></div> </div> <p> <script type="text/javascript"> //流程控制 document.getElementById("controlall").onclick=function(){ var czmoney = 0;//新增产值计算 var tablerows = $("#oTable8a070cd88924cf13018925343d080062").find("tr").length for (var i=0;i<tablerows-1;i++){ var mxmoney=$("#field_8a070cd88924cf1301892536a5730067_"+i).val();//新增产值 czmoney=Number(czmoney)+Number(mxmoney); } if (!isNaN(czmoney)){//新增产值累计 $("#field_8a070cd88924cf1301892526d01e004a").val(czmoney.toFixed(2)); } } document.getElementById("tbody_402880ec5df3dc37015df4641fb30137").onclick=function(){ //带出明细内容 var projectid = ""; $(function () { projectid = $("#field_8a070cd88924cf1301892516626c0010").val(); if (projectid.length > 0) { $.post("/kms/project/wfExportIDetail.jsp?projectid=" + projectid, function (result) { var obj = JSON.parse(result); //工业科技 var trs = $(".Industrial>table>tbody>tr").length; if(trs <=1){ for (var i = 0; i<obj.valList.length;i++){ if (i<obj.valList.length-1){ $("#add_otable8a070cd8899a7dc60189cdbf64670284").click(); } $("#field_8a070cd8899a7dc60189cdc04f9e0287_"+i).val(obj.valList[i]['title']); $("#field_8a070cd8899a7dc60189cdc0717c0289_"+i).val(obj.valList[i]['no']); $("#field_8a070cd8899a7dc60189cdc0fb45028b_"+i).val(obj.valList[i]['humresid']); $("#field_8a070cd8899a7dc60189cdc0fb45028b_"+i + "span").val(obj.valList[i]['objname']); $("#field_8a070cd8899a7dc60189cdc16153028d_"+i).val(obj.valList[i]['orgunitid']); $("#field_8a070cd8899a7dc60189cdc16153028d_"+i + "span").val(obj.valList[i]['orgunitname']); $("#field_8a070cd8899a7dc60189cdc2ac38028f_"+i).val(obj.valList[i]['createDate']); $("#button_field_8a070cd8899a7dc60189cdc2ac38028f_"+i+ "span").val(obj.valList[i]['createDate']); } } //科学技术 var techtrs = $(".Technology>table>tbody>tr").length; if(techtrs <=1){ for (var i = 0; i<obj.valList2.length;i++){ if (i<obj.valList2.length-1){ $("#add_otable8a070cd8899a7dc60189cdc376a90291").click(); } $("#field_8a070cd8899a7dc60189cdc41d740294_"+i).val(obj.valList2[i]['title']); $("#field_8a070cd8899a7dc60189cdc43d2f0296_"+i).val(obj.valList2[i]['no']); $("#field_8a070cd8899a7dc60189cdc49b430298_"+i).val(obj.valList2[i]['humresid']); $("#field_8a070cd8899a7dc60189cdc49b430298_"+i + "span").val(obj.valList2[i]['objname']); $("#field_8a070cd8899a7dc60189cdc4e9fe029a_"+i).val(obj.valList2[i]['orgunitid']); $("#field_8a070cd8899a7dc60189cdc4e9fe029a_"+i + "span").val(obj.valList2[i]['orgunitname']); $("#field_8a070cd8899a7dc60189cdc51840029c_"+i).val(obj.valList2[i]['createDate']); $("#field_8a070cd8899a7dc60189cdc51840029c_"+i+ "span").val(obj.valList2[i]['createDate']); } } //专利 var patenttrs = $(".Patent>table>tbody>tr").length; if(patenttrs <=1){ for (var i = 0; i<obj.valList3.length;i++){ if (i<obj.valList3.length-1){ $("#add_otable8a070cd88924cf130189253b90b90071").click(); } $("#field_8a070cd88924cf130189255e5ca600a8_"+i).val(obj.valList3[i]['id']); $("#field_8a070cd88924cf130189255e5ca600a8_"+i+ "span").val(obj.valList3[i]['name']); $("#field_8a070cd88924cf130189256411d400ac_"+i).val(obj.valList3[i]['application']); $("#field_8a070cd88924cf1301892566acd600ae_"+i).val(obj.valList3[i]['objno']); $("#field_8a070cd88924cf1301892566ca6900b0_"+i).val(obj.valList3[i]['authorization']); $("#field_8a070cd88924cf1301892569ebd700b2_"+i).val(obj.valList3[i]['internation']); } } }) } }) } function onSubmitPlus(issave) { if (issave != 0) { return true; } //应用起始时间,当“是否应用”为【是】时,必填 var application=$("#field_8a070cd88924cf130189251f50bd002e option:selected").val(); if(application=="40288110301fdb1601301fedb6080096"){ var applicatbegin=$("#field_8a070cd88924cf130189251f93a10030").val(); var applicatend=$("#field_8a070cd88924cf130189251fe94d0032").val(); if (applicatbegin.length==0 && applicatend.length==0) { alert("当是否应用为是时,应用起至时间必填"); return false; }else { return true; } }else { return true; } } </script></p>
标签:map,String,getBean,明细,js,put,new,BaseContext,给首 From: https://www.cnblogs.com/jk200/p/17616823.html