package gf;

import org.opengion.fukurou.business.BizLogic_TABLE;

public class GF9440A extends BizLogic_TABLE {

	protected boolean befchk( final int row ) {
		String cnt = "select count(*) CNT from GF41 where clm=[CLM]";
		sql( cnt );

		return true;
	}

	protected boolean allchk( final int row ) {
		if( vari( "CNT" ) == 0 ) {
			error( NG, "ERR0015", "[CLM]", "{#GF41}" );
		}
		return true;
	}

	protected boolean allrow( final int row ) {
		boolean rtn = call( "gf.GF0001", "SYSTEM_ID,LANG,CLM,NAME_JA,LABEL_NAME,KBSAKU", "[SYSTEM_ID],[LANG],[CLM],[NAME_JA],[LABEL_NAME],[KBSAKU]" );
		if( !rtn ) { return false; }

		return true;
	}
}
