purchaseDiscChargesPanel1.getControlDiscValue().setGroupingSymbol(vo.getThousandSymbolREG03().charAt(0));
}
public void loadDataCompleted(boolean error,PurchaseDocPK pk) {
DetailPurchaseDocVO vo = (DetailPurchaseDocVO)headerFormPanel.getVOModel().getValueObject();
updateCurrencySettings(vo);
this.setTitle(ClientSettings.getInstance().getResources().getResource("purchase order")+" "+(vo.getDocSequenceDOC06()!=null?" - "+vo.getDocYearDOC06()+"/"+vo.getDocSequenceDOC06():"")+" - "+vo.getName_1REG04()+" "+(vo.getName_2REG04()==null?"":vo.getName_2REG04()));
rowsPanel.setParentVO(vo);
rowsPanel.getGrid().getOtherGridParams().put(ApplicationConsts.PURCHASE_DOC_PK,pk);
rowsPanel.getGrid().reloadData();
if (vo.getDocStateDOC06().equals(ApplicationConsts.CONFIRMED) ||
vo.getDocStateDOC06().equals(ApplicationConsts.CLOSED)) {
confirmButton.setEnabled(false);
setButtonsEnabled(false);
rowsPanel.setButtonsEnabled(false);
}
if (!vo.getDocStateDOC06().equals(ApplicationConsts.HEADER_BLOCKED)) {
confirmButton.setEnabled(false);
}
if (vo.getDocStateDOC06().equals(ApplicationConsts.HEADER_BLOCKED)) {
confirmButton.setEnabled(true);
}
if (vo.getDocStateDOC06().equals(ApplicationConsts.CONFIRMED) ||
vo.getDocStateDOC06().equals(ApplicationConsts.CLOSED) ||
vo.getDocStateDOC06().equals(ApplicationConsts.HEADER_BLOCKED)) {
printButton.setEnabled(true);
printLabelsButton.setEnabled(true);
}
else {
printButton.setEnabled(false);