Examples of PricelistChanges


Examples of org.jallinone.sales.pricelist.java.PricelistChanges

   * Method invoked when pressing advanced button: it will show a dialog window to apply changes on the whole items of the current pricelist.
   */
  void advancedButton_actionPerformed(ActionEvent e) {
    if (grid.getSelectedRow()!=-1) {
      PricelistVO vo = (PricelistVO) grid.getVOListTableModel().getObjectForRow(grid.getSelectedRow());
      new AdvancedOptionsDialog(this,new PricelistChanges(
          vo.getCompanyCodeSys01SAL01(),
          vo.getPricelistCodeSAL01()
      ));
    }
  }
View Full Code Here

Examples of org.jallinone.sales.pricelist.java.PricelistChanges

    if (grid.getSelectedRow()!=-1) {
      final PricelistVO vo = (PricelistVO) grid.getVOListTableModel().getObjectForRow(grid.getSelectedRow());
      ArrayList list = new ArrayList();
      new ImportItemsDialog(list,new ImportItems() {
        public void saveItems(ArrayList items,Date startDate,Date endDate,BigDecimal price) {
          PricelistChanges itemsVO = new PricelistChanges(
            vo.getCompanyCodeSys01SAL01(),
            vo.getPricelistCodeSAL01()
          );
          itemsVO.setStartDate(new java.sql.Date(startDate.getTime()));
          itemsVO.setEndDate(new java.sql.Date(endDate.getTime()));
          itemsVO.setDeltaValue(price);
          Response res = ClientUtils.getData("importAllItems",itemsVO);
          if (!res.isError())
            pricesGrid.reloadData();
        }
      });
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.