Package realcix20.classes.basic

Examples of realcix20.classes.basic.Cell


  private boolean needBaseAMT2() {

    boolean result = false;

    Cell newCell = ObjectUtil.findNewCell(selectedRow, "TAX", "TAXT");
    String taxt = (String) newCell.getColumnValue();
    DAO dao = DAO.getInstance();
    dao.query(Resources.SELECT_FROM_TAXT_SQL);
    dao.setString(1, taxt);
    ResultSet rs = dao.executeQuery();
    try {
View Full Code Here


                         * these will be resolved in next version
                         */
                        if(value.toString().indexOf('-')!=-1){
                          value=value.toString().substring(0,value.toString().indexOf('-')).trim();
                        }
                        Cell cell = new Cell(tableName, columnName, value);                       
                        values.add(cell);
                    }
                    Row selectedRow = new Row(values, getCurrentObject().getRowType());
                    getCurrentObject().loadChilds(selectedRow);                   
                    ItemTableModel imodel = new ItemTableModel(getCurrentObject(), selectedRow);
View Full Code Here

                while (columnIter.hasNext()) {
                    Column column = (Column)columnIter.next();
                    if (column.isHeadField()) {
                        sb.append(column.toString() + " --- ");
                        for (int k = 0; k < cells.size(); k++) {
                            Cell cell = (Cell)cells.get(k);
                            if ((cell.getColumnName().equals(column.getColumnName())) && (cell.getTableName().equals(column.getTableName()))) {
                                if (cell.getColumnValue() != null)
                                    sb.append(cell.getColumnValue());
                                sb.append("\n");
                                break;
                            }
                        }
                    }
                }
                sb.append("\n");
                boolean hasItemTableField = false;
                columnIter = getCurrentObject().getColumns().iterator();
                while (columnIter.hasNext()) {
                    Column column = (Column)columnIter.next();
                    if (column.isItemTableField()) {
                        hasItemTableField = true;
                        sb.append(column.toString() + "\t");
                    }
                }
                sb.append("\n");
                if (hasItemTableField) {
                    RowSet rowSet = row.getRowSet();
                    Iterator rowIter = rowSet.getRows().iterator();
                    while (rowIter.hasNext()) {
                        Row tempRow = (Row)rowIter.next();
                        Iterator cellIter = tempRow.getNewCells().iterator();
                        while (cellIter.hasNext()) {
                            Cell cell = (Cell)cellIter.next();
                            columnIter = getCurrentObject().getColumns().iterator();
                            while (columnIter.hasNext()) {
                                Column column = (Column)columnIter.next();
                                if ( (column.isItemTableField()) && (column.getTableName().equals(cell.getTableName()))
                                    && (column.getColumnName().equals(cell.getColumnName())) ) {
                                    if (cell.getColumnValue() != null) {
                                        sb.append(cell.getColumnValue() + "\t");
                                    }
                                }
                            }
                        }
                        sb.append("\n");
View Full Code Here

                    }
                    columnIter = object.getColumns().iterator();               
                    while (columnIter.hasNext()) {
                        Column column = (Column)columnIter.next();
                        if (column.isIndexField()) {                       
                            Cell newCell = ObjectUtil.findNewCell(row, column.getTableName(), column.getColumnName());
                            if (column.getInputType() == 4) {
                                rowDatas.add("*****");
                            }
                            else if (column.isI18N()) {
                                String i18nString = null;
                                if (newCell.getColumnValue() != null)
                                    i18nString = I18NManager.getI18NString(column.getI18nPrefix(), newCell.getColumnValue());
                                if (i18nString != null) {
                                    if (GlobalValueManager.getValue("APPLICATION.ZIC").equals("1")) {
                                        rowDatas.add(i18nString);
                                    } else if (GlobalValueManager.getValue("APPLICATION.ZIC").equals("2")) {
                                        rowDatas.add(newCell.getColumnValue());
                                    } else if (GlobalValueManager.getValue("APPLICATION.ZIC").equals("3")) {
                                       rowDatas.add(newCell.getColumnValue() + " - " + i18nString);
                                    }
                                }
                                else {
                                    if (newCell.getColumnValue() instanceof Double) {
                                        rowDatas.add(CurrencyPlugin.getFormatedDouble((Double)newCell.getColumnValue()));
                                    } else
                                        rowDatas.add(newCell.getColumnValue());
                                }
                            } else {
                                if (newCell.getColumnValue() instanceof Double) {
                                    rowDatas.add(CurrencyPlugin.getFormatedDouble((Double)newCell.getColumnValue()));
                                } else
                                    rowDatas.add(newCell.getColumnValue());
                            }                       
                        }
                    }                                                      
                    rowDatas.add(row);
                    if(!isRegCleared(row)){
View Full Code Here

       
        public boolean isMe(Row mainRow) {
           
                boolean result = false;
           
                Cell nsCell = ObjectUtil.findNewCell(mainRow, "P", "NS");
                String ns = (String)nsCell.getColumnValue();
               
                result = ns.equals("ME");
           
                return result;
               
View Full Code Here

       
        public Object dealWithPartner(Row mainRow) {
           
                Object obj = null;//specify use
           
                Cell nsCell = ObjectUtil.findNewCell(mainRow, "P", "NS");
                String ns = (String)nsCell.getColumnValue();
                               
                if (ns.equals("ME")) {
                    dealWithMe(mainRow);
                } else {
                    obj = dealWithPacc(mainRow);
View Full Code Here

           
                Iterator childRowsIter = mainRow.getRowSet().getRows().iterator();
                while (childRowsIter.hasNext()) {
                    Row childRow = (Row)childRowsIter.next();
                    if ( (!childRow.isDelete()) && (childRow.isAdd()) ) {
                        Cell prikeyCell = ObjectUtil.findNewCell(childRow, "PA", "PRIKEY");
                        Cell pubkeyCell = ObjectUtil.findNewCell(childRow, "PA", "PUBKEY");
                        PrivateKey prikey = null;
                        PublicKey pubkey = null;
                        try {
                            KeyPairGenerator keyGen = KeyPairGenerator.getInstance("RSA");
                            keyGen.initialize(1024);
                            KeyPair key = keyGen.generateKeyPair();
                            prikey = key.getPrivate();
                            pubkey = key.getPublic();
                        } catch (Exception e) {
                            e.printStackTrace();
                        }
                        prikeyCell.setColumnValue(prikey);
                        pubkeyCell.setColumnValue(pubkey);
                    }
                }
           
        }
View Full Code Here

            //if (container.getCurrentObject().isSlayerMaster())
                newRow.getRowSet().getRows().add(newRow);
                getContainer().getCurrentObject().getRows().add(newRow);
           
            if (action.equals("Confirm Add Account Request")) {
                Cell tCell1 = findNewCell(row, "P", "NS");
                Cell tCell2 = findNewCell(row, "P", "P");               
                Cell pCell1 = findOldCell(newRow, "P", "URNS");
                Cell pCell2 = findOldCell(newRow, "P", "URP");
                Cell pCell3 = findNewCell(newRow, "P", "URNS");
                Cell pCell4 = findNewCell(newRow, "P", "URP");
                pCell1.setColumnValue(tCell1.getColumnValue());
                pCell3.setColumnValue(tCell1.getColumnValue());
                pCell2.setColumnValue(tCell2.getColumnValue());
                pCell4.setColumnValue(tCell2.getColumnValue());
            }   
               
            new ObjectEdit(getContainer(), getContainer().getCurrentObject(), newRow, "Add", action, op.getFile(), op.getCixFile());
            getContainer().setEnabled(false);                        
       
View Full Code Here

            Vector values = new Vector();
            for (int i = 1; i < tm.getColumnCount(); i++) {
                String tableName = tm.getColumn(i).getTableName();
                String columnName = tm.getColumn(i).getColumnName();
                Item item = (Item)tm.getValueAt(selectedRowNumber, i);
                Cell cell = new Cell(tableName, columnName, item.getFactValue());
                values.add(cell);
            }
            Row selectedRow = new Row(values, container.getCurrentObject().getRowType());
            getContainer().getCurrentObject().loadChilds(selectedRow);
            new ObjectEdit(getContainer(), getContainer().getCurrentObject(), selectedRow, "Edit");
View Full Code Here

            Vector values = new Vector();
            for (int i = 1; i < tm.getColumnCount(); i++) {
                String tableName = tm.getColumn(i).getTableName();
                String columnName = tm.getColumn(i).getColumnName();
                Item item = (Item)tm.getValueAt(selectedRowNumber, i);
                Cell cell = new Cell(tableName, columnName, item.getFactValue());
                values.add(cell);
            }
            Row selectedRow = new Row(values, container.getCurrentObject().getRowType());
            getContainer().getCurrentObject().loadChilds(selectedRow);
            new ObjectEdit(getContainer(), getContainer().getCurrentObject(), selectedRow, "Edit");
View Full Code Here

TOP

Related Classes of realcix20.classes.basic.Cell

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.