using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WCS.BLL.DbModels;
using WCS.BLL.DbModels.Task;
using WCS.Model;
using static WCS.BLL.HardWare.WarningLight;
namespace WCS.BLL.HardWare
{
///
/// 货架基类
///
public interface IShelfBase
{
///
/// 货架是否处于报警中
///
public bool IsWarning { get; set; }
///
/// 货架类型名称
///
public string ShelfTypeName { get; set; }
///
/// 货架ID 数据库中那个
///
public int ShelfId { get; set; }
///
/// 货架编码
///
public string ShelfCode { get; set; }
///
/// 货架模组行数
///
public int RowCounts { get; set; }
///
/// 货架模组列数
///
public int ColumnCounts { get; set; }
public int LightId { get; set; }
public LightColorEnum LightColor { get; set; }
public List ModuleIds { get; set; }
public List Modules { get; set; }
public List MXL4Modules { get; set; }
public string ClientIp { get; set; }
///
/// 货架当前模式
///
public WCS.BLL.DbModels.Task.TaskModeEnum CurrentMode { get; set; }
///
/// 设置到当前模式的时间
///
public DateTime SetCurrentModeTime { get; set; }
public MatInfoResponse InStoreData { get; set; }
public List ExceptionMessages { get; set; }
public string OrderNumber { get; set; }//出库/盘点模式中的单据号
public string ModulesStr { get; set; }
///
/// 货架组别
///
public string GroupName { get; set; }
public string WebSocketIpAddress { get; set; }
public string? CurrentCom { get; set; }
///
/// 模组
///
//public List Modules { get; set; }
///
/// 设置货架模式
///
public void SetCurrentMode(TaskModeEnum mode);
///
/// 货架进入入库模式
///
public void GoInInstore(string? IPAdress);
///
/// 货架退出入库模式
///
public void GoOutInstore();
///
/// 货架进入出库模式
///
public void GoInOutstore(List MatDetails, OutOrder outOrder,string OperateUser);
///
/// 货架退出出库模式
///
public void GoOutOutstore();
///
/// 货架进入盘点模式
///
public void GoInStocktaking(List MatDetails, StockTakingOrder outOrder);
///
/// 货架单个确认盘点
///
public bool ConfirmStocktakingSingle(int BoardId, int LightNumber);
///
/// 货架退出盘点模式
///
public void GoOutStocktaking();
///
/// 货架报警
///
public void Warning();
///
/// 货架复位
///
public void Reset();
///
/// 货架自检
///
public void ShelfCheck();
}
}