%@ 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.datamodel.xmlmodel.impl.MdpAttributeImpl, com.sysmodel.listmodel.xmlmodel.impl.QueryFieldImpl, com.sysmodel.xformmodel.able.Validate, com.sysmodel.xformmodel.impl.DojoInputTypeImpl, com.sysmodel.XFormModelImpl, com.sysmodel.xformmodel.impl.RegExpImpl"%>
<%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 dojoInuptType = ""; String operator = ""; String action = "add"; String regxValue = ""; FormListImpl FormList = null; ArrayList QueryFields=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)){ operator = QueryFieldImpl.getOperator(); Validate Validate = QueryFieldImpl.getValidate(); dojoInuptType =Validate.getDojoType(); regxValue = Validate.getRegxValue(); } } } if(!dataName.equals("") && !classid.equals("0")){ action = "edit"; } %>