Пример #1
0
        private void AddStaffCategory(BOM.Entities.Defs.StaffRole category)
        {
            var item = new KeyLabelInfo {
                Key = (int)category, Label = Staff.StaffRoleToString((short)category)
            };

            _items.Add(item);
        }
Пример #2
0
        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);
            }
        }