1。保存项目进度表,放款正常失败。(auther:ZhaoLiu)
This commit is contained in:
parent
4f26798bc2
commit
0338a8e145
@ -12,6 +12,7 @@ import com.amarsoft.are.jbo.JBOException;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
import com.amarsoft.are.util.StringFunction;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.tenwa.flow.action.comm.BaseFlowStartAction;
|
||||
import com.tenwa.sdk.VO.SDKCheckCallBackVO;
|
||||
import com.tenwa.sdk.VO.SDKCheckCallDetail;
|
||||
@ -28,11 +29,22 @@ import jbo.app.tenwa.calc.LC_FUND_INCOME_TEMP;
|
||||
import jbo.com.tenwa.entity.comm.own.OWN_ACCOUNT;
|
||||
import jbo.com.tenwa.lease.comm.LC_FUND_INCOME_CALLBACK_DETAIL_TEMP;
|
||||
import net.sf.json.JSONObject;
|
||||
|
||||
import com.amarsoft.context.ASUser;
|
||||
|
||||
public class CmbToCallbackController extends BaseFlowStartAction {
|
||||
private String FLOWUNID ; //流程号
|
||||
private String CallbackStatus;
|
||||
private String CurUserID;
|
||||
|
||||
|
||||
public String getCurUserID() {
|
||||
return CurUserID;
|
||||
}
|
||||
|
||||
public void setCurUserID(String curUserID) {
|
||||
CurUserID = curUserID;
|
||||
}
|
||||
|
||||
public String getFLOWUNID() {
|
||||
return FLOWUNID;
|
||||
@ -86,6 +98,7 @@ public class CmbToCallbackController extends BaseFlowStartAction {
|
||||
//安鹏要求采用固定写死值。
|
||||
//String LGNNAM = accountBo.getAttribute("OWN_NAME").toString();
|
||||
String LGNNAM = "安鹏经办";
|
||||
// String LGNNAM = "ÒøÆóÖ±Á¬²âÊÔÓû§113";
|
||||
String FUNNAM = "NTSTLINF";
|
||||
int DATTYP = 2;
|
||||
|
||||
@ -231,21 +244,43 @@ public class CmbToCallbackController extends BaseFlowStartAction {
|
||||
* @param status
|
||||
*/
|
||||
private void save(String contractNumber,String status) {
|
||||
JBOTransaction tx = null;
|
||||
ASUser asUser = null;
|
||||
Transaction tx = null;
|
||||
JBOTransaction jbot = null;
|
||||
BizObjectManager bsbom;
|
||||
try {
|
||||
bsbom = JBOFactory.getBizObjectManager(BUSINESS_STATUS.CLASS_NAME,tx);
|
||||
ASUser asUser = ASUser.getUser(CurUserID, tx);
|
||||
jbot = JBOFactory.createJBOTransaction();
|
||||
bsbom = JBOFactory.getBizObjectManager(BUSINESS_STATUS.CLASS_NAME,jbot);
|
||||
BizObject bsbo = bsbom.newObject();
|
||||
|
||||
bsbo.setAttributeValue(BUSINESS_STATUS.contract_number,contractNumber);
|
||||
bsbo.setAttributeValue(BUSINESS_STATUS.business_status, status);
|
||||
bsbo.setAttributeValue(BUSINESS_STATUS.inputuserid,asUser.getUserID());
|
||||
bsbo.setAttributeValue(BUSINESS_STATUS.inputuserid,this.getCurUserID());
|
||||
bsbo.setAttributeValue(BUSINESS_STATUS.inputtime,StringFunction.getTodayNow());
|
||||
bsbo.setAttributeValue(BUSINESS_STATUS.inputorgid,asUser.getOrgID());
|
||||
bsbom.saveObject(bsbo);
|
||||
} catch (JBOException e) {
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}finally{
|
||||
if(tx!=null){
|
||||
try {
|
||||
tx.commit();
|
||||
tx.disConnect();
|
||||
tx=null;
|
||||
} catch (JBOException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
if(jbot!=null){
|
||||
try {
|
||||
jbot.commit();
|
||||
jbot=null;
|
||||
} catch (JBOException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user