package com.tenwa.reckon.executor; import jbo.app.tenwa.calc.LC_FUND_PLAN_TEMP; import com.amarsoft.are.jbo.JBOException; import com.amarsoft.are.jbo.JBOFactory; import com.amarsoft.are.jbo.JBOTransaction; import com.tenwa.reckon.bean.TabCalBean; import com.tenwa.reckon.util.TbBeanTools; public class CalcExecutor { public String planCName; public String plannumber; public String flowunid; public String calType; /** * 删除方案下所有资金 * @param tx * @throws Exception */ public void deleteAllRecordsForFundPlanList(JBOTransaction tx) throws Exception{ TabCalBean tcb=TbBeanTools.getTabInfo(calType); JBOFactory.createBizObjectQuery(tcb.getFundFundPlan_tb(),"delete from O where flowunid=:flowunid and "+this.planCName+"=:plannumber").setParameter("flowunid",this.flowunid).setParameter("plannumber",this.plannumber).executeUpdate(); } public String getPlanCName() { return planCName; } public void setPlanCName(String planCName) { this.planCName = planCName; } public String getPlannumber() { return plannumber; } public void setPlannumber(String plannumber) { this.plannumber = plannumber; } public String getFlowunid() { return flowunid; } public void setFlowunid(String flowunid) { this.flowunid = flowunid; } public String getCalType() { return calType; } public void setCalType(String calType) { this.calType = calType; } }