voucherentryfactory.java
来自「模拟简单的会计信息录入管理应用」· Java 代码 · 共 24 行
JAVA
24 行
package org.operamasks.example.ejb.gl.util;import java.util.ArrayList;import org.operamasks.example.ejb.gl.entity.AccountView;import org.operamasks.example.ejb.gl.entity.Currency;import org.operamasks.example.ejb.gl.entity.Person;import org.operamasks.example.ejb.gl.entity.VoucherAssistRecord;import org.operamasks.example.ejb.gl.entity.VoucherEntry;public class VoucherEntryFactory { public VoucherEntry createBean() { VoucherEntry entry = new VoucherEntry(); AccountView accountView = new AccountView(); entry.setAccountView(accountView); Currency currency = new Currency(); entry.setCurrency(currency); Person person = new Person(); entry.setCashier(person); entry.setVoucherAssistRecords(new ArrayList<VoucherAssistRecord>()); return entry; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?