Package realcix20.classes

Examples of realcix20.classes.RegClass


        else if (clsId == 310)
            return new InvestMarketClass(clsId);
        else if (clsId == 320)
            return new InvestProductClass(clsId);
        else if (clsId == 510)
            return new RegClass(clsId);
        else if (clsId == 520)
            return new CorrespondenceClass(clsId);
        else if (clsId == 530)
            return new TaxClass(clsId);
        else if (clsId == 540)
View Full Code Here


  private void initTablesStructure() {

    DefaultTableModel model = new DefaultTableModel();
    Vector columnNames = new Vector();

    RegClass regObject = (RegClass) ClassManager.createClass(510);
    Column column = ObjectUtil.findColumn(regObject, "RI", "R");
    columnNames.add(column.toString());
    column = ObjectUtil.findColumn(regObject, "RI", "RI");
    columnNames.add(column.toString());
    column = ObjectUtil.findColumn(regObject, "RI", "TXT256");
View Full Code Here

  }

  private void initTablesData() {

    RegClass regObject = (RegClass) ClassManager.createClass(510);
    Vector taxableRows = null;
    if (stat.equals("Display no taxed regs")){
      taxableRows = regObject.findAllNotTaxedByOtherTaxsRegs(selectedRow);
    }
    else if (stat.equals("Display all taxed regs"))
      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();
          model.addRow(rowData);
        } else if (regObject.getRowSignBySpecifyTax(row, taxt, tax,
            taxi) == -1) {
          DefaultTableModel model = (DefaultTableModel) subedTaxRegsTable
              .getModel();
          model.addRow(rowData);
        }
View Full Code Here

    DefaultTableModel addModel = (DefaultTableModel) addedTaxRegsTable
        .getModel();
    DefaultTableModel subModel = (DefaultTableModel) subedTaxRegsTable
        .getModel();

    RegClass regObject = (RegClass) ClassManager.createClass(510);
    Vector taxableRows = null;
    if (stat.equals("Display no taxed regs"))
      taxableRows = regObject.findAllNotTaxedByOtherTaxsRegs(selectedRow);
    else if (stat.equals("Display all taxed regs"))
      taxableRows = regObject.findAllTaxableRegs(selectedRow);

    Vector needRemovedRows = new Vector();

    Iterator taxableRowsIter = taxableRows.iterator();
    while (taxableRowsIter.hasNext()) {
      Row regRow = (Row) taxableRowsIter.next();

      Iterator rowsIter = addModel.getDataVector().iterator();
      while (rowsIter.hasNext()) {
        Vector rowData = (Vector) rowsIter.next();
        Row addRegRow = (Row) rowData.get(rowData.size() - 1);
        if (regObject.isEqual(regRow, addRegRow))
          needRemovedRows.add(regRow);
      }

      rowsIter = subModel.getDataVector().iterator();
      while (rowsIter.hasNext()) {
        Vector rowData = (Vector) rowsIter.next();
        Row subRegRow = (Row) rowData.get(rowData.size() - 1);
        if (regObject.isEqual(regRow, subRegRow))
          needRemovedRows.add(regRow);
      }

    }
View Full Code Here

       
    }
   
    private void clearNotValidReg() {
       
            RegClass regObject = (RegClass)getContainer().getCurrentObject();
           
            Iterator rowIter = regObject.getRows().iterator();
            while (rowIter.hasNext()) {  
                Row row = (Row)rowIter.next();
                if (!regObject.isApOrAr(row)) {
                    row.setDelete(true);
                }
            }                       
                       
            Vector rows_Clone = (Vector)regObject.getRows().clone();
            int num = 0;
            for (int i = 0; i < rows_Clone.size(); i++) {
                Row row = (Row)rows_Clone.get(i);
                if (row.isDelete()) {
                    regObject.getRows().remove(i - num);
                    num++;
                }                   
            }
       
    }
View Full Code Here

       
    }
   
    private void clearClearedReg() {
       
            RegClass regObject = (RegClass)getContainer().getCurrentObject();
           
            Iterator rowIter = regObject.getRows().iterator();
            while (rowIter.hasNext()) {  
                Row row = (Row)rowIter.next();
                if (!regObject.isCleared(row)) {
                    row.setDelete(true);
                }
            }
           
            Vector rows_Clone = (Vector)regObject.getRows().clone();
            int num = 0;
            for (int i = 0; i < rows_Clone.size(); i++) {
                Row row = (Row)rows_Clone.get(i);
                if (row.isDelete()) {
                    regObject.getRows().remove(i - num);
                    num++;
                }                   
            }
       
    }
View Full Code Here

       
    }
   
    private void clearUnClearedReg() {
       
            RegClass regObject = (RegClass)getContainer().getCurrentObject();
           
            Iterator rowIter = regObject.getRows().iterator();
            while (rowIter.hasNext()) {  
                Row row = (Row)rowIter.next();
                if (regObject.isCleared(row)) {
                    row.setDelete(true);
                }
            }
           
            Vector rows_Clone = (Vector)regObject.getRows().clone();
            int num = 0;
            for (int i = 0; i < rows_Clone.size(); i++) {
                Row row = (Row)rows_Clone.get(i);
                if (row.isDelete()) {
                    regObject.getRows().remove(i - num);
                    num++;
                }                   
            }
       
    }
View Full Code Here

                    Vector rowDatas = (Vector)dataVector.get(selectedRowNumber);
                    Row row = (Row)rowDatas.get(rowDatas.size() - 1);         
                    selectedRows.add(row);
                }
               
                RegClass regObject = (RegClass)getContainer().getCurrentObject();           
                result = regObject.setCleared(selectedRows);
            }                       
           
            return result;
       
    }
View Full Code Here

                    Vector rowDatas = (Vector)dataVector.get(selectedRowNumber);
                    Row row = (Row)rowDatas.get(rowDatas.size() - 1);         
                    selectedRows.add(row);
                }
               
                RegClass regObject = (RegClass)getContainer().getCurrentObject();           
                result = regObject.setUnCleared(selectedRows);
            }
           
            return result;
       
    }
View Full Code Here

            }
           
        }
        sb.replace(sb.length() - 1, sb.length(), " ");
       
        BaseClass object = container.getObject();
        String basicSQL = object.getBasicSQL();       
        if (basicSQL.indexOf("WHERE") == -1)
            basicSQL = basicSQL.substring(basicSQL.indexOf("FROM"));
        else {
            basicSQL = basicSQL.substring(basicSQL.indexOf("FROM"), basicSQL.indexOf("WHERE"));
        }
        sb.append(basicSQL + " ");
       
        boolean hasWhere = false;
        basicSQL = object.getBasicSQL();
        if (basicSQL.indexOf("WHERE") == -1)
            sb.append("WHERE ");
        else {
            hasWhere = true;
            basicSQL = basicSQL.substring(basicSQL.indexOf("WHERE"));
View Full Code Here

TOP

Related Classes of realcix20.classes.RegClass

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.