%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*, 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.XFormModelImpl, com.sysmodel.xformmodel.impl.RegExpImpl, com.sysmodel.xformmodel.importcontrol.TreeControl, com.sysmodel.xformmodel.able.Validate, com.sysmodel.collectmodel.xmlmanager.xmlobjdll.CollectModeldllImpl "%> <% 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(); MdpClassImpl MdpClass = null; FormCollection FormCollection = null; ArrayList reportFields = null; int columnCount = 0; String label = ""; String colspan = ""; String need = ""; String size = ""; String parentCode = ""; String classid = ""; if(session.getAttribute("FormCollect"+pageid) == null ){ return; } else { FormCollection = (FormCollection)session.getAttribute("FormCollect"+pageid); int iclassid = Integer.parseInt(FormCollection.getClassid()); MdpClass = (MdpClassImpl)sysmodel.getMdpClassByClassID(iclassid); reportFields = FormCollection.getReportFieldByControlType( FormCollection , "date"); columnCount = FormCollection.getPageBody().getColumnCount(); classid = FormCollection.getClassid()+""; if(!name.equals("")){ action = "edit"; ReportFieldImpl ReportFieldImpl = FormCollection.getReportFieldByName(FormCollection,name); label = ReportFieldImpl.getLabel(); colspan = ReportFieldImpl.getColspan()+""; Validate Validate = ReportFieldImpl.getValidate(); if(Validate!=null){ System.out.println(Validate.isNeed()); need = new Boolean(Validate.isNeed()).toString(); } } } %>