Examples of VOListResponse


Examples of org.openswing.swing.message.receive.java.VOListResponse

        vo.setAfternoonEndHourSCH02(DateUtils.removeDate(rset.getTimestamp(4)));
        list.add(vo);
      }
      rset.close();

      return new VOListResponse(list,false,list.size());
    }
    catch (Throwable ex) {
      Logger.error(username,this.getClass().getName(),"executeCommand","Error while fetching employee calendar",ex);
      throw new Exception(ex.getMessage());
    }
View Full Code Here

Examples of org.openswing.swing.message.receive.java.VOListResponse

//          throw new Exception(res.getErrorMessage());
//        }
//
//      }

      return new VOListResponse(newList,false,newList.size());
    }
    catch (Throwable ex) {
      Logger.error(username,this.getClass().getName(),"executeCommand","Error while updating employee calendars",ex);
      try {
        if (this.conn==null && conn!=null)
View Full Code Here

Examples of org.openswing.swing.message.receive.java.VOListResponse

          if (res.isError()) {
            throw new Exception(res.getErrorMessage());
          }
        }

        return new VOListResponse(list,false,list.size());
      }
      catch (Throwable ex) {
        Logger.error(username, this.getClass().getName(),
                     "executeCommand", "Error while inserting new days of week in the employee calendar", ex);
        try {
View Full Code Here

Examples of org.openswing.swing.message.receive.java.VOListResponse

        } // end if on payed flag

      } // end for on payments

      return new VOListResponse(newVOs,false,newVOs.size());
    }
    catch (Throwable ex) {
      Logger.error(username,this.getClass().getName(),"executeCommand","Error while updating existing expirations",ex);
      try {
        if (this.conn==null && conn!=null)
View Full Code Here

Examples of org.openswing.swing.message.receive.java.VOListResponse

          throw new Exception(res.getErrorMessage());
        }
      }


      return new VOListResponse(list,false,list.size());
    }
    catch (Throwable ex) {
      Logger.error(username, this.getClass().getName(),
          "executeCommand", "Error while inserting new vatRegisters", ex);
      try {
View Full Code Here

Examples of org.openswing.swing.message.receive.java.VOListResponse

        if (res.isError()) {
          throw new Exception(res.getErrorMessage());
        }
      }

      return new VOListResponse(newVOs,false,newVOs.size());
    }
    catch (Throwable ex) {
      Logger.error(username,this.getClass().getName(),"executeCommand","Error while updating existing vat register",ex);
      try {
        if (this.conn==null && conn!=null)
View Full Code Here

Examples of org.openswing.swing.message.receive.java.VOListResponse

      while(rset.next()) {
        lang = new Language(rset.getString(1),rset.getString(2));
        list.add(lang);
      }
     
      return new VOListResponse(list,false,list.size());
    } catch (Exception ex) {
      Logger.error("NONAME",this.getClass().getName(),"executeCommand","Error while loading languages",ex);
      throw new Exception(ex.getMessage());
    } finally {
      try {
View Full Code Here

Examples of org.openswing.swing.message.receive.java.VOListResponse

            }
          }
        }


        return new VOListResponse(rows,false,rows.size());
      }
      else
        throw new Exception(res.getErrorMessage());
    }
    catch (Throwable ex) {
View Full Code Here

Examples of org.openswing.swing.message.receive.java.VOListResponse

      pstmt.setBigDecimal(10,vo.getTaxableIncomeDOC01());
      pstmt.setBigDecimal(11,vo.getTotalVatDOC01());
      pstmt.setBigDecimal(12,vo.getTotalDOC01());
      int updatedRows = pstmt.executeUpdate();
      if (updatedRows==0)
        return new VOListResponse("record already updated");


//      vo.setTaxableIncomeDOC01(totalTaxableIncome);
//      vo.setTotalVatDOC01(totalVat);
//      vo.setTotalDOC01(total);

      Logger.debug(username,this.getClass().getName(),"updateTaxableIncomes","Updating taxable incomes... total time: "+(System.currentTimeMillis()-time)+" ms");

      // return taxable income rows...
      ArrayList taxableIncomeRows = new ArrayList();
      Enumeration en = itemsTaxableIncomeRows.keys();
      while(en.hasMoreElements()) {
        taxableIncomeRows.add( itemsTaxableIncomeRows.get(en.nextElement()) );
      }
      en = actsTaxableIncomeRows.keys();
      while(en.hasMoreElements()) {
        taxableIncomeRows.add( actsTaxableIncomeRows.get(en.nextElement()) );
      }
      en = chargesTaxableIncomeRows.keys();
      while(en.hasMoreElements()) {
        taxableIncomeRows.add( chargesTaxableIncomeRows.get(en.nextElement()) );
      }

      return new VOListResponse(taxableIncomeRows,false,taxableIncomeRows.size());
    }
    catch (Throwable ex) {
      Logger.error(username,this.getClass().getName(),"updateTaxableIncomes","Error while updating taxable incomes and document totals:\n"+ex.getMessage(), ex);
      throw new Exception(ex.getMessage());
    }
View Full Code Here

Examples of org.openswing.swing.message.receive.java.VOListResponse

        vo.setProgressiveREG04(rset.getBigDecimal(3));
        list.add(vo);
      }

      rset.close();
      return new VOListResponse(list,false,list.size());
    }
    catch (Throwable ex) {
      Logger.error(username,this.getClass().getName(),"executeCommand","Error while fetching companies list",ex);
      throw new Exception(ex.getMessage());
    }
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.