%@page import="com.amarsoft.xquery.*"%> <%@page contentType="text/html; charset=GBK"%><%@ include file="/IncludeBegin.jsp"%><% /* Content: --灵活统计查询主页面 Input Param: type:查询类型 History Log: 此页面如果增加其它查询选项,需要在本页面修改一些以下内容: 1、增机构代码的默认值。 2、如果有弹出窗口选项,需要增加选择列的内容。 */ //定义变量 String sSql="";//--存放sql语句 String environmentOrgID = CurOrg.getOrgID();//--当前机构 String environmentUserID = CurUser.getUserID();//--当前用户 String environmentOrgName = CurOrg.getOrgName();//--当前机构名称 //获得组件参数 String sQueryType = CurPage.getParameter("type"); if(sQueryType==null) sQueryType=""; String xPath = "InfoManage/QueryManage/resources/images/"; String temp[][] ={ {"Group","汇总依据列表","none"},{"Display","输出信息项选择",""},{"Summary","合计字段列表","none"},{"Order","排序字段列表",""} }; String defaultScheme = "default";//-xml的控制方式为default String defaultStatResult = "2";//--查询方式 String xmlPath = "";//--存放xml路径 String[] c = StringFunction.toStringArray(request.getRealPath(request.getServletPath()),Configure.sCurSlash); for(int i = 0; i< (c.length-1); i++){ xmlPath = xmlPath + c[i] + Configure.sCurSlash; } session.setAttribute("xmlPath",xmlPath); session.setAttribute("queryType",sQueryType); XQuery query = new XQuery(xmlPath,sQueryType,""); int schemeSize = query.schemes.size(); %>