Examples of OrganizationCustomerVO


Examples of org.jallinone.sales.customers.java.OrganizationCustomerVO

        subjectTypeREG04 = ApplicationConsts.SUBJECT_PEOPLE_CUSTOMER;
      CustomerPK pk = new CustomerPK(vo.getCompanyCodeSys01SCH03(),vo.getProgressiveReg04SCH03(),subjectTypeREG04);
      Response res = ClientUtils.getData("loadCustomer",pk);
      if (!res.isError()) {
        if (subjectTypeREG04.equals(ApplicationConsts.SUBJECT_ORGANIZATION_CUSTOMER)) {
          OrganizationCustomerVO custVO = (OrganizationCustomerVO)((VOResponse)res).getVo();
          controlCustCode.setValue(custVO.getCustomerCodeSAL07());
          controlCustCode.setEnabled(false);
          if (custVO.getPricelistCodeSal01SAL07()!=null) {
            controlPricelistCode.setValue(custVO.getPricelistCodeSal01SAL07());
            controlPricelistDescr.setValue(custVO.getPricelistDescriptionSYS10());
            controlPricelistCode.setEnabled(false);
          }
          controlCurrencyCode.setValue(custVO.getCurrencyCodeReg03SAL01());
          controlPayCode.setValue(custVO.getPaymentCodeReg10SAL07());
          controlPayCode.setEnabled(false);
          controlPayDescr.setValue(custVO.getPaymentDescriptionSYS10());
          controlCreditsCode.setValue(custVO.getCreditAccountCodeAcc02SAL07());
          controlItemsCode.setValue(custVO.getItemsAccountCodeAcc02SAL07());
          controlActCode.setValue(custVO.getActivitiesAccountCodeAcc02SAL07());
          controlChargesCode.setValue(custVO.getChargesAccountCodeAcc02SAL07());
          controlCreditsCode.setEnabled(false);
          controlItemsCode.setEnabled(false);
          controlActCode.setEnabled(false);
          controlChargesCode.setEnabled(false);
        }
        else {
          PeopleCustomerVO custVO = (PeopleCustomerVO)((VOResponse)res).getVo();
          controlCustCode.setValue(custVO.getCustomerCodeSAL07());
          controlCustCode.setEnabled(false);
          if (custVO.getPricelistCodeSal01SAL07()!=null) {
            controlPricelistCode.setValue(custVO.getPricelistCodeSal01SAL07());
            controlPricelistDescr.setValue(custVO.getPricelistDescriptionSYS10());
            controlPricelistCode.setEnabled(false);
            controlCurrencyCode.setValue(custVO.getCurrencyCodeReg03SAL01());
            controlPayCode.setValue(custVO.getPaymentCodeReg10SAL07());
            controlPayCode.setEnabled(false);
            controlPayDescr.setValue(custVO.getPaymentDescriptionSYS10());
            controlCreditsCode.setValue(custVO.getCreditAccountCodeAcc02SAL07());
            controlItemsCode.setValue(custVO.getItemsAccountCodeAcc02SAL07());
            controlActCode.setValue(custVO.getActivitiesAccountCodeAcc02SAL07());
            controlChargesCode.setValue(custVO.getChargesAccountCodeAcc02SAL07());
            controlCreditsCode.setEnabled(false);
            controlItemsCode.setEnabled(false);
            controlActCode.setEnabled(false);
            controlChargesCode.setEnabled(false);
          }
View Full Code Here

Examples of org.jallinone.sales.customers.java.OrganizationCustomerVO

                vo.getCompanyCodeSys01DOC01(),
                vo.getProgressiveReg04DOC01(),
                ApplicationConsts.SUBJECT_ORGANIZATION_CUSTOMER
            ));
            if (!res.isError()) {
              OrganizationCustomerVO custVO = (OrganizationCustomerVO)((VOResponse)res).getVo();
              if (custVO.getPricelistCodeSal01SAL07()!=null) {
                controlPricelistCode.setValue(custVO.getPricelistCodeSal01SAL07());
                pricelistController.forceValidate();
              }
            }
          }
        }
View Full Code Here

Examples of org.jallinone.sales.customers.java.OrganizationCustomerVO


  public void setSubjectType(String subjectTypeREG04) {
    if (subjectTypeREG04.equals(ApplicationConsts.SUBJECT_ORGANIZATION_CUSTOMER)) {
      customerPanel.setVOClassName("org.jallinone.sales.customers.java.OrganizationCustomerVO");
      customerPanel.getVOModel().setValueObject(new OrganizationCustomerVO());
    }
    else {
      customerPanel.setVOClassName("org.jallinone.sales.customers.java.PeopleCustomerVO");
      customerPanel.getVOModel().setValueObject(new PeopleCustomerVO());
    }
View Full Code Here

Examples of org.jallinone.sales.customers.java.OrganizationCustomerVO

              if (super.beforeInsertGrid(grid)) {
                ScheduledActivityController c = new ScheduledActivityController(panel.getGrid(),null,null,true);
                c.getControlSubjectType().setValue(controlSubjectType.getValue());

                if (controlSubjectType.getValue().equals(ApplicationConsts.SUBJECT_ORGANIZATION_CUSTOMER)) {
                  OrganizationCustomerVO model = (OrganizationCustomerVO)customerPanel.getVOModel().getValueObject();
                  c.getControlName_1Subject().setValue(model.getName_1REG04());
                  c.getControlName_2Subject().setValue(model.getName_2REG04());
                  ScheduledActivityVO actVO = (ScheduledActivityVO)c.getVOModel().getValueObject();
                  actVO.setProgressiveReg04SubjectSCH06(model.getProgressiveREG04());
                  c.getDetailFrame().getMainForm().getForm().pull("progressiveReg04SubjectSCH06");
                }
                else {
                  PeopleCustomerVO model = (PeopleCustomerVO)customerPanel.getVOModel().getValueObject();
                  c.getControlName_1Subject().setValue(model.getName_1REG04());
                  c.getControlName_2Subject().setValue(model.getName_2REG04());
                  ScheduledActivityVO actVO = (ScheduledActivityVO)c.getVOModel().getValueObject();
                  actVO.setProgressiveReg04SubjectSCH06(model.getProgressiveREG04());
                  c.getDetailFrame().getMainForm().getForm().pull("progressiveReg04SubjectSCH06");
                }

              }
              return false;
View Full Code Here

Examples of org.jallinone.sales.customers.java.OrganizationCustomerVO

        !controlSubjectType.getValue().equals(subjectTypeREG04))
        controlSubjectType.setValue(subjectTypeREG04);

    if (subjectTypeREG04.equals(ApplicationConsts.SUBJECT_ORGANIZATION_CUSTOMER)) {
      customerPanel.setVOClassName("org.jallinone.sales.customers.java.OrganizationCustomerVO");
      customerPanel.getVOModel().setValueObject(new OrganizationCustomerVO());

      customerPanel.removeLinkedPanel(peoplePanel);
      customerPanel.addLinkedPanel(organizationPanel);

    }
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.