Examples of PaymentTypeVO


Examples of org.jallinone.registers.payments.java.PaymentTypeVO

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

      BigDecimal progressiveSYS10 = null;

      Map attribute2dbField = new HashMap();
      attribute2dbField.put("companyCodeSys01REG11","COMPANY_CODE_SYS01");
      attribute2dbField.put("paymentTypeCodeREG11","PAYMENT_TYPE_CODE");
      attribute2dbField.put("progressiveSys10REG11","PROGRESSIVE_SYS10");
      attribute2dbField.put("enabledREG11","ENABLED");
      attribute2dbField.put("accountCodeAcc02REG11","ACCOUNT_CODE_ACC02");

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

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

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

Examples of org.jallinone.registers.payments.java.PaymentTypeVO

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


      PaymentTypeVO oldVO = null;
      PaymentTypeVO newVO = null;
      Response res = null;

      HashSet pkAttrs = new HashSet();
      pkAttrs.add("companyCodeSys01REG11");
      pkAttrs.add("paymentTypeCodeREG11");

      HashMap attr2dbFields = new HashMap();
      attr2dbFields.put("companyCodeSys01REG11","COMPANY_CODE_SYS01");
      attr2dbFields.put("paymentTypeCodeREG11","PAYMENT_TYPE_CODE");
      attr2dbFields.put("progressiveSys10REG11","PROGRESSIVE_SYS10");
      attr2dbFields.put("enabledREG11","ENABLED");
      attr2dbFields.put("accountCodeAcc02REG11","ACCOUNT_CODE_ACC02");

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

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

        res = new CustomizeQueryUtil().updateTable(
            conn,
            new UserSessionParameters(username),
            pkAttrs,
View Full Code Here

Examples of org.jallinone.registers.payments.java.PaymentTypeVO

        public void beforeLookupAction(ValueObject parentVO) {
        }

        public void codeChanged(ValueObject parentVO,
                                Collection parentChangedAttributes) {
          PaymentTypeVO vo = (PaymentTypeVO)payTypeController.getLookupVO();
          ExpirationVO expVO = (ExpirationVO)parentVO;
          if (vo==null || vo.getAccountCodeAcc02REG11()==null) {
            expVO.setRealAccountCodeAcc02DOC19(null);
            expVO.setRealAcc02DescriptionSYS10(null);
          }
          else {
            expVO.setRealAccountCodeAcc02DOC19(vo.getAccountCodeAcc02REG11());
            expVO.setRealAcc02DescriptionSYS10(vo.getAcc02DescriptionSYS10());
          }
        }

        public void codeValidated(boolean validated) {
        }
View Full Code Here

Examples of org.jallinone.registers.payments.java.PaymentTypeVO

        public void beforeLookupAction(ValueObject parentVO) {
        }

        public void codeChanged(ValueObject parentVO,
                                Collection parentChangedAttributes) {
          PaymentTypeVO vo = (PaymentTypeVO)payTypeController.getLookupVO();
          PaymentVO payVO = (PaymentVO)parentVO;
          if (vo==null || vo.getAccountCodeAcc02REG11()==null) {
            payVO.setAccountCodeAcc02DOC27(null);
            payVO.setAcc02DescriptionSYS10(null);
          }
          else {
            payVO.setAccountCodeAcc02DOC27(vo.getAccountCodeAcc02REG11());
            payVO.setAcc02DescriptionSYS10(vo.getAcc02DescriptionSYS10());
          }
        }

        public void codeValidated(boolean validated) {
        }
View Full Code Here

Examples of org.jallinone.registers.payments.java.PaymentTypeVO

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

      PaymentTypeVO vo = null;
      pstmt = conn.prepareStatement(
         "update REG11_PAY_TYPES set ENABLED='N',LAST_UPDATE_USER=?,LAST_UPDATE_DATE=? where COMPANY_CODE_SYS01=? and PAYMENT_TYPE_CODE=?"
      );
      for(int i=0;i<list.size();i++) {
        // logically delete the record in REG11...
        vo = (PaymentTypeVO)list.get(i);
        pstmt.setString(1,username);
        pstmt.setTimestamp(2,new java.sql.Timestamp(System.currentTimeMillis()));
        pstmt.setString(3,vo.getCompanyCodeSys01REG11());
        pstmt.setString(4,vo.getPaymentTypeCodeREG11());
        pstmt.execute();
      }

      return new VOResponse(new Boolean(true));
    }
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.