Package org.jallinone.subjects.java

Examples of org.jallinone.subjects.java.SubjectPK


   * @param persistentObjects value objects to delete (related to the currently selected rows)
   * @return an ErrorResponse value object in case of errors, VOResponse if the operation is successfully completed
   */
  public Response deleteRecords(ArrayList persistentObjects) throws Exception {
    GridContactVO vo = (GridContactVO)persistentObjects.get(0);
    return ClientUtils.getData("deleteContact",new SubjectPK(vo.getCompanyCodeSys01REG04(),vo.getProgressiveREG04()));
  }
View Full Code Here


      ArrayList values = new ArrayList();

      if (gridParams.getOtherGridParams().get(ApplicationConsts.SUBJECT_PK)!=null) {
        sql += " and REG04_SUBJECTS.COMPANY_CODE_SYS01_REG04=? "+
        " and REG04_SUBJECTS.PROGRESSIVE_REG04=?";
        SubjectPK pk = (SubjectPK)gridParams.getOtherGridParams().get(ApplicationConsts.SUBJECT_PK);
        values.add(pk.getCompanyCodeSys01REG04());
        values.add(pk.getProgressiveREG04());
      }
      else {
        sql += " and REG04_SUBJECTS.SUBJECT_TYPE in (?,?)";
        values.add(ApplicationConsts.SUBJECT_ORGANIZATION_CONTACT);
        values.add(ApplicationConsts.SUBJECT_PEOPLE_CONTACT);
View Full Code Here

          ((GridContactVO)persistentObject).getProgressiveREG04(),
          ((GridContactVO)persistentObject).getName_1REG04(),
          ((GridContactVO)persistentObject).getName_2REG04(),
          ((GridContactVO)persistentObject).getSubjectTypeREG04()
        ),
        new SubjectPK(
          sub.getCompanyCodeSys01REG04(),
          sub.getProgressiveREG04()
        )
    );
  }
View Full Code Here

    if (super.beforeInsertGrid(grid)) {
      new ContactController(
          detailFrame.getController().getGridFrame(),
          null,
          new SubjectPK(
            sub.getCompanyCodeSys01REG04(),
            sub.getProgressiveREG04()
          )
      );
    }
View Full Code Here

   * @param persistentObjects value objects to delete (related to the currently selected rows)
   * @return an ErrorResponse value object in case of errors, VOResponse if the operation is successfully completed
   */
  public Response deleteRecords(ArrayList persistentObjects) throws Exception {
    GridContactVO vo = (GridContactVO)persistentObjects.get(0);
    return ClientUtils.getData("deleteContact",new SubjectPK(vo.getCompanyCodeSys01REG04(),vo.getProgressiveREG04()));
  }
View Full Code Here

    return "deleteContact";
  }


  public final Response executeCommand(Object inputPar,UserSessionParameters userSessionPars,HttpServletRequest request, HttpServletResponse response,HttpSession userSession,ServletContext context) {
    SubjectPK vo = (SubjectPK)inputPar;
    try {

      Contacts bean = (Contacts)JAIOBeanFactory.getInstance().getBean(Contacts.class);
      Response answer = bean.deleteContact(vo,((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername());
View Full Code Here

   * @param error <code>true</code> if an error occours during data loading, <code>false</code> if data loading is successfully completed
   */
  public void loadDataCompleted(boolean error) {
    detailFrame.getReferencesPanel().getGrid().getOtherGridParams().put(
        ApplicationConsts.SUBJECT_PK,
        new SubjectPK(pk.getCompanyCodeSys01SAL07(),pk.getProgressiveReg04SAL07())
    );
    detailFrame.getReferencesPanel().getGrid().reloadData();
    detailFrame.getHierarchiesPanel().getGrid().getOtherGridParams().put(
        ApplicationConsts.SUBJECT_PK,
        new SubjectPK(pk.getCompanyCodeSys01SAL07(),pk.getProgressiveReg04SAL07())
    );
    detailFrame.getHierarchiesPanel().getGrid().getOtherGridParams().put(
        ApplicationConsts.SUBJECT_TYPE,
        ApplicationConsts.SUBJECT_ORGANIZATION_CUSTOMER
    );
    try {
      detailFrame.getHierarchiesPanel().getGrid().setMode(Consts.READONLY);
      detailFrame.getHierarchiesPanel().getGrid().reloadData();
    }
    catch (Exception ex) {
    }

    detailFrame.getDiscountsGrid().getOtherGridParams().put(
        ApplicationConsts.SUBJECT_PK,
        pk
    );
    detailFrame.getDiscountsGrid().reloadData();

    detailFrame.getDestGrid().getOtherGridParams().put(
        ApplicationConsts.SUBJECT_PK,
        new SubjectPK(pk.getCompanyCodeSys01SAL07(),pk.getProgressiveReg04SAL07())
    );
    detailFrame.getDestGrid().reloadData();

    detailFrame.getAgentDataLocator().getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,pk.getCompanyCodeSys01SAL07());
    detailFrame.getAgentDataLocator().getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,pk.getCompanyCodeSys01SAL07());
View Full Code Here

        sub.getSubjectTypeREG04()
      );
//      gridFrame.reloadData();
      detailFrame.getReferencesPanel().getGrid().getOtherGridParams().put(
          ApplicationConsts.SUBJECT_PK,
          new SubjectPK(pk.getCompanyCodeSys01SAL07(),pk.getProgressiveReg04SAL07())
      );
      detailFrame.getReferencesPanel().getGrid().reloadData();
      detailFrame.getHierarchiesPanel().getGrid().getOtherGridParams().put(
          ApplicationConsts.SUBJECT_PK,
          new SubjectPK(pk.getCompanyCodeSys01SAL07(),pk.getProgressiveReg04SAL07())
      );
      detailFrame.getHierarchiesPanel().getGrid().getOtherGridParams().put(
          ApplicationConsts.SUBJECT_TYPE,
          ApplicationConsts.SUBJECT_ORGANIZATION_CUSTOMER
      );
      detailFrame.getHierarchiesPanel().getGrid().reloadData();

      detailFrame.getDiscountsGrid().getOtherGridParams().put(
          ApplicationConsts.SUBJECT_PK,
          pk
      );
      detailFrame.getDiscountsGrid().reloadData();

      detailFrame.getDestGrid().getOtherGridParams().put(
          ApplicationConsts.SUBJECT_PK,
          new SubjectPK(pk.getCompanyCodeSys01SAL07(),pk.getProgressiveReg04SAL07())
      );
      detailFrame.getDestGrid().reloadData();

      detailFrame.getActivitiesGrid().getOtherGridParams().put(ApplicationConsts.COMPANY_CODE_SYS01,pk.getCompanyCodeSys01SAL07());
      detailFrame.getActivitiesGrid().getOtherGridParams().put(ApplicationConsts.PROGRESSIVE_REG04_SUBJECT,pk.getProgressiveReg04SAL07());
View Full Code Here

TOP

Related Classes of org.jallinone.subjects.java.SubjectPK

Copyright © 2018 www.massapicom. 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.