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)
解决方案
新增分录行时增加:
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());
}
}
});
在DEP中增加了一个分录,但是在保存时报错.docx(2.09MB)
推荐阅读