[ adempiere-ZK Web Client-2690905 ] Add busy indicator for Generate Invoice ( Manual )
This commit is contained in:
parent
529e9dd2db
commit
cd0b3fa728
|
@ -123,7 +123,7 @@ public class WInOutGen extends ADForm implements EventListener, ValueChangeListe
|
||||||
LayoutUtils.addSclass("status-border", statusBar);
|
LayoutUtils.addSclass("status-border", statusBar);
|
||||||
south.setHeight("22px");
|
south.setHeight("22px");
|
||||||
|
|
||||||
executeQuery();
|
postQueryEvent();
|
||||||
}
|
}
|
||||||
catch(Exception ex)
|
catch(Exception ex)
|
||||||
{
|
{
|
||||||
|
@ -376,6 +376,27 @@ public class WInOutGen extends ADForm implements EventListener, ValueChangeListe
|
||||||
return sql.toString();
|
return sql.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void postQueryEvent()
|
||||||
|
{
|
||||||
|
Clients.showBusy(Msg.getMsg(Env.getCtx(), "Processing"), true);
|
||||||
|
Events.echoEvent("onExecuteQuery", this, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Dont call this directly, use internally to handle execute query event
|
||||||
|
*/
|
||||||
|
public void onExecuteQuery()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
executeQuery();
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
Clients.showBusy(null, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Query Info
|
* Query Info
|
||||||
*/
|
*/
|
||||||
|
@ -457,7 +478,7 @@ public class WInOutGen extends ADForm implements EventListener, ValueChangeListe
|
||||||
}
|
}
|
||||||
else if (cmbDocType.equals(e.getTarget()))
|
else if (cmbDocType.equals(e.getTarget()))
|
||||||
{
|
{
|
||||||
executeQuery();
|
postQueryEvent();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -490,7 +511,7 @@ public class WInOutGen extends ADForm implements EventListener, ValueChangeListe
|
||||||
m_C_BPartner_ID = e.getNewValue();
|
m_C_BPartner_ID = e.getNewValue();
|
||||||
fBPartner.setValue(m_C_BPartner_ID); // display value
|
fBPartner.setValue(m_C_BPartner_ID); // display value
|
||||||
}
|
}
|
||||||
executeQuery();
|
postQueryEvent();
|
||||||
} // vetoableChange
|
} // vetoableChange
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -362,6 +362,28 @@ public class WInvoiceGen extends ADForm
|
||||||
|
|
||||||
return sql.toString();
|
return sql.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void postQueryEvent()
|
||||||
|
{
|
||||||
|
Clients.showBusy(Msg.getMsg(Env.getCtx(), "Processing"), true);
|
||||||
|
Events.echoEvent("onExecuteQuery", this, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Dont call this directly, use internally to handle execute query event
|
||||||
|
*/
|
||||||
|
public void onExecuteQuery()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
executeQuery();
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
Clients.showBusy(null, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Query Info
|
* Query Info
|
||||||
*/
|
*/
|
||||||
|
@ -443,7 +465,7 @@ public class WInvoiceGen extends ADForm
|
||||||
}
|
}
|
||||||
else if (cmbDocType.equals(e.getTarget()))
|
else if (cmbDocType.equals(e.getTarget()))
|
||||||
{
|
{
|
||||||
executeQuery();
|
postQueryEvent();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
|
@ -468,7 +490,7 @@ public class WInvoiceGen extends ADForm
|
||||||
m_C_BPartner_ID = e.getNewValue();
|
m_C_BPartner_ID = e.getNewValue();
|
||||||
fBPartner.setValue(m_C_BPartner_ID); // display value
|
fBPartner.setValue(m_C_BPartner_ID); // display value
|
||||||
}
|
}
|
||||||
executeQuery();
|
postQueryEvent();
|
||||||
} // vetoableChange
|
} // vetoableChange
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue