BrightSide Workbench Full Report + Source Code
org.turro.erp.purchase.HoursItem Class Reference

Public Member Functions

boolean isAutomatic ()
 
void setAutomatic (boolean automatic)
 
String getConcept ()
 
void setConcept (String concept)
 
double getCostHour ()
 
void setCostHour (double costHour)
 
double getDedication ()
 
void setDedication (double dedication)
 
int getOrderRef ()
 
void setOrderRef (int orderRef)
 
OrderReference getOrderReference ()
 
void setOrderReference (OrderReference orderReference)
 
ResourceAptitude getResourceAptitude ()
 
void setResourceAptitude (ResourceAptitude resourceAptitude)
 
Date getStartWorking ()
 
void setStartWorking (Date startWorking)
 
Task getTask ()
 
void setTask (Task task)
 
double getUnits ()
 
void setUnits (double units)
 
WorkOrder getWorkOrder ()
 
void setWorkOrder (WorkOrder workOrder)
 
long getWorkOrderId ()
 
void setWorkOrderId (long workOrderId)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 33 of file HoursItem.java.

Member Function Documentation

◆ getConcept()

String org.turro.erp.purchase.HoursItem.getConcept ( )

Definition at line 77 of file HoursItem.java.

77  {
78  return description;
79  }
Here is the caller graph for this function:

◆ getCostHour()

double org.turro.erp.purchase.HoursItem.getCostHour ( )

Definition at line 85 of file HoursItem.java.

85  {
86  return costHour;
87  }

◆ getDedication()

double org.turro.erp.purchase.HoursItem.getDedication ( )

Definition at line 93 of file HoursItem.java.

93  {
94  return dedication;
95  }

◆ getOrderRef()

int org.turro.erp.purchase.HoursItem.getOrderRef ( )

Definition at line 101 of file HoursItem.java.

101  {
102  return orderRef;
103  }
Here is the caller graph for this function:

◆ getOrderReference()

OrderReference org.turro.erp.purchase.HoursItem.getOrderReference ( )

Definition at line 119 of file HoursItem.java.

119  {
120  return orderReference;
121  }
Here is the caller graph for this function:

◆ getResourceAptitude()

ResourceAptitude org.turro.erp.purchase.HoursItem.getResourceAptitude ( )

Definition at line 127 of file HoursItem.java.

127  {
128  return resourceAptitude;
129  }
Here is the caller graph for this function:

◆ getStartWorking()

Date org.turro.erp.purchase.HoursItem.getStartWorking ( )

Definition at line 135 of file HoursItem.java.

135  {
136  return startWorking;
137  }
Here is the caller graph for this function:

◆ getTask()

Task org.turro.erp.purchase.HoursItem.getTask ( )

Definition at line 143 of file HoursItem.java.

143  {
144  return task;
145  }
Here is the caller graph for this function:

◆ getUnits()

double org.turro.erp.purchase.HoursItem.getUnits ( )

Definition at line 155 of file HoursItem.java.

155  {
156  return units;
157  }

◆ getWorkOrder()

WorkOrder org.turro.erp.purchase.HoursItem.getWorkOrder ( )

Definition at line 163 of file HoursItem.java.

163  {
164  return workOrder;
165  }
Here is the caller graph for this function:

◆ getWorkOrderId()

long org.turro.erp.purchase.HoursItem.getWorkOrderId ( )

Definition at line 171 of file HoursItem.java.

171  {
172  return workOrderId;
173  }
Here is the caller graph for this function:

◆ isAutomatic()

boolean org.turro.erp.purchase.HoursItem.isAutomatic ( )

Definition at line 64 of file HoursItem.java.

64  {
65  return automatic;
66  }

◆ setAutomatic()

void org.turro.erp.purchase.HoursItem.setAutomatic ( boolean  automatic)

Definition at line 68 of file HoursItem.java.

68  {
69  if(this.automatic && !automatic) {
70  dedication = 1.0;
71  } else if(!this.automatic && automatic && resourceAptitude != null) {
72  dedication = 0.0d;
73  }
74  this.automatic = automatic;
75  }

◆ setConcept()

void org.turro.erp.purchase.HoursItem.setConcept ( String  concept)

Definition at line 81 of file HoursItem.java.

81  {
82  this.description = concept;
83  }
Here is the caller graph for this function:

◆ setCostHour()

void org.turro.erp.purchase.HoursItem.setCostHour ( double  costHour)

Definition at line 89 of file HoursItem.java.

89  {
90  this.costHour = costHour;
91  }

◆ setDedication()

void org.turro.erp.purchase.HoursItem.setDedication ( double  dedication)

Definition at line 97 of file HoursItem.java.

97  {
98  this.dedication = dedication;
99  }
Here is the caller graph for this function:

◆ setOrderRef()

void org.turro.erp.purchase.HoursItem.setOrderRef ( int  orderRef)

Definition at line 105 of file HoursItem.java.

105  {
106  if(this.orderRef != orderRef) {
107  orderReference = null;
108  task = null;
109  for(OrderReference or : workOrder.getOrderReferences()) {
110  if(or.getOrderRef() == orderRef) {
111  orderReference = or;
112  break;
113  }
114  }
115  }
116  this.orderRef = orderRef;
117  }
Set< OrderReference > getOrderReferences()
Definition: WorkOrder.java:124
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setOrderReference()

void org.turro.erp.purchase.HoursItem.setOrderReference ( OrderReference  orderReference)

Definition at line 123 of file HoursItem.java.

123  {
124  this.orderReference = orderReference;
125  }

◆ setResourceAptitude()

void org.turro.erp.purchase.HoursItem.setResourceAptitude ( ResourceAptitude  resourceAptitude)

Definition at line 131 of file HoursItem.java.

131  {
132  this.resourceAptitude = resourceAptitude;
133  }
Here is the caller graph for this function:

◆ setStartWorking()

void org.turro.erp.purchase.HoursItem.setStartWorking ( Date  startWorking)

Definition at line 139 of file HoursItem.java.

139  {
140  this.startWorking = startWorking;
141  }
Here is the caller graph for this function:

◆ setTask()

void org.turro.erp.purchase.HoursItem.setTask ( Task  task)

Definition at line 147 of file HoursItem.java.

147  {
148  if(task != null) {
149  workOrder = task.getOrderReference().getWorkOrder();
150  workOrderId = workOrder.getWorkOrderId();
151  }
152  this.task = task;
153  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setUnits()

void org.turro.erp.purchase.HoursItem.setUnits ( double  units)

Definition at line 159 of file HoursItem.java.

159  {
160  this.units = units;
161  }

◆ setWorkOrder()

void org.turro.erp.purchase.HoursItem.setWorkOrder ( WorkOrder  workOrder)

Definition at line 167 of file HoursItem.java.

167  {
168  this.workOrder = workOrder;
169  }

◆ setWorkOrderId()

void org.turro.erp.purchase.HoursItem.setWorkOrderId ( long  workOrderId)

Definition at line 175 of file HoursItem.java.

175  {
176  if(this.workOrderId != workOrderId) {
177  workOrder = WorkOrder.getByWorkOrderId(workOrderId);
178  orderRef = 0;
179  orderReference = null;
180  task = null;
181  }
182  this.workOrderId = workOrderId;
183  }
static WorkOrder getByWorkOrderId(long value)
Definition: WorkOrder.java:365
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: