DEP中增加了一个分录,但是在保存时报错原创
金蝶云社区-万成之家
万成之家
12人赞赏了该文章 42次浏览 未经作者许可,禁止转载编辑于2024年11月15日 22:30:54

DEP中增加了一个分录,但是在保存时报错

报错日志No such property ClassName:class

错误信息:No such property ClassName:class com.kingdee.eas.ep.BillEntryCustomAgent propertyName:AccountsNo
错误详细堆栈信息:java.lang.IllegalArgumentException: No such property ClassName:class com.kingdee.eas.ep.BillEntryCustomAgent propertyName:AccountsNo

at: com.kingdee.bos.appframework.databinding.BindingUtility.getPropertyAccessor(BindingUtility.java:762)

解决方案

 1731681013744.jpg

新增分录行时增加:

BillEntryCustomInfo userObjectRow = new BillEntryCustomInfo();

userObjectRow.setBOSType(new BOSObjectType("F1A64F91"));

row.setUserObject(userObjectRow);

 

 

prmtfpxz.addDataChangeListener(new DataChangeListener(){

 

public void dataChanged(DataChangeEvent arg0) {

Object[] F7cols = (Object[]) arg0.getNewValue();

for (int i = 0; i < F7cols.length; i++) {

InputInvoiceBillInfo inputInvoiceBillInfo =  (InputInvoiceBillInfo) F7cols[i];

IRow row = inputInvoice.addRow();

BillEntryCustomInfo userObjectRow = new BillEntryCustomInfo();

userObjectRow.setBOSType(new BOSObjectType("F1A64F91"));

row.setUserObject(userObjectRow);

row.getCell("invoice").setValue(inputInvoiceBillInfo);

row.getCell("invoiceNum").setValue(inputInvoiceBillInfo.getNumber());

row.getCell("sellerTaxName").setValue(inputInvoiceBillInfo.getSellerTaxName());

row.getCell("exTaxAmount").setValue(inputInvoiceBillInfo.getExTaxAmount());

row.getCell("totalAmount").setValue(inputInvoiceBillInfo.getTaxAmount());

row.getCell("taxAmount").setValue(inxputInvoiceBillInfo.getTotalAmount());

}


}


});

 

 



图标赞 12
12人点赞
还没有人点赞,快来当第一个点赞的人吧!
图标打赏
0人打赏
还没有人打赏,快来当第一个打赏的人吧!