版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、 Adp平台上具体的业务:业务模块主页面主要分为左、中、右三个部分,参考页面:pqcBlueprint.jsp代码为:<body class="body" ><table height="100%" width="100%" cellspacing="0" cellpadding="0"><TBODY><tr><td class="pt-formHeader" colspan="2"><di
2、v class="imgdiv"><imgsrc="<%=request.getContextPath()%>/platform/ui/images/view.gif" /></div><div class="namediv"> </div></td></tr><tr><td valign="top" width="200px"><IFRAME id='leftFram
3、e'name='leftFrame' height='100%' border=0 frameBorder=0src="pqcBlueprintTree.jsp" width='100%' scrolling="no"style="overflow: hidden;"></IFRAME>主页面的左边部分</td><td valign="top"><div id="mainDiv"style=&
4、quot;height: 100%; float: left; position: absolute; z-index: 9999; overflow: hidden"><IFRAME id='mainFrame' name='mainFrame' height='100%' border=0frameBorder=0 src="pqcBlueprintList.jsp" width='100%'scrolling="no" style="overflow:
5、hidden;"></IFRAME>主页面的中间部分</div><div id="splitterDiv"style="cursor: col-resize; width: 8px; height: 100%; border: 1px solid transparent; position: absolute; z-index: 99999;"> </div><div id="rightDiv" style="height: 100%;
6、position: absolute; z-index: 9998; right: 0; width: 247px; overflow: hidden;"><div class="title_mk" id="title_mk"> <table height="100%" width="99%" style="background: #eff0f6; border: #acb8d5 solid 1px"><TBODY><tr><
7、td valign="top" height='15px' style="border: #acb8d5 solid 1px"><div class="pt-toolbar"><div class="iconunfold"><a href="javascript:shouqi();"><span></span> </a></div><div class="title_font
8、">关联业务</div></div></td></tr><tr height="100%"><td width="100%" valign="top"><IFRAME id='rightFrame'name='rightFrame' height='100%' border=0 frameBorder=0src="pqcBlueprintRight.jsp" width=
9、39;100%' scrolling="no"style="overflow: hidden;"></IFRAME></td></tr></TBODY></table></div><div id="daohang" style="width: 10px; height: 100%;background: #eff0f6;"><div class="unfold" style="bor
10、der: #acb8d5 solid 1px"><a href="javascript:swithDiv(false);"><span></span> </a></div><div class="titlefont" style="border: #acb8d5 solid 1px">关联业务</div></div></div>主页面的右边部分</td></tr></TBODY>
11、;</table><script type="text/javascript"> var oldWidth= window.document.body.clientWidth;var leftFrameCollapse=""/记录tree收起状态$(document).ready(function()var pageWidth = window.document.body.clientWidth;$("#mainDiv").css("width", (pageWidth-450) + &qu
12、ot;px");$("#mainFrame").css("width", (pageWidth-450) + "px");$("#splitterDiv").css("left", (pageWidth-249) + "px");/解决iframe自适应大小问题Edo.util.Dom.on(window, 'resize', function()var _render = document.body;var size = Edo.util.Dom.
13、getViewSize(_render);var width = size.width;var movePx = Math.abs(oldWidth-width); if(movePx>pageWidth/100)$("#mainDiv").css("height", (size.height-25) + "px");$("#mainFrame").css("height", (size.height-25) + "px"); oldWidth = size.width
14、;/如果tree是收起状态,设置一下if(leftFrameCollapse=true)swithDiv(leftFrameCollapse);elseswithDiv(false);););function shouqi()swithDiv(true); /缩起或者展开 function swithDiv(flag) var pageWidth = window.document.body.clientWidth;leftFrameCollapse = flag;if(flag)/收缩菜单document.getElementById('title_mk').style.di
15、splay="none"document.getElementById('daohang').style.display="block"$("#rightDiv").css("width", 25 + "px");$("#mainDiv").css("width", (pageWidth - 225) + "px");$("#mainFrame").css("width", (pa
16、geWidth-225) + "px");$("#splitterDiv").css("z-index", "-1");/隐藏拖拽div,防止条缩进去后还能够拖拽else/展开菜单document.getElementById('daohang').style.display="none"document.getElementById('title_mk').style.display="block"$("#mainDiv"
17、).css("width", (pageWidth - 450) + "px");$("#mainFrame").css("width", (pageWidth-450) + "px");$("#rightDiv").css("width", 247+ "px");window.frames"rightFrame".getwidth(247 + "px");$("#splitterDiv
18、").css("z-index", "99999");/回复拖拽条位置,放在最前面$("#splitterDiv").css("left",(window.document.body.clientWidth-249)+"px"); </script></body>关于tree的用法参考页面:proMainPlanTree.jsp获取树的方法,参考页面为:pqcBlueprintHandler.jsp代码为:if (op.equals("tree&quo
19、t;) /获取型号数据List lists = new ArrayList();Map mPlan = new HashMap();mPlan.put("id", "-1");mPlan.put("text", "神舟软件");mPlan.put("expanded", true);mPlan.put("_viewicon", true);mPlan.put("icon", "e-tree-folder");List jsonList
20、= new ArrayList();List dataList = new ArrayList();dataList = baseService.getAll("TaskDetail");for (int i = 0; i < dataList.size(); i+) TaskDetail taskDetail = (TaskDetail) dataList.get(i);String id = taskDetail.getTask_Insymbol();String value = taskDetail.getTask_Name();java.util.HashMa
21、p tmap = new java.util.HashMap();tmap.put("id", id);tmap.put("text", value);tmap.put("innerId", taskDetail.getInnerId();tmap.put("type", "taskDetail");tmap.put("expanded", false);tmap.put("_viewicon", true);tmap.put("icon&quo
22、t;, "e-tree-node");List<Map<String, Object>> taskStates = baseService.query("select distinct t.task_insymbol,t.task_state from PRO_MAINPLAN t where t.task_insymbol='"+ taskDetail.getTask_Insymbol() + "'");List taskStateList = new ArrayList();for (Map
23、<String, Object> t : taskStates) java.util.HashMap statemap = new java.util.HashMap();statemap.put("id", t.get("TASK_INSYMBOL").toString()+ (t.get("TASK_STATE")=null?"未知":t.get("TASK_STATE").toString(); statemap.put("text", (t.get(&qu
24、ot;TASK_STATE")=null?"未知":t.get("TASK_STATE").toString();statemap.put("task_insymbol", t.get("TASK_INSYMBOL").toString();statemap.put("type", "taskState");statemap.put("expanded", false);statemap.put("_viewicon", tr
25、ue);statemap.put("icon", "e-tree-node");String batchsql="select distinct t.task_insymbol,t.task_state,t.plan_batch from PRO_MAINPLAN t where t.task_insymbol='"+ t.get("TASK_INSYMBOL").toString()+ "' and t.task_state" if(t.get("TASK_STATE
26、")=null) batchsql+=" is null" else batchsql+="='"+ t.get("TASK_STATE") +"'" List<Map<String, Object>> planBatchs = baseService.query(batchsql);List planBatchList = new ArrayList();for (Map<String, Object> b : planBatchs) java.uti
27、l.HashMap batchmap = new java.util.HashMap();batchmap.put("id",b.get("TASK_INSYMBOL").toString()+ (b.get("TASK_STATE")=null?"未知":b.get("TASK_STATE").toString()+ (b.get("PLAN_BATCH")=null?"未知":b.get("PLAN_BATCH").toString
28、();batchmap.put("text", (b.get("PLAN_BATCH")=null?"未知":b.get("PLAN_BATCH").toString();batchmap.put("task_insymbol", b.get("TASK_INSYMBOL").toString();batchmap.put("task_state", b.get("TASK_STATE");batchmap.put("type
29、", "planBatch");batchmap.put("expanded", false);batchmap.put("_viewicon", true);batchmap.put("icon", "e-tree-node"); String task_state="" if(b.get("TASK_STATE")!=null) task_state = URLEncoder.encode(URLEncoder.encode(b.get(&q
30、uot;TASK_STATE").toString(), "UTF-8"),"UTF-8"); String plan_batch ="" if(b.get("PLAN_BATCH")!=null) plan_batch = URLEncoder.encode(URLEncoder.encode(b.get("PLAN_BATCH").toString(), "UTF-8"),"UTF-8"); batchmap.put("childu
31、rl",request.getContextPath()+ "/mes/pqcBlueprint/action/pqcBlueprintHandler.jsp?op=treeSub&id="+ b.get("TASK_INSYMBOL").toString()+ "&taskState="+ task_state+ "&planBatch="+ plan_batch);planBatchList.add(batchmap);statemap.put("children&q
32、uot;, planBatchList);taskStateList.add(statemap);tmap.put("children", taskStateList);jsonList.add(tmap);mPlan.put("children", jsonList);String xx = DataUtil.encode(mPlan);out.println(xx);关于treegrid的用法参考页面pqcBlueprintList.jsp获取树表的方法,参考页面为:pqcBlueprintHandler.jsp代码为: if (op.equals(
33、"Plist")树表的第一层) /planNo|WSIDString planNo = request.getParameter("planNo");String wsid = request.getParameter("wsid");FilterParam filter = FilterParamUtil.requestToFilter(request);if (wsid != null) filter.addItem("wsid", wsid);filter.addItem("plan_No"
34、;, planNo);filter.addItem("pBpId", FilterParamSymbol.IS_NULL, null);Table tab = baseService.getPTFactorListByClassId(filter,"PqcBlueprint");List mapList = new ArrayList();List<PqcBlueprint> pts = (List<PqcBlueprint>) tab.getDataList();for (PqcBlueprint p : pts) Map no
35、de = new HashMap();List<CommModelAttr> classAttrDefList = ModelInfoUtil.getCommModelAttrs("PqcBlueprint");for (CommModelAttr cad : classAttrDefList) String attrId = cad.getAttrId();node.put(attrId.toUpperCase(), ReflectionUtil.getFieldValue(PTFactor) p, attrId);/ System.out.println(a
36、ttrId.toUpperCase()+"RRRRRRR"+ReflectionUtil.getFieldValue(PTFactor)p,attrId);String mj = p.getBp_Grade() = null ? "0" : p.getBp_Grade();if (mj.equals("0") node.put("BP_GRADE", "内部"); else if (mj.equals("1") node.put("BP_GRADE", &
37、quot;普密"); else if (mj.equals("2") node.put("BP_GRADE", "秘密"); else if (mj.equals("3") node.put("BP_GRADE", "机密");String bpState = p.getBp_State() = null ? "0" : p.getBp_State();if (bpState.equals("0") node.put(&quo
38、t;BP_STATE", "可用"); else if (bpState.equals("1") node.put("BP_STATE", "领用"); else if (bpState.equals("2") node.put("BP_STATE", "借阅"); else if (bpState.equals("3") node.put("BP_STATE", "销毁"); else
39、 if (bpState.equals("4") node.put("BP_STATE", "归档");String objState = p.getObj_State() = null ? "0" : p.getObj_State();if (objState.equals("0") node.put("OBJ_STATE", "未到"); else if (objState.equals("1") node.put("OB
40、J_STATE", "已到");String operation = null;operation = "<a href='#' onclick='editPt()'>编辑</a>"node.put("OPERATION", operation);if (wsid != null) node.put("childurl",request.getContextPath()+ "/mes/pqcBlueprint/action/pqcBluep
41、rintHandler.jsp?op=list&planNo="+ planNo + "&wsid=" + wsid + "&pBpId="+ p.getBpId(); else node.put("childurl",request.getContextPath()+ "/mes/pqcBlueprint/action/pqcBlueprintHandler.jsp?op=list&planNo="+ planNo + "&pBpId=" +
42、p.getBpId();node.put("expanded", false);node.put("_viewicon", true);mapList.add(node);String xx = DataUtil.encode(mapList);out.print(xx); else if (op.equals("list")树表的子层) String planNo = request.getParameter("planNo");String wsid = request.getParameter("w
43、sid");String pBpId = request.getParameter("pBpId");FilterParam filter = new FilterParam();if (wsid != null) filter.addItem("wsid", wsid);filter.addItem("plan_No", planNo);filter.addItem("pBpId", pBpId);Table tab = baseService.getPTFactorListByClassId(filt
44、er,"PqcBlueprint");List mapList = new ArrayList();List<PqcBlueprint> pts = (List<PqcBlueprint>) tab.getDataList();for (PqcBlueprint p : pts) Map node = new HashMap();List<CommModelAttr> classAttrDefList = ModelInfoUtil.getCommModelAttrs("PqcBlueprint");for (Comm
45、ModelAttr cad : classAttrDefList) String attrId = cad.getAttrId();node.put(attrId.toUpperCase(), ReflectionUtil.getFieldValue(PTFactor) p, attrId);String mj = p.getBp_Grade() = null ? "0" : p.getBp_Grade();if (mj.equals("0") node.put("BP_GRADE", "内部"); else if
46、 (mj.equals("1") node.put("BP_GRADE", "普密"); else if (mj.equals("2") node.put("BP_GRADE", "秘密"); else if (mj.equals("3") node.put("BP_GRADE", "机密");String bpState = p.getBp_State() = null ? "0" : p.ge
47、tBp_State();if (bpState.equals("0") node.put("BP_STATE", "可用"); else if (bpState.equals("1") node.put("BP_STATE", "领用"); else if (bpState.equals("2") node.put("BP_STATE", "借阅"); else if (bpState.equals("3&
48、quot;) node.put("BP_STATE", "销毁"); else if (bpState.equals("4") node.put("BP_STATE", "归档");String objState = p.getObj_State() = null ? "0" : p.getObj_State();if (objState.equals("0") node.put("OBJ_STATE", "未到")
49、; else if (objState.equals("1") node.put("OBJ_STATE", "已到");if (wsid != null) node.put("childurl",request.getContextPath()+ "/mes/pqcBlueprint/action/pqcBlueprintHandler.jsp?op=list&planNo="+ planNo + "&wsid=" + wsid + "&pB
50、pId="+ p.getBpId(); else node.put("childurl",request.getContextPath()+ "/mes/pqcBlueprint/action/pqcBlueprintHandler.jsp?op=list&planNo="+ planNo + "&pBpId=" + p.getBpId();String operation = null;operation = "<a href='#' onclick='editPt(
51、)'>编辑</a>"node.put("OPERATION", operation);node.put("expanded", false);node.put("_viewicon", true);mapList.add(node);String xx = DataUtil.encode(mapList);out.print(xx);关于grid的用法参考页面TpDispenseList.jsp获取树表的方法,参考页面为:pqcBlueprintHandler.jsp代码为:if (op.equal
52、s("tpDispenseList") String bpId = request.getParameter("bpId");FilterParam filter = FilterParamUtil.requestToFilter(request);filter.addItem("tpId", bpId);filter.addItem("file_Type", "1");Table tab = baseService.getPTFactorListByClassId(filter,"PqcTpDispense");List mapList = new ArrayList();List<PqcTpDispense> pts = (List<PqcTpDispense>) tab.getDa
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年杭州师范大学附属医院公开招聘高层次人才47人笔试备考试题及答案解析
- 2026重庆市环卫集团有限公司招聘20人考试模拟试题及答案解析
- 2026贵州安顺市紫云自治县政务服务中心等单位招聘3人笔试备考题库及答案解析
- 2026年癣病用药行业分析报告及未来发展趋势报告
- 2025年城投集团招聘真题及答案解析
- 基于光合特性和土壤养分含量探讨断根对菊芋块茎产量形成的影响
- 2026中国民用航空飞行学院招聘事业编制硕士辅导员25人考试备考试题及答案解析
- 2026年南平实业集团有限公司度员工招聘21人考试备考题库及答案解析
- 发展证据意识的高中化学MEL论证式教学实践研究
- 2026年超高分子量聚乙烯纤维行业分析报告及未来发展趋势报告
- 《资治通鉴》与为将之道知到课后答案智慧树章节测试答案2025年春武警指挥学院
- 水表安装施工合同范本
- (高清版)DB3201∕T 1105-2022 公共安全视频监控系统建设规范
- 银发经济崛起
- 《家用电器销售管理系统的设计与实现》2000字(论文)
- 第10课 物联系统原型搭建 教学课件 -初中信息技术七年级下册浙教版2023
- 国际汉语教师考试试题
- 工程经济与项目管理(慕课版)
- 蜘蛛人割胶打胶施工方案
- 2023年春四年级下册语文试题-阅读专项训练:说明文阅读-人教部编版(含答案)
- 肺癌患者围术期处理新进展演示文稿
评论
0/150
提交评论