package com.tenwa.flow.fund.cautiondeduction; import java.util.List; import jbo.app.tenwa.calc.LC_FUND_INCOME_TEMP; import jbo.app.tenwa.calc.LC_RENT_INCOME_TEMP; import com.amarsoft.are.jbo.BizObject; import com.amarsoft.are.jbo.JBOFactory; import com.amarsoft.awe.util.Transaction; import com.amarsoft.dict.als.cache.CodeCache; import com.tenwa.template.check.DefaultBussinessCheck; /** * 检查会计处理日是否填写 * */ public class AccountingDateCheck extends DefaultBussinessCheck { @Override public Object run(Transaction Sqlca) throws Exception { String flowunid=this.getAttribute("ObjectNo").toString(); String message = "请填写"; List boFs = JBOFactory.getBizObjectManager(LC_FUND_INCOME_TEMP.CLASS_NAME).createQuery("flowunid=:flowunid") .setParameter("flowunid", flowunid).getResultList(false); List boRs = JBOFactory.getBizObjectManager(LC_RENT_INCOME_TEMP.CLASS_NAME).createQuery("flowunid=:flowunid") .setParameter("flowunid", flowunid).getResultList(false); if(boFs.size() > 0 && boRs.size() > 0){ boolean flag = true; for(int i=0;i 0){ boolean flag = true; for(int i=0;i 0){ boolean flag = true; for(int i=0;i