本方账号修改详情会计科目无数据
This commit is contained in:
parent
eadcf2a773
commit
830bf99199
@ -71,6 +71,7 @@
|
||||
/*~[Describe=保存记录;InputParam=无;OutPutParam=无;]~*/
|
||||
$(function(){
|
||||
changeFbSdk();
|
||||
changAcc_title();
|
||||
});
|
||||
|
||||
function saveRecord(){
|
||||
@ -108,8 +109,9 @@
|
||||
return;
|
||||
}
|
||||
sReturn = sReturn.split("@");
|
||||
setItemValue(0,getRow(0),"acc_title",sReturn[0]);
|
||||
setItemValue(0,getRow(0),"SUBJECTS_CODED",sReturn[1]);
|
||||
setItemValue(0,getRow(0),"acc_title",sReturn[2]);
|
||||
// setItemValue(0,getRow(0),"acc_title",sReturn[2]);
|
||||
//setItemValue(0,getRow(),"SUBJECTS_NAME",sReturn[1]);
|
||||
//setItemValue(0,getRow(),"SUBJECTS_NAME",sReturn[1]);
|
||||
},"请选择科目信息");
|
||||
@ -125,6 +127,16 @@
|
||||
hideItem(0,"branch_code");
|
||||
}
|
||||
}
|
||||
|
||||
function changAcc_title(){
|
||||
var acc_title = getItemValue(0,0,"acc_title");
|
||||
if(acc_title.length==32){
|
||||
var sReturn = RunJavaMethodTrans("com.tenwa.reckon.copydata.CalcRentCompare", "changAcc_title","id=" + acc_title );
|
||||
if(sReturn!="null"){
|
||||
document.getElementById("SUBJECTS_CODED").value = sReturn;
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<%/*~END~*/%>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -1,6 +1,7 @@
|
||||
package com.tenwa.reckon.copydata;
|
||||
|
||||
import jbo.com.tenwa.entity.comm.own.OWN_ACCOUNT;
|
||||
import jbo.voucher.LV_STACTS_CONFIG;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.JBOException;
|
||||
@ -13,6 +14,7 @@ public class CalcRentCompare implements BizObjectCompare{
|
||||
private String accType;
|
||||
private String state;
|
||||
private String FbSdk;
|
||||
private String id;
|
||||
|
||||
|
||||
@Override
|
||||
@ -48,6 +50,13 @@ public class CalcRentCompare implements BizObjectCompare{
|
||||
public void setFbSdk(String fbSdk) {
|
||||
FbSdk = fbSdk;
|
||||
}
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String compare(JBOTransaction tx) throws JBOException{
|
||||
String sql ="select * from O where O.state_='0010' and O.ACC_TYPE='0010' and O.FbSdk='Y' and (O.account_type='out_account' or O.account_type='inAndOut_account')";
|
||||
BizObject bo = JBOFactory.createBizObjectQuery(OWN_ACCOUNT.CLASS_NAME,sql).getSingleResult(false);
|
||||
@ -56,5 +65,14 @@ public class CalcRentCompare implements BizObjectCompare{
|
||||
}
|
||||
return bo.getAttribute("id").toString();
|
||||
}
|
||||
|
||||
public String changAcc_title(JBOTransaction tx) throws JBOException{
|
||||
String sql ="select * from O where id=:id";
|
||||
BizObject bo = JBOFactory.createBizObjectQuery(LV_STACTS_CONFIG.CLASS_NAME,sql).setParameter("id", id).getSingleResult(false);
|
||||
if(bo==null||"".equals(bo)){
|
||||
return "null";
|
||||
}
|
||||
return bo.getAttribute("SUBJECTS_CODE").toString();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user