using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Text; using System.Windows; namespace BBWY.Client.Models.SealBox { /// /// 待配置 /// public class SealBoxConfigureModel : NotifyObject { /// /// 任务id /// public string TaskIdRemark { get; set; } /// /// skuid /// public string SkuId { get; set; } /// /// sku标题 /// public string SkuName { get; set; } /// /// 任务id /// public long TaskId { get; set; } /// /// 任务状态 /// private TaskState? taskState; /// /// 任务状态 /// public TaskState? TaskState { get => taskState; set { Set(ref taskState, value); } } private int skuCount; /// /// sku任务数 /// public int SkuCount { get => skuCount; set { Set(ref skuCount, value); } } private int waitConfigureCount; /// /// 待分配数量 /// public int WaitConfigureCount { get { return waitConfigureCount; } set { Set(ref waitConfigureCount, value); } } /// /// sku图片 /// public string Logo { get; set; } private ObservableCollection wareHourseDatas = new ObservableCollection(); /// /// 装箱配置列表 /// public ObservableCollection WareHourseDatas { get => wareHourseDatas; set { Set(ref wareHourseDatas, value); } } private WareType? wareType; public WareType? WareType { get => wareType; set { Set(ref wareType, value); } } } /// /// 封箱配置 装箱配置 /// public class SealBoxConfigureWareHourseModel : NotifyObject { public string TaskIdRemark { get; set; } public long TaskId { get; set; } public Action TotalWareCount { get; set; } private int count; public int Count { get => count; set { Set(ref count, value); OnCountChanged(); } } private void OnCountChanged() { if (Count<0) { MessageBox.Show("数量不能为负数"); return; } if (TotalWareCount != null) TotalWareCount(Count, TaskId); } private string wareId; public string WareId { get => wareId; set { Set(ref wareId, value); } } private string wareName; public string WareName { get => wareName; set { Set(ref wareName, value); } } private PositionState? wareState; /// ///待封箱 = 0, 待落仓 = 1, 待落仓已配置 = 2,待完结=3 /// public PositionState? WareState { get => wareState; set { Set(ref wareState, value); } } /// ///封箱id /// public long? SealBoxId { get; set; } //private WareType? wareType; //public WareType? WareType { get => wareType; set { Set(ref wareType, value); } } } }