コード例 #1
0
  /**
   * 初始化
   *
   * @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);
  }
コード例 #2
0
  /**
   * 取头信息
   *
   * @throws QueryException
   */
  protected void prodHeader() throws QueryException {
    headerDAO.setDTOClassName(UrgentHeaderDTO.class.getName());
    headerDAO.setCalPattern(CalendarConstant.LINE_PATTERN);

    UrgentHeaderDTO tmpDTO = (UrgentHeaderDTO) headerDTO.clone();

    headerDTO = (UrgentHeaderDTO) headerDAO.getDataByPrimaryKey();
    // 当新建时候
    if (null == headerDTO || StrUtil.isEmpty(headerDTO.getTransId())) {
      headerDTO = new UrgentHeaderDTO();
      headerDTO = initHeaderData(headerDTO);
    }
    headerDTO.setSf_task_attribute3(tmpDTO.getSf_task_attribute3());

    leaseDTO.setHeaderDTO(headerDTO);
  }
コード例 #3
0
 public void setForm(UrgentDTO leaseDTO) {
   this.leaseDTO = leaseDTO;
   this.lines = leaseDTO.getLines();
   this.headerDTO = leaseDTO.getHeaderDTO();
   this.headerDAO = new UrgentDAO(userAccount, headerDTO, conn);
 }
コード例 #4
0
 public UrgentDTO getForm() {
   leaseDTO.setHeaderDTO(headerDTO);
   leaseDTO.setLines(lines);
   return leaseDTO;
 }
コード例 #5
0
 /**
  * 取行信息
  *
  * @throws QueryException
  */
 protected void prodLines() throws QueryException {
   lines = headerDAO.getLinesData(headerDTO.getTransId());
   leaseDTO.setLines(lines);
 }