package com.tenwa.lease.flow.fivegradeclassify; import java.util.HashMap; import java.util.Map; import com.amarsoft.app.lc.workflow.action.GetFlowAction; import com.amarsoft.awe.util.Transaction; import com.tenwa.comm.util.date.DateAssistant; import com.tenwa.flow.baseBussion.BaseBussiness; import com.tenwa.lease.flow.comm.service.LeaseFlowBaseService; import com.tenwa.lease.flow.comm.service.ServiceOperatorEnum; import com.tenwa.lease.flow.comm.serviceImp.LeaseFlowBaseServiceImp; public class LBFiveGradeClassifyInfoFromalToTempBusiness extends BaseBussiness{ public Object run(Transaction Sqlca) throws Exception{ this.initBussinessParam(Sqlca); Map flowParam = GetFlowAction.getFlowParamByFlowUnidAndTransaction(this.getAttribute("FlowUnid").toString(), Sqlca); MapfromCondtion=new HashMap(); fromCondtion.put("CONTRACT_ID",this.getAttribute("ContractId").toString()); fromCondtion.put("PAYMENT_NUMBER",flowParam.get("PaymentNumber")); MapotherProperty=new HashMap(); otherProperty.put("FLOWUNID",this.getAttribute("FlowUnid").toString()); otherProperty.put("FIVE_GRADE_DATE",DateAssistant.getToday()); LeaseFlowBaseService service=new LeaseFlowBaseServiceImp(); service.copyOrLoadFiveGradeClassify(Sqlca, fromCondtion, null,otherProperty, ServiceOperatorEnum.FormalToTemp); String sMessage="true"; return sMessage; } }