Package org.jallinone.scheduler.callouts.java

Examples of org.jallinone.scheduler.callouts.java.DetailCallOutRequestVO


   * This method must be overridden by the subclass to retrieve data and return the valorized value object.
   * @param valueObjectClass value object class
   * @return a VOResponse object if data loading is successfully completed, or an ErrorResponse object if an error occours
   */
  public Response loadData(Class valueObjectClass) {
    DetailCallOutRequestVO vo = (DetailCallOutRequestVO)frame.getCalloutPanel().getVOModel().getValueObject();
    return ClientUtils.getData("loadScheduledActivity",new ScheduledActivityPK(vo.getCompanyCodeSys01SCH03(),vo.getProgressiveSch06SCH03()));
  }
View Full Code Here


   * Method called by the Form panel to insert new data.
   * @param newValueObject value object to save
   * @return an ErrorResponse value object in case of errors, VOResponse if the operation is successfully completed
   */
  public Response insertRecord(ValueObject newPersistentObject) throws Exception {
    DetailCallOutRequestVO vo = (DetailCallOutRequestVO)frame.getCalloutPanel().getVOModel().getValueObject();
    vo.setScheduledActivityVO((ScheduledActivityVO)newPersistentObject);
    vo.getScheduledActivityVO().setCompanyCodeSys01SCH06(vo.getCompanyCodeSys01SCH03());
    Response response = ClientUtils.getData("linkScheduledActivityToCallOutRequest",vo);
    if (!response.isError()) {
      vo = (DetailCallOutRequestVO)((VOResponse)response).getVo();
      response = new VOResponse(vo.getScheduledActivityVO());

      frame.getResourcesPanel().setActVO(vo.getScheduledActivityVO());
      frame.getCalloutPanel().getVOModel().setValueObject(vo);
      frame.getConfirmButton().setEnabled(false);
      frame.getInvoiceButton().setEnabled(false);
    }
    return response;
View Full Code Here

      frame.getResourcesPanel().getItemsGrid().clearData();
      frame.getResourcesPanel().getMacsGrid().clearData();
      frame.getResourcesPanel().getDocsGrid().clearData();
      frame.getResourcesPanel().getTasksGrid().clearData();

      DetailCallOutRequestVO detVO = (DetailCallOutRequestVO)frame.getCalloutPanel().getVOModel().getValueObject();
      detVO.setProgressiveSch06SCH03(null);
      frame.getConfirmButton().setEnabled(true);
      frame.getActPanel().getConfirmButton().setEnabled(false);
      frame.getInvoiceButton().setEnabled(false);
    }
View Full Code Here

   * Callback method called by the Form panel when the Form is set to INSERT mode.
   * The method can pre-set some v.o. attributes, so that some input controls will have a predefined value associated.
   * @param persistentObject new value object
   */
  public void createPersistentObject(ValueObject PersistentObject) throws Exception {
    DetailCallOutRequestVO vo = (DetailCallOutRequestVO)frame.getCalloutPanel().getVOModel().getValueObject();
    ScheduledActivityVO actVO = (ScheduledActivityVO)frame.getActPanel().getVOModel().getValueObject();
    actVO.setCompanyCodeSys01SCH06(vo.getCompanyCodeSys01SCH03());
    actVO.setPrioritySCH06(ApplicationConsts.PRIORITY_NORMAL);
    actVO.setCompletionPercSCH06(new BigDecimal(0));
    Calendar cal = Calendar.getInstance();
    actVO.setEstimatedDurationSCH06(new BigDecimal(60));
    actVO.setEstimatedEndDateSCH06(new java.sql.Timestamp(cal.getTimeInMillis()+3600000L));
    actVO.setProgressiveReg04SubjectSCH06(vo.getProgressiveReg04SCH03());
    actVO.setStartDateSCH06(new java.sql.Timestamp(cal.getTimeInMillis()));
    actVO.setActivityStateSCH06(ApplicationConsts.OPENED);
    actVO.setActivityTypeSCH06(ApplicationConsts.ACT_CALL_OUT);
    actVO.setDescriptionSCH06(vo.getDescriptionSCH03());

  }
View Full Code Here

TOP

Related Classes of org.jallinone.scheduler.callouts.java.DetailCallOutRequestVO

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.