Examples of BaseClass


Examples of realcix20.classes.basic.BaseClass

                Vector names = new Vector();
                names.add(TxtManager.getTxt("VIEW.I18NMAINTAINDIALOG.TABLE.I18NID"));
                names.add(TxtManager.getTxt("VIEW.I18NMAINTAINDIALOG.TABLE.REFLANGTXT"));
                names.add(TxtManager.getTxt("VIEW.I18NMAINTAINDIALOG.TABLE.WORKLANGTXT"));
                Vector dataValues = new Vector();
                BaseClass object = container.getCurrentObject();
                Column pkColumn = (Column)object.getPkColumns().get(0);
                Iterator rowsIter = object.getRows().iterator();
                while (rowsIter.hasNext()) {
                    Vector rowDatas = new Vector();
                    Row row = (Row)rowsIter.next();
                    String i18nID = ObjectUtil.findNewCell(row, pkColumn.getTableName(), pkColumn.getColumnName()).getColumnValue().toString();
                    if (!isI18NIDAdded(i18nID, dataValues)) {
View Full Code Here

Examples of realcix20.classes.basic.BaseClass

    }
   
    private void saveObjectToDB() {
       
            Row mainRow = container.getCurrentRow();
            BaseClass object = container.getObject();
            String action = container.getAction();
           
            //make childRow primaryKey equals to mainRow primaryKey
            Iterator childRowIter = mainRow.getRowSet().getRows().iterator();
            while (childRowIter.hasNext()) {
                Row childRow = (Row)childRowIter.next();
                if (childRow != mainRow) {
                    Iterator childRowCellIter = childRow.getNewCells().iterator();                   
                    while (childRowCellIter.hasNext()) {
                        Cell childRowCell = (Cell)childRowCellIter.next();                     
                        Column tColumn = ObjectUtil.findColumn(container.getObject(), childRowCell.getTableName(), childRowCell.getColumnName());
                        if ( (tColumn.isPrimaryKey()) && (tColumn.getTableName().equals(container.getObject().getChildTableName())) ) {
                            Cell mainRowCell = ObjectUtil.findNewCell(mainRow, container.getObject().getMainTableName(), childRowCell.getColumnName());
                            if (mainRowCell != null)
                                childRowCell.setColumnValue(mainRowCell.getColumnValue());
                        }
                        /*if ( (tColumn.getTableName().equals("PA")) && (tColumn.getColumnName().equals("PUBKEY")) )
                            childRowCell.setColumnValue(null);
                        if ( (tColumn.getTableName().equals("PA")) && (tColumn.getColumnName().equals("PRIKEY")) )
                            childRowCell.setColumnValue(null);*/
                    }
                }
            }
           
            if (action.equals("Add"))
                object.classInsert_WholeObject(mainRow, false);
            else if (action.equals("Edit"))
                object.classUpdate_WholeObject(mainRow, false);
       
    }
View Full Code Here

Examples of realcix20.classes.basic.BaseClass

   
    public void showHelpFrame() {
       
            if (GlobalValueManager.getValue("APPLICATION.HELPSHOWING").equals("FALSE")) {
                GlobalValueManager.setValue("APPLICATION.HELPSHOWING", "TRUE");
                BaseClass object = container.getObject();
                if (container.getContainer().getListener().getHelpFrame() != null) {
                    container.getContainer().getListener().getHelpFrame().dispose();
                    container.getContainer().getListener().setHelpFrame(null);
                }
                container.getContainer().getListener().setHelpFrame(new HelpView(object.getClsId()));
            } else {
                if (container.getContainer().getListener().getHelpFrame() != null) {
                    container.getContainer().getListener().getHelpFrame().dispose();
                    container.getContainer().getListener().setHelpFrame(null);
                }
                BaseClass object = container.getObject();
                container.getContainer().getListener().setHelpFrame(new HelpView(object.getClsId()));
            }
       
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.