use of cn.cerc.jpage.core.HtmlWriter in project summer-mis by cn-cerc.
the class CodeNameField method getText.
@Override
public String getText(Record dataSet) {
if (dataSet == null)
return null;
if (buildText != null) {
HtmlWriter html = new HtmlWriter();
buildText.outputText(dataSet, html);
return html.toString();
}
return dataSet.getString(getField());
}
use of cn.cerc.jpage.core.HtmlWriter in project summer-mis by cn-cerc.
the class DateField method getText.
@Override
public String getText(Record dataSet) {
if (dataSet == null)
return null;
if (buildText != null) {
HtmlWriter html = new HtmlWriter();
buildText.outputText(dataSet, html);
return html.toString();
}
if (dataSet.hasValue(getField()))
return dataSet.getDate(getField()).getDate();
else
return "";
}
use of cn.cerc.jpage.core.HtmlWriter in project summer-mis by cn-cerc.
the class ExpendField method getText.
@Override
public String getText(Record dataSet) {
if (dataSet == null)
return null;
if (this.search)
return this.getName();
if (buildText != null) {
HtmlWriter html = new HtmlWriter();
buildText.outputText(dataSet, html);
return html.toString();
}
return String.format("<a href=\"javascript:displaySwitch('%d')\">展开</a>", dataSource.getDataSet().getRecNo());
}
Aggregations