private void AddStaffCategory(BOM.Entities.Defs.StaffRole category) { var item = new KeyLabelInfo { Key = (int)category, Label = Staff.StaffRoleToString((short)category) }; _items.Add(item); }
private void GetStaffTypes() { var query = new ImpacRdbQuery(typeof(Prompt)); query.AddClause(PromptDataRow.PGroupEntityColumn, EntityQueryOp.EQ, "STF0"); query.AddClause(PromptDataRow.TextEntityColumn, EntityQueryOp.NE, "Location"); var staffTypes = _pm.GetEntities <Prompt>(query); foreach (var staffType in staffTypes) { var item = new KeyLabelInfo { Key = staffType.Pro_ID, Label = staffType.Text }; _items.Add(item); } }