Class BOWorkOrderHeader

java.lang.Object
overit.geocall.model.DynO
overit.geocallapp.wfm.core.bl.workorder.header.BOWorkOrderHeader
All Implemented Interfaces:
ConstraintValidator<DynO.Valid,DynO>, Serializable, overit.geocall.timezone.model.TimeZoned

@EntityRef(WorkOrderHeaderEntity.class) public class BOWorkOrderHeader extends DynO
Business object representing a work order header It contains the master data of the work order and its relations with the other needed components such as the address, the operation center and the work cycle.
Since:
9.2
See Also:
GCApi:
bo
  • Constructor Details

    • BOWorkOrderHeader

      public BOWorkOrderHeader()
  • Method Details

    • getId

      public Long getId()
      Returns the work order header id.
      Returns:
      the work order header id
    • setId

      public void setId(Long id)
      Sets the work order header id.
      Parameters:
      id - the work order header id
    • getParentWorkOrder

      public Long getParentWorkOrder()
      Returns the header id of the parent work order.
      Returns:
      the parent header id
      See Also:
    • setParentWorkOrder

      public void setParentWorkOrder(Long parentWorkOrder)
      Sets the header id of the parent work order.
      Parameters:
      parentWorkOrder - the parent header id
      See Also:
    • getAddress

      public Long getAddress()
      Returns the address id of the work order header.
      Returns:
      the address id
      See Also:
    • setAddress

      public void setAddress(Long address)
      Sets the address id of the work order header.
      Parameters:
      address - the address id
      See Also:
    • getType

      public Long getType()
      Returns the work order header type.
      Returns:
      the type
      See Also:
    • setType

      public void setType(Long type)
      Sets the work order header type.
      Parameters:
      type - the type
      See Also:
    • getSource

      public Long getSource()
      Returns the work order source
      Returns:
      the source
      See Also:
    • setSource

      public void setSource(Long source)
      Sets the work order source
      Parameters:
      source - the source
      See Also:
    • getState

      public Long getState()
      Returns the work order header state.
      Returns:
      the state
      See Also:
    • setState

      public void setState(Long state)
      Sets the work order header state.
      Parameters:
      state - the state
      See Also:
    • getOperationCenter

      public Long getOperationCenter()
      Returns the work order header operation center.
      Returns:
      the operation center
      See Also:
    • setOperationCenter

      public void setOperationCenter(Long operationCenter)
      Sets the work order header operation center.
      Parameters:
      operationCenter - the operation center
      See Also:
    • getCode

      public String getCode()
      Returns the work order header code.
      Returns:
      the code
    • setCode

      public void setCode(String code)
      Sets the work order header code.
      Parameters:
      code - the code
    • getExternalCode

      public String getExternalCode()
      Returns the work order header external code.
      Returns:
      the external code
    • setExternalCode

      public void setExternalCode(String externalCode)
      Sets the work order header external code.
      Parameters:
      externalCode - the external code
    • isWoByOrder

      public Boolean isWoByOrder()
      Checks whether the work order header is by order.
      Returns:
      the boolean
    • setWoByOrder

      public void setWoByOrder(Boolean woByOrder)
      Sets the work order header by order.
      Parameters:
      woByOrder - the wo by order
    • getWoByOrderCardinality

      public Long getWoByOrderCardinality()
      Returns the cardinality of the work order by order.
      Returns:
      the work order by order cardinality id
    • setWoByOrderCardinality

      public void setWoByOrderCardinality(Long woByOrderCardinality)
      Sets the cardinality of the work order by order.
      Parameters:
      woByOrderCardinality - the work order by order cardinality
    • getWoByOrderResidualDuration

      public Long getWoByOrderResidualDuration()
      Returns the residual duration of the work order by order.
      Returns:
      the work order by order residual duration
    • setWoByOrderResidualDuration

      public void setWoByOrderResidualDuration(Long woByOrderResidualDuration)
      Sets the residual duration of the work order by order.
      Parameters:
      woByOrderResidualDuration - the work order by order residual duration id
    • getWoByOrderDuration

      public Long getWoByOrderDuration()
      Returns the duration of the work order by order.
      Returns:
      the work order by order duration
    • setWoByOrderDuration

      public void setWoByOrderDuration(Long woByOrderDuration)
      Sets the duration of the work order by order.
      Parameters:
      woByOrderDuration - the work order by order duration
    • getEndDate

      public Date getEndDate()
      Returns the work order header end date.
      Returns:
      the end date
    • setEndDate

      public void setEndDate(Date endDate)
      Sets the work order header end date.
      Parameters:
      endDate - the end date
    • getStartDate

      public Date getStartDate()
      Returns the work order header start date.
      Returns:
      the start date
    • setStartDate

      public void setStartDate(Date startDate)
      Sets the work order header start date.
      Parameters:
      startDate - the start date
    • getWorkCycle

      public Long getWorkCycle()
      Returns the work cycle of the work order header.
      Returns:
      the work cycle
      See Also:
    • setWorkCycle

      public void setWorkCycle(Long workCycle)
      Sets the work cycle of the work order header.
      Parameters:
      workCycle - the work cycle
      See Also:
    • getExternalSystem

      public Long getExternalSystem()
      Returns the work order header external system.
      Returns:
      the external system
    • setExternalSystem

      public void setExternalSystem(Long externalSystem)
      Sets the work order header external system.
      Parameters:
      externalSystem - the external system
    • getReleaseDate

      public Date getReleaseDate()
      Returns the work order header release date.
      Returns:
      the release date
    • setReleaseDate

      public void setReleaseDate(Date releaseDate)
      Sets the work order header release date.
      Parameters:
      releaseDate - the release date
    • getClosingDate

      public Date getClosingDate()
      Returns the work order header closing date.
      Returns:
      the closing date
    • setClosingDate

      public void setClosingDate(Date closingDate)
      Sets the work order header closing date.
      Parameters:
      closingDate - the closing date
    • getNotes

      public String getNotes()
      Returns the work order header notes.
      Returns:
      the notes
    • setNotes

      public void setNotes(String notes)
      Sets the work order header notes.
      Parameters:
      notes - the notes
    • getDescription

      public String getDescription()
      Returns the work order header description.
      Returns:
      the description
    • setDescription

      public void setDescription(String description)
      Sets the work order header description.
      Parameters:
      description - the description
    • getUrgency

      public Long getUrgency()
      Returns the work order header urgency.
      Returns:
      the urgency
      See Also:
    • setUrgency

      public void setUrgency(Long urgency)
      Sets the work order header urgency.
      Parameters:
      urgency - the urgency
      See Also:
    • getWorkCenter

      public Long getWorkCenter()
      Returns the work center of the the work order header.
      Returns:
      the work center
      See Also:
    • setWorkCenter

      public void setWorkCenter(Long workCenter)
      Sets the work center of the the work order header.
      Parameters:
      workCenter - the work center
      See Also:
    • isNew

      public boolean isNew()
      Checks if the work order header is new.
      Returns:
      true, if is new
    • getCreationDate

      public Date getCreationDate()
      Returns the work order header creation date.
      Returns:
      the creation date
    • setCreationDate

      public void setCreationDate(Date creationDate)
      Sets the work order header creation date.
      Parameters:
      creationDate - the creation date
    • isClosed

      public boolean isClosed()
      Says if the work order is closed
      Returns:
      true, if the work order is closed
    • getAppointmentBeginDate

      public Date getAppointmentBeginDate()
      Gets the appointment begin date
      Returns:
      the appointment begin date
    • setAppointmentBeginDate

      public void setAppointmentBeginDate(Date beginDate)
      Sets the appointment begin date
      Parameters:
      beginDate - the begin date to sets
    • getAppointmentEndDate

      public Date getAppointmentEndDate()
      Gets the appointment end date
      Returns:
      the appointment end date
    • setAppointmentEndDate

      public void setAppointmentEndDate(Date endDate)
      Sets the appointment end date
      Parameters:
      endDate - the appointment end date