public String printFilter( SeiServletParam x_ssp, int x_no, String x_field,
String x_value, iSeiValue x_sv, SeiHtmlObject x_htmlObj ) {
//"点数"項目
if ( x_field.equals( "tensu" ) ) {
//値がマイナスの場合、背景を赤色に変更
if ( SeiType.toInt( x_ssp.g_ss.g_lang, x_value ) < 0 ) {
x_htmlObj.set( "TdColor", "red" );
x_htmlObj.set( "TdStyle", "color:white" );
}
} else {
x_htmlObj.set( "TdColor", null );
x_htmlObj.set( "TdStyle", null );
}
return x_value;
}
|