/** * 初始化 * * @param user * @param dto * @param conn */ private void init(SfUserDTO user, UrgentDTO dto, Connection conn) { this.userAccount = user; this.conn = conn; this.leaseDTO = dto; this.lines = leaseDTO.getLines(); this.headerDTO = leaseDTO.getHeaderDTO(); this.headerDAO = new UrgentDAO(user, headerDTO, conn); }
public void setForm(UrgentDTO leaseDTO) { this.leaseDTO = leaseDTO; this.lines = leaseDTO.getLines(); this.headerDTO = leaseDTO.getHeaderDTO(); this.headerDAO = new UrgentDAO(userAccount, headerDTO, conn); }