Package realcix20.classes.basic

Examples of realcix20.classes.basic.Cell


                boolean result = false;
               
                Iterator rowIter = rows.iterator();
                while (rowIter.hasNext()) {
                    Row row = (Row)rowIter.next();
                    Cell cell1 = ObjectUtil.findOldCell(row, "RI", "R");
                    Cell cell2 = ObjectUtil.findOldCell(row, "RI", "RI");
                    DAO dao = DAO.getInstance();
                    dao.update(Resources.DELETE_RPN_SQL);
                    dao.setObject(1, cell1.getColumnValue());
                    dao.setObject(2, cell2.getColumnValue());
                    if (dao.executeUpdate())
                        result = true;
                }
               
                return result;
View Full Code Here


                Row row = (Row)regDatas.get(0);
                Vector notAssignedRowDatas = (Vector)regDatas.get(1);
                Vector assignedRowDatas = (Vector)regDatas.get(2);
               
                int r = 0;
                Cell cell = ObjectUtil.findNewCell(row, "RI", "R");
                if (cell.getColumnValue() instanceof Number)
                    r = ((Number)cell.getColumnValue()).intValue();
                else
                    r = Integer.parseInt((String)cell.getColumnValue());
               
                int ri = 0;
                cell = ObjectUtil.findNewCell(row, "RI", "RI");
                if (cell.getColumnValue() instanceof Number)
                    ri = ((Number)cell.getColumnValue()).intValue();
                else
                    ri = Integer.parseInt((String)cell.getColumnValue());
                                               
                DAO dao = DAO.getInstance();
                Iterator nardsIter = notAssignedRowDatas.iterator();
                while (nardsIter.hasNext()) {
                    Vector rowData = (Vector)nardsIter.next();
                    dao.update(Resources.DELETE_BI_SQL);
                    dao.setObject(1, r);
                    dao.setObject(2, ri);
                    dao.setObject(3, rowData.get(0));
                    dao.setObject(4, rowData.get(1));
                    dao.setObject(5, rowData.get(2));
                    dao.executeUpdate();
                }
               
                Iterator ardIter = assignedRowDatas.iterator();
                while (ardIter.hasNext()) {
                    Vector rowData = (Vector)ardIter.next();
                    dao.query(Resources.SELECT_BI_BY_ALLPK_SQL);
                    dao.setObject(1, r);
                    dao.setObject(2, ri);
                    dao.setObject(3, rowData.get(0));
                    dao.setObject(4, rowData.get(1));
                    dao.setObject(5, rowData.get(2));
                    ResultSet rs = dao.executeQuery();
                    try {
                        if (rs.next()) {
                            dao.update(Resources.UPDATE_BI_SQL);
                            dao.setObject(1, rowData.get(4));
                            dao.setObject(2, rowData.get(5));
                            cell = ObjectUtil.findNewCell(row, "RI", "TXT256");
                            dao.setObject(3, cell.getColumnValue());
                            dao.setObject(4, r);
                            dao.setObject(5, ri);
                            dao.setObject(6, rowData.get(0));
                            dao.setObject(7, rowData.get(1));
                            dao.setObject(8, rowData.get(2));
                            dao.executeUpdate();
                        } else {
                            dao.update(Resources.ADD_BI_SQL);
                            dao.setObject(1, r);
                            dao.setObject(2, ri);
                            dao.setObject(3, rowData.get(0));
                            dao.setObject(4, rowData.get(1));
                            dao.setObject(5, rowData.get(2));
                            dao.setObject(6, rowData.get(4));
                            dao.setObject(7, rowData.get(5));
                            cell = ObjectUtil.findNewCell(row, "RI", "TXT256");
                            dao.setObject(8, cell.getColumnValue());
                            dao.executeUpdate();
                        }
                        rs.close();
                        result = true;
                    } catch (Exception e) {
View Full Code Here

        public int getRowSignBySpecifyTax(Row row, String taxt, String tax, String taxi) {
           
                int sign = 1;
           
                int r = 0;
                Cell cell = ObjectUtil.findNewCell(row, "RI", "R");
                if (cell.getColumnValue() instanceof Number)
                    r = ((Number)cell.getColumnValue()).intValue();
                else
                    r = Integer.parseInt((String)cell.getColumnValue());
               
                int ri = 0;
                cell = ObjectUtil.findNewCell(row, "RI", "RI");
                if (cell.getColumnValue() instanceof Number)
                    ri = ((Number)cell.getColumnValue()).intValue();
                else
                    ri = Integer.parseInt((String)cell.getColumnValue());
               
                DAO dao = DAO.getInstance();
                dao.query(Resources.SELECT_FROM_RITAXI_BY_ALL_PKS_SQL);
                dao.setObject(1, r);
                dao.setObject(2, ri);
View Full Code Here

        public boolean isRowTaxedBySpecifyTax(Row row, String taxt, String tax, String taxi) {
           
                boolean result = false;
               
                int r = 0;
                Cell cell = ObjectUtil.findNewCell(row, "RI", "R");
                if (cell.getColumnValue() instanceof Number)
                    r = ((Number)cell.getColumnValue()).intValue();
                else
                    r = Integer.parseInt((String)cell.getColumnValue());
               
                int ri = 0;
                cell = ObjectUtil.findNewCell(row, "RI", "RI");
                if (cell.getColumnValue() instanceof Number)
                    ri = ((Number)cell.getColumnValue()).intValue();
                else
                    ri = Integer.parseInt((String)cell.getColumnValue());
               
                DAO dao = DAO.getInstance();
                dao.query(Resources.SELECT_FROM_RITAXI_BY_ALL_PKS_SQL);
                dao.setObject(1, r);
                dao.setObject(2, ri);
View Full Code Here

        public boolean isRowTaxed(Row row) {
        
                boolean result = false;
               
                int r = 0;
                Cell cell = ObjectUtil.findNewCell(row, "RI", "R");
                if (cell.getColumnValue() instanceof Number)
                    r = ((Number)cell.getColumnValue()).intValue();
                else
                    r = Integer.parseInt((String)cell.getColumnValue());
               
                int ri = 0;
                cell = ObjectUtil.findNewCell(row, "RI", "RI");
                if (cell.getColumnValue() instanceof Number)
                    ri = ((Number)cell.getColumnValue()).intValue();
                else
                    ri = Integer.parseInt((String)cell.getColumnValue());
               
                DAO dao = DAO.getInstance();
                dao.query(Resources.SELECT_FROM_RITAXI_BY_R_AND_RI_SQL);
                dao.setObject(1, r);
                dao.setObject(2, ri);
View Full Code Here

        public static boolean isRowTaxByOtherTaxs(Row taxRow, Row regRow) {
           
                boolean result = false;
               
                int r = 0;
                Cell cell = ObjectUtil.findNewCell(regRow, "RI", "R");
                if (cell.getColumnValue() instanceof Number)
                    r = ((Number)cell.getColumnValue()).intValue();
                else
                    r = Integer.parseInt((String)cell.getColumnValue());
               
                int ri = 0;
                cell = ObjectUtil.findNewCell(regRow, "RI", "RI");
                if (cell.getColumnValue() instanceof Number)
                    ri = ((Number)cell.getColumnValue()).intValue();
                else
                    ri = Integer.parseInt((String)cell.getColumnValue());
               
                cell = ObjectUtil.findNewCell(taxRow, "TAXI", "TAXT");
                String taxt = (String)cell.getColumnValue();
               
                cell = ObjectUtil.findNewCell(taxRow, "TAXI", "TAX");
                String tax = (String)cell.getColumnValue();
               
                cell = ObjectUtil.findNewCell(taxRow, "TAXI", "TAXI");
                String taxi = (String)cell.getColumnValue();
               
                DAO dao = DAO.getInstance();
                dao.query(Resources.SELECT_FROM_RITAXI_BY_R_AND_RI_SQL);
                dao.setObject(1, r);
                dao.setObject(2, ri);
View Full Code Here

       
        public static boolean isRowTaxable(Row row) {
           
                boolean result = false;
           
                Cell cell = ObjectUtil.findNewCell(row, "RI", "LD");
                String ld = (String)cell.getColumnValue();
               
                DAO dao = DAO.getInstance();
                dao.query(Resources.SELECT_TAXABLE_FROM_LD_BY_LD_SQL);
                dao.setString(1, ld);
                ResultSet rs = dao.executeQuery();
View Full Code Here

         private Object getValue(Column column, Row row) {
           
            Object value = null;
            Iterator cellIter = row.getNewCells().iterator();
            while (cellIter.hasNext()) {
                Cell cell = (Cell)cellIter.next();
                if ( (cell.getColumnName().equals(column.getColumnName())) && (cell.getTableName().equals(column.getTableName())) ) {
                    value = cell.getColumnValue();
                }
            }
           
            return value;
           
View Full Code Here

                boolean result = true;
               
                Iterator testRowIter = selectedRows.iterator();
                while (testRowIter.hasNext()) {
                    Row testRow = (Row)testRowIter.next();
                    Cell oldCell = ObjectUtil.findOldCell(testRow, "B", "RMONTH");
                    String oldMonth = (String)oldCell.getColumnValue();
                    if (oldMonth.equals(newMonth)) {
                        result = false;
                        break;
                    }                   
                }                               
               
                if (!result) {
                    DialogManager.showMessageDialog(this, TxtManager.getTxt("INFORMATION.EQUALMONTH"));
                } else {
                   
                    Iterator rowIter = selectedRows.iterator();
                    while (rowIter.hasNext()) {
                        Row row = (Row)rowIter.next();
                        Cell newCell = ObjectUtil.findNewCell(row, "B", "RMONTH");
                        newCell.setColumnValue(newMonth);
                        if (!object.classInsert_WholeObject(row, true)) {                           
                            result = false;
                            break;
                        }
                    }
View Full Code Here

        private void rollback() {
           
                Iterator rowIter = selectedRows.iterator();
                while (rowIter.hasNext()) {
                    Row row = (Row)rowIter.next();
                    Cell newCell = ObjectUtil.findNewCell(row, "B", "RMONTH");
                    Cell oldCell = ObjectUtil.findOldCell(row, "B", "RMONTH");
                    newCell.setColumnValue(oldCell.getColumnValue());
                }
           
        }
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.