diff --git a/src_tenwa/com/tenwa/lease/flow/contract/onhirechange/GPSDetailsFormalToTemporary.java b/src_tenwa/com/tenwa/lease/flow/contract/onhirechange/GPSDetailsFormalToTemporary.java new file mode 100644 index 000000000..ed2d4cf5b --- /dev/null +++ b/src_tenwa/com/tenwa/lease/flow/contract/onhirechange/GPSDetailsFormalToTemporary.java @@ -0,0 +1,30 @@ +package com.tenwa.lease.flow.contract.onhirechange; + +import java.util.HashMap; +import java.util.Map; + +import jbo.sys.LM_GPS_ORDER; +import jbo.sys.LM_GPS_ORDER_TEMP; +import com.amarsoft.awe.util.Transaction; +import com.tenwa.comm.util.jboutil.DataOperatorUtil; +import com.tenwa.flow.baseBussion.BaseBussiness; +/** + * GPS详情正式表到临时表 + * @author Administrator + * + */ +public class GPSDetailsFormalToTemporary extends BaseBussiness{ + @Override + public Object run(Transaction Sqlca) throws Exception { + this.initBussinessParam(Sqlca); + String projectId=this.getAttribute("ProjectId").toString(); + String flowUnid=this.getAttribute("FlowUnid").toString(); + Sqlca.executeSQL("delete from lm_gps_order_temp where PROJECT_ID='"+projectId+"'"); + Map fromCondtion=new HashMap(); + fromCondtion.put("PROJECT_ID", projectId); + Map otherProperty=new HashMap(); + otherProperty.put("FLOWUNID", flowUnid); + DataOperatorUtil.copyJBOSet(LM_GPS_ORDER.CLASS_NAME, fromCondtion, LM_GPS_ORDER_TEMP.CLASS_NAME,otherProperty, null, null, Sqlca); + return "true"; + } +} diff --git a/src_tenwa/com/tenwa/lease/flow/contract/onhirechange/GPSDetailsTemporaryToFormal.java b/src_tenwa/com/tenwa/lease/flow/contract/onhirechange/GPSDetailsTemporaryToFormal.java new file mode 100644 index 000000000..5eebbf20e --- /dev/null +++ b/src_tenwa/com/tenwa/lease/flow/contract/onhirechange/GPSDetailsTemporaryToFormal.java @@ -0,0 +1,27 @@ +package com.tenwa.lease.flow.contract.onhirechange; + +import java.util.HashMap; +import java.util.Map; +import jbo.sys.LM_GPS_ORDER; +import jbo.sys.LM_GPS_ORDER_TEMP; +import com.amarsoft.awe.util.Transaction; +import com.tenwa.comm.util.jboutil.DataOperatorUtil; +import com.tenwa.flow.baseBussion.BaseBussiness; +/** + * GPS详情临时表到正式表 + * @author Administrator + * + */ +public class GPSDetailsTemporaryToFormal extends BaseBussiness{ + @Override + public Object run(Transaction Sqlca) throws Exception { + this.initBussinessParam(Sqlca); + String projectId=this.getAttribute("ProjectId").toString(); + Map fromCondtion=new HashMap(); + fromCondtion.put("PROJECT_ID", projectId); + Map otherProperty=new HashMap(); + otherProperty.put("PROJECT_ID", projectId); + DataOperatorUtil.copyJBOSet(LM_GPS_ORDER_TEMP.CLASS_NAME, fromCondtion, LM_GPS_ORDER.CLASS_NAME,null, otherProperty, null, Sqlca); + return "true"; + } +}