コード例 #1
0
ファイル: FiresecServiceSKUD.cs プロジェクト: hjlfmy/Rubezh
 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>(); }
 }
コード例 #2
0
 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();
 }
コード例 #3
0
 void OnClearFilter()
 {
     _filter = new EmployeeCardIndexFilter();
     Initialize();
 }
コード例 #4
0
		public IEnumerable<EmployeeCard> GetAllEmployees(EmployeeCardIndexFilter filter)
		{
			return new List<EmployeeCard>(); 
		}
コード例 #5
0
		public EmployeeCardIndexFilterViewModel(EmployeeCardIndexFilter filter)
		{
			Title = Resources.EmployeeCardIndexFilterTitle;
			Filter = filter;
			Initialize();
		}
コード例 #6
0
 public IEnumerable<EmployeeCard> GetEmployees(EmployeeCardIndexFilter filter)
 {
     return SafeContext.Execute<IEnumerable<EmployeeCard>>(() => FiresecService.GetEmployees(filter));
 }
コード例 #7
0
 public IEnumerable<EmployeeCard> GetAllEmployees(EmployeeCardIndexFilter filter)
 {
     return _skud.GetAllEmployees(filter);
 }
コード例 #8
0
ファイル: FiresecManager.SKUD.cs プロジェクト: hjlfmy/Rubezh
 public static IEnumerable<EmployeeCard> GetEmployees(EmployeeCardIndexFilter filter)
 {
     return FiresecService.GetEmployees(filter);
 }