package com.jsh.service.materials;

import com.jsh.base.BaseService;
import com.jsh.dao.materials.DepotHeadIDAO;
import com.jsh.util.JshException;
import com.jsh.model.po.DepotHead;
import com.jsh.model.po.UserBusiness;
import com.jsh.util.PageUtil;

public class DepotHeadService extends BaseService<DepotHead> implements DepotHeadIService
{
	@SuppressWarnings("unused")
	private DepotHeadIDAO depotHeadDao;

	
	public void setDepotHeadDao(DepotHeadIDAO depotHeadDao) {
		this.depotHeadDao = depotHeadDao;
	}


	@Override
	protected Class<DepotHead> getEntityClass()
	{
		return DepotHead.class;
	}
	
    public void find(PageUtil<DepotHead> pageUtil, String maxid) throws JshException
    {
    	depotHeadDao.find(pageUtil, maxid);
    }
    
    public void findAllMoney(PageUtil<DepotHead> pageUtil, Integer supplierId, String type, String subType, String mode) throws JshException
    {
    	depotHeadDao.findAllMoney(pageUtil, supplierId, type, subType, mode);
    }

	public void batchSetStatus(Boolean status,String depotHeadIDs){
		depotHeadDao.batchSetStatus(status, depotHeadIDs);
	}

	public void findInDetail(PageUtil pageUtil,String beginTime,String endTime,String type,Long pid,String dids) throws JshException {
		depotHeadDao.findInDetail(pageUtil,beginTime,endTime,type,pid,dids);
	}

	public void findInOutMaterialCount(PageUtil pageUtil,String beginTime,String endTime,String type,Long pid,String dids) throws JshException {
		depotHeadDao.findInOutMaterialCount(pageUtil,beginTime,endTime,type,pid,dids);
	}

	public void findMaterialsListByHeaderId(PageUtil pageUtil,Long headerId) throws JshException {
		depotHeadDao.findMaterialsListByHeaderId(pageUtil, headerId);
	}

	public void findStatementAccount(PageUtil pageUtil,String beginTime,String endTime,Long organId,Long pid,String dids) throws JshException {
		depotHeadDao.findStatementAccount(pageUtil, beginTime, endTime, organId, pid, dids);
	}

	public void getHeaderIdByMaterial(PageUtil pageUtil,String materialParam) throws JshException {
		depotHeadDao.getHeaderIdByMaterial(pageUtil, materialParam);
	}
}
