完善基础数据
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
using F9WebAiTest.Application.Common;
|
||||
using F9WebAiTest.Application.Dtos.SYS.Gongyingshangs;
|
||||
using F9WebAiTest.Domain.Enums.SYS.Gongyingshangs;
|
||||
using F9WebAiTest.Domain.Interfaces;
|
||||
|
||||
namespace F9WebAiTest.Application.Interfaces.Repositories.SYS.Gongyingshangs;
|
||||
|
||||
/// <summary>往来单位读仓储(返回读模型 DTO)</summary>
|
||||
public interface IGongyingshangReadRepository : IDInterface
|
||||
{
|
||||
/// <summary>按业务类型 + 销售类型(null=全部)+ 关键字分页查询</summary>
|
||||
Task<PageResult<GongyingshangReadDto_View>> GetPagedAsync(Gys_Type_Enum type, Gys_SaleType_Enum? saleType,
|
||||
string keyword, int pageIndex, int pageSize);
|
||||
|
||||
Task<GongyingshangDto_Edit> GetByIdForEditAsync(long id);
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
using F9WebAiTest.Application.Dtos.SYS.Registries;
|
||||
using F9WebAiTest.Domain.Interfaces;
|
||||
|
||||
namespace F9WebAiTest.Application.Interfaces.Repositories.SYS.Registries;
|
||||
|
||||
/// <summary>注册表读仓储(返回读模型 DTO)</summary>
|
||||
public interface IRegistryReadRepository : IDInterface
|
||||
{
|
||||
/// <summary>全部配置项(含未启用),供列表页构建命名空间树</summary>
|
||||
Task<List<RegistryReadDto_View>> GetAllAsync();
|
||||
|
||||
Task<RegistryReadDto_Edit> GetByIdForEditAsync(long id);
|
||||
|
||||
/// <summary>按命名空间 + 键名查询(各业务模块取值入口)</summary>
|
||||
Task<RegistryReadDto_Edit> GetByCategoryAndKeyAsync(string category, string keyName);
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
using F9WebAiTest.Application.Common;
|
||||
using F9WebAiTest.Application.Dtos.SYS.WorkTypes;
|
||||
using F9WebAiTest.Domain.Interfaces;
|
||||
|
||||
namespace F9WebAiTest.Application.Interfaces.Repositories.SYS.WorkTypes;
|
||||
|
||||
/// <summary>工种读仓储(返回读模型 DTO)</summary>
|
||||
public interface IWorkTypeReadRepository : IDInterface
|
||||
{
|
||||
Task<PageResult<WorkTypeReadDto_View>> GetPagedAsync(int pageIndex, int pageSize, string keyword);
|
||||
|
||||
Task<WorkTypeReadDto_Edit> GetByIdForEditAsync(long id);
|
||||
|
||||
/// <summary>某工种已绑定的部门</summary>
|
||||
Task<List<WorkTypeDepartmentReadDto_Cache>> GetDepartmentsAsync(long workTypeId);
|
||||
|
||||
/// <summary>某工种已关联的角色</summary>
|
||||
Task<List<WorkTypeRoleReadDto_Cache>> GetRolesAsync(long workTypeId);
|
||||
}
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
using F9WebAiTest.Application.Common;
|
||||
using F9WebAiTest.Application.Dtos.SYS.WuziMulus;
|
||||
using F9WebAiTest.Domain.Interfaces;
|
||||
|
||||
namespace F9WebAiTest.Application.Interfaces.Repositories.SYS.WuziMulus;
|
||||
|
||||
/// <summary>物资分组读仓储</summary>
|
||||
public interface IWuziGroupReadRepository : IDInterface
|
||||
{
|
||||
Task<List<WuziGroupReadDto_View>> GetAllAsync();
|
||||
Task<WuziGroupReadDto_Edit> GetByIdForEditAsync(long id);
|
||||
|
||||
/// <summary>是否存在下级分组</summary>
|
||||
Task<bool> ExistChildAsync(long id);
|
||||
|
||||
/// <summary>分组下是否存在物资</summary>
|
||||
Task<bool> ExistMuluAsync(long id);
|
||||
|
||||
/// <summary>生成新编号(父级编号 + 2 位序号)</summary>
|
||||
Task<string> GetNewCodeAsync(long parentId);
|
||||
}
|
||||
|
||||
/// <summary>物资目录读仓储</summary>
|
||||
public interface IWuziMuluReadRepository : IDInterface
|
||||
{
|
||||
Task<PageResult<WuziMuluReadDto_View>> GetPagedAsync(long groupId, string keyword, int pageIndex, int pageSize);
|
||||
|
||||
Task<WuziMuluReadDto_Edit> GetByIdForEditAsync(long id);
|
||||
|
||||
/// <summary>生成新编号(分组编号 + 2 位序号)</summary>
|
||||
Task<string> GetNewCodeAsync(long groupId);
|
||||
|
||||
/// <summary>物资选项(供其它模块选择物资;keyword 支持名称/编号/拼音模糊)</summary>
|
||||
Task<List<WuziMuluOptionDto>> GetOptionsAsync(string keyword, int limit);
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
using F9WebAiTest.Application.Common;
|
||||
using F9WebAiTest.Application.Dtos.SYS.WuziMulus;
|
||||
using F9WebAiTest.Application.Dtos.SYS.YuanliaoZhuangkous;
|
||||
using F9WebAiTest.Domain.Interfaces;
|
||||
|
||||
namespace F9WebAiTest.Application.Interfaces.Repositories.SYS.YuanliaoZhuangkous;
|
||||
|
||||
/// <summary>原料庄口读仓储(返回读模型 DTO)</summary>
|
||||
public interface IYuanliaoZhuangkouReadRepository : IDInterface
|
||||
{
|
||||
Task<PageResult<YuanliaoZhuangkouReadDto_Table>> GetPagedAsync(int year, string chandi, string zhandian, string jibie,
|
||||
string keyword, int pageIndex, int pageSize);
|
||||
|
||||
Task<YuanliaoZhuangkouReadDto_Edit> GetByIdForEditAsync(long id);
|
||||
|
||||
/// <summary>取某年度已使用的编号(用于自动生成下一个编号)</summary>
|
||||
Task<List<string>> GetCodesByYearAsync(int year);
|
||||
|
||||
/// <summary>物资(茧别)选项:来自物资目录中名称含"茧"的物资</summary>
|
||||
Task<List<WuziMuluOptionDto>> GetWuziOptionsAsync(string keyword);
|
||||
|
||||
/// <summary>按物资 Id 取名称(来自物资目录),不存在返回空串</summary>
|
||||
Task<string> GetWuziNameAsync(long wzmlId);
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
using F9WebAiTest.Application.Common;
|
||||
using F9WebAiTest.Application.Dtos.SYS.Zq;
|
||||
using F9WebAiTest.Domain.Interfaces;
|
||||
|
||||
namespace F9WebAiTest.Application.Interfaces.Repositories.SYS.Zq;
|
||||
|
||||
/// <summary>账期读仓储(返回读模型 DTO)</summary>
|
||||
public interface IZhangqiReadRepository : IDInterface
|
||||
{
|
||||
Task<PageResult<ZhangqiReadDto_View>> GetPagedAsync(int? year, string keyword, int pageIndex, int pageSize);
|
||||
|
||||
Task<ZhangqiReadDto_Edit> GetByIdForEditAsync(long id);
|
||||
|
||||
/// <summary>按日期查找所属账期(区间包含该日期)</summary>
|
||||
Task<ZhangqiReadDto_Edit> GetByDateAsync(DateTime date);
|
||||
|
||||
/// <summary>指定年月是否已扎帐</summary>
|
||||
Task<bool> GetIsZhaZhangAsync(int year, int month);
|
||||
|
||||
/// <summary>指定日期所属账期是否已扎帐</summary>
|
||||
Task<bool> GetIsZhaZhangByDateAsync(DateTime date);
|
||||
}
|
||||
Reference in New Issue
Block a user