public override void LoadFilter(SKDReportFilter filter)
		{
			_OrganisationChangedSubscriber = new OrganisationChangedSubscriber(this);
			_reportFilter = filter as IReportFilterDepartment;
			var organisations = (filter as IReportFilterOrganisation).Organisations;
			OrganisationUIDs = organisations != null ? organisations : new List<Guid>();
			var filterArchive = filter as IReportFilterArchive;
			IsWithDeleted = filterArchive != null && filterArchive.UseArchive;
			InitializeFilter();
		}
Example #2
0
		public override void LoadFilter(SKDReportFilter filter)
		{
			_OrganisationChangedSubscriber = new OrganisationChangedSubscriber(this);
			_employeeFilter = filter as IReportFilterEmployee;
			if (_employeeFilter == null)
				return;
			AllowVisitor = _employeeFilter is IReportFilterEmployeeAndVisitor;
			_isEmployee = AllowVisitor ? ((IReportFilterEmployeeAndVisitor)_employeeFilter).IsEmployee : true;
			var organisationFilter = filter as IReportFilterOrganisation;
			OrganisationUIDs = organisationFilter != null && organisationFilter.Organisations != null ? organisationFilter.Organisations : new List<Guid>();
			var filterArchive = filter as IReportFilterArchive;
			IsWithDeleted = filterArchive != null && filterArchive.UseArchive;
			OnPropertyChanged(() => IsEmployee);
			InitializeFilter();
		}