75 object =
event.getData();
76 if(
object instanceof RequiredUsage) {
77 RequiredUsage ru = (RequiredUsage)
object;
78 task.
setWorkOrder(ru.getTask().getOrderReference().getWorkOrder(), ru.getTask());
80 purchaseMode.setObjectValue(ru.getPurchaseMode());
81 purchaseDate.setValue(ru.getPurchaseDate());
82 purchaseTask.
setWorkOrder(ru.getTask().getOrderReference().getWorkOrder());
85 description.setValue(ru.getDescription());
86 if(ru.isHumanResourceType()) {
87 hghumanres.
setTask(ru.getTask());
92 hgdedication.
setValue(ru.getDedication());
93 hgvariable.setChecked(ru.isCanChange());
94 }
else if(ru.isProductType()) {
99 fixed.setChecked(ru.isProviderFixed());
101 pgtype.
setData(ru.getProvider(), ru.getLineTypeId(), ru.getContractPreferenceId());
103 if(ru.getView() ==
null) {
104 view.
setObjectValue(ru.getTask().getOrderReference().getWorkOrder().getView());
111 maximum.setChecked(ru.isCostMaximum());
115 humangroup.setVisible(ru.isHumanResourceType());
116 productgroup.setVisible(ru.isProductType());
void setWorkOrder(WorkOrder workOrder)
void onSelect $purchaseMode()