%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="com.sysmodel.collectmodel.xmlmodel.able.FormCollection, 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.collectmodel.xmlmodel.impl.ReportFieldImpl, com.sysmodel.xformmodel.able.Validate, com.sysmodel.xformmodel.impl.DojoInputTypeImpl, com.sysmodel.XFormModelImpl "%> <% String pageid = request.getParameter("pageid") == null ? "" : request.getParameter("pageid"); String name = request.getParameter("name") == null ? "" : request.getParameter("name"); String action = "add"; SysModel sysmodel = ModelFactory.getSysmodel(); FormCollection FormCollection = null; ArrayList reportFields = null; int columnCount = 0; String label = ""; String colspan = ""; String need = ""; String dojoInuptType = ""; if(session.getAttribute("FormCollect"+pageid) == null ){ return; } else { FormCollection = (FormCollection)session.getAttribute("FormCollect"+pageid); reportFields = FormCollection.getReportFieldByControlType( FormCollection , "select"); columnCount = FormCollection.getPageBody().getColumnCount(); if(!name.equals("")){ action = "edit"; ReportFieldImpl ReportFieldImpl = FormCollection.getReportFieldByName(FormCollection,name); label = ReportFieldImpl.getLabel(); colspan = ReportFieldImpl.getColspan()+""; Validate Validate = ReportFieldImpl.getValidate(); if(Validate!=null){ need = new Boolean(Validate.isNeed()).toString(); dojoInuptType = Validate.getDojoType(); } } } %>