Package realcix20.classes.basic

Examples of realcix20.classes.basic.Cell


                                Vector rowDatas = new Vector();
                                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.isI18N()) {
                                            String i18nString = null;
                                            if (newCell.getColumnValue() != null)
                                                i18nString = I18NManager.getI18NString(column.getI18nPrefix(), newCell.getColumnValue());
                                            if (i18nString != null)
                                                rowDatas.add(newCell.getColumnValue() + "(" + i18nString + ")");
                                            else
                                                rowDatas.add(newCell.getColumnValue());
                                        } else {
                                            rowDatas.add(newCell.getColumnValue());
                                        }                       
                                    }
                                }                                                      
                                rowDatas.add(row);               
                                dataValues.add(rowDatas);
View Full Code Here


                                Vector rowDatas = new Vector();
                                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.isI18N()) {
                                            String i18nString = null;
                                            if (newCell.getColumnValue() != null)
                                                i18nString = I18NManager.getI18NString(column.getI18nPrefix(), newCell.getColumnValue());
                                            if (i18nString != null)
                                                rowDatas.add(newCell.getColumnValue() + "(" + i18nString + ")");
                                            else
                                                rowDatas.add(newCell.getColumnValue());
                                        } else {
                                            rowDatas.add(newCell.getColumnValue());
                                        }                       
                                    }
                                }                                                      
                                rowDatas.add(row);               
                                dataValues.add(rowDatas);
View Full Code Here

       
    private static Vector getNSAndPAndPA(Row taxRow) {
       
            Vector values = new Vector();
           
            Cell cell = ObjectUtil.findNewCell(taxRow, "TAX", "TAXT");
//            System.err.println(cell.getColumnValue());
            DAO dao = DAO.getInstance();
            dao.query(Resources.SELECT_CO_TAXDEP_FROM_TAXT_SQL);
            dao.setObject(1, cell.getColumnValue());
            ResultSet rs = dao.executeQuery();
            String co = "";
            String taxdep = "";
            try {
                if (rs.next()) {
View Full Code Here

        public int confirmTheInvite(Vector data) {
           
                int result = 202;
                Row partnerRow = (Row)data.get(0);
                Vector pubKeys = (Vector)data.get(1);
                Cell urnsCell = ObjectUtil.findNewCell(partnerRow, "P", "URNS");
                Cell urpCell = ObjectUtil.findNewCell(partnerRow, "P", "URP");
                String urns = (String)urnsCell.getColumnValue();
                String urp = (String)urpCell.getColumnValue();
                BaseClass object = ClassManager.createClass(250);
                Iterator rowsIter = object.getRows().iterator();
                while (rowsIter.hasNext()) {
                    Row row = (Row)rowsIter.next();
                    Cell nsCell = ObjectUtil.findNewCell(row, "P", "NS");
                    Cell pCell = ObjectUtil.findNewCell(row, "P", "P");
                    String ns = (String)nsCell.getColumnValue();
                    String p = (String)pCell.getColumnValue();
                    if ( (urns.equals(ns)) && (urp.equals(p)) ) {
                        result = 201;
                        break;
                    }
                }               
View Full Code Here

        while (componentExtIter.hasNext()) {                   
            ComponentExt componentExt = (ComponentExt)componentExtIter.next();
            Column column = componentExt.getColumn();
            JComponent component = componentExt.getComponent();
//            System.err.println(ComponentManager.getValue(component));
            Cell cell = ObjectUtil.findNewCell(row, column.getTableName(), column.getColumnName());
            if (action.equals("ADD")) {
                if ( (column.getInputType() == 22) || (column.getInputType() == 24) ) {//created by
                    cell.setColumnValue(GlobalValueManager.getValue("SESSION.LOGINUSER"));
                } else if ( (column.getInputType() == 21) || (column.getInputType() == 23) ) {//created
                    java.util.Date date = new java.util.Date();
                    String now = TimeManager.getTime(date.getTime());
                    cell.setColumnValue(now);
                } else {
                    cell.setColumnValue(ComponentManager.getValue(component));
                }
            }
        }
    }
View Full Code Here

      taxableRows = regObject.findAllTaxableRegs(selectedRow);
    Iterator taxableRowsIter = taxableRows.iterator();
    while (taxableRowsIter.hasNext()) {
      Row row = (Row) taxableRowsIter.next();
      Vector rowData = new Vector();
      Cell cell = ObjectUtil.findNewCell(row, "RI", "R");
      rowData.add(cell.getColumnValue());
      cell = ObjectUtil.findNewCell(row, "RI", "RI");
      rowData.add(cell.getColumnValue());
      cell = ObjectUtil.findNewCell(row, "RI", "TXT256");
      rowData.add(cell.getColumnValue());
      cell = ObjectUtil.findNewCell(row, "RI", "LD");
      rowData.add(cell.getColumnValue());
      cell = ObjectUtil.findNewCell(row, "RI", "LC");
      rowData.add(cell.getColumnValue());
      cell = ObjectUtil.findNewCell(row, "RI", "LAMT");
      rowData.add(cell.getColumnValue());
      cell = ObjectUtil.findNewCell(row, "RI", "TC");
      rowData.add(cell.getColumnValue());
      cell = ObjectUtil.findNewCell(row, "RI", "TAMT");
      rowData.add(cell.getColumnValue());
      rowData.add(row);

      cell = ObjectUtil.findNewCell(selectedRow, "TAXI", "TAXT");
      String taxt = (String) cell.getColumnValue();
      cell = ObjectUtil.findNewCell(selectedRow, "TAXI", "TAX");
      String tax = (String) cell.getColumnValue();
      cell = ObjectUtil.findNewCell(selectedRow, "TAXI", "TAXI");
      String taxi = (String) cell.getColumnValue();

      if (regObject.isRowTaxedBySpecifyTax(row, taxt, tax, taxi)) {
        if (regObject.getRowSignBySpecifyTax(row, taxt, tax, taxi) == 1) {
          DefaultTableModel model = (DefaultTableModel) addedTaxRegsTable
              .getModel();
View Full Code Here

    taxableRowsIter = taxableRows.iterator();
    while (taxableRowsIter.hasNext()) {
      Row row = (Row) taxableRowsIter.next();
      Vector rowData = new Vector();
      Cell cell = ObjectUtil.findNewCell(row, "RI", "R");
      rowData.add(cell.getColumnValue());
      cell = ObjectUtil.findNewCell(row, "RI", "RI");
      rowData.add(cell.getColumnValue());
      cell = ObjectUtil.findNewCell(row, "RI", "TXT256");
      rowData.add(cell.getColumnValue());
      cell = ObjectUtil.findNewCell(row, "RI", "LD");
      rowData.add(cell.getColumnValue());
      cell = ObjectUtil.findNewCell(row, "RI", "LC");
      rowData.add(cell.getColumnValue());
      cell = ObjectUtil.findNewCell(row, "RI", "LAMT");
      rowData.add(cell.getColumnValue());
      cell = ObjectUtil.findNewCell(row, "RI", "TC");
      rowData.add(cell.getColumnValue());
      cell = ObjectUtil.findNewCell(row, "RI", "TAMT");
      rowData.add(cell.getColumnValue());
      rowData.add(row);
      sourceModel.addRow(rowData);
    }

  }
View Full Code Here

        taxDatas.add(sourceModel.getDataVector());
        taxDatas.add(addModel.getDataVector());
        taxDatas.add(subModel.getDataVector());
        ((ObjectEdit) container).getTaxs().add(taxDatas);
      }
      Cell cell = ObjectUtil.findNewCell(selectedRow, "TAXI",
          "TAXBASEAMT1");
      cell.setColumnValue(baseAMT1);
      cell = ObjectUtil.findNewCell(selectedRow, "TAXI", "TAXBASEAMT2");
      cell.setColumnValue(baseAMT2);
      cell = ObjectUtil.findNewCell(selectedRow, "TAXI", "TAMT");
      cell.setColumnValue(taxAMT);
      selectedRow.setModify(true);
      ((ObjectEdit) container).updateTable();
      container.setEnabled(true);
      dispose();
    }
View Full Code Here

    Vector dataVector = model.getDataVector();
    Iterator dataIter = dataVector.iterator();
    while (dataIter.hasNext()) {
      Vector rowData = (Vector) dataIter.next();
      Row row = (Row) rowData.get(rowData.size() - 1);
      Cell cell = ObjectUtil.findNewCell(row, "RI", "LAMT");
      double lamt = getDouble(cell.getColumnValue());
      baseAMT1 += Math.abs(lamt);
    }

    model = (DefaultTableModel) subedTaxRegsTable.getModel();
    dataVector = model.getDataVector();
    dataIter = dataVector.iterator();
    while (dataIter.hasNext()) {
      Vector rowData = (Vector) dataIter.next();
      Row row = (Row) rowData.get(rowData.size() - 1);
      Cell cell = ObjectUtil.findNewCell(row, "RI", "LAMT");
      double lamt = getDouble(cell.getColumnValue());
      baseAMT1 -= Math.abs(lamt);
    }
    String tc = ObjectUtil.findNewCell(selectedRow, "TAXI", "TC")
        .getColumnValue().toString();
    String tdate = ObjectUtil.findNewCell(selectedRow, "TAX", "TDATE")
View Full Code Here

    Vector dataVector = model.getDataVector();
    Iterator dataIter = dataVector.iterator();
    while (dataIter.hasNext()) {
      Vector rowData = (Vector) dataIter.next();
      Row row = (Row) rowData.get(rowData.size() - 1);
      Cell cell = ObjectUtil.findNewCell(row, "RI", "LAMT");
      double lamt = getDouble(cell.getColumnValue());
//      System.err.println("lamt = " + lamt);
      baseAMT1 += Math.abs(lamt);
    }

    model = (DefaultTableModel) subedTaxRegsTable.getModel();
    dataVector = model.getDataVector();
    dataIter = dataVector.iterator();
    while (dataIter.hasNext()) {
      Vector rowData = (Vector) dataIter.next();
      Row row = (Row) rowData.get(rowData.size() - 1);
      Cell cell = ObjectUtil.findNewCell(row, "RI", "LAMT");
      double lamt = getDouble(cell.getColumnValue());
      baseAMT1 -= Math.abs(lamt);
    }

    String tc = ObjectUtil.findNewCell(selectedRow, "TAXI", "TC")
        .getColumnValue().toString();
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.