Examples of VatRegisterVO


Examples of org.jallinone.accounting.vatregisters.java.VatRegisterVO

   */
  public VOListResponse insertVatRegisters(ArrayList list,String serverLanguageId,String username,ArrayList customizedFields) throws Throwable {
    Connection conn = null;
    try {
      if (this.conn==null) conn = getConn(); else conn = this.conn;
      VatRegisterVO vo = null;
      BigDecimal progressiveSYS10 = null;

      Map attribute2dbField = new HashMap();
      attribute2dbField.put("registerCodeACC04","REGISTER_CODE");
      attribute2dbField.put("progressiveSys10ACC04","PROGRESSIVE_SYS10");
      attribute2dbField.put("enabledACC04","ENABLED");
      attribute2dbField.put("companyCodeSys01ACC04","COMPANY_CODE_SYS01");
      attribute2dbField.put("accountCodeAcc02ACC04","ACCOUNT_CODE_ACC02");
      attribute2dbField.put("registerTypeACC04","REGISTER_TYPE");
      attribute2dbField.put("readOnlyACC04","READ_ONLY");

      Response res = null;
      for(int i=0;i<list.size();i++) {
        vo = (VatRegisterVO)list.get(i);
        vo.setEnabledACC04("Y");

        // insert record in SYS10...
        progressiveSYS10 = CompanyTranslationUtils.insertTranslations(vo.getDescriptionSYS10(),vo.getCompanyCodeSys01ACC04(),username,conn);
        vo.setProgressiveSys10ACC04(progressiveSYS10);

        // insert into ACC04...
        res = CustomizeQueryUtil.insertTable(
            conn,
            new UserSessionParameters(username),
View Full Code Here

Examples of org.jallinone.accounting.vatregisters.java.VatRegisterVO

   */
  public VOListResponse updateVatRegisters(ArrayList oldVOs,ArrayList newVOs,String serverLanguageId,String username,ArrayList customizedFields) throws Throwable {
    Connection conn = null;
    try {
      if (this.conn==null) conn = getConn(); else conn = this.conn;
      VatRegisterVO oldVO = null;
      VatRegisterVO newVO = null;
      Response res = null;

      for(int i=0;i<oldVOs.size();i++) {
        oldVO = (VatRegisterVO)oldVOs.get(i);
        newVO = (VatRegisterVO)newVOs.get(i);

        // update SYS10 table...
        CompanyTranslationUtils.updateTranslation(newVO.getCompanyCodeSys01ACC04(),oldVO.getDescriptionSYS10(),newVO.getDescriptionSYS10(),newVO.getProgressiveSys10ACC04(),serverLanguageId,username,conn);

        HashSet pkAttrs = new HashSet();
        pkAttrs.add("companyCodeSys01ACC04");
        pkAttrs.add("vatRegisterCodeACC04");

View Full Code Here

Examples of org.jallinone.accounting.vatregisters.java.VatRegisterVO

    PreparedStatement pstmt = null;
    Connection conn = null;
    try {
      if (this.conn==null) conn = getConn(); else conn = this.conn;

      VatRegisterVO vo = null;
      for(int i=0;i<list.size();i++) {
        // logically delete the record in ACC04...
        vo = (VatRegisterVO)list.get(i);
        pstmt = conn.prepareStatement(
          "update ACC04_VAT_REGISTERS set ENABLED='N',LAST_UPDATE_USER=?,LAST_UPDATE_DATE=?  where "+
          "COMPANY_CODE_SYS01='"+vo.getCompanyCodeSys01ACC04()+"' and REGISTER_CODE='"+vo.getRegisterCodeACC04()+"'"
        );
        pstmt.setString(1,username);
        pstmt.setTimestamp(2,new java.sql.Timestamp(System.currentTimeMillis()));
      }
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.