HKC_Blazor/MasaBlazorApp3/DataAccess/Dao/IChannelListDao.cs

101 lines
4.4 KiB
C#
Raw Normal View History

2025-04-18 11:01:56 +08:00
using System;
using MasaBlazorApp3.Pojo;
2025-06-24 08:55:34 +08:00
using MasaBlazorApp3.Pojo.Vo;
2025-04-18 11:01:56 +08:00
namespace MasaBlazorApp3.DataAccess.Dao
{
public interface IChannelListDao
{
public Task<PageData<ChannelStock>> GetAllChannelList(int DrawerType, string drugName, int? take, int? skip);
public Task<List<ChannelStock>> GetChannelStockByDrugId(string DrugId);
public Task<List<ChannelList>> GetChannelListByDrawerNo(int DrawerNo);
public Task<List<ChannelStock>> GetChannelStockByDrawerNo(int DrawerNo, int Quantity = 0);
public Task<List<ChannelStock>> GetAllDrugChannelStock();
public Task<List<ChannelList>> GetAllDrugChannelList();
public Task<bool> DrawerOperationFinish(List<ChannelStock> Stocks, int type);
public Task<bool> UnBind(string id);
public Task<bool> Bind(ChannelStock Stock);
Task<PageMultiData<ChannelStock,DrugInfo>> GetAllChannelListWithDrug(int DrawerType, string drugName, int? take, int? skip);
Task<ChannelStockWithDrawerCount<ChannelStock>> GetChannelStockByDrawerNoWithDrawers(int DrawerNo, int Quantity = 0);
//盘点
public Task<bool> DrawerCheckFinish(List<ChannelStock> Stocks);
2025-05-20 11:17:07 +08:00
//抽屉获取库存数据--药品绑定
Task<ChannelStockWithDrawerCount<ChannelStock>> GetChannelStockByBiaoDing(int DrawerNo, int Quantity=0);
2025-08-21 18:25:23 +08:00
//手术室药盒获取绑定数据
2025-06-24 08:55:34 +08:00
Task<PageMultiData<ChannelList, Plan>> GetAllChannelListWithPlan(int? take, int? skip);
/// <summary>
2025-08-21 18:25:23 +08:00
/// 手术室药盒绑定套餐
/// </summary>
/// <returns></returns>
Task<bool> BindBox(ChannelList list, Plan plan);
/// <summary>
/// 手术室药盒绑定套餐
2025-06-24 08:55:34 +08:00
/// </summary>
/// <returns></returns>
Task<bool> BindBox(ChannelList channelList);
/// <summary>
2025-08-21 18:25:23 +08:00
/// 手术室药盒解绑套餐
2025-06-24 08:55:34 +08:00
/// </summary>
/// <param name="list"></param>
/// <returns></returns>
Task<bool> UnBindBox(ChannelList list);
2025-08-21 18:25:23 +08:00
//获取手术室药盒中所有要补药的数据
2025-06-24 08:55:34 +08:00
Task<PageData<ChannelList>> GetAllBoxAddDrug(int? take, int? skip);
2025-08-21 18:25:23 +08:00
//手术室药盒补药获取毒麻柜中的药品信息
2025-06-24 08:55:34 +08:00
Task<List<BoxTakeVo>> getTakeInfoByBox(ChannelList cl);
2025-08-21 18:25:23 +08:00
//手术室药盒补药完成
2025-06-27 09:54:42 +08:00
Task<bool> BoxTakeFinish(List<BoxTakeVo> datas, ChannelList boxChannelList);
2025-08-21 18:25:23 +08:00
//手术室药盒入库
2025-06-24 08:55:34 +08:00
Task<PageData<ChannelList>> GetBoxWaitInfo(int? take, int? skip);
2025-08-21 18:25:23 +08:00
// 药盒入库弹窗页面获取要入库的药品明细信息
Task<List<ChannelStock>> GetBoxAddToBox(ChannelList cl);
//手术室药盒入库获取待入库明细
2025-07-05 10:07:33 +08:00
Task<List<BoxTakeVo>> getBoxWaitByBox(ChannelList cl, int? take, int? skip);
2025-08-21 18:25:23 +08:00
// 手术室药盒待入库明细入库完成
2025-07-05 10:07:33 +08:00
Task<bool> BoxAddBoxFinish(ChannelList boxChannelList);
2025-06-27 09:54:42 +08:00
2025-08-21 18:25:23 +08:00
//手术室药盒获取药盒药品及库存信息
2025-08-30 08:54:40 +08:00
Task<PageData<PlanDetails>> GetBoxDrugInfo(string DrawerNo, int? take, int? skip);
2025-08-21 18:25:23 +08:00
//药盒移库时获取选中药盒号的药品信息
2025-08-30 08:54:40 +08:00
Task<PageData<ChannelStock>> GetChannelStockByDrug(ChannelStock cs, string drawerNo, int? take, int? skip);
2025-06-27 09:54:42 +08:00
/// <summary>
2025-08-21 18:25:23 +08:00
/// 药盒交换药品获取所有除本药盒外的所有药盒号
2025-06-27 09:54:42 +08:00
/// </summary>
/// <param name="machineId"></param>
/// <returns></returns>
2025-08-30 08:54:40 +08:00
Task<string[]> GetDrawerNum(ChannelStock channelStock);
2025-06-27 09:54:42 +08:00
/// <summary>
2025-08-21 18:25:23 +08:00
/// 药盒移除药品,获取所有除本药盒外的所有包含该药品的药盒号
2025-06-27 09:54:42 +08:00
/// </summary>
/// <param name="machineId"></param>
/// <returns></returns>
2025-08-30 08:54:40 +08:00
Task<string[]> GetDrawerNumForRemove(ChannelStock channelStock);
2025-06-27 09:54:42 +08:00
2025-08-21 18:25:23 +08:00
//手术室药盒交换药品完成
2025-06-27 09:54:42 +08:00
Task<bool> BoxReplaceFinish(ChannelStock stock, List<ChannelStock> Stocks);
2025-08-21 18:25:23 +08:00
//手术室药盒移出药品完成
2025-06-27 09:54:42 +08:00
Task<bool> BoxRemoveFinish(ChannelStock stock, int SelectedDrawerNo, int removeQuantity);
2025-08-21 18:25:23 +08:00
Task<List<ChannelList>> GetAllBox();
//根据药盒查询药品信息
Task<List<ChannelStock>> GetChannelStockByBox(int BoxNum);
//根据套餐下无库存的药箱
Task<List<ChannelStock>> GetChannelStockByPlan(string plan);
//手术室药盒获取绑定数据
Task<List<ChannelList>> GetAllChannelList();
2025-04-18 11:01:56 +08:00
}
}