Examples of HierarCustomerDiscountVO


Examples of org.jallinone.sales.discounts.java.HierarCustomerDiscountVO

   * @param persistentObjects value objects relatied to the changed rows
   * @return an ErrorResponse value object in case of errors, VOListResponse if the operation is successfully completed
   */
  public Response updateRecords(int[] rowNumbers,ArrayList oldPersistentObjects,ArrayList persistentObjects) throws Exception {
    Response response = null;
    HierarCustomerDiscountVO vo = null;
    for(int i=0;i<persistentObjects.size();i++) {
      vo = (HierarCustomerDiscountVO)persistentObjects.get(i);
      response = validateDiscount(vo);
      if (response.isError())
        return response;
View Full Code Here

Examples of org.jallinone.sales.discounts.java.HierarCustomerDiscountVO

        return true;
      }


      public int getDecimals(int row) {
        HierarCustomerDiscountVO vo = (HierarCustomerDiscountVO)discountsGrid.getVOListTableModel().getObjectForRow(discountsGrid.getSelectedRow());
        if (vo!=null && vo.getDecimalsREG03()!=null)
          return vo.getDecimalsREG03().intValue();
        else
          return 0;
      }
View Full Code Here

Examples of org.jallinone.sales.discounts.java.HierarCustomerDiscountVO

          return 0;
      }


      public String getCurrencySymbol(int row) {
        HierarCustomerDiscountVO vo = (HierarCustomerDiscountVO)discountsGrid.getVOListTableModel().getObjectForRow(discountsGrid.getSelectedRow());
        if (vo!=null && vo.getCurrencySymbolREG03()!=null)
          return vo.getCurrencySymbolREG03();
        else
        return "E";
      }
View Full Code Here

Examples of org.jallinone.sales.discounts.java.HierarCustomerDiscountVO

    /**
     * Callback method invoked when the user has clicked on the insert button
     * @param valueObject empty value object just created: the user can manage it to fill some attribute values
     */
    public void createValueObject(ValueObject valueObject) throws Exception {
      HierarCustomerDiscountVO vo = (HierarCustomerDiscountVO)valueObject;

      DefaultMutableTreeNode node = frame.getHierarTreePanel().getSelectedNode();
      CompanyHierarchyLevelVO levelVO = (CompanyHierarchyLevelVO)node.getUserObject();
      vo.setCompanyCodeSys01SAL03(levelVO.getCompanySys01HIE01());
      Response res =  ClientUtils.getData("loadCompany",vo.getCompanyCodeSys01SAL03());
      if (!res.isError()) {
        OrganizationVO compVO = (OrganizationVO)((VOResponse)res).getVo();
        if (compVO.getCurrencyCodeReg03()!=null && !compVO.getCurrencyCodeReg03().equals("")) {
          vo.setCurrencyCodeReg03SAL03(compVO.getCurrencyCodeReg03());
          frame.getColCurrencyCode().forceValidate(frame.getGrid().getSelectedRow()==-1?0:frame.getGrid().getSelectedRow());
        }
      }
    }
View Full Code Here

Examples of org.jallinone.sales.discounts.java.HierarCustomerDiscountVO

   * @param rowNumbers row indexes related to the new rows to save
   * @param newValueObjects list of new value objects to save
   * @return an ErrorResponse value object in case of errors, VOListResponse if the operation is successfully completed
   */
  public Response insertRecords(int[] rowNumbers, ArrayList newValueObjects) throws Exception {
    HierarCustomerDiscountVO vo = null;
    DefaultMutableTreeNode node = frame.getHierarTreePanel().getSelectedNode();
    CompanyHierarchyLevelVO levelVO = (CompanyHierarchyLevelVO)node.getUserObject();
    CompanyHierarchyLevelVO root = (CompanyHierarchyLevelVO)((DefaultMutableTreeNode)node.getRoot()).getUserObject();

    Response response = null;
    for(int i=0;i<newValueObjects.size();i++) {
      vo = (HierarCustomerDiscountVO)newValueObjects.get(i);
      vo.setCompanyCodeSys01SAL03(levelVO.getCompanySys01HIE01());
      vo.setProgressiveHie01SAL10(levelVO.getProgressiveHIE01());

      response = validateDiscount(vo);
      if (response.isError())
        return response;
    }
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.