%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="com.sysmodel.collectmodel.xmlmodel.impl.FormCollectionImpl, com.sysmodel.datamodel.xmlmodel.impl.MdpClassImpl, com.sysmodel.datamodel.xmlmodel.able.SysModel, com.sysmodel.datamodel.xmlmodel.impl.MdpAttributeImpl, com.sysmodel.datamodel.xmlmodel.ModelFactory, com.sysmodel.collectmodel.xmlmodel.impl.ReportFieldImpl, com.sysmodel.xformmodel.importcontrol.TextControl, com.sysmodel.collectmodel.xmlmodel.able.FormCollection, com.sysmodel.xformmodel.impl.RegExpImpl, com.sysmodel.XFormModelImpl, com.sysmodel.xformmodel.able.Validate, com.sysmodel.xformmodel.impl.DojoInputTypeImpl"%>
<% String pageid=request.getParameter("pageid")==null ? "0" : request.getParameter("pageid"); String name = request.getParameter("name") == null ? "" : request.getParameter("name"); String action="add"; String label=""; String size=""; String colspan=""; String maxlengths=""; String promptMessage=""; String invalidMessage=""; String need=""; String trime=""; String regxValue = ""; String max=""; String min=""; String popup="0"; String dojoInuptType = ""; int columnCount = 0; FormCollection FormCollection =null; if(session.getAttribute("FormCollect"+pageid) == null){ return; } else { FormCollection = (FormCollection)session.getAttribute("FormCollect"+pageid); columnCount = FormCollection.getPageBody().getColumnCount(); if(!name.equals("")){ action="edit"; ReportFieldImpl ReportFieldImpl = FormCollection.getReportFieldByName(FormCollection,name); label=ReportFieldImpl.getLabel(); colspan=ReportFieldImpl.getColspan()+""; TextControl TextControl = (TextControl)ReportFieldImpl.getControl(); size=TextControl.getSize(); Validate Validate = ReportFieldImpl.getValidate(); need = new Boolean(Validate.isNeed()).toString(); trime = new Boolean(Validate.isTrim()).toString(); invalidMessage = Validate.getInvalidMessage(); promptMessage = Validate.getPromptMessage(); regxValue = Validate.getRegxValue(); maxlengths=Validate.getMaxLength(); max=Validate.getMaxValue(); min=Validate.getMinValue(); dojoInuptType=Validate.getDojoType(); if (!max.equals("") || !min.equals("")){ popup = "1"; } } FormCollection=(FormCollectionImpl)session.getAttribute("FormCollect"+pageid); } %>