/// <summary> /// 加载餐桌定位---餐桌类型定位 /// </summary> private void LoaderTableTypeLocation(string[] values) { flag = false; List <TableType> types = _TableStatusService.GetAllTypes(); TableLocationItems.Clear(); if (types != null) { foreach (var tt in types) { BaseTableModel ttm = new BaseTableModel(tt.TableTypeId, tt.Name); if (!flag) { LocationSelectedItem = ttm; flag = true; } if (values != null) { foreach (var value in values) { if (string.IsNullOrEmpty(value)) { continue; } if (tt.TableTypeId == int.Parse(value)) { ttm.Checked = true; } } } TableLocationItems.Add(ttm); } } }