Exemplo n.º 1
0
        private void RequestApprove(object param)
        {
            MessageBoxResult messageBoxResult = MessageBox.Show("Jóváhagyás után az igénylés nem szerkeszthető a nyújtó csapat által! Folytatja?", "Megerősítés", MessageBoxButton.YesNo, MessageBoxImage.Question);
            ServiceRequest   requestToApprove = ServiceRequestDal.FindById(((ServiceRequest)((DataGrid)param).SelectedItem).ID);

            requestToApprove.RequestState = DictionaryDal.DictionaryListByType(5).First(x => x.ID == 24).ID;
            ServiceRequestDal.Update(requestToApprove);
            this.RequestedRequestsList = ReloadRequestedRequests();
            this.ProvidedRequestsList  = ReloadProvidedRequestsList();
        }
Exemplo n.º 2
0
        private ObservableCollection <ServiceRequest> ReloadRequestedRequests()
        {
            int?ProviderTeamFilterID = ProviderTeamFilter?.ID;
            int?RequestTypeID        = RequestedTypeFilter?.ID;
            int?RequestStateID       = RequestedStateFilter?.ID;
            int?CreatorID            = RequestedCreatorFilter?.ID;
            int?AssigneeID           = RequestedAssigneeFilter?.ID;

            return(new ObservableCollection <ServiceRequest>(ServiceRequestDal.ReloadRequestedRequests(ContextStudent, ToNullableInt(ProvidedNrFilter),
                                                                                                       ProviderTeamFilterID, RequestStateID, RequestTypeID, CreatorID, AssigneeID)));
        }
Exemplo n.º 3
0
        private ObservableCollection <ServiceRequest> ReloadProvidedRequestsList()
        {
            int?RequesterTeamFilterID = RequesterTeamFilter?.ID;
            int?RequestTypeID         = CompleteRequestTypeFilter?.ID;
            int?RequestStateID        = CompleteRequestStateFilter?.ID;
            int?CreatorID             = CompleteCreatorFilter?.ID;
            int?AssigneeID            = OurAssignee?.ID;

            return(new ObservableCollection <ServiceRequest>(ServiceRequestDal.ReloadProvidedRequestsList(ContextStudent, ToNullableInt(ToCompleteNrFilter),
                                                                                                          RequesterTeamFilterID, RequestStateID, RequestTypeID, CreatorID, AssigneeID)));
        }
        private ObservableCollection <ServiceRequest> ReloadServiceRequestList()
        {
            int?requesterTeamFilterID   = RequesterTeamFilter?.ID;
            int?providerTeamFilterID    = ProviderTeamFilter?.ID;
            int?requestStateFilterID    = RequestStateFilter?.ID;
            int?requestTypeFilterID     = RequestTypeFilter?.ID;
            int?requestCreatorFilterID  = RequestCreatorFilter?.ID;
            int?requestAssigneeFilterID = RequestAssigneeFilter?.ID;

            return(new ObservableCollection <ServiceRequest>
                       (ServiceRequestDal.ReloadAllServiceRequests(SessionGroupID, ToNullableInt(RequestNrFilter), requesterTeamFilterID, providerTeamFilterID, requestStateFilterID,
                                                                   requestTypeFilterID, requestCreatorFilterID, requestAssigneeFilterID)));
        }