IDEMPIERE-2346 Error CSV Exporting Broadcast Message / enable Import button when New is enabled

This commit is contained in:
Carlos Ruiz 2014-12-02 17:36:10 -05:00
parent 67c4abd701
commit b6ede5ee21
2 changed files with 7 additions and 3 deletions

View File

@ -72,7 +72,7 @@ public class ADWindowToolbar extends FToolbar implements EventListener<Event>
/**
*
*/
private static final long serialVersionUID = -5540268492066600133L;
private static final long serialVersionUID = -9183846974546235806L;
public static final String BTNPREFIX = "Btn";
@ -476,6 +476,10 @@ public class ADWindowToolbar extends FToolbar implements EventListener<Event>
return !btnDelete.isDisabled();
}
public boolean isNewEnabled() {
return !btnNew.isDisabled();
}
public void enableIgnore(boolean enabled)
{
this.btnIgnore.setDisabled(!enabled);

View File

@ -1279,7 +1279,6 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
}
toolbar.enablePrint(adTabbox.getSelectedGridTab().isPrinted() && !adTabbox.getSelectedGridTab().isNew());
toolbar.enableCSVImport(adTabbox.getSelectedGridTab().hasTemplate());
//Deepak-Enabling customize button IDEMPIERE-364
if(!(adTabbox.getSelectedTabpanel() instanceof ADSortTab))
@ -1623,7 +1622,8 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
toolbar.enablePrint(adTabbox.getSelectedGridTab().isPrinted() && !isNewRow);
toolbar.enableReport(!isNewRow);
toolbar.enableExport(!isNewRow && !adTabbox.getSelectedGridTab().isSortTab());
toolbar.enableFileImport(!isNewRow && !changed && !adTabbox.getSelectedGridTab().isSortTab() && adTabbox.getSelectedGridTab().isInsertRecord());
toolbar.enableFileImport(toolbar.isNewEnabled());
toolbar.enableCSVImport(toolbar.isNewEnabled() && adTabbox.getSelectedGridTab().hasTemplate());
toolbar.enableTabNavigation(breadCrumb.hasParentLink(), adTabbox.getSelectedDetailADTabpanel() != null);