/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.security.trans.projectBudgetManagement.service;

import org.security.trans.projectBudgetManagement.dto.ProjectDTO;
import org.security.trans.projectBudgetManagement.dto.ProjectOverReviewDTO;
import org.security.trans.projectBudgetManagement.dto.ProjectPayPlanDTO;
import org.security.trans.projectBudgetManagement.entity.Project;
import org.security.trans.projectBudgetManagement.vo.ProjectContractVO;
import org.security.trans.projectBudgetManagement.vo.ProjectPayPlanVO;
import org.security.trans.projectBudgetManagement.vo.ProjectVO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.security.trans.projectBudgetManagement.vo.RemindDataVO;

import java.text.ParseException;
import java.util.List;

/**
 * 项目管理-项目管理信息主表 服务类
 *
 * @author BladeX
 * @since 2022-08-05
 */
public interface IProjectService extends IService<Project> {

	/**
	 * 自定义分页
	 *
	 * @param page
	 * @param projectDTO
	 * @return
	 */
	IPage<ProjectVO> selectProjectPage(IPage<ProjectVO> page, ProjectDTO projectDTO);

	/**
	 * 获取项目信息
	 * @param id
	 * @return
	 */
	ProjectVO getData(String id);

	/**
	 * 保存项目相关信息
	 * @param projectDTO
	 * @return
	 */
	boolean saveData(ProjectDTO projectDTO);

	/**
	 * 删除项目信息
	 * @param toLongList 项目信息id
	 * @return
	 */
	boolean removeData(List<Long> toLongList);

	/**
	 * 获取父级项目信息
	 * @return
	 */
	List<ProjectVO> getParentProject();

	/**
	 * 项目管理-项目结项
	 * @param id 项目id
	 * @return
	 */
	boolean projectOver(String id);

	/**
	 * 结项项目审阅
	 * @param projectOverReviewDTO 结项项目审阅信息
	 * @return
	 */
	boolean projectOverReview(ProjectOverReviewDTO projectOverReviewDTO);

	/**
	 * 首页-设备维保到期、项目付款计划时间到期、项目合同到期提醒
	 */
	List<RemindDataVO> getRemindData() throws ParseException;


	ProjectPayPlanVO getProjectPayPlanData(String id);

	ProjectContractVO getProjectContractData(String id);
}
