ItEr58S04ValidacionEProbasFuncionaisItEr57S04: [Bug #437] The Order detail header is correctly shown.

This commit is contained in:
Susana Montes Pedreira 2010-05-18 12:04:45 +02:00 committed by Javier Moran Rua
parent a97fb6342f
commit dde70f4b91
2 changed files with 4 additions and 2 deletions

View file

@ -1048,14 +1048,14 @@ public class OrderCRUDController extends GenericForwardComposer {
orderElementFilter.setVisible(false);
}
private void showOrderElementFilter() {
public void showOrderElementFilter() {
if (orderFilter != null)
orderFilter.setVisible(false);
if (orderElementFilter != null)
orderElementFilter.setVisible(true);
}
private void showCreateButtons(boolean showCreate) {
public void showCreateButtons(boolean showCreate) {
createOrderButton.setVisible(showCreate);
createOrderFromTemplateButton.setVisible(showCreate);
saveOrderAndContinueButton.setVisible(!showCreate);

View file

@ -138,6 +138,8 @@ public class OrdersTabCreator {
breadcrumbs.appendChild(new Label(ORDER_ORDERS_VIEW));
breadcrumbs.appendChild(new Image(BREADCRUMBS_SEPARATOR));
if (mode.isOf(ModeType.ORDER)) {
orderCRUDController.showOrderElementFilter();
orderCRUDController.showCreateButtons(false);
orderCRUDController.initEdit(mode.getOrder());
breadcrumbs
.appendChild(new Label(mode.getOrder().getName()));