Package org.jallinone.production.manufactures.java

Examples of org.jallinone.production.manufactures.java.ManufactureVO


        public void codeValidated(boolean validated) {}

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

        public void beforeLookupAction(ValueObject parentVO) {
          ManufactureVO vo = (ManufactureVO)grid.getVOListTableModel().getObjectForRow(grid.getSelectedRow());
          altController.getLookupDataLocator().getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01PRO01());
          altController.getLookupDataLocator().getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01PRO01());
        }

        public void forceValidate() {}

      });


      // operation code lookup...
      opDataLocator.setGridMethodName("loadOperations");
      opDataLocator.setValidationMethodName("validateOperationCode");
      colOpCod.setLookupController(opController);
      colOpCod.setControllerMethodName("getOperationsList");
      opController.setLookupDataLocator(opDataLocator);
      opController.setFrameTitle("operations");
      opController.setLookupValueObjectClassName("org.jallinone.production.manufactures.java.OperationVO");
      opController.addLookup2ParentLink("operationCodePRO04", "operationCodePro04PRO02");
      opController.addLookup2ParentLink("descriptionSYS10", "descriptionSYS10");
      opController.addLookup2ParentLink("qtyPRO04", "qtyPRO02");
      opController.addLookup2ParentLink("durationPRO04", "durationPRO02");
      opController.addLookup2ParentLink("notePRO04", "notePRO02");
      opController.addLookup2ParentLink("taskCodeReg07PRO04", "taskCodeReg07PRO02");
      opController.addLookup2ParentLink("taskDescriptionSYS10", "taskDescriptionSYS10");
      opController.addLookup2ParentLink("machineryCodePro03PRO04", "machineryCodePro03PRO02");
      opController.addLookup2ParentLink("machineryDescriptionSYS10", "machineryDescriptionSYS10");
      opController.addLookup2ParentLink("valuePRO04", "valuePRO02");
      opController.setAllColumnVisible(false);
      opController.setVisibleColumn("operationCodePRO04", true);
      opController.setVisibleColumn("descriptionSYS10", true);
      opController.setPreferredWidthColumn("descriptionSYS10", 200);
      opController.setFramePreferedSize(new Dimension(350,500));
      opController.addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

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

        public void beforeLookupAction(ValueObject parentVO) {
          ManufactureVO vo = (ManufactureVO)grid.getVOListTableModel().getObjectForRow(grid.getSelectedRow());
          opController.getLookupDataLocator().getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01PRO01());
          opController.getLookupDataLocator().getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01PRO01());
        }

        public void forceValidate() {}

      });


      // task lookup...
      taskDataLocator.setGridMethodName("loadTasks");
      taskDataLocator.setValidationMethodName("validateTaskCode");
      colTaskCode.setLookupController(taskController);
      colTaskCode.setControllerMethodName("getTasksList");
      taskController.setLookupDataLocator(taskDataLocator);
      taskController.setFrameTitle("tasks");
      taskController.setLookupValueObjectClassName("org.jallinone.registers.task.java.TaskVO");
      taskController.addLookup2ParentLink("taskCodeREG07", "taskCodeReg07PRO02");
      taskController.addLookup2ParentLink("descriptionSYS10","taskDescriptionSYS10");
      taskController.setAllColumnVisible(false);
      taskController.setVisibleColumn("taskCodeREG07", true);
      taskController.setVisibleColumn("descriptionSYS10", true);
      taskController.addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

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

        public void beforeLookupAction(ValueObject parentVO) {
          ManufacturePhaseVO vo = (ManufacturePhaseVO)parentVO;
          taskDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01PRO02());
          taskDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01PRO02());
        }

        public void forceValidate() {}

      });
      new CustomizedColumns(new BigDecimal(192),taskController);


      // machineries lookup...
       macDataLocator.setGridMethodName("loadMachineries");
       macDataLocator.setValidationMethodName("validateMachineryCode");
       colMachCode.setLookupController(macController);
       colMachCode.setControllerMethodName("getMachineriesList");
       macController.setLookupDataLocator(macDataLocator);
       macController.setFrameTitle("machineries");
       macController.setLookupValueObjectClassName("org.jallinone.production.machineries.java.MachineryVO");
       macController.addLookup2ParentLink("machineryCodePRO03", "machineryCodePro03PRO02");
       macController.addLookup2ParentLink("descriptionSYS10", "machineryDescriptionSYS10");
       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) {
           ManufacturePhaseVO vo = (ManufacturePhaseVO)parentVO;
           macDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01PRO02());
           macDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01PRO02());
         }

         public void forceValidate() {}

       });
View Full Code Here


     if (res.isError())
       throw new Exception(res.getErrorMessage());
     DetailItemVO itemVO = (DetailItemVO)((VOResponse)res).getVo();

     // retrieve manufacture operations and insert them to DOC26...
     ManufactureVO manVO = new ManufactureVO();
     manVO.setCompanyCodeSys01PRO01(itemVO.getCompanyCodeSys01ITM01());
     manVO.setManufactureCodePRO01(itemVO.getManufactureCodePro01ITM01());
     GridParams gridParams = new GridParams();
     gridParams.getOtherGridParams().put(ApplicationConsts.MANUFACTURE_VO,manVO);
     res = ops.loadManufacturePhases(gridParams,serverLanguageId,username,new ArrayList());
     if (res.isError())
       throw new Exception(res.getErrorMessage());
View Full Code Here

TOP

Related Classes of org.jallinone.production.manufactures.java.ManufactureVO

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.