IDialogService.cs 1.2 KB
namespace IndustrialControl.Services;

public interface IDialogService
{
    Task AlertAsync(string title, string message, string accept = "确定");
    Task<bool> ConfirmAsync(string title, string message, string accept = "确定", string cancel = "取消");
    Task<string?> PromptAsync(string title, string message, string? initial = null, string? placeholder = null,
                              int? maxLength = null, Keyboard? keyboard = null);

    /// 选择库位(返回选中的库位信息;取消返回 null)
    Task<BinInfo?> SelectBinAsync(string? preselectBinCode = null);
}

/// 表格右侧每行的数据模型(和你的截图列对应)
public class BinInfo
{
    public string BinCode { get; set; } = "";      // 库位编号 A1-101
    public string WarehouseName { get; set; } = ""; // 仓库名称 半成品库
    public string WarehouseCode { get; set; } = ""; // 仓库编码 FBCPK
    public string Layer { get; set; } = "";         // 层数 货架层A1-1
    public string Shelf { get; set; } = "";         // 货架 货架A1
    public string Zone { get; set; } = "";          // 分区 区域A
    public string Status { get; set; } = "-";       // 存货状态
    public string ShelfPath { get; set; } = "";
}