/// <summary> /// 加载餐桌定位区域定位 /// </summary> private void LoaderTableLocation(string[] values) { flag = false; List <Location> tts = _TableStatusService.GetAllLocation(); TableLocationItems.Clear(); if (tts != null) { foreach (var tt in tts) { BaseTableModel ttm = new BaseTableModel(tt.LocationId, tt.Name); if (!flag) { LocationSelectedItem = ttm; flag = true; } if (values != null) { foreach (var value in values) { if (string.IsNullOrEmpty(value)) { continue; } if (tt.LocationId == int.Parse(value)) { ttm.Checked = true; } } } TableLocationItems.Add(ttm); } } }