Exemple #1
0
 public IEnumerable<EmployeeCard> GetEmployees(EmployeeCardIndexFilter filter)
 {
     try
     {
         return EmployeeResultTranslator.Translate(Context.GetAllEmployees(filter.ClockNumber, filter.LastName, filter.FirstName, filter.SecondName, filter.GroupId, filter.DepartmentId, filter.PositionId));
     }
     catch { return new List<EmployeeCard>(); }
 }
 public EmployeeCardIndexViewModel()
 {
     Menu = new EmployeeCardIndexMenuViewModel(this);
     AddCommand = new RelayCommand(OnAdd);
     DeleteCommand = new RelayCommand(OnDelete, CanEditRemove);
     EditCommand = new RelayCommand(OnEdit, CanEditRemove);
     RefreshCommand = new RelayCommand(OnRefresh);
     FilterCommand = new RelayCommand(OnFilter);
     ClearFilterCommand = new RelayCommand(OnClearFilter, CanClearFilter);
     EmployeeCardIndex = new ObservableCollection<EmployeeCardViewModel>();
     _filter = new EmployeeCardIndexFilter();
 }
 void OnClearFilter()
 {
     _filter = new EmployeeCardIndexFilter();
     Initialize();
 }
		public IEnumerable<EmployeeCard> GetAllEmployees(EmployeeCardIndexFilter filter)
		{
			return new List<EmployeeCard>(); 
		}
		public EmployeeCardIndexFilterViewModel(EmployeeCardIndexFilter filter)
		{
			Title = Resources.EmployeeCardIndexFilterTitle;
			Filter = filter;
			Initialize();
		}
 public IEnumerable<EmployeeCard> GetEmployees(EmployeeCardIndexFilter filter)
 {
     return SafeContext.Execute<IEnumerable<EmployeeCard>>(() => FiresecService.GetEmployees(filter));
 }
 public IEnumerable<EmployeeCard> GetAllEmployees(EmployeeCardIndexFilter filter)
 {
     return _skud.GetAllEmployees(filter);
 }
Exemple #8
0
 public static IEnumerable<EmployeeCard> GetEmployees(EmployeeCardIndexFilter filter)
 {
     return FiresecService.GetEmployees(filter);
 }