financeserviceimpl.java

来自「一个关于tlms的一个小程序 看看能否帮助到别人」· Java 代码 · 共 69 行

JAVA
69
字号
/**
 * ============================================= 
 * Copyright 2006 szmx
 *
 * Change Revision
 * --------------------------------
 *   Date                Author         Remarks
 *   2006-4-24        hliu     Create com.szmx.tlms.finance.service.impl.AccountAndVoucherServiceImpl
 * =============================================
 */
package com.szmx.tlms.finance.service.impl;

import com.szmx.framework.base.service.impl.BaseServiceImpl;
import com.szmx.framework.base.model.Pagination;
import com.szmx.tlms.finance.service.FinanceService;
import com.szmx.tlms.finance.model.AccountDrCr;
import com.szmx.tlms.finance.dao.FinanceDao;
import com.szmx.tlms.TlmsServiceException;
import com.szmx.tlms.TlmsServiceErrorCodes;

import java.util.Map;

/**
 * <desc>
 *
 * @author hliu
 * @since 2006-4-24
 */
public class FinanceServiceImpl extends BaseServiceImpl implements FinanceService {

//----------------This section is the  Account Dr & Cr Service implement Start---------------

    /**
     * @see FinanceService#getAccountDrCrs(com.szmx.framework.base.model.Pagination, java.util.Map)
     */
    public Pagination getAccountDrCrs(final Pagination paginationObj, final Map paraMap) throws TlmsServiceException {
        return ((FinanceDao) baseDao).getAccountDrCrs(paginationObj, paraMap);
    }

    /**
     * @see FinanceService#saveAccountDrCr(com.szmx.tlms.finance.model.AccountDrCr)
     */
    public void saveAccountDrCr(AccountDrCr accountDrCr) throws TlmsServiceException {
        ((FinanceDao) baseDao).saveAccountDrCr(accountDrCr);
    }

    /**
     * @see FinanceService#getAccountDrCr(Long)
     */
    public AccountDrCr getAccountDrCr(Long id) throws TlmsServiceException {
        AccountDrCr accountDrCr=((FinanceDao) baseDao).getAccountDrCr(id);
        if(accountDrCr==null){
            throw new TlmsServiceException(TlmsServiceErrorCodes.SERVICE_ERROR_FI001);
        }
        return accountDrCr;
    }

    /**
     * @see FinanceService#removeAllAccountDrCrs(String[])               
     */
    public void removeAllAccountDrCrs(String[] id) throws TlmsServiceException {
        for (int i = 0; i < id.length; i++) {
            ((FinanceDao) baseDao).removeAccountDrCr(new Long(Long.parseLong(id[i])));
        }
    }

//----------------This section is the  AAccount Dr & Cr Service implement End---------------
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?