端午研究的代码集合 NEW
JAVA:
public Collection searchInquiryForm(WorkFlowProcessVO queryVo, PageVO page, String supperOrgs)throws DAOException{ StringBuffer sql = new StringBuffer("select distinct a.request_no,a.flow_id,a.submission_date,a.request_staff_code,a.receiving_date,a.previous_processor,a.current_processor,a.status,a.inprocess,c.form_name,c.form_system_id,a.node_id,e.node_type,e.node_name,a.is_deputy,a.origin_processor, a.handle_date, a.org_id, a.team_code, a.SUBMIT_STAFF_CODE "); sql.append(" from teflow_wkf_process a "); if (queryVo.getNodeType() != null && !"".equals(queryVo.getNodeType())) { sql.append(" INNER JOIN "); } else { sql.append(" LEFT OUTER JOIN "); } sql.append(" teflow_wkf_detail e on (a.flow_id = e.flow_id) and (a.node_id = e.node_id),teflow_wkf_define b,teflow_form c, tpma_staffbasic d where 1=1 "); HashMap resultMap = makeCondition(queryVo, supperOrgs); sql.append(resultMap.get("conditionSQL")); //sql.append(" and a.flow_id=b.flow_id and b.form_system_id = c.form_system_id and a.flow_id = e.flow_id and a.node_id = e.node_id and a.request_staff_code = d.staff_code order by a.submission_date desc"); //join -> left join sql.append(" and (a.flow_id = b.flow_id) and (b.form_system_id = c.form_system_id) and (a.request_staff_code = d.staff_code) "); // For query condition related to node. /*if (queryVo.getNodeType() != null && !"".equals(queryVo.getNodeType())) { sql.append("and (a.flow_id = e.flow_id) and (a.node_id = e.node_id)"); } else { sql.append("and (a.flow_id *= e.flow_id) and (a.node_id *= e.node_id)"); }*/ sql.append(" order by a.submission_date desc"); //Collection list = dbManager.query(sql.toString()); //Collection list = dbManager.query(sql.toString(),(Object[])resultMap.get("parameters"),(int[])resultMap.get("dataType")); // System.out.println("-----sql_2: " + sql); long timeStart = System.currentTimeMillis(); Collection list = dbManager.query(sql.toString(),(Object[])resultMap.get("parameters"),(int[])resultMap.get("dataType"),page.getPageSize(),page.getCurrentPage()); boolean logTime = "yes".equalsIgnoreCase(ParamConfigHelper.getInstance().getParamValue(CommonName.PARAM_LOG_TIME)); if (logTime) { System.out.println("Inquiry List sql: " + sql); System.out.println("Inquiry List Time - 1: " + (System.currentTimeMillis() - timeStart)); } boolean contentField2 = false; boolean contentField3 = false; String contentFields = ParamConfigHelper.getInstance().getParamValue(CommonName.PARAM_LIST_CONTENT_FIELDS); if (contentFields != null && !"".equals(contentFields)) { String[] aryContentFields = contentFields.split(";"); for (int i = 0; i < aryContentFields.length; i++) { if (aryContentFields[i].equals("2")) { contentField2 = true; } else if (aryContentFields[i].equals("3")) { contentField3 = true; } } } if(list==null && list.size()==0) return null; Collection result = new ArrayList(); Iterator it = list.iterator(); int count = 1; while( it.hasNext()){ // System.out.println("count - " + count++); HashMap map = (HashMap)it.next(); WorkFlowProcessVO vo = convertMapToVo(map); //if(page.getPageSize()>0 ){ // Set tip field vo.setTipField(this.getSpecialField(vo.getRequestNo(), SpecialFieldVo.TYPE_TIP, vo.getFormSystemId())); // Set highlight fields vo.setHighlightField(this.getSpecialField(vo.getRequestNo(), SpecialFieldVo.TYPE_HIGHLIGHT_1, vo.getFormSystemId())); if (contentField2) { vo.setHighlightField2(this.getSpecialField(vo.getRequestNo(), SpecialFieldVo.TYPE_HIGHLIGHT_2, vo.getFormSystemId())); } if (contentField3) { vo.setHighlightField3(this.getSpecialField(vo.getRequestNo(), SpecialFieldVo.TYPE_HIGHLIGHT_3, vo.getFormSystemId())); } //} result.add(vo); } if (logTime) { System.out.println("Inquiry List Time - 2: " + (System.currentTimeMillis() - timeStart)); } return result; } /**为新的页面获取用户查询后的数据 * @param staffCode * @return * @throws DAOException */ public Collection searchInquiryFormNew(WorkFlowProcessVO queryVo, PageVO page, String supperOrgs)throws DAOException{ return null; }
public ActionLocation listInquiryFormForNew(ModuleMapping mapping, HttpServletRequest request, HttpServletResponse response) throws Exception{ String resultLabel = "main2"; String formType = (String) request.getParameter("form_type_1"); IDBManager dbManager = null; WorkFlowProcessVO vo = new WorkFlowProcessVO(); // 增加分页查询功能 /* String pagenum = (String) request.getParameter(GlobalCommonName.PAGE_CURRENT_NUM); if (pagenum == null) { pagenum = "1"; }*/ // HashMap paramMap = new HashMap(); //用来保存查询参数 /* PageVO page = new PageVO(Integer.parseInt(ParamConfigHelper.getInstance().getParamValue( CommonName.EVERY_PAGE_RECORDS_NUM, CommonName.DEFAULT_RECORDS_NUM))); page.setCurrentPage(Integer.parseInt(pagenum));*/ if (formType != null && !"".equals(formType)) { vo.setFormType("'" + formType + "'"); } else { // 如果是查询所有form,则需要知道当前user可以查看到的form类型 String formTypes = ""; StaffVO currentStaff = (StaffVO) request.getSession().getAttribute(CommonName.CURRENT_STAFF_INFOR); AuthorityHelper authority = AuthorityHelper.getInstance(); Collection typeList = FormTypeHelper.getInstance().getFormTypeList(); if (typeList != null && typeList.size() > 0) { Iterator it = typeList.iterator(); while (it.hasNext()) { FormTypeVO typeVo = (FormTypeVO) it.next(); if (authority.checkAuthorityByFormType(currentStaff.getCurrentRoleId(), ModuleOperateName.MODULE_FORM_INQUIRY, typeVo.getFormTypeId())) { formTypes = formTypes + "'" + typeVo.getFormTypeId() + "',"; } } } if (!"".equals(formTypes)) { formTypes = formTypes.substring(0, formTypes.length() - 1); } vo.setFormType(formTypes); } StaffVO currentStaff = (StaffVO) request.getSession().getAttribute(CommonName.CURRENT_STAFF_INFOR); String supperOrgs = currentStaff.getUpperCompanys();// CompanyHelper.getInstance().getUpperCompany(currentStaff.getOrgId()); String lowerOrgs = currentStaff.getLowerCompanys(); // CompanyHelper.getInstance().getLowerCompany(currentStaff.getOrgId()); try { dbManager = DBManagerFactory.getDBManager(); FormManageDAO formDao = new FormManageDAO(dbManager); Collection formSelectList = formDao.getFormListByTypeList(vo.getFormType(), supperOrgs, null); request.setAttribute("formSelectList", formSelectList); String orgId = (String) request.getParameter("company_1"); // if user enter the page by clicking the left menu tree,it needn't // to query! String needQuery = (String) request.getParameter("needquery"); if (needQuery != null && "false".equals(needQuery)) { Collection list = new ArrayList(); request.setAttribute("overtimeFormList", list); // 赋予一个初始化的时间段(一个星期) ParamConfigHelper paramHelper = ParamConfigHelper.getInstance(); String defaultDays = paramHelper.getParamValue("list_data_days"); int days = 0; if (defaultDays == null || "".equals(defaultDays)) { days = -7; } else { days = -Integer.parseInt(defaultDays); } String beginSubmissionDate = ""; String endSubmissionDate = ""; String paramCode=ParamConfigHelper.getInstance().getParamValue("dateFormat"); SimpleDateFormat bartDateFormat = new SimpleDateFormat(paramCode); //对于日期的初始化设置暂时取消 /* Date now = new Date(); endSubmissionDate = bartDateFormat.format(now); beginSubmissionDate = StringUtil.afterNDay(days, paramCode); request.setAttribute("beginSubmissionDate2", beginSubmissionDate); request.setAttribute("endSubmissionDate2", endSubmissionDate); */ // default same as submission date /* request.setAttribute("beginCompleteDate", beginSubmissionDate); request.setAttribute("endCompleteDate", endSubmissionDate);*/ } else { String requestNo = (String) request.getParameter("request_no_1"); String status = (String) request.getParameter("status_1"); // IT0958 DS-007 Begin String requestedBy = (String) request.getParameter("requested_by_1"); // IT0958 DS-008 End String beginSubmissionDate = (String) request.getParameter("submit_from_1"); String endSubmissionDate = (String) request.getParameter("submit_to_1"); // IT0973 BEGIN String lockedForm = (String) request.getParameter("form_locked_1"); if (lockedForm != null && !"".equals(lockedForm)) { vo.setInProcess(lockedForm); } if (requestNo != null && !"".equals(requestNo)) { vo.setRequestNo(requestNo); } else { vo.setRequestNo(""); } if (status != null && !"".equals(status)) { vo.setStatus(status); } vo.setOrgId(orgId); if (requestedBy != null && !"".equals(requestedBy)) { vo.setRequestStaffCode(requestedBy); } else { vo.setRequestStaffCode(""); } vo.setBeginSubmissionDate(beginSubmissionDate); vo.setEndSubmissionDate(endSubmissionDate); String formSystemId = (String) request.getParameter("formSystemId"); if (formSystemId != null && !"".equals(formSystemId)) { vo.setFormSystemId(Integer.parseInt(formSystemId)); } String nodeName = (String)request.getParameter("node_status_1"); if(nodeName != null && !"".equals(nodeName)){ vo.setNodeName(nodeName); } String beginCompletedDate = (String) request.getParameter("complete_from_1"); vo.setBeginCompleteDate(beginCompletedDate); String endCompletedDate = (String) request.getParameter("complete_to_1"); vo.setEndCompleteDate(endCompletedDate); if ((beginCompletedDate != null && !"".equals(beginCompletedDate)) || (endCompletedDate != null && !"".equals(endCompletedDate))) { vo.setStatus("04"); } String processType = request.getParameter("process_type_1"); vo.setNodeType(processType); ListInquiryFormDAO dao = new ListInquiryFormDAO(dbManager); PageVO page = new PageVO(); int totalRecordsNum = dao.getTotalRecordsNum(vo, page, supperOrgs); page = PageUtil.createPage(page, totalRecordsNum); Collection list = dao.searchInquiryForm(vo, page, supperOrgs); request.setAttribute(GlobalCommonName.PAGE_INFORMATION_NAME, page); request.setAttribute("inquiryFormList", list); } if (orgId == null || "".equals(orgId)) { orgId = currentStaff.getOrgId(); } StaffDAO staffDao = new StaffDAO(dbManager); Collection staffList = null; if ("Y".equals(ParamConfigHelper.getInstance().getParamValue("show_terminated_staffs"))) { staffList = staffDao.getATStaffListByCompany(orgId); //staffDao.get } else { staffList = staffDao.getStaffListByCompany(orgId); } request.setAttribute("staffList", staffList); } catch (DAOException e) { resultLabel = "fail"; request.setAttribute(CommonName.COMMON_ERROR_INFOR, e.toString()); e.printStackTrace(); } finally { dbManager.freeConnection(); } return null; }
<%@taglib uri="/WEB-INF/taglibs-i18n.tld" prefix="i18n"%> <%@page import="com.aiait.eflow.housekeeping.vo.StaffVO, com.aiait.eflow.common.*, com.aiait.eflow.common.helper.*"%> <%@page import="java.util.*, java.text.SimpleDateFormat, com.aiait.eflow.util.StringUtil, com.aiait.eflow.wkf.vo.*, com.aiait.eflow.wkf.util.DataMapUtil, com.aiait.eflow.common.helper.*, com.aiait.framework.mvc.servlet.*"%> <%@page import="com.aiait.eflow.housekeeping.vo.FormTypeVO, com.aiait.eflow.common.CommonName, com.aiait.eflow.common.helper.FormTypeHelper, com.aiait.eflow.formmanage.vo.FormManageVO, com.aiait.eflow.housekeeping.vo.StaffVO"%> <%@page import="com.aiait.framework.i18n.* , com.aiait.eflow.common.helper.ParamConfigHelper"%> <%@page import="java.util.* "%> <%@page contentType="text/html; charset=gb2312"%> <html> <head> <meta http-equiv="Page-Enter" content="RevealTrans(duration=3,Transitionv=23)"> <meta http-equiv="Page-Exit" content="RevealTrans(duration=3,Transitionv=23)"> <script type=text/javascript src="<%=request.getContextPath()%>/common/message.jsp"></script> <% StaffVO currentStaff = (StaffVO)request.getSession().getAttribute(CommonName.CURRENT_STAFF_INFOR); String language = I18NMessageHelper.getLocale().getLanguage(); String versionName="English"; String targetLanguage="en"; String languageName = "语言"; if(language!=null){ language = language.toLowerCase(); }else{ language = CommonName.LOCALE_LANGUAGE_EN; } if(language.equals("en")){ versionName="中文版"; languageName = "语言"; targetLanguage=CommonName.LOCALE_LANGUAGE_CHINESE; }else if(language.equals("zh")){ versionName="English"; languageName = "Language"; targetLanguage=CommonName.LOCALE_LANGUAGE_EN; } Map map = new HashMap(); map.put(ActionContext.HTTP_REQUEST, request); map.put(ActionContext.HTTP_RESPONSE, response); ActionContext.setContext(new ActionContext(map)); ParamConfigHelper paramHelper = ParamConfigHelper.getInstance(); String languageType = paramHelper.getParamValue("language_type"); %> <title>NOVA New Home Page</title> <link href="<%=request.getContextPath()%>/css/style2.css" rel="stylesheet" type="text/css"> <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/js/NovaJS/jqGrid/CSS/ui.jqgrid.css" media="screen"> <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/js/NovaJS/jqGrid/CSS/jquery-ui-custom.css" media="screen"> <style> #dialog1{ background-color: white; } #dialog2 { background-color: white; } #dialog1 label { color: red; } #dialog2 label{ color: red; } </style> <script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.min.js"></script> <script type=text/javascript src="<%=request.getContextPath()%>/js/common.js"></script> <script src="<%=request.getContextPath()%>/js/raphael-source.js"></script> <script src="<%=request.getContextPath()%>/js/raphael-source-app.js"></script> <script type=text/javascript> function changeLanguage2(obj){ window.parent.location = "<%=request.getContextPath()%>/logonAction.it?method=changeLanguage2&language="+obj; } </script> <script type=text/javascript src="<%=request.getContextPath()%>/js/NovaJS/jqGrid/jquery-ui-custom.js"></script> <script type=text/javascript src="<%=request.getContextPath()%>/js/NovaJS/jqGrid/jquery-ui-custom.min.js"></script> <script type=text/javascript src="<%=request.getContextPath()%>/js/NovaJS/jqGrid/jquery.layout.js"></script> <script type=text/javascript src="<%=request.getContextPath()%>/js/NovaJS/jqGrid/grid.locale-cn.js"></script> <script type=text/javascript src="<%=request.getContextPath()%>/js/NovaJS/jqGrid/ui.multiselect.js"></script> <script type=text/javascript src="<%=request.getContextPath()%>/js/NovaJS/jqGrid/jquery.jqGrid.js"></script> <script type=text/javascript src="<%=request.getContextPath()%>/js/NovaJS/jqGrid/jquery.tablednd.js"></script> <script type=text/javascript src="<%=request.getContextPath()%>/js/NovaJS/jqGrid/jquery.contextmenu.js"></script> <script type=text/javascript src="<%=request.getContextPath()%>/js/ajax.js"></script> <script type=text/javascript src="<%=request.getContextPath()%>/js/sorttable.js"></script> <script type=text/javascript src="<%=request.getContextPath()%>/js/resizeCol.js"></script> <script type=text/javascript src="<%=request.getContextPath()%>/js/BubbleTooltips.js"></script> <script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.place.js"></script> <script type="text/javascript" src="<%=request.getContextPath()%>/js/NovaJS/NHP_form_list.js"></script> </head> <body style="background-color:#E3E2E7;"> <div id="light" class="white_content"> <div style="background-color:#D5063C;width:100%;height:25px;margin:0px;"> <div id=msg_title style="width:90%;float:left;margin-left:5px;margin-top:3px;font-size:14px;color:#ffffff;">标题</div> <div id=msg_close onclick = "document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'" style="cursor:pointer;float:right;margin-top:2px;margin-right:5px;color:#ffffff">×</div> </div> <div id=msg_content style="margin:20px;color:#6e6e6e;line-height:25px;font-size:14px;overflow:hidden;height:80px;"> </div> <div onclick="document.getElementById('msg_close').click();" style="background-color:#D5063C;width:75px;cursor:pointer;line-height:25px;text-align:center;font-size:14px;color:#ffffff;margin-left:expression((400-75)/2);margin-bottom:10px;float:bottom;">确 定</div> </div> <!-- 弹层-内容层 --> <div id="dialog1" title="Form Inquiry" style="display:none;"> <div> <FORM name=AVActionForm1 method="post"> <table> <tbody> <tr><td><label>Request No.</label></td><td><input type="text" name="request_no_1" id="request_no_1" value="0"/></td><td><label>Form Type</label></td><td><select id="form_type_1" name="form_type_1"></select></td></tr> <tr><td><label>Form Name</label></td><td><select id="form_name_1" name="form_name_1"></select></td></tr> <tr><td><label>Company</label></td><td><select id="company_1" name="company_1"></select></td><td><label>Requested By</label></td><td><select id="requested_by_1" name="requested_by_1"></select></td></tr> <tr><td><label>Submit From</label></td><td><input id="submit_from_1" name="submit_from_1" type="text" value=""/></td><td><label>To</label></td><td><input id="submit_to_1" name="submit_to_1" type="text" value=""/></td></tr> <tr><td><label>Complete From</label></td><td><input id="complete_from_1" name="complete_from_1" type="text" value=""/></td><td><label>To</label></td><td><input id="complete_to_1" name="complete_to_1" type="text" value=""/></td></tr> <tr><td><label>Process Type</label></td><td><select id="process_type_1" name="process_type_1"></select></td> <td><label>Form Locked</label></td><td><select id="form_locked_1" name="form_locked_1"></select></td> <td><label>Status</label></td><td><select id="status_1" name="status_1"></select></td> <td><label>node_status</label></td><td><select id="node_status_1" name="node_status_1"></select></td></tr> </tbody> </table> </FORM> </div> </div> <div id="dialog2" title="Advance Query Form" style="display:none;"> <div> <FORM name=AVActionForm2 method="post"> <table> <tbody> <tr> <td><label>Form Type</label></td><td><select id="form_type_2" name="form_type_2"></select></td> <td><label>Form Name</label></td><td><select id="form_name_2" name="form_name_2"></select></td></tr> <tr><td><label>Field</label></td><td><select id="field_2" name="field_2"></select></td> <td><label>Compare Type</label></td><td><select id="compare_type_2" name="compare_type_2"></select></td></tr> <tr><td><label>Value</label></td><td><input type="text" id="value_2" name="value_2"></td> <td><label>Logic Type</label></td><td><select id="logic_type_2" name="logic_type_2"></select></td></tr> </tbody> </table> </FORM> </div> </div> <input id="hidCurrentStaffCode" type="hidden" value="<%=currentStaff.getStaffCode()%>"></input> <input name="requestUrl" type="hidden" value="<%=request.getContextPath()%>"> <div style="text-align:center;margin-top:20px;margin-bottom:20px;"> <div> <!-- 左板块 --> <div style="border:0px solid #ff0000;width:132px;height:1101px;float:left;background-color:#fff;overflow:hidden;margin-left:20px;margin-right:20px;"> <!--左板块_Sub1 --> <div style="width:132px;height:132px;border-bottom:1px solid #eeeeee;float:left;"> <div style="height:37px;margin-top:23px;"><img src="images2/bjui_touxiang.png"></div> <div style="height:12px;line-height:12px;font-size:12px;margin-top:16px;color:#565656;font-family:'微软雅黑';"><B><%=currentStaff.getStaffName().trim()%></B><%-- (<%=currentStaff.getLogonId()%>) --%></div> <div style="height:12px;line-height:12px;font-size:12px;margin-top:16px;margin-bottom:16px;color:#565656;font-family:'微软雅黑';"> <a href="javascript:changeLanguage2('zh_Cn');">中文</a> | <a href="javascript:changeLanguage2('en');">English</a> </div> </div> <!-- 左板块_Sub2 --> <div style="width:132px;height:726px;float:left;"> <div style="height:14px;line-height:14px;font-size:14px;margin-left:12px;margin-top:12px;float:left;color:#565656;font-weight:bold;font-family:'微软雅黑';"><i18n:message key='common_common_task'/></div> <div style="height:720px;float:center;" id=common_task_list> <div onclick="alert('新任务');" style="cursor:pointer;background:url('images2/bjui_task.png');width:73px;height:72px;margin-top:26px;"></div> <div onclick="alert('新任务');" style="cursor:pointer;background:url('images2/bjui_task.png');width:73px;height:72px;margin-top:26px;"></div> <div onclick="alert('新任务');" style="cursor:pointer;background:url('images2/bjui_task.png');width:73px;height:72px;margin-top:26px;"></div> <div onclick="alert('新任务');" style="cursor:pointer;background:url('images2/bjui_task.png');width:73px;height:72px;margin-top:26px;"></div> <div onclick="alert('新任务');" style="cursor:pointer;background:url('images2/bjui_task.png');width:73px;height:72px;margin-top:26px;"></div> <div onclick="alert('新任务');" style="cursor:pointer;background:url('images2/bjui_task.png');width:73px;height:72px;margin-top:26px;"></div> <div onclick="alert('新任务');" style="cursor:pointer;background:url('images2/bjui_add_task.png');width:73px;height:72px;margin-top:26px;"></div> </div> </div> </div> <!-- 右板块 --> <div style="height:879px;margin-left:20px;margin-right:20px;"> <!-- 右上板块 --> <div style="border:0px solid #ff0000;width:auto;height:607px;float:left;background-color:#fff;"> <!-- 圆形进度条 --> <div style="height:132px;border-bottom:1px solid #eeeeee;"> <div id=ALL class=Rbar onclick="SelR(this,'ALL');" style="width:20%;border-bottom:0px solid #3fa4ec;"> <div id="Rbar1" style="position:relative;width:73px;margin-top:18px;"> <div id="Rbar_bg1" style="position:absolute;left:0;top:0;"></div> <div id="Rbar_status1" style="position:absolute;left:0;top:0;"></div> <div id="Rbar_val1" class="Rbar_val" style="position:absolute;left:8px;top:22px;font-family:arial;font-size:25px;width:58px;height:25px;text-align:center;"></div> </div> <div class=Rbar_text>全部</div> </div> <div id=TODO class=Rbar onclick="SelR(this,'TODO');" style="width:20%;border-bottom:6px solid #F06043;"> <div id="Rbar2" style="position:relative;width:73px;margin-top:18px;"> <div id="Rbar_bg2" style="position:absolute;left:0;top:0;"></div> <div id="Rbar_status2" style="position:absolute;left:0;top:0;"></div> <div id="Rbar_val2" class="Rbar_val" style="position:absolute;left:8px;top:22px;font-family:arial;font-size:25px;width:58px;height:25px;text-align:center;"></div> </div> <div class=Rbar_text>待办理</div> </div> <div id=INPROGRESS class=Rbar onclick="SelR(this,'INPROGRESS');" style="width:20%;border-bottom:0px solid #ead031;"> <div id="Rbar3" style="position:relative;width:73px;margin-top:18px;"> <div id="Rbar_bg3" style="position:absolute;left:0;top:0;"></div> <div id="Rbar_status3" style="position:absolute;left:0;top:0;"></div> <div id="Rbar_val3" class="Rbar_val" style="position:absolute;left:8px;top:22px;font-family:arial;font-size:25px;width:58px;height:25px;text-align:center;"></div> </div> <div class=Rbar_text>处理中</div> </div> <div id=COMPLETED class=Rbar onclick="SelR(this,'COMPLETED');" style="width:20%;border-bottom:0px solid #34de40;"> <div id="Rbar4" style="position:relative;width:73px;margin-top:18px;"> <div id="Rbar_bg4" style="position:absolute;left:0;top:0;"></div> <div id="Rbar_status4" style="position:absolute;left:0;top:0;"></div> <div id="Rbar_val4" class="Rbar_val" style="position:absolute;left:8px;top:22px;font-family:arial;font-size:25px;width:58px;height:25px;text-align:center;"></div> </div> <div class=Rbar_text>已完成</div> </div> <div id=DRAFT class=Rbar onclick="SelR(this,'DRAFT');" style="width:20%;border-bottom:0px solid #aaaaaa;"> <div id="Rbar5" style="position:relative;width:73px;margin-top:18px;"> <div id="Rbar_bg5" style="position:absolute;left:0;top:0;"></div> <div id="Rbar_status5" style="position:absolute;left:0;top:0;"></div> <div id="Rbar_val5" class="Rbar_val" style="position:absolute;left:8px;top:22px;font-family:arial;font-size:25px;width:58px;height:25px;text-align:center;"></div> </div> <div class=Rbar_text>草稿</div> </div> </div> <!-- 表格栏头 --> <div style="height:30px;margin-top:20px;/*background-color:#eeeeee;*/"> <div id=task_type_name style="color:#4d4d4d;height:30px;line-height:30px;font-size:24px;float:left;font-family:'微软雅黑';padding-left:20px;border-left:10px solid #F06043;">待办理</div> <div style="float:right;margin-right:30px;display:none;"> <div style="cursor:pointer;color:#fff;height:30px;line-height:30px;font-size:12px;float:left;font-family:'微软雅黑';margin-left:30px;border:0px solid #3FA4EC;background-color:#D5063C;padding:0px 30px 0px 38px;background-image:url('images2/bjui_fdj.png');background-repeat: no-repeat;background-position:20px; 10px;">表单综合查询</div> <div style="cursor:pointer;color:#fff;height:30px;line-height:30px;font-size:12px;float:left;font-family:'微软雅黑';margin-left:30px;border:0px solid #3FA4EC;background-color:#D5063C;padding:0px 30px 0px 38px;background-image:url('images2/bjui_fdj.png');background-repeat: no-repeat;background-position:20px; 10px;">表单高级查询</div> </div> </div> <!-- 表格内容 --> <div style="height:424px;width:100%;overflow:auto;padding-left:20px;padding-top:20px;padding-right:10px;background-color:#ffffff;"> <table id="list451"></table> <div id="pager451"></div> </div> </div> <!-- 右下板块 --> <div style="width:auto;height:252px;float:inline;background-color:#fff;margin-top:20px;"> <!-- 表格栏头 --> <div style="height:30px;margin-top:20px;/*background-color:#eeeeee;*/"> <div id=task_type_name style="color:#4d4d4d;height:30px;line-height:30px;font-size:24px;float:left;font-family:'微软雅黑';padding-left:20px;border-left:10px solid #F06043;">任务池</div> <div style="float:right;margin-right:30px;display:;"> <div id="search1"style="cursor:pointer;color:#fff;height:30px;line-height:30px;font-size:12px;float:left;font-family:'微软雅黑';margin-left:30px;border:0px solid #3FA4EC;background-color:#D5063C;padding:0px 30px 0px 38px;background-image:url('images2/bjui_fdj.png');background-repeat: no-repeat;background-position:20px; 10px;">表单综合查询</div> <div id="search2" style="cursor:pointer;color:#fff;height:30px;line-height:30px;font-size:12px;float:left;font-family:'微软雅黑';margin-left:30px;border:0px solid #3FA4EC;background-color:#D5063C;padding:0px 30px 0px 38px;background-image:url('images2/bjui_fdj.png');background-repeat: no-repeat;background-position:20px; 10px;">表单高级查询</div> </div> </div> <!-- 表格内容 --> <div style="height:424px;width:100%;overflow:auto;padding-left:20px;padding-top:20px;padding-right:10px;background-color:#ffffff;"> <table id="list452"></table> <div id="pager452"></div> </div> </div> </div> </div> </div> <script type="text/javascript"> var url1 = "<%=request.getContextPath()%>/wkfProcessAction.it?method=listInquiryFormForNew"; var url2 = "<%=request.getContextPath()%>/wkfProcessAction.it?method=listInquiryFormForNew_1"; $( "#dialog1" ).dialog({ autoOpen: false, width: 800, height: 600, modal: true , resizable: true, position: ["left", "top"], buttons: [ { text: "Ok", click: function() { $( this ).dialog( "close" ); alert(document.forms[0].name); document.forms[0].action = url1; document.forms[0].submit(); } }, { text: "Cancel", click: function() { $( this ).dialog( "close" ); } } ] }); $( "#dialog2" ).dialog({ autoOpen: false, width: 800, height: 400, modal: true , resizable: true, position: ["left", "top"], buttons: [ { text: "Ok", click: function() { $( this ).dialog( "close" ); document.forms[1].action = url2; document.forms[1].submit(); } }, { text: "Cancel", click: function() { $( this ).dialog( "close" ); } } ] }); $( "#search1" ).click(function( event ) { $( "#dialog1" ).dialog( "open" ); event.preventDefault(); }); $( "#search2" ).click(function( event ) { $( "#dialog2" ).dialog( "open" ); event.preventDefault(); }); $( "#submit_from_1" ).datepicker({ inline: true }); $( "#complete_from_1" ).datepicker({ inline: true }); $( "#submit_to_1" ).datepicker({ inline: true }); $( "#complete_to_1" ).datepicker({ inline: true }); function sendSearchResult(){ } /*1.通过前台把选择的数据传到后台-显式数据和隐藏数据, *2.后台经过action进行处理. *3.处理后通过jqgrid *4.在请求一次数据库刷新一次前台页面 */ </script> </body> </html>

浙公网安备 33010602011771号