Package org.openswing.swing.domains.java

Examples of org.openswing.swing.domains.java.Domain


      // set domain in combo box...
      ClientApplet applet = ( (ApplicationClientFacade) MDIFrame.getInstance().getClientFacade()).getMainClass();
      ButtonCompanyAuthorizations bca = applet.getAuthorizations().getCompanyBa();
      ArrayList companiesList = bca.getCompaniesList("INVENTORY_LIST");
      Domain domain = new Domain("DOMAIN_INVENTORY_LIST");
      for (int i = 0; i < companiesList.size(); i++) {
        if (applet.getAuthorizations().getCompanyBa().isInsertEnabled(
            "INVENTORY_LIST",companiesList.get(i).toString()
        ))
          domain.addDomainPair(companiesList.get(i),companiesList.get(i).toString());
      }
      controlCompaniesCombo.setDomain(domain);


      Domain domainState = new Domain("DOMAIN_INVENTORY_STATE");
      domainState.addDomainPair(ApplicationConsts.OPENED,"opened");
      domainState.addDomainPair(ApplicationConsts.CONFIRMED,"items confirmed");
      domainState.addDomainPair(ApplicationConsts.CLOSED,"closed");
      domainState.addDomainPair(ApplicationConsts.IN_PROGRESS,"in progress");
      colState.setDomain(domainState);


      MDIFrame.add(this);
View Full Code Here


  private void jbInit() throws Exception {
    warehousePanel.setVOClassName("org.jallinone.warehouse.java.InventoryVO");
    warehousePanel.setFunctionId("INVENTORY_LIST");

    // define item type domain...
    Domain d = new Domain("ITEM_TYPE_WAR06");
    d.addDomainPair(ApplicationConsts.ITEM_GOOD,"good item");
    d.addDomainPair(ApplicationConsts.ITEM_DAMAGED,"damaged item");


    this.setTitle(ClientSettings.getInstance().getResources().getResource("inventories list"));
    labelWarehouseCode.setText("warehouseCodeWAR01");
View Full Code Here

    });


    // (product) item type...
    Domain d = new Domain("ITEM_TYPES");
    Response res = ClientUtils.getData("loadItemTypes",new GridParams());
    if (!res.isError()) {
      ItemTypeVO vo = null;
      java.util.List list = ((VOListResponse)res).getRows();
      for(int i=0;i<list.size();i++) {
        vo = (ItemTypeVO)list.get(i);
        d.addDomainPair(vo.getProgressiveHie02ITM02(),vo.getDescriptionSYS10());
      }
    }
    colItemType.setDomain(d);
    colItemType.addItemListener(new ItemListener() {
      public void itemStateChanged(ItemEvent e) {
View Full Code Here

   * Retrieve item types and fill in the item types combo box and
   * set buttons disabilitation...
   */
  private void init() {
    Response res = ClientUtils.getData("loadItemTypes",new GridParams());
    final Domain d = new Domain("ITEM_TYPES");
    if (!res.isError()) {
      ItemTypeVO vo = null;
      java.util.List list = ((VOListResponse)res).getRows();
      for(int i=0;i<list.size();i++) {
        vo = (ItemTypeVO)list.get(i);
        d.addDomainPair(vo.getProgressiveHie02ITM02(),vo.getDescriptionSYS10());
      }
    }
    controlItemType.setDomain(d);
    controlItemType.getComboBox().addItemListener(new ItemListener() {
      public void itemStateChanged(ItemEvent e) {
        if (e.getStateChange()==e.SELECTED && detailPanel.getMode()!=Consts.READONLY) {
          DetailPurchaseDocRowVO vo = (DetailPurchaseDocRowVO)detailPanel.getVOModel().getValueObject();
          vo.setItemCodeItm01DOC07(null);
          vo.setDescriptionSYS10(null);
          vo.setUmCodePur02DOC07(null);
          vo.setVatCodeItm01DOC07(null);
          vo.setVatDescriptionDOC07(null);
          vo.setDeductibleReg01DOC07(null);
          vo.setValueReg01DOC07(null);
          vo.setValuePur04DOC07(null);
          vo.setQtyDOC07(null);

          int selIndex = ((JComboBox)e.getSource()).getSelectedIndex();
          Object selValue = d.getDomainPairList()[selIndex].getCode();
          treeLevelDataLocator.getTreeNodeParams().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01DOC07());
          treeLevelDataLocator.getTreeNodeParams().put(ApplicationConsts.PROGRESSIVE_HIE02,selValue);
        }
      }
    });
View Full Code Here

TOP

Related Classes of org.openswing.swing.domains.java.Domain

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.