Examples of PeopleVO


Examples of org.jallinone.subjects.java.PeopleVO

      OrganizationVO vo = (OrganizationVO)newPersistentObject;
      vo.setCompanyCodeSys01REG04((String)frame.getControlCompaniesCombo().getValue());
      vo.setSubjectTypeREG04(ApplicationConsts.SUBJECT_ORGANIZATION_CONTACT);
    }
    else {
      PeopleVO vo = (PeopleVO)newPersistentObject;
      vo.setCompanyCodeSys01REG04((String)frame.getControlCompaniesCombo().getValue());
      vo.setSubjectTypeREG04(ApplicationConsts.SUBJECT_PEOPLE_CONTACT);
    }

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

Examples of org.jallinone.subjects.java.PeopleVO

      organizationPanel.setSaveButton(saveButton5);
      organizationPanel.setReloadButton(reloadButton5);

      peoplePanel.setFunctionId("REG04_CONTACTS");
      peoplePanel.setVOClassName("org.jallinone.subjects.java.PeopleVO");
      peoplePanel.getVOModel().setValueObject(new PeopleVO());
      peoplePanel.setFormController(callOutSubjectController);
      peoplePanel.setInsertButton(insertButton5);
      peoplePanel.setEditButton(editButton5);
      peoplePanel.setSaveButton(saveButton5);
      peoplePanel.setReloadButton(reloadButton5);


      calloutPanel.setFormController(controller);

      CustomizedControls customizedControls = new CustomizedControls(tab,calloutPanel,ApplicationConsts.ID_CALL_OUTS);

      // people lookup...
      peopleDataLocator.setGridMethodName("loadSubjectPerName");
      peopleDataLocator.setValidationMethodName("");
      filterPeopleButton.setLookupController(peopleController);
      peopleController.setLookupDataLocator(peopleDataLocator);
      peopleController.setFrameTitle("people");
      peopleController.setLookupValueObjectClassName("org.jallinone.subjects.java.PeopleVO");
      peopleController.setAllColumnVisible(false);
      peopleController.setVisibleColumn("name_1REG04", true);
      peopleController.setVisibleColumn("name_2REG04", true);
      peopleController.setVisibleColumn("addressREG04", true);
      peopleController.setVisibleColumn("cityREG04", true);
      peopleController.setVisibleColumn("provinceREG04", true);
      peopleController.setVisibleColumn("countryREG04", true);
      peopleController.setVisibleColumn("zipREG04", true);
      peopleController.setHeaderColumnName("addressREG04", "address");
      peopleController.setHeaderColumnName("cityREG04", "city");
      peopleController.setHeaderColumnName("provinceREG04", "prov");
      peopleController.setHeaderColumnName("countryREG04", "country");
      peopleController.setHeaderColumnName("zipREG04", "zip");
      peopleController.setPreferredWidthColumn("name_1REG04", 120);
      peopleController.setPreferredWidthColumn("name_2REG04", 120);
      peopleController.setPreferredWidthColumn("addressREG04", 200);
      peopleController.setPreferredWidthColumn("provinceREG04", 50);
      peopleController.setPreferredWidthColumn("countryREG04", 70);
      peopleController.setPreferredWidthColumn("zipREG04", 50);
      peopleController.setFramePreferedSize(new Dimension(740,500));
      peopleController.addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {
          PeopleVO vo = (PeopleVO)peopleController.getLookupVO();
          peoplePanel.getVOModel().setValueObject(vo);
          peoplePanel.setMode(Consts.READONLY);
          peoplePanel.pull();
          tab.setEnabledAt(1,true);
          controlCompaniesCombo.setEnabled(false);
          controlSubjectType.setEnabled(false);
        }

        public void beforeLookupAction(ValueObject parentVO) {
          peopleDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompaniesCombo.getValue());
          peopleDataLocator.getLookupFrameParams().put(ApplicationConsts.SUBJECT_TYPE,ApplicationConsts.SUBJECT_PEOPLE);
        }

        public void forceValidate() {}

      });


      // organization lookup...
      orgDataLocator.setGridMethodName("loadSubjectPerName");
      orgDataLocator.setValidationMethodName("");
      filterOrgButton.setLookupController(orgController);
      orgController.setLookupDataLocator(orgDataLocator);
      orgController.setFrameTitle("organizations");
      orgController.setLookupValueObjectClassName("org.jallinone.subjects.java.OrganizationVO");
      orgController.setAllColumnVisible(false);
      orgController.setVisibleColumn("name_1REG04", true);
      orgController.setVisibleColumn("addressREG04", true);
      orgController.setVisibleColumn("cityREG04", true);
      orgController.setVisibleColumn("provinceREG04", true);
      orgController.setVisibleColumn("countryREG04", true);
      orgController.setVisibleColumn("zipREG04", true);
      orgController.setHeaderColumnName("addressREG04", "address");
      orgController.setHeaderColumnName("cityREG04", "city");
      orgController.setHeaderColumnName("provinceREG04", "prov");
      orgController.setHeaderColumnName("countryREG04", "country");
      orgController.setHeaderColumnName("zipREG04", "zip");
      orgController.setPreferredWidthColumn("name_1REG04", 150);
      orgController.setPreferredWidthColumn("addressREG04", 200);
      orgController.setPreferredWidthColumn("provinceREG04", 50);
      orgController.setPreferredWidthColumn("zipREG04", 50);
      orgController.setFramePreferedSize(new Dimension(740,500));
      orgController.addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {
          OrganizationVO vo = (OrganizationVO)orgController.getLookupVO();
          organizationPanel.getVOModel().setValueObject(vo);
          organizationPanel.setMode(Consts.READONLY);
          organizationPanel.pull();
          tab.setEnabledAt(1,true);
          controlCompaniesCombo.setEnabled(false);
          controlSubjectType.setEnabled(false);
        }

        public void beforeLookupAction(ValueObject parentVO) {
          orgDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompaniesCombo.getValue());
          orgDataLocator.getLookupFrameParams().put(ApplicationConsts.SUBJECT_TYPE,ApplicationConsts.SUBJECT_ORGANIZATION);
        }

        public void forceValidate() {}

      });


      // call-out code lookup...
      callOutDataLocator.setGridMethodName("loadCallOuts");
      callOutDataLocator.setValidationMethodName("validateCallOutCode");
      controlCallOutCode.setLookupController(callOutController);
      controlCallOutCode.setControllerMethodName("getCallOuts");
      callOutController.setCodeSelectionWindow(callOutController.TREE_GRID_FRAME);
      callOutController.setLookupDataLocator(callOutDataLocator);
      callOutTreeLevelDataLocator.setServerMethodName("loadCompanyHierarchy");
      callOutDataLocator.setTreeDataLocator(callOutTreeLevelDataLocator);
      callOutController.setFrameTitle("call-outs");
      callOutController.setLookupValueObjectClassName("org.jallinone.scheduler.callouts.java.CallOutVO");
      callOutController.addLookup2ParentLink("callOutCodeSCH10", "callOutCodeSch10SCH03");
      callOutController.addLookup2ParentLink("descriptionSYS10", "callOutDescriptionSYS10");
      callOutController.setAllColumnVisible(false);
      callOutController.setVisibleColumn("callOutCodeSCH10", true);
      callOutController.setVisibleColumn("descriptionSYS10", true);
      callOutController.setPreferredWidthColumn("descriptionSYS10",250);
      callOutController.setFramePreferedSize(new Dimension(600,500));
      callOutDataLocator.setNodeNameAttribute("descriptionSYS10");
      callOutController.addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {
          DetailCallOutRequestVO vo = (DetailCallOutRequestVO)calloutPanel.getVOModel().getValueObject();
          vo.setDescriptionSCH03(vo.getCallOutDescriptionSYS10());
          calloutPanel.pull("descriptionSCH03");
        }

        public void beforeLookupAction(ValueObject parentVO) {
          DetailCallOutRequestVO vo = (DetailCallOutRequestVO)calloutPanel.getVOModel().getValueObject();
          if (vo.getCompanyCodeSys01SCH03()==null)
            vo.setCompanyCodeSys01SCH03((String)controlCompaniesCombo.getValue());
          callOutTreeLevelDataLocator.getTreeNodeParams().put(ApplicationConsts.PROGRESSIVE_HIE02,vo.getProgressiveHie02SCH10());
          callOutTreeLevelDataLocator.getTreeNodeParams().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01SCH03());
          callOutDataLocator.getLookupFrameParams().put(ApplicationConsts.PROGRESSIVE_HIE02,vo.getProgressiveHie02SCH10());
          callOutDataLocator.getLookupValidationParameters().put(ApplicationConsts.PROGRESSIVE_HIE02,vo.getProgressiveHie02SCH10());
          callOutDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01SCH03());
          callOutDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01SCH03());
        }

        public void forceValidate() {}

      });
View Full Code Here

Examples of org.jallinone.subjects.java.PeopleVO

    Response res = ClientUtils.getData("loadSubjectPerName",gridParams);
    if (!res.isError()) {
      java.util.List vos = ((VOListResponse)res).getRows();
      if (vos.size()==1) {
        // person found...
        PeopleVO vo = (PeopleVO)vos.get(0);
        peoplePanel.getVOModel().setValueObject(vo);
        peoplePanel.setMode(Consts.READONLY);
        peoplePanel.pull();
        tab.setEnabledAt(1,true);
        controlCompaniesCombo.setEnabled(false);
View Full Code Here

Examples of org.jallinone.subjects.java.PeopleVO

    peopleController.addLookupListener(new LookupListener() {

      public void codeValidated(boolean validated) {}

      public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {
        PeopleVO vo = (PeopleVO)peopleController.getLookupVO();
        controlName_1.setValue(vo.getName_1REG04());
        controlName_2.setValue(vo.getName_2REG04());
        filterPeopleButton.setValue(vo.getProgressiveREG04());
      }

      public void beforeLookupAction(ValueObject parentVO) {
//        peopleDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,empVO.getCompanyCodeSys01REG04());
        peopleDataLocator.getLookupFrameParams().put(ApplicationConsts.SUBJECT_TYPE,ApplicationConsts.SUBJECT_PEOPLE);
      }

      public void forceValidate() {}

    });


    // organization lookup...
    orgDataLocator.setGridMethodName("loadSubjectPerName");
    orgDataLocator.setValidationMethodName("");
    filterOrgButton.setLookupController(orgController);
    orgController.setLookupDataLocator(orgDataLocator);
    orgController.setFrameTitle("organizations");
    orgController.setLookupValueObjectClassName("org.jallinone.subjects.java.OrganizationVO");
//    orgController.addLookup2ParentLink("progressiveREG04","progressiveReg04SubjectSCH06");
//    orgController.addLookup2ParentLink("name_1REG04","subjectName_1SCH06");
//    orgController.addLookup2ParentLink("name_2REG04","subjectName_2SCH06");
    orgController.setAllColumnVisible(false);
    orgController.setVisibleColumn("name_1REG04", true);
    orgController.setVisibleColumn("addressREG04", true);
    orgController.setVisibleColumn("cityREG04", true);
    orgController.setVisibleColumn("provinceREG04", true);
    orgController.setVisibleColumn("countryREG04", true);
    orgController.setVisibleColumn("zipREG04", true);
    orgController.setHeaderColumnName("addressREG04", "address");
    orgController.setHeaderColumnName("cityREG04", "city");
    orgController.setHeaderColumnName("provinceREG04", "prov");
    orgController.setHeaderColumnName("countryREG04", "country");
    orgController.setHeaderColumnName("zipREG04", "zip");
    orgController.setPreferredWidthColumn("name_1REG04", 150);
    orgController.setPreferredWidthColumn("addressREG04", 200);
    orgController.setPreferredWidthColumn("provinceREG04", 50);
    orgController.setPreferredWidthColumn("zipREG04", 50);
    orgController.setFramePreferedSize(new Dimension(740,500));
    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.PeopleVO

    peopleController.addLookupListener(new LookupListener() {

      public void codeValidated(boolean validated) {}

      public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {
        PeopleVO vo = (PeopleVO)peopleController.getLookupVO();
        controlName_1.setValue(vo.getName_1REG04());
        controlName_2.setValue(vo.getName_2REG04());
        filterPeopleButton.setValue(vo.getProgressiveREG04());
      }

      public void beforeLookupAction(ValueObject parentVO) {
        peopleDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,empVO.getCompanyCodeSys01REG04());
        peopleDataLocator.getLookupFrameParams().put(ApplicationConsts.SUBJECT_TYPE,ApplicationConsts.SUBJECT_PEOPLE);
      }

      public void forceValidate() {}

    });


    // organization lookup...
    orgDataLocator.setGridMethodName("loadSubjectPerName");
    orgDataLocator.setValidationMethodName("");
    filterOrgButton.setLookupController(orgController);
    orgController.setLookupDataLocator(orgDataLocator);
    orgController.setFrameTitle("organizations");
    orgController.setLookupValueObjectClassName("org.jallinone.subjects.java.OrganizationVO");
    orgController.addLookup2ParentLink("progressiveREG04","progressiveReg04SubjectSCH06");
    orgController.addLookup2ParentLink("name_1REG04","subjectName_1SCH06");
    orgController.addLookup2ParentLink("name_2REG04","subjectName_2SCH06");
    orgController.setAllColumnVisible(false);
    orgController.setVisibleColumn("name_1REG04", true);
    orgController.setVisibleColumn("addressREG04", true);
    orgController.setVisibleColumn("cityREG04", true);
    orgController.setVisibleColumn("provinceREG04", true);
    orgController.setVisibleColumn("countryREG04", true);
    orgController.setVisibleColumn("zipREG04", true);
    orgController.setHeaderColumnName("addressREG04", "address");
    orgController.setHeaderColumnName("cityREG04", "city");
    orgController.setHeaderColumnName("provinceREG04", "prov");
    orgController.setHeaderColumnName("countryREG04", "country");
    orgController.setHeaderColumnName("zipREG04", "zip");
    orgController.setPreferredWidthColumn("name_1REG04", 150);
    orgController.setPreferredWidthColumn("addressREG04", 200);
    orgController.setPreferredWidthColumn("provinceREG04", 50);
    orgController.setPreferredWidthColumn("zipREG04", 50);
    orgController.setFramePreferedSize(new Dimension(740,500));
    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.PeopleVO

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

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

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