Exemplo n.º 1
0
 private void DoClearQuery(object obj)
 {
     FormQuery     = new QueryVM();
     Responses     = new ObservableCollection <QueryResponseVM>();
     Response      = String.Empty;
     AllowReject   = AllowSubmit = false;
     QueryWorkflow = String.Empty;
 }
Exemplo n.º 2
0
 public void ClearState()
 {
     Responses     = new ObservableCollection <QueryResponseVM>();
     Queries       = new ObservableCollection <QueryVM>();
     FormQuery     = new QueryVM();
     AllowReject   = AllowSubmit = false;
     QueryWorkflow = String.Empty;
 }
Exemplo n.º 3
0
        private void DoOpenTan(object obj)
        {
            QueryVM queryVm = obj as QueryVM;

            if (queryVm != null && queryVm.tanId > 0)
            {
                System.Windows.Application.Current.Dispatcher.Invoke(() =>
                {
                    new PdfReaderForm().OpenDocument(queryVm.DocumentPath, false);
                });
            }
        }
Exemplo n.º 4
0
 public QueryWindowVM()
 {
     RefreshQueries = new DelegateCommand(DoRefreshQueriesAsync);
     SaveQuery      = new DelegateCommand(DoSaveQueryAsync);
     ClearQuery     = new DelegateCommand(DoClearQuery);
     LoadResponses  = new DelegateCommand(DoLoadResponsesAsync);
     LoadWorkflow   = new DelegateCommand(DoLoadWorkflow);
     Submit         = new DelegateCommand(DoSubmitAsync);
     Revert         = new DelegateCommand(DoRevertAsync);
     GetCurrentTan  = new DelegateCommand(DOGetCUrrentTan);
     FormQuery      = new QueryVM();
     Responses      = new ObservableCollection <QueryResponseVM>();
     ClearState();
 }