Package org.jallinone.accounting.ledger.java

Examples of org.jallinone.accounting.ledger.java.LedgerVO


    Connection conn = null;
    try {
      if (this.conn==null) conn = getConn(); else conn = this.conn;
      String companyCode = companyCodes.get(0).toString();

      LedgerVO vo = null;

      BigDecimal progressiveSYS10 = null;
      Response res = null;

      Map attribute2dbField = new HashMap();
      attribute2dbField.put("ledgerCodeACC01","LEDGER_CODE");
      attribute2dbField.put("progressiveSys10ACC01","PROGRESSIVE_SYS10");
      attribute2dbField.put("enabledACC01","ENABLED");
      attribute2dbField.put("companyCodeSys01ACC01","COMPANY_CODE_SYS01");
      attribute2dbField.put("accountTypeACC01","ACCOUNT_TYPE");

      for(int i=0;i<list.size();i++) {
        vo = (LedgerVO)list.get(i);
        vo.setEnabledACC01("Y");
        if (vo.getCompanyCodeSys01ACC01() == null)
          vo.setCompanyCodeSys01ACC01(companyCode);

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

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


   */
  public VOListResponse updateLedger(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;
    LedgerVO oldVO = null;
      LedgerVO newVO = null;
      Response res = null;

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

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

        HashSet pkAttrs = new HashSet();
        pkAttrs.add("companyCodeSys01ACC01");
        pkAttrs.add("ledgerCodeACC01");

View Full Code Here

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

      LedgerVO vo = null;
      for(int i=0;i<list.size();i++) {
        // logically delete the record in ACC01...
        vo = (LedgerVO)list.get(i);
        pstmt = conn.prepareStatement("update ACC01_LEDGER set ENABLED='N',LAST_UPDATE_USER=?,LAST_UPDATE_DATE=?  where COMPANY_CODE_SYS01='"+vo.getCompanyCodeSys01ACC01()+"' and LEDGER_CODE='"+vo.getLedgerCodeACC01()+"'");
        pstmt.setString(1,username);
        pstmt.setTimestamp(2,new java.sql.Timestamp(System.currentTimeMillis()));
        pstmt.execute();
        pstmt.close();
      }
View Full Code Here

      ledgerController.addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {
          LedgerVO vo = (LedgerVO)parentVO;
          grid.getOtherGridParams().put(ApplicationConsts.COMPANY_CODE_SYS01,controlCompaniesCombo.getValue());

          if (vo.getLedgerCodeACC01()!=null && !vo.getLedgerCodeACC01().equals(""))
            grid.getOtherGridParams().put(ApplicationConsts.LEDGER_CODE,vo.getLedgerCodeACC01());
          else
            grid.getOtherGridParams().remove(ApplicationConsts.LEDGER_CODE);
          grid.reloadData();
        }
View Full Code Here

TOP

Related Classes of org.jallinone.accounting.ledger.java.LedgerVO

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.