%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*, com.sysmodel.listmodel.xmlmodel.impl.FormListImpl, com.sysmodel.datamodel.xmlmodel.ModelFactory, com.sysmodel.datamodel.xmlmodel.impl.MdpClassImpl, com.sysmodel.datamodel.xmlmodel.able.SysModel, com.sysmodel.listmodel.xmlmodel.impl.QueryFieldImpl,com.sysmodel.xformmodel.importcontrol.TreeControl, com.sysmodel.datamodel.xmlmodel.impl.MdpAttributeImpl"%>
<% String listid = request.getParameter("listid") == null ? "" : request.getParameter("listid"); String dataName = request.getParameter("dataName") == null ? "" : request.getParameter("dataName"); String label = request.getParameter("label") == null ? "" : request.getParameter("label"); String classid = request.getParameter("classid") == null ? "0" : request.getParameter("classid"); String size = ""; String action = "add"; String operator = ""; ArrayList QueryFields = null; FormListImpl FormList = null; ArrayList tableList = null; if(session.getAttribute("FormList"+listid) == null){ return; } else { FormList = (FormListImpl)session.getAttribute("FormList"+listid); tableList = FormList.getQueryTables(); QueryFields = FormList.getQueryFields(); for (int i = 0 ; i < QueryFields.size() ; i++){ QueryFieldImpl QueryFieldImpl = (QueryFieldImpl)QueryFields.get(i); if(QueryFieldImpl.getDataName().equals(dataName) && QueryFieldImpl.getLabel().equals(label)){ TreeControl TreeControl = (TreeControl)QueryFieldImpl.getControl(); operator = QueryFieldImpl.getOperator(); size = TreeControl.getSize(); classid = QueryFieldImpl.getClassid() + ""; } } } if(!dataName.equals("") && !classid.equals("0")){ action = "edit"; } %>