Merge 1999418eaf79

This commit is contained in:
Heng Sin Low 2013-01-11 11:55:36 +08:00
commit a63999e429
2 changed files with 43 additions and 26 deletions

View File

@ -84,14 +84,14 @@ stop () {
source $ENVFILE source $ENVFILE
echo "Trying direct kill with signal -15" echo "Trying direct kill with signal -15"
# Adempiere didn't finish - try direct kill with signal 15, then signal 9 # Adempiere didn't finish - try direct kill with signal 15, then signal 9
kill -15 `ps ax | grep -v grep | grep $IDEMPIERE_HOME | sed -e 's/^ *//g' | cut -f 1 -d " "` kill -15 -`ps ax o pgid,command | grep -v grep | grep $IDEMPIERE_HOME | sed -e 's/^ *//g' | cut -f 1 -d " "`
sleep 5 sleep 5
getidempierestatus getidempierestatus
if [ $IDEMPIERESTATUS -ne 0 ] ; then if [ $IDEMPIERESTATUS -ne 0 ] ; then
echo_success echo_success
else else
echo "Trying direct kill with signal -9" echo "Trying direct kill with signal -9"
kill -9 `ps ax | grep -v grep | grep $IDEMPIERE_HOME | sed -e 's/^ *//g' | cut -f 1 -d " "` kill -9 -`ps ax o pgid,command | grep -v grep | grep $IDEMPIERE_HOME | sed -e 's/^ *//g' | cut -f 1 -d " "`
sleep 5 sleep 5
getidempierestatus getidempierestatus
if [ $IDEMPIERESTATUS -ne 0 ] ; then if [ $IDEMPIERESTATUS -ne 0 ] ; then

View File

@ -109,7 +109,7 @@ implements IFormController, EventListener<Event>, WTableModelListener, ValueChan
private Button bGenerate = cp.createButton(ConfirmPanel.A_PROCESS); private Button bGenerate = cp.createButton(ConfirmPanel.A_PROCESS);
private Button bReset = cp.createButton(ConfirmPanel.A_RESET); private Button bReset = cp.createButton(ConfirmPanel.A_RESET);
private Button bZoom = cp.createButton(ConfirmPanel.A_ZOOM); private Button bZoom = cp.createButton(ConfirmPanel.A_ZOOM);
private Borderlayout commandLayout = new Borderlayout(); private Grid commandLayout = GridFactory.newGridLayout();
private Button bRefresh = cp.createButton(ConfirmPanel.A_REFRESH); private Button bRefresh = cp.createButton(ConfirmPanel.A_REFRESH);
private Label labelDateAcct = new Label(); private Label labelDateAcct = new Label();
private WDateEditor fieldDateAcct = new WDateEditor(); private WDateEditor fieldDateAcct = new WDateEditor();
@ -173,28 +173,35 @@ implements IFormController, EventListener<Event>, WTableModelListener, ValueChan
Rows rows = null; Rows rows = null;
Row row = null; Row row = null;
parameterLayout.setWidth("800px"); parameterLayout.setWidth("90%");
rows = parameterLayout.newRows(); rows = parameterLayout.newRows();
row = rows.newRow(); row = rows.newRow();
row.appendChild(labelAcctSchema.rightAlign()); row.appendCellChild(labelAcctSchema.rightAlign());
row.appendChild(fieldAcctSchema.getComponent()); fieldAcctSchema.getComponent().setHflex("true");
row.appendChild(labelOrg.rightAlign()); row.appendCellChild(fieldAcctSchema.getComponent(), 2);
row.appendChild(fieldOrg.getComponent()); row.appendCellChild(labelOrg.rightAlign());
fieldOrg.getComponent().setHflex("true");
row.appendCellChild(fieldOrg.getComponent(), 2);
row = rows.newRow(); row = rows.newRow();
row.appendChild(labelAccount.rightAlign()); row.appendCellChild(labelAccount.rightAlign());
row.appendChild(fieldAccount); fieldAccount.setHflex("true");
row.appendChild(labelReconciled); row.appendCellChild(fieldAccount, 2);
row.appendChild(isReconciled); row.appendCellChild(labelReconciled);
row.appendCellChild(isReconciled, 2);
row = rows.newRow(); row = rows.newRow();
row.appendChild(labelBPartner.rightAlign()); row.appendCellChild(labelBPartner.rightAlign());
row.appendChild(fieldBPartner.getComponent()); fieldBPartner.getComponent().setHflex("true");
row.appendChild(labelProduct.rightAlign()); row.appendCellChild(fieldBPartner.getComponent(), 2);
row.appendChild(fieldProduct.getComponent()); row.appendCellChild(labelProduct.rightAlign());
fieldProduct.getComponent().setHflex("true");
row.appendCellChild(fieldProduct.getComponent(), 2);
row = rows.newRow(); row = rows.newRow();
row.appendChild(labelDateAcct.rightAlign()); row.appendCellChild(labelDateAcct.rightAlign());
row.appendChild(fieldDateAcct.getComponent()); fieldDateAcct.getComponent().setHflex("true");
row.appendChild(labelDateAcct2.rightAlign()); row.appendCellChild(fieldDateAcct.getComponent(), 2);
row.appendChild(fieldDateAcct2.getComponent()); row.appendCellChild(labelDateAcct2.rightAlign());
fieldDateAcct2.getComponent().setHflex("true");
row.appendCellChild(fieldDateAcct2.getComponent(), 2);
row = rows.newRow(); row = rows.newRow();
row.appendChild(bRefresh); row.appendChild(bRefresh);
@ -212,12 +219,22 @@ implements IFormController, EventListener<Event>, WTableModelListener, ValueChan
mainLayout.appendChild(south); mainLayout.appendChild(south);
south.appendChild(commandPanel); south.appendChild(commandPanel);
commandPanel.appendChild(commandLayout); commandPanel.appendChild(commandLayout);
commandPanel.appendChild(bZoom); commandLayout.setWidth("90%");
commandPanel.appendChild(differenceLabel); rows = commandLayout.newRows();
commandPanel.appendChild(differenceField); row = rows.newRow();
commandPanel.appendChild(bGenerate); row.appendCellChild(bZoom, 2);
commandPanel.appendChild(bReset); bZoom.setHflex("true");
commandPanel.appendChild(bCancel); bZoom.setWidth("100%");
row.appendCellChild(differenceLabel.rightAlign());
differenceLabel.setHflex("true");
row.appendCellChild(differenceField, 2);
differenceField.setHflex("true");
row.appendCellChild(bGenerate, 2);
bGenerate.setHflex("true");
row.appendCellChild(bReset, 2);
bReset.setHflex("true");
row.appendCellChild(bCancel);
bCancel.setHflex("true");
} }
/** /**