package core.stlmes.server.sale.dao;

import core.stlmes.server.sale.dbhelp.DbTrans;

public class DaoFactory
{

	private DbTrans Trans = null;
	private YdmZcLoadvehicleMatDao YdmZcLoadvehicleMatDao = new YdmZcLoadvehicleMatDao();
	private YdmZcBillMDao YdmZcBillMDao = new YdmZcBillMDao();
	private SlmBalanceInfoDao SlmBalanceInfoDao = new SlmBalanceInfoDao();
	private SlmBalanceDetailAllDao SlmBalanceDetailAllDao = new SlmBalanceDetailAllDao();

	private SlmBalanceInfoOrgDao slmBalanceInfoOrgDao = new SlmBalanceInfoOrgDao();
	private SlmBalanceMnySubtDao slmBalanceMnySubtDao = new SlmBalanceMnySubtDao();

	private SlmBalanceTransMoneyDao SlmBalanceTransMoneyDao = new SlmBalanceTransMoneyDao();

	public void setTrans(DbTrans trans)
	{
		this.Trans = trans;
		YdmZcLoadvehicleMatDao.setTrans(Trans);
		YdmZcBillMDao.setTrans(Trans);
		SlmBalanceInfoDao.setTrans(Trans);
		SlmBalanceDetailAllDao.setTrans(Trans);

		slmBalanceInfoOrgDao.setTrans(trans);
		slmBalanceMnySubtDao.setTrans(trans);
		SlmBalanceTransMoneyDao.setTrans(trans);

	}

	public void cleantTrans()
	{
		setTrans(null);
	}

	public SlmBalanceTransMoneyDao getSlmBalanceTransMoneyDao()
	{

		return SlmBalanceTransMoneyDao;
	}

	public SlmBalanceMnySubtDao getSlmBalanceMnySubtDao()
	{

		return slmBalanceMnySubtDao;
	}

	public YdmZcLoadvehicleMatDao getYdmZcLoadvehicleMatDao()
	{

		return YdmZcLoadvehicleMatDao;
	}

	public YdmZcBillMDao getYdmZcBillMDao()
	{

		return YdmZcBillMDao;
	}

	public SlmBalanceInfoDao getSlmBalanceInfoDao()
	{

		return SlmBalanceInfoDao;
	}

	public SlmBalanceDetailAllDao getSlmBalanceDetailAllDao()
	{

		return SlmBalanceDetailAllDao;
	}

	public DbTrans getTrans()
	{
		return Trans;
	}

	public SlmBalanceInfoOrgDao getSlmBalanceInfoOrgDao()
	{
		return slmBalanceInfoOrgDao;
	}

}