Examples of OrganizationVO


Examples of org.jallinone.subjects.java.OrganizationVO

    orgController.addLookupListener(new LookupListener() {

      public void codeValidated(boolean validated) {}

      public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {
        OrganizationVO vo = (OrganizationVO)orgController.getLookupVO();
        controlName_1.setValue(vo.getName_1REG04());
        controlName_2.setValue(vo.getName_2REG04());
        filterOrgButton.setValue(vo.getProgressiveREG04());
      }

      public void beforeLookupAction(ValueObject parentVO) {
        orgDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,empVO.getCompanyCodeSys01REG04());
        orgDataLocator.getLookupFrameParams().put(ApplicationConsts.SUBJECT_TYPE,ApplicationConsts.SUBJECT_ORGANIZATION);
View Full Code Here

Examples of org.jallinone.subjects.java.OrganizationVO

            controlItemType.getComboBox().setSelectedIndex(-1);


          res =  ClientUtils.getData("loadCompany",warehouseVO.getCompanyCodeSys01WAR01());
          if (!res.isError()) {
            OrganizationVO compVO = (OrganizationVO)((VOResponse)res).getVo();
            if (compVO!=null && compVO.getCurrencyCodeReg03()!=null && !compVO.getCurrencyCodeReg03().equals("")) {
              controlCurrency.setValue(compVO.getCurrencyCodeReg03());
              controlCurrency.getLookupController().forceValidate();
            }
          }

        }
View Full Code Here

Examples of org.jallinone.subjects.java.OrganizationVO

          grid.getOtherGridParams().put(ApplicationConsts.COMPANY_CODE_SYS01,warehouseVO.getCompanyCodeSys01WAR01());
          controlSupplierCode.setEnabled(true);

          Response res =  ClientUtils.getData("loadCompany",warehouseVO.getCompanyCodeSys01WAR01());
          if (!res.isError()) {
            OrganizationVO compVO = (OrganizationVO)((VOResponse)res).getVo();
            if (compVO!=null && compVO.getCurrencyCodeReg03()!=null && !compVO.getCurrencyCodeReg03().equals("")) {
              controlCurrency.setValue(compVO.getCurrencyCodeReg03());
              controlCurrency.getLookupController().forceValidate();
            }
          }

        }
View Full Code Here

Examples of org.jallinone.subjects.java.OrganizationVO

   * @return an ErrorResponse value object in case of errors, VOResponse if the operation is successfully completed
   */
  public Response insertRecord(ValueObject newPersistentObject) throws Exception {
    Subject subjectVO = (Subject)newPersistentObject;
    if (subjectVO.getSubjectTypeREG04().equals(ApplicationConsts.SUBJECT_ORGANIZATION_CUSTOMER)) {
      OrganizationVO vo = (OrganizationVO)subjectVO;
      OrganizationVO contact1VO = (OrganizationVO)this.contactVO;
      vo.setAddressREG04(contact1VO.getAddressREG04());
      vo.setCityREG04(contact1VO.getCityREG04());
      vo.setCompanyCodeSys01REG04(contact1VO.getCompanyCodeSys01REG04());
      vo.setCompanyCodeSys01Reg04REG04(contact1VO.getCompanyCodeSys01Reg04REG04());
      vo.setCountryREG04(contact1VO.getCountryREG04());
      vo.setEmailAddressREG04(contact1VO.getEmailAddressREG04());
      vo.setFaxNumberREG04(contact1VO.getFaxNumberREG04());
      vo.setLawfulSiteREG04(contact1VO.getLawfulSiteREG04());
      vo.setName_1REG04(contact1VO.getName_1REG04());
      vo.setName_2REG04(contact1VO.getName_2REG04());
      vo.setNoteREG04(contact1VO.getNoteREG04());
      vo.setPhoneNumberREG04(contact1VO.getPhoneNumberREG04());
      vo.setProgressiveREG04(contact1VO.getProgressiveREG04());
      vo.setProgressiveReg04REG04(contact1VO.getProgressiveReg04REG04());
      vo.setProvinceREG04(contact1VO.getProvinceREG04());
      vo.setTaxCodeREG04(contact1VO.getTaxCodeREG04());
      vo.setWebSiteREG04(contact1VO.getWebSiteREG04());
      vo.setZipREG04(contact1VO.getZipREG04());
    }
    else {
      PeopleVO vo = (PeopleVO)subjectVO;
      PeopleVO contact1VO = (PeopleVO)this.contactVO;
      vo.setAddressREG04(contact1VO.getAddressREG04());
      vo.setBirthdayREG04(contact1VO.getBirthdayREG04());
      vo.setBirthplaceREG04(contact1VO.getBirthplaceREG04());
      vo.setCityREG04(contact1VO.getCityREG04());
      vo.setCompanyCodeSys01REG04(contact1VO.getCompanyCodeSys01REG04());
      vo.setCompanyCodeSys01Reg04REG04(contact1VO.getCompanyCodeSys01Reg04REG04());
      vo.setCountryREG04(contact1VO.getCountryREG04());
      vo.setEmailAddressREG04(contact1VO.getEmailAddressREG04());
      vo.setFaxNumberREG04(contact1VO.getFaxNumberREG04());
      vo.setMaritalStatusREG04(contact1VO.getMaritalStatusREG04());
      vo.setMobileNumberREG04(contact1VO.getMobileNumberREG04());
      vo.setName_1REG04(contact1VO.getName_1REG04());
      vo.setName_2REG04(contact1VO.getName_2REG04());
      vo.setNationalityREG04(contact1VO.getNationalityREG04());
      vo.setNoteREG04(contact1VO.getNoteREG04());
      vo.setPhoneNumberREG04(contact1VO.getPhoneNumberREG04());
      vo.setProgressiveREG04(contact1VO.getProgressiveREG04());
      vo.setProgressiveReg04REG04(contact1VO.getProgressiveReg04REG04());
      vo.setProvinceREG04(contact1VO.getProvinceREG04());
      vo.setSexREG04(contact1VO.getSexREG04());
      vo.setTaxCodeREG04(contact1VO.getTaxCodeREG04());
      vo.setWebSiteREG04(contact1VO.getWebSiteREG04());
      vo.setZipREG04(contact1VO.getZipREG04());
    }

    Response response = ClientUtils.getData("insertCustomer",subjectVO);
    if (response.isError()) {
      throw new RuntimeException(response.getErrorMessage());
View Full Code Here

Examples of org.jallinone.subjects.java.OrganizationVO

      MachineryVO pvo = (MachineryVO)gridFrame.getGrid().getVOListTableModel().getObjectForRow(rowNumber);
      if (attributeName.equals("companyCodeSys01PRO03") && newValue!=null) {
        pvo.setCompanyCodeSys01PRO03(newValue.toString());
        Response res =  ClientUtils.getData("loadCompany",pvo.getCompanyCodeSys01PRO03());
        if (!res.isError()) {
          OrganizationVO compVO = (OrganizationVO)((VOResponse)res).getVo();
          if (compVO.getCurrencyCodeReg03()!=null && !compVO.getCurrencyCodeReg03().equals("")) {
            pvo.setCurrencyCodeReg03PRO03(compVO.getCurrencyCodeReg03());
            gridFrame.getColCurrency().forceValidate(rowNumber);
          }
        }
      }
View Full Code Here

Examples of org.jallinone.subjects.java.OrganizationVO

      PricelistVO pvo = (PricelistVO)frame.getGrid().getVOListTableModel().getObjectForRow(rowNumber);
      if (attributeName.equals("companyCodeSys01SAL01") && newValue!=null) {
        pvo.setCompanyCodeSys01SAL01(newValue.toString());
        Response res =  ClientUtils.getData("loadCompany",pvo.getCompanyCodeSys01SAL01());
        if (!res.isError()) {
          OrganizationVO compVO = (OrganizationVO)((VOResponse)res).getVo();
          if (compVO.getCurrencyCodeReg03()!=null && !compVO.getCurrencyCodeReg03().equals("")) {
            pvo.setCurrencyCodeReg03SAL01(compVO.getCurrencyCodeReg03());
            frame.getColCurrencyCode().forceValidate(frame.getGrid().getSelectedRow()==-1?0:frame.getGrid().getSelectedRow());
          }
        }
      }
View Full Code Here

Examples of org.jallinone.subjects.java.OrganizationVO

   */
  public Response insertRecord(ValueObject newPersistentObject) throws Exception {
    Subject sub = (Subject)newPersistentObject;
    sub.setSubjectTypeREG04((String)detailFrame.getControlSubjectType().getValue());
    if (sub.getSubjectTypeREG04().equals(ApplicationConsts.SUBJECT_ORGANIZATION_CONTACT)) {
      OrganizationVO vo = (OrganizationVO)sub;
      if (organization!=null) {
        vo.setCompanyCodeSys01Reg04REG04(organization.getCompanyCodeSys01REG04());
        vo.setProgressiveReg04REG04(organization.getProgressiveREG04());
      }
    }
    else {
      PeopleVO vo = (PeopleVO)sub;
      if (organization!=null) {
        vo.setCompanyCodeSys01Reg04REG04(organization.getCompanyCodeSys01REG04());
        vo.setProgressiveReg04REG04(organization.getProgressiveREG04());
      }
    }

    Response response = ClientUtils.getData("insertContact",newPersistentObject);
    if (!response.isError()) {
View Full Code Here

Examples of org.jallinone.subjects.java.OrganizationVO

      java.util.List rows = ((VOListResponse)res).getRows();
      GridContactVO vo = null;
      Response contactRes = null;
      SubjectVO subVO = null;
      OrganizationVO orgVO = null;

      for(int i=0;i<rows.size();i++) {
        vo = (GridContactVO)rows.get(i);
        if (vo.getProgressiveReg04REG04()!=null) {
          subVO = new SubjectVO(
              vo.getCompanyCodeSys01REG04(),
              vo.getProgressiveReg04REG04(),
              null, // it's not very good...
              null, // it's not very good...
              ApplicationConsts.SUBJECT_ORGANIZATION_CONTACT
          );
          contactRes = bean.loadContact(subVO,serverLanguageId,username);
          if (contactRes.isError())
            throw new Exception(contactRes.getErrorMessage());
          orgVO = (OrganizationVO)((VOResponse)contactRes).getVo();
          vo.setOrganizationName_1REG04(orgVO.getName_1REG04());
        }
      }

      return (VOListResponse)res;
    }
View Full Code Here

Examples of org.jallinone.subjects.java.OrganizationVO

              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_CONTACT)) {
                  OrganizationVO model = (OrganizationVO)getCurrentForm().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 {
                  PeopleVO model = (PeopleVO)getCurrentForm().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.subjects.java.OrganizationVO

    if (attributeName.equals("companyCodeSys01SAL06") && newValue!=null) {
      vo.setCompanyCodeSys01SAL06(newValue.toString());
      Response res =  ClientUtils.getData("loadCompany",vo.getCompanyCodeSys01SAL06());
      if (!res.isError()) {
        OrganizationVO compVO = (OrganizationVO)((VOResponse)res).getVo();
        if (compVO!=null && compVO.getCurrencyCodeReg03()!=null && !compVO.getCurrencyCodeReg03().equals("")) {
          vo.setCurrencyCodeReg03SAL06(compVO.getCurrencyCodeReg03());
          gridFrame.getColCurrencyCod().forceValidate(gridFrame.getGrid().getSelectedRow()==-1?0:gridFrame.getGrid().getSelectedRow());
        }
      }
    }
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.