85 lines
3.6 KiB
C#
85 lines
3.6 KiB
C#
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Yh.SchClass.OpenApi.Model;
|
|
using YhCore.Entity;
|
|
using YhCore.Model.Dto;
|
|
using YhCore.Model.Vo;
|
|
|
|
namespace YhCore.Service.Interfaces
|
|
{
|
|
/// <summary>
|
|
/// 审核流程管理服务(对应旧 BestSchool.Service.Reviewprocess + UserFlowRole)。
|
|
/// </summary>
|
|
public interface IReviewProcessService
|
|
{
|
|
/// <summary>审核流程列表(分页)。</summary>
|
|
Task<PageVO<FlowListItem>> ListAsync(string name, int pageSize, int pageIndex, int flowType, bool edit, string schSerId);
|
|
|
|
/// <summary>审核流程列表【局版】(新框架无 groupId,降级为与 List 同源)。</summary>
|
|
Task<PageVO<FlowListItem>> List2Async(string name, int pageSize, int pageIndex, int flowType, bool edit, string schSerId);
|
|
|
|
/// <summary>步骤流程列表。</summary>
|
|
Task<PageVO<StepListItem>> StepListAsync(string name, int serid);
|
|
|
|
/// <summary>添加审核流程。</summary>
|
|
Task CreateAsync(Common_flowinfo model);
|
|
|
|
/// <summary>修改审核流程。</summary>
|
|
Task EditAsync(Common_flowinfo model);
|
|
|
|
/// <summary>添加步骤流程。</summary>
|
|
Task StepCreateAsync(Common_flowstep model);
|
|
|
|
/// <summary>修改步骤流程。</summary>
|
|
Task StepEditAsync(Common_flowstep model);
|
|
|
|
/// <summary>删除审核流程(软删除 enable=3)。</summary>
|
|
Task DeleteAsync(string ids);
|
|
|
|
/// <summary>删除步骤。</summary>
|
|
Task StepDeleteAsync(decimal[] ids);
|
|
|
|
/// <summary>流程绑定的步骤列表。</summary>
|
|
Task<List<BindStepItem>> BindstepListAsync(int serid);
|
|
|
|
/// <summary>绑定步骤的人员。</summary>
|
|
Task<List<BindGroupuserItem>> BindGroupuserListAsync(int flowid, int prestep);
|
|
|
|
/// <summary>绑定流程(流程 + 抄送人)。</summary>
|
|
Task<List<BindFlowItem>> BindflowinfoAsync(string schSerId, int flowType);
|
|
|
|
/// <summary>当前学校教师列表。</summary>
|
|
Task<List<TeaOption>> GetTeaListAsync(string schSerId);
|
|
|
|
/// <summary>学校 + 教育局教师列表(降级为当前学校)。</summary>
|
|
Task<List<TeaOption>> GetTeaListSupAsync(string schSerId);
|
|
|
|
/// <summary>教师信息分页。</summary>
|
|
Task<PageVO<TeaInfoVo>> GetUserinfoAsync(string schSerId, string name, int statetype, int pageSize, int pageIndex);
|
|
|
|
/// <summary>非中层领导人员(teaId 数组)。</summary>
|
|
Task<string[]> GetNoLeadingMiddleInfoAsync(string schSerId);
|
|
|
|
/// <summary>非中层领导人员【局版】(降级为当前学校)。</summary>
|
|
Task<string[]> GetNoLeadingMiddleInfoSupAsync(string schSerId);
|
|
|
|
/// <summary>设置/取消中层领导(教务 SDK 未提供写接口,暂不支持)。</summary>
|
|
Task ChangeLeadingMiddleStatusAsync(int state, string userTeaSerIdStr);
|
|
|
|
/// <summary>附件数据源。</summary>
|
|
Task<List<FileListItem>> FilelistAsync(string ids);
|
|
|
|
/// <summary>该校审核流程是固定还是自由。</summary>
|
|
Task<ShenheFlowResult> IsShenheflowAsync(string schSerId, int userId);
|
|
|
|
/// <summary>绑定抄送默认人。</summary>
|
|
Task<List<SendUserItem>> IsSendUserAsync(string schSerId, int userId);
|
|
|
|
/// <summary>当前用户基础信息。</summary>
|
|
Task<CurrentUserInfo> GetUserAsync();
|
|
|
|
/// <summary>用户流程角色(1 有固定/自由流程,0 无)。</summary>
|
|
Task<int> GetUserFlowRoleAsync(int userId);
|
|
}
|
|
}
|