85 lines
3.6 KiB
C#
85 lines
3.6 KiB
C#
using System;
|
|
using MasaBlazorApp3.Pojo;
|
|
using MasaBlazorApp3.Pojo.Vo;
|
|
|
|
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);
|
|
//抽屉获取库存数据--药品绑定
|
|
Task<ChannelStockWithDrawerCount<ChannelStock>> GetChannelStockByBiaoDing(int DrawerNo, int Quantity=0);
|
|
//手术室药箱获取绑定数据
|
|
Task<PageMultiData<ChannelList, Plan>> GetAllChannelListWithPlan(int? take, int? skip);
|
|
/// <summary>
|
|
/// 手术室药箱绑定套餐
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
Task<bool> BindBox(ChannelList channelList);
|
|
/// <summary>
|
|
/// 手术室药箱解绑套餐
|
|
/// </summary>
|
|
/// <param name="list"></param>
|
|
/// <returns></returns>
|
|
Task<bool> UnBindBox(ChannelList list);
|
|
//获取手术室药箱中所有要补药的数据
|
|
Task<PageData<ChannelList>> GetAllBoxAddDrug(int? take, int? skip);
|
|
//手术室药箱补药获取毒麻柜中的药品信息
|
|
Task<List<BoxTakeVo>> getTakeInfoByBox(ChannelList cl);
|
|
//手术室药箱补药完成
|
|
Task<bool> BoxTakeFinish(List<BoxTakeVo> datas, ChannelList boxChannelList);
|
|
//手术室药箱入库
|
|
Task<PageData<ChannelList>> GetBoxWaitInfo(int? take, int? skip);
|
|
//手术室药箱入库获取待入库明细
|
|
Task<List<BoxTakeVo>> getBoxWaitByBox(ChannelList cl);
|
|
|
|
|
|
//手术室药箱获取药箱药品及库存信息
|
|
Task<PageData<PlanDetails>> GetBoxDrugInfo(int DrawerNo, int? take, int? skip);
|
|
//药箱移库时获取选中药箱号的药品信息
|
|
Task<PageData<ChannelStock>> GetChannelStockByDrug(ChannelStock cs, int drawerNo, int? take, int? skip);
|
|
|
|
/// <summary>
|
|
/// 药箱交换药品获取所有除本药箱外的所有药箱号
|
|
/// </summary>
|
|
/// <param name="machineId"></param>
|
|
/// <returns></returns>
|
|
Task<int[]> GetDrawerNum(ChannelStock channelStock);
|
|
|
|
/// <summary>
|
|
/// 药箱移除药品,获取所有除本药箱外的所有包含该药品的药箱号
|
|
/// </summary>
|
|
/// <param name="machineId"></param>
|
|
/// <returns></returns>
|
|
Task<int[]> GetDrawerNumForRemove(ChannelStock channelStock);
|
|
|
|
//手术室药箱交换药品完成
|
|
Task<bool> BoxReplaceFinish(ChannelStock stock, List<ChannelStock> Stocks);
|
|
//手术室药箱移出药品完成
|
|
Task<bool> BoxRemoveFinish(ChannelStock stock, int SelectedDrawerNo, int removeQuantity);
|
|
}
|
|
}
|