{
}
public Object visitTemplateElement(TemplateElement element)
{
ModuleConfModel moduleConf = element.getModuleConf();
String voFields[] = ((ExtendConfModel)moduleConf.getMapExtends().get("voFields")).getValues();
String voFieldsTypes[] = ((ExtendConfModel)moduleConf.getMapExtends().get("voFieldsTypes")).getValues();
String voFieldsNames[] = ((ExtendConfModel)moduleConf.getMapExtends().get("colunName_CN")).getValues();
StringBuffer buffer = new StringBuffer("");
int count = 0;
for(int i = 0; i < voFields.length; i++)
if(!isNumber(voFieldsTypes[i]))
{
if(count == 0)
buffer.append("<tr>\n\t");
buffer.append((new StringBuilder("<td>")).append(voFieldsNames[i]).append("</td>\n\t").toString());
buffer.append((new StringBuilder("<td><input type=\"text\" name=\"qm.")).append(voFields[i]).append("\" ></td>\n\t").toString());
if(++count == 2)
{
buffer.append("</tr>\n");
count = 0;
}
}
count = 0;
String qmVoFields[] = ((ExtendConfModel)moduleConf.getMapExtends().get("qmVoFields")).getValues();
String qmVoFieldsNames[] = ((ExtendConfModel)moduleConf.getMapExtends().get("qmColunName_CN")).getValues();
for(int i = 0; i < voFields.length; i++)
if(isNumber(voFieldsTypes[i]))
{
buffer.append("<tr>\n\t");
int qmIndex = qmHasField((new StringBuilder(String.valueOf(voFields[i]))).append("2").toString(), qmVoFields);