ItEr53S12CUCreacionRecursosLimitantesItEr52S13: Value of field isLimitedResource cannot be modified on already created resources
This commit is contained in:
parent
40a6c95407
commit
98c3dc4d10
4 changed files with 13 additions and 3 deletions
|
|
@ -572,4 +572,8 @@ public class MachineCRUDController extends GenericForwardComposer {
|
|||
}
|
||||
}
|
||||
|
||||
public boolean isEditing() {
|
||||
return (getMachine() != null && !getMachine().isNewObject());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -704,4 +704,8 @@ public class WorkerCRUDController extends GenericForwardComposer implements
|
|||
}
|
||||
}
|
||||
|
||||
public boolean isEditing() {
|
||||
return (getWorker() != null && !getWorker().isNewObject());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -59,7 +59,8 @@
|
|||
<combobox id="cbLimitedResource" width="200px"
|
||||
model="@{controller.limitedResourceOptionList}"
|
||||
selectedItem="@{controller.limitedResource}"
|
||||
onSelect="controller.setLimitedResource(self.selectedItem.value);" />
|
||||
onSelect="controller.setLimitedResource(self.selectedItem.value);"
|
||||
disabled="@{controller.isEditing}" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
|
|
|||
|
|
@ -65,11 +65,12 @@
|
|||
<textbox value="@{controller.worker.nif}" constraint="no empty"/>
|
||||
</row>
|
||||
<row visible="@{controller.isRealWorker}">
|
||||
<label value="${i18n:_('Limted resource')}" />
|
||||
<label value="${i18n:_('Limited resource')}" />
|
||||
<combobox id="cbLimitedResource" width="200px"
|
||||
model="@{controller.limitedResourceOptionList}"
|
||||
selectedItem="@{controller.limitedResource}"
|
||||
onSelect="controller.setLimitedResource(self.selectedItem.value);" />
|
||||
onSelect="controller.setLimitedResource(self.selectedItem.value);"
|
||||
disabled="@{controller.isEditing}" />
|
||||
</row>
|
||||
<row visible="@{controller.isVirtualWorker}">
|
||||
<label value="${i18n:_('Capacity')}" />
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue