Package realcix20.utils

Examples of realcix20.utils.DAO.update()


            //addDisplayColumns
            for (int i = 0; i < cdModel.getRowCount(); i++) {
               
                Column column = (Column)cdModel.getValueAt(i, 0);
               
                dao.update(Resources.INSERT_CLFIELDS_SQL);
                dao.setInt(1, clsId);
                dao.setInt(2, layout);
                dao.setString(3, column.getTableName());
                dao.setString(4, column.getColumnName());
                dao.setInt(5, i + 1);
View Full Code Here


                        rs.close();
                    } catch (Exception e) {
                        e.printStackTrace();
                    }
                    if (!displayed) {
                        dao.update(Resources.INSERT_CLFIELDS_SQL);
                        dao.setInt(1, clsId);
                        dao.setInt(2, layout);
                        dao.setString(3, column.getTableName());
                        dao.setString(4, column.getColumnName());
                        dao.setInt(5, 0);
View Full Code Here

        String txtId = "CL." + container.getObject().getClsId() + "." + container.getLayout_C();
        String lang = Resources.getLanguage();
        String long_c = TxtManager.getTxt("CLS." + container.getObject().getClsId()) + " " +
                TxtManager.getTxt("CL") + " " + container.getLayout_C();
       
        dao.update(Resources.INSERT_TXT_SQL);
        dao.setString(1, txtId);
        dao.setString(2, lang);
        dao.setString(3, long_c);
        dao.executeUpdate();
       
View Full Code Here

    private boolean validate() {
            boolean result = true;
            String sql = getSQL();
//            System.err.println("sql = " + sql);
            DAO dao = DAO.getInstance();
            dao.update(sql);
            try {
                dao.executeUpdate();
            } catch (Exception e) {
                result = false;
            }
View Full Code Here

    if ((sql!= null) && (!sql.trim().equals(""))) {
      // add CSQL
      sql=CSQLUtil.add(sql, csql);             
        }
        DAO dao = DAO.getInstance();
        dao.update(sql);
        try {
            dao.executeUpdate();
        } catch (Exception e) {
            result = false;
        }
View Full Code Here

                String lastchangedby = createdby;
                Cell txt256Cell = ObjectUtil.findNewCell(mainRow, "T", "TXT256");
                String txt256 = (String)txt256Cell.getColumnValue();
               
                DAO dao = DAO.getInstance();
                dao.update(Resources.INSERT_R_SQL);
                dao.setObject(1, r);
                dao.setObject(2, at);
                dao.setObject(3, rdate);
                dao.setObject(4, created);
                dao.setObject(5, createdby);
View Full Code Here

                        double ipprice = 0.0;
                        if (ippriceCell.getColumnValue() != null) {
                            ipprice = ((Number)ippriceCell.getColumnValue()).doubleValue();
                        }
                       
                        dao.update(Resources.INSERT_RI_SQL);
                        dao.setObject(1, r);
                        dao.setObject(2, currentRi);
                        dao.setObject(3, txt256);
                        dao.setObject(4, ld);
                        dao.setObject(5, tc);
View Full Code Here

                double ipprice = 0.0;
                if (ippriceCell.getColumnValue() != null) {
                    ipprice = ((Number)ippriceCell.getColumnValue()).doubleValue();
                }
                currentRi++;
                dao.update(Resources.INSERT_RI_SQL);
                dao.setObject(1, r);
                dao.setObject(2, currentRi);
                dao.setObject(3, txt256);
                dao.setObject(4, ld);
                dao.setObject(5, tc);
View Full Code Here

    }
   

  protected void setDefault(int layout) {
      DAO dao = DAO.getInstance();
      dao.update(Resources.UPDATE_CLS_DEFCL_SQL);
      dao.setInt(1,layout);
      dao.setInt(2,getContainer().getCurrentObject().getClsId());
      dao.executeUpdate();
      layoutId=layout;
  }
View Full Code Here

        public static void insertri_balance(Row correspondenceRow, int r, int ri, String ld, String txt256, String tc, double tamt, String rDate) {
                DAO dao = DAO.getInstance();
                String lc = FamilyClass.getLocalCurrency();
                double xr = TaxClass.getXR(lc, tc, rDate);//USE TaxClass
                double lamt = tamt * xr;
                dao.update(Resources.INSERT_RI_VALUE_SQL);
                dao.setObject(1, r);
                dao.setObject(2, ri);
                dao.setObject(3, txt256);
                dao.setObject(4, ld);
                dao.setObject(5, tc);
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.