Package org.jallinone.scheduler.callouts.java

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


   * @param rowNumber selected row index
   * @param persistentObject v.o. related to the selected row
   */
  public void doubleClick(int rowNumber,ValueObject persistentObject) {
    // create call-out detail frame in READONLY mode...
    CallOutVO vo = (CallOutVO)persistentObject;
    CallOutPK pk = new CallOutPK(vo.getCompanyCodeSys01SCH10(),vo.getCallOutCodeSCH10());
    new CallOutController(frame,pk);
  }
View Full Code Here


   * @return an ErrorResponse value object in case of errors, VOResponse if the operation is successfully completed
   */
  public Response deleteRecords(ArrayList persistentObjects) throws Exception {
    ArrayList pks = new ArrayList();
    CallOutPK pk = null;
    CallOutVO vo = null;
    for(int i=0;i<persistentObjects.size();i++) {
      vo = (CallOutVO)persistentObjects.get(i);
      pk = new CallOutPK(vo.getCompanyCodeSys01SCH10(),vo.getCallOutCodeSCH10());
      pks.add(pk);
    }
    return ClientUtils.getData("deleteCallOuts",pks);
  }
View Full Code Here

   * @return an ErrorResponse value object in case of errors, VOResponse if the operation is successfully completed
   */
  public Response insertRecord(ValueObject newPersistentObject) throws Exception {
    Response res = ClientUtils.getData("insertCallOut",newPersistentObject);
    if (!res.isError()) {
      CallOutVO vo = (CallOutVO)((VOResponse)res).getVo();
      pk = new CallOutPK(vo.getCompanyCodeSys01SCH10(),vo.getCallOutCodeSCH10());
      if (parentFrame!=null) {
        parentFrame.getGrid().reloadCurrentBlockOfData();
      }

      frame.getTasksGrid().getOtherGridParams().put(
View Full Code Here

   * @param persistentObject value object to delete
   * @return an ErrorResponse value object in case of errors, VOResponse if the operation is successfully completed
   */
  public Response deleteRecord(ValueObject persistentObject) throws Exception {
    ArrayList pks = new ArrayList();
    CallOutVO vo = (CallOutVO)persistentObject;
    CallOutPK pk = new CallOutPK(vo.getCompanyCodeSys01SCH10(),vo.getCallOutCodeSCH10());
    pks.add(pk);
    Response res = ClientUtils.getData("deleteCallOuts",pks);
    if (!res.isError()) {
      if (parentFrame!=null) {
        parentFrame.getGrid().reloadCurrentBlockOfData();
View Full Code Here

   * @return an ErrorResponse value object in case of errors, VOResponse if the operation is successfully completed
   */
  public Response insertRecord(ValueObject newPersistentObject) throws Exception {
    Response res = ClientUtils.getData("insertCallOut",newPersistentObject);
    if (!res.isError()) {
      CallOutVO vo = (CallOutVO)((VOResponse)res).getVo();
      pk = new CallOutPK(vo.getCompanyCodeSys01SCH10(),vo.getCallOutCodeSCH10());
      if (parentFrame!=null) {
        parentFrame.getGrid().reloadCurrentBlockOfData();
      }

      frame.getTasksGrid().getOtherGridParams().put(
View Full Code Here

   * @param persistentObject value object to delete
   * @return an ErrorResponse value object in case of errors, VOResponse if the operation is successfully completed
   */
  public Response deleteRecord(ValueObject persistentObject) throws Exception {
    ArrayList pks = new ArrayList();
    CallOutVO vo = (CallOutVO)persistentObject;
    CallOutPK pk = new CallOutPK(vo.getCompanyCodeSys01SCH10(),vo.getCallOutCodeSCH10());
    pks.add(pk);
    Response res = ClientUtils.getData("deleteCallOuts",pks);
    if (!res.isError()) {
      if (parentFrame!=null) {
        parentFrame.getGrid().reloadCurrentBlockOfData();
View Full Code Here

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {}

        public void beforeLookupAction(ValueObject parentVO) {
          CallOutVO vo = (CallOutVO)formPanel.getVOModel().getValueObject();
          CallOutItemVO itemVO = (CallOutItemVO)itemsGrid.getVOListTableModel().getObjectForRow(itemsGrid.getSelectedRow());
          itemTreeLevelDataLocator.getTreeNodeParams().put(ApplicationConsts.PROGRESSIVE_HIE02,itemVO.getProgressiveHie02ITM01());
          itemTreeLevelDataLocator.getTreeNodeParams().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01SCH10());
          itemDataLocator.getLookupFrameParams().put(ApplicationConsts.PROGRESSIVE_HIE02,itemVO.getProgressiveHie02ITM01());
          itemDataLocator.getLookupValidationParameters().put(ApplicationConsts.PROGRESSIVE_HIE02,itemVO.getProgressiveHie02ITM01());
          itemDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01SCH10());
          itemDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01SCH10());
        }

        public void forceValidate() {}

      });



      // machineries lookup...
      macDataLocator.setGridMethodName("loadMachineries");
      macDataLocator.setValidationMethodName("validateMachineryCode");
      colMacCode.setLookupController(macController);
      colMacCode.setControllerMethodName("getMachineriesList");
      macController.setLookupDataLocator(macDataLocator);
      macController.setFrameTitle("machineries");
      macController.setLookupValueObjectClassName("org.jallinone.production.machineries.java.MachineryVO");
      macController.addLookup2ParentLink("machineryCodePRO03", "machineryCodePro03SCH13");
      macController.addLookup2ParentLink("descriptionSYS10", "descriptionSYS10");
      macController.setAllColumnVisible(false);
      macController.setVisibleColumn("machineryCodePRO03", true);
      macController.setVisibleColumn("descriptionSYS10", true);
      macController.addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {}

        public void beforeLookupAction(ValueObject parentVO) {
          CallOutVO vo = (CallOutVO)formPanel.getVOModel().getValueObject();
          macDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01SCH10());
          macDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01SCH10());
        }

        public void forceValidate() {}

      });
View Full Code Here

  /**
   * Callback method called when the data loading is completed.
   * @param error <code>true</code> if an error occours during data loading, <code>false</code> if data loading is successfully completed
   */
  public final void loadDataCompleted(boolean error,CallOutPK pk) {
    CallOutVO vo = (CallOutVO)formPanel.getVOModel().getValueObject();

    tasksGrid.getOtherGridParams().put(ApplicationConsts.CALL_OUT_PK,pk);
    tasksGrid.reloadData();

    macsGrid.getOtherGridParams().put(ApplicationConsts.CALL_OUT_PK,pk);
View Full Code Here

TOP

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

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.