package com.bcxin.survey.service.manage;

import com.bcxin.survey.domain.report.Task;
import com.bcxin.survey.dto.TaskDetailVo;
import com.bcxin.survey.dto.TaskSearchDto;
import com.bcxin.survey.vo.DwzPage;

import java.util.List;
import java.util.Map;

public interface TaskManageService {

	boolean saveOrUpdate(Task task);
	
	List<Task> findAllTaskListForSurvey();

	boolean acceptTask(Task task);

	Map<String, String> distributeTask(String oid, String assgin) throws Exception;

	boolean refuseTask(Task task);

	void sendUnReceiveTaskMsgForPM();

	void endOverTimeTask();

	void openEndOverTimeTask();

	List<Task> findAllSurveyTaskListForPage(DwzPage page);

	List<TaskDetailVo> findSurveyTaskListForPage(TaskSearchDto searchDto, DwzPage page);
}