/// <summary>
        /// 根据输入的餐桌编号查找餐桌
        /// </summary>
        internal void QueryNum(string InputNum)
        {
            if (string.IsNullOrEmpty(InputNum) && AddTableXaml.Title.Contains("请选择需要加入的桌台"))
            {
                InitBaseTableItemData(1);
                return;
            }
            else if (string.IsNullOrEmpty(InputNum) && AddTableXaml.Title.Contains("被加入"))
            {
                InitBaseTableItemData(0);
                return;
            }
            if (obs == null)
            {
                obs = new ObservableCollection <BaseTableModel>();
            }
            obs.Clear();
            foreach (var item in BaseTableItems)
            {
                if (item.Name.Contains(InputNum) || item.Id.ToString().Contains(InputNum))
                {
                    obs.Add(item);
                }
            }
            BaseTableItems.Clear();

            foreach (var ob in obs)
            {
                BaseTableItems.Add(ob);
            }
        }
 /// <summary>
 /// 初始化加台(加席)数据
 /// </summary>
 /// <param name="tables"></param>
 /// <param name="tables">status=0表示添加空闲的桌台,status=1表示添加正在使用的桌台,status=2添加待清的桌台</param>
 private void InitAddTableData(ICollection <Table> tables, int status)
 {
     if (tables != null && tables.Count > 0)
     {
         foreach (var table in tables)
         {
             ICollection <TableItem> tbItems = table.TableItem;
             if (tbItems != null && tbItems.Count > 0)
             {
                 foreach (var item in tbItems)
                 {
                     if (item.Status == status)
                     {
                         BaseTableItems.Add(new BaseTableModel(table.TableId, table.Name));
                     }
                 }
             }
         }
     }
 }