| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <%@page import="cn.sinobest.framework.util.DTOUtil"%>
- <%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
- <%@include file="/jsp/framework/head.jsp"%>
- <%@include file="./taglib.jsp"%>
- <%
- String orgCode = request.getParameter("bae006");
- String defV = "#{'BAE001':"+orgCode+"}";
- %>
- <%-- 单记录表格,查询表单 --%>
- <form name="qForm" method="post">
- <%-- 单记录表格,查询条件 --%>
- <hnisi:gt id="fw_wf_oper_unit_q" defV="<%=defV %>"></hnisi:gt>
- <p align="center">
- <%-- 查询按钮 --%>
- <hnisi:btn value="查询" onclick="doQuery()" title="查询" />
- <%-- 清除输入条件按钮 --%>
- <hnisi:btn value="清除" onclick="CFW.oGt.fnClear('qForm')" title="清除查询条件" />
- </p>
- </form>
- <%-- 多记录表格,查询结果 --%>
- <form name="lForm" method="post">
- <%-- 根据单记录表格的查询条件,在多记录表格里显示出查询结果 --%>
- <hnisi:glt id="fw_wf_oper_unit_l" whereCls="1=2" height="250" />
- </form>
- <script type="text/javascript">
- function doQuery() {
- //获取查询条件的值
- var operunitname = qForm.OPERUNITNAME.value;
- var AAB999 = qForm.AAB999.value;
- var BAE001 = qForm.BAE001.value;
- //最后的查询条件
- var whereCls1 = "AAE100 = '1'";
- var whereCls2 = " order by BAE001 ,operunitname ";
- //查询条件判断,如果为空就是全查询
- if (BAE001 != "") {
- whereCls1 = whereCls1 + " and BAE001 like '" + BAE001 + "%'";
- }
-
- if (operunitname != "") {
- whereCls1 = whereCls1 + " and operunitname like '%" + operunitname + "%'";
- flag = true;
- }
- if (AAB999 != "") {
- whereCls1 = whereCls1 + " and AAB999='" + parentid + "'";
- flag = true;
- }
- var whereClsn = whereCls1 + whereCls2;
- CFW.oGlt.fnGetData('fw_wf_oper_unit_l', whereClsn);
- }
-
- function radioChecked(args) {
- var arg = args.split(',');
- var resp = {unitId:arg[0],orgCode:arg[1]};
- window.returnValue=resp;
- window.close();
- }
- </script>
|