Package org.jallinone.items.spareparts.java

Examples of org.jallinone.items.spareparts.java.SheetAttachedDocVO


  /**
   * Callback method invoked when the user has clicked on the insert button
   * @param valueObject empty value object just created: the user can manage it to fill some attribute values
   */
  public void createValueObject(ValueObject valueObject) throws Exception {
    SheetAttachedDocVO vo = (SheetAttachedDocVO)valueObject;
    String companyCode = (String)grid.getOtherGridParams().get(ApplicationConsts.COMPANY_CODE_SYS01);
    String sheetCode = (String)grid.getOtherGridParams().get(ApplicationConsts.ID);
    vo.setCompanyCodeSys01ITM26(companyCode);
    vo.setSheetCodeItm25ITM26(sheetCode);
  }
View Full Code Here


   * Callback method invoked when the user has double clicked on the selected row of the grid.
   * @param rowNumber selected row index
   * @param persistentObject v.o. related to the selected row
   */
  public void doubleClick(int rowNumber,ValueObject persistentObject) {
    SheetAttachedDocVO vo = (SheetAttachedDocVO)persistentObject;
    new DocumentController(
      null,
      new DocumentPK(vo.getCompanyCodeSys01ITM26(),vo.getProgressiveDoc14ITM26()),
      vo.getCompanyCodeSys01ITM26(),
      null
    );
  }
View Full Code Here

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {
          GridDocumentVO docVO = (GridDocumentVO)docController.getLookupVO();
          SheetAttachedDocVO vo = (SheetAttachedDocVO)parentVO;
          vo.setProgressiveDoc14ITM26(docVO.getProgressiveDOC14());
          vo.setProgressiveHie01ITM26(docVO.getProgressiveHie01DOC17());
          vo.setProgressiveHie02HIE01(docVO.getProgressiveHie02HIE01());
        }

        public void beforeLookupAction(ValueObject parentVO) {
          SheetAttachedDocVO vo = (SheetAttachedDocVO)parentVO;
          docDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01ITM26());
          docDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01ITM26());
          treeLevelDataLocator.getTreeNodeParams().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01ITM26());
          treeLevelDataLocator.getTreeNodeParams().put(ApplicationConsts.PROGRESSIVE_HIE02,vo.getProgressiveHie02HIE01());
        }

        public void forceValidate() {}

      });


      // set document types in doc.type column...
      Response res = ClientUtils.getData("loadDocumentTypes",new GridParams());
      Domain d = new Domain("DOC_TYPES_DOC16");
      if (!res.isError()) {
        DocumentTypeVO vo = null;
        java.util.List list = ((VOListResponse)res).getRows();
        for(int i=0;i<list.size();i++) {
          vo = (DocumentTypeVO)list.get(i);
          d.addDomainPair(vo.getProgressiveHie02DOC16(),vo.getDescriptionSYS10());
        }
      }
      colDocType.setDomain(d);
    }
    catch(Exception e) {
View Full Code Here

TOP

Related Classes of org.jallinone.items.spareparts.java.SheetAttachedDocVO

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.