package cn.superdesk.uniorder.service.invoice.supplier;

import cn.superdesk.uniorder.common.security.dto.LoginSysUser;
import cn.superdesk.uniorder.dao.entity.invoice.supplier.InvoiceApplySupplier;
import cn.superdesk.uniorder.dto.param.invoice.supplier.status.InvoiceApplySupplierOpReceiveInvoiceStatusForm;

import java.util.List;

/**
 * @Description: 开票申请 发票管理
 * @Author: linjinyu 重构
 * @CreateDate: 7/28/20 7:52 PM
 * @UpdateUser: linjinyu
 * @UpdateDate: 7/28/20 7:52 PM
 * @UpdateRemark: 修改内容
 * @Version: 1.0
 */
public interface InvoiceApplySupplierFieldReceiveInvoiceStatusService {


	/****************************************** 状态机 公共方法 机内使用 实际流转 重用 start ******************************************/

	// 状态流转为 未收票(0, "未收票")
	void opInitByStateMachine(InvoiceApplySupplier entity, LoginSysUser loginSysUser);

	// 状态流转为 已收票(1, "已收票")
	void opReceiveByStateMachine(InvoiceApplySupplier entity, LoginSysUser loginSysUser);

	// 状态流转为 已收票(1, "已收票")
	void opReceiveByStateMachine(List<InvoiceApplySupplier> entitys, InvoiceApplySupplierOpReceiveInvoiceStatusForm form, LoginSysUser loginSysUser);

	/****************************************** 状态机 公共方法 机内使用 实际流转 重用   end ******************************************/


	/****************************************** 状态机 外部使用 类门面 start ******************************************/

	// 状态流转为 未收票(0, "未收票")
	void opInit(InvoiceApplySupplier entity, LoginSysUser loginSysUser);

	// 状态流转为 已收票(1, "已收票")
	void opReceive(InvoiceApplySupplier entity, LoginSysUser loginSysUser);

	// 状态流转为 已收票(1, "已收票")
	void opReceive(List<InvoiceApplySupplier> entitys, InvoiceApplySupplierOpReceiveInvoiceStatusForm form, LoginSysUser loginSysUser);

	/****************************************** 状态机 外部使用 类门面   end ******************************************/
}
