frame.getVariantsPricesPanel().repaint();
}
private void reloadVariantsPrices(int rowNumber) {
final PriceVO priceVO = (PriceVO)frame.getPricesGrid().getVOListTableModel().getObjectForRow(rowNumber);
final ProductVariantsPanel variantsPricesPanel = frame.getVariantsPricesPanel();
if(!Boolean.TRUE.equals(priceVO.getUseVariant1ITM01()) &&
!Boolean.TRUE.equals(priceVO.getUseVariant2ITM01()) &&
!Boolean.TRUE.equals(priceVO.getUseVariant3ITM01()) &&
!Boolean.TRUE.equals(priceVO.getUseVariant4ITM01()) &&
!Boolean.TRUE.equals(priceVO.getUseVariant5ITM01()))
variantsPricesPanel.removeAll();
else {
variantsPricesPanel.removeAll();
variantsPricesPanel.getOtherGridParams().put(ApplicationConsts.ITEM,new ItemPK(priceVO.getCompanyCodeSys01SAL02(),priceVO.getItemCodeItm01SAL02()));
variantsPricesPanel.getOtherGridParams().put(ApplicationConsts.PRICELIST,priceVO.getPricelistCodeSal01SAL02());
variantsPricesPanel.initGrid(priceVO);
variantsPricesPanel.revalidate();
variantsPricesPanel.repaint();
SaveButton saveButton = new SaveButton();
saveButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Response res = ClientUtils.getData("updateVariantsPrices",new Object[]{
variantsPricesPanel.getVariantsMatrixVO(),
variantsPricesPanel.getCells(),
priceVO.getPricelistCodeSal01SAL02(),
priceVO.getStartDateSAL02(),
priceVO.getEndDateSAL02()
});
if (res.isError()) {
JOptionPane.showMessageDialog(
ClientUtils.getParentFrame(frame),
res.getErrorMessage(),