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,Long oId) throws JshException {
		depotHeadDao.findInDetail(pageUtil,beginTime,endTime,type,pid,dids,oId);
	}

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

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

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

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