Package org.jallinone.system.customizations.java

Examples of org.jallinone.system.customizations.java.WindowCustomizationVO


    // retrieve customized input controls list...
    ClientApplet applet = ( (ApplicationClientFacade) MDIFrame.getInstance().getClientFacade()).getMainClass();
    ArrayList cols = applet.getAuthorizations().getCustomizedWindows().getCustomizedFields(progressiveSYS13);
    if (cols.size() > 0) {
      // adding customized columns...
      WindowCustomizationVO inputControlInfo = null;
      TextColumn textColumn = null;
      DateColumn dateColumn = null;
      DecimalColumn decColumn = null;
      IntegerColumn intColumn = null;
      int w = 0;
      for (int i = 0; i < cols.size(); i++) {
        inputControlInfo = (WindowCustomizationVO) cols.get(i);
        if (inputControlInfo.getColumnTypeSYS12().equals("S")) {
          textColumn = new TextColumn();
          textColumn.setHeaderColumnName(inputControlInfo.getDescriptionSYS10());
          textColumn.setColumnName(inputControlInfo.getAttributeNameSYS12());
          textColumn.setMaxCharacters(inputControlInfo.getColumnSizeSYS12().intValue());
          textColumn.setColumnRequired(false);
          textColumn.setColumnFilterable(true);
          textColumn.setEditableOnEdit(true);
          textColumn.setEditableOnInsert(true);
          textColumn.setColumnSortable(true);
          grid.getColumnContainer().add(textColumn,null);
        }
        else if (inputControlInfo.getColumnTypeSYS12().equals("D")) {
          dateColumn = new DateColumn();
          dateColumn.setHeaderColumnName(inputControlInfo.getDescriptionSYS10());
          dateColumn.setColumnName(inputControlInfo.getAttributeNameSYS12());
          dateColumn.setColumnRequired(false);
          dateColumn.setColumnFilterable(true);
          dateColumn.setEditableOnEdit(true);
          dateColumn.setEditableOnInsert(true);
          dateColumn.setColumnSortable(true);
          grid.getColumnContainer().add(dateColumn,null);
        }
        else if (inputControlInfo.getColumnTypeSYS12().equals("N") &&
                 inputControlInfo.getColumnDecSYS12() != null &&
                 inputControlInfo.getColumnDecSYS12().intValue()>0) {
          decColumn = new DecimalColumn();
          decColumn.setHeaderColumnName(inputControlInfo.getDescriptionSYS10());
          decColumn.setColumnName(inputControlInfo.getAttributeNameSYS12());
          decColumn.setColumnRequired(false);
          decColumn.setColumnFilterable(true);
          decColumn.setEditableOnEdit(true);
          decColumn.setEditableOnInsert(true);
          decColumn.setColumnSortable(true);
          decColumn.setDecimals(inputControlInfo.getColumnDecSYS12().intValue());
          decColumn.setMaxValue(Math.pow(10d,inputControlInfo.getColumnSizeSYS12().doubleValue()) - 1);
          grid.getColumnContainer().add(decColumn,null);
        }
        else if (inputControlInfo.getColumnTypeSYS12().equals("N") &&
                 (inputControlInfo.getColumnDecSYS12() == null ||
                  inputControlInfo.getColumnDecSYS12().intValue()==0)) {
          intColumn = new IntegerColumn();
          intColumn.setHeaderColumnName(inputControlInfo.getDescriptionSYS10());
          intColumn.setColumnName(inputControlInfo.getAttributeNameSYS12());
          intColumn.setColumnRequired(false);
          intColumn.setColumnFilterable(true);
          intColumn.setEditableOnEdit(true);
          intColumn.setEditableOnInsert(true);
          intColumn.setColumnSortable(true);
View Full Code Here


    // retrieve customized input controls list...
    ClientApplet applet = ( (ApplicationClientFacade) MDIFrame.getInstance().getClientFacade()).getMainClass();
    ArrayList cols = applet.getAuthorizations().getCustomizedWindows().getCustomizedFields(progressiveSYS13);
    if (cols.size() > 0) {
      // adding customized columns...
      WindowCustomizationVO inputControlInfo = null;
      TextColumn textColumn = null;
      DateColumn dateColumn = null;
      DecimalColumn decColumn = null;
      IntegerColumn intColumn = null;
      int w = 0;
      for (int i = 0; i < cols.size(); i++) {
        inputControlInfo = (WindowCustomizationVO) cols.get(i);
        controller.setVisibleColumn(inputControlInfo.getAttributeNameSYS12(),true);
        controller.setHeaderColumnName(inputControlInfo.getAttributeNameSYS12(),inputControlInfo.getDescriptionSYS10());
        controller.setSortableColumn(inputControlInfo.getAttributeNameSYS12(),true);
      }
      controller.setFramePreferedSize(new Dimension(
          Math.min(850,controller.getFramePreferedSize().width+105*cols.size()),
          controller.getFramePreferedSize().height
      ));
View Full Code Here

        "SYS13_WINDOWS.PROGRESSIVE=SYS12_WINDOW_CUSTOMIZATIONS.PROGRESSIVE_SYS13 and "+
        "SYS10_TRANSLATIONS.LANGUAGE_CODE='"+langId+"' and "+
        "SYS12_WINDOW_CUSTOMIZATIONS.PROGRESSIVE_SYS10=SYS10_TRANSLATIONS.PROGRESSIVE "+
        "order by SYS12_WINDOW_CUSTOMIZATIONS.PROGRESSIVE_SYS13,SYS12_WINDOW_CUSTOMIZATIONS.PROGRESSIVE_SYS10"
      );
      WindowCustomizationVO vo = null;
      while(rset.next()) {
        vo = new WindowCustomizationVO();
        vo.setProgressiveSys13SYS12(rset.getBigDecimal(1));
        vo.setColumnNameSYS12(rset.getString(2));
        vo.setColumnTypeSYS12(rset.getString(3));
        vo.setColumnSizeSYS12(rset.getBigDecimal(4));
        vo.setColumnDecSYS12(rset.getBigDecimal(5));
        vo.setProgressiveSys10SYS12(rset.getBigDecimal(6));
        vo.setAttributeNameSYS12(rset.getString(7));
        vo.setDescriptionSYS10(rset.getString(8));
        vo.setTableNameSYS13(rset.getString(9));
        cust.addWindowCustomization(vo);
      }
      rset.close();

      return cust;
View Full Code Here

  if (list==null)
    list = new ArrayList();

    String select = baseSQL.substring(0,baseSQL.toLowerCase().indexOf(" from "));
    String otherSQL = baseSQL.substring(baseSQL.toLowerCase().indexOf(" from "));
    WindowCustomizationVO vo = null;
    for(int i=0;i<list.size();i++) {
      vo = (WindowCustomizationVO)list.get(i);
      attribute2dbField.put(
          vo.getAttributeNameSYS12(),
          vo.getTableNameSYS13()+"."+vo.getColumnNameSYS12()
      );
      select += ","+vo.getTableNameSYS13()+"."+vo.getColumnNameSYS12();
    }
    baseSQL = select+otherSQL;

    return QueryUtil.getQuery(
      conn,
View Full Code Here

    list = new ArrayList();

    String select = baseSQL.substring(0,baseSQL.toLowerCase().indexOf(" from "));
    String otherSQL = baseSQL.substring(baseSQL.toLowerCase().indexOf(" from "));

    WindowCustomizationVO vo = null;
    for(int i=0;i<list.size();i++) {
      vo = (WindowCustomizationVO)list.get(i);
      attribute2dbField.put(
          vo.getAttributeNameSYS12(),
          vo.getTableNameSYS13()+"."+vo.getColumnNameSYS12()
      );
      select += ","+vo.getTableNameSYS13()+"."+vo.getColumnNameSYS12();
    }
    baseSQL = select+otherSQL;

    return QueryUtil.getQuery(
      conn,
View Full Code Here

      list = new ArrayList();

    String select = baseSQL.substring(0,baseSQL.toLowerCase().indexOf(" from "));
    String otherSQL = baseSQL.substring(baseSQL.toLowerCase().indexOf(" from "));

    WindowCustomizationVO vo = null;
    for(int i=0;i<list.size();i++) {
      vo = (WindowCustomizationVO)list.get(i);
      attribute2dbField.put(
          vo.getAttributeNameSYS12(),
          vo.getTableNameSYS13()+"."+vo.getColumnNameSYS12()
      );
      select += ","+vo.getTableNameSYS13()+"."+vo.getColumnNameSYS12();
    }
    baseSQL = select+otherSQL;

    return QueryUtil.getQuery(
      conn,
View Full Code Here

       ArrayList list
   ) throws Exception {
  if (list==null)
    list = new ArrayList();

    WindowCustomizationVO winVO = null;
    for(int i=0;i<list.size();i++) {
      winVO = (WindowCustomizationVO)list.get(i);
      attribute2dbField.put(
          winVO.getAttributeNameSYS12(),
          winVO.getColumnNameSYS12()
      );
    }

    return org.jallinone.commons.server.QueryUtilExtension.insertTable(
       conn,
View Full Code Here

      ArrayList list
  ) throws Exception {
  if (list==null)
    list = new ArrayList();

    WindowCustomizationVO winVO = null;
    for(int i=0;i<list.size();i++) {
      winVO = (WindowCustomizationVO)list.get(i);
      attribute2dbField.put(
          winVO.getAttributeNameSYS12(),
          winVO.getColumnNameSYS12()
      );
    }

    return org.jallinone.commons.server.QueryUtilExtension.updateTable(
        conn,
View Full Code Here

TOP

Related Classes of org.jallinone.system.customizations.java.WindowCustomizationVO

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.