예제 #1
0
        public static void Main(string[] args)
        {
            var options = ParserCommandLineArguments(args);

            DocumasterClients documasterClients = new DocumasterClients(options);

            SystemInitializationSample initializationSample = new SystemInitializationSample(documasterClients);

            initializationSample.Execute();

            IntegrationSample integrationSample =
                new IntegrationSample(documasterClients, options.TestFile1, options.TestFile2);

            integrationSample.Execute();

            SignOffSample signOffSample = new SignOffSample(documasterClients);

            signOffSample.SignOffRegistryEntry("56", new List <string>()
            {
                "73"
            });

            FinalizationSample finalizationSample = new FinalizationSample(documasterClients);

            finalizationSample.FinalizeObjectsInJournal("34", "35", "36", "37");
            finalizationSample.FinalizeObjectsInArchive("42", "43", "44", "45");

            QuerySample querySample = new QuerySample(documasterClients);

            querySample.GetCodeLists();
            querySample.GetCaseFilesByExternalId("14", "2344-11", "External system");
            querySample.GetCaseFileBySecondaryClass("14", "45503", "John Doe");
            querySample.GetRegistryEntriesCreatedInDateRange("14", DateTime.Now.AddDays(-2), DateTime.Now);

            FullTextSearchSample fullTextSearchSample = new FullTextSearchSample(documasterClients);

            fullTextSearchSample.Search();
        }
예제 #2
0
 public SystemInitializationSample(DocumasterClients documasterClients)
 {
     this.documasterClients = documasterClients;
 }
예제 #3
0
 public SignOffSample(DocumasterClients documasterClients)
 {
     this.documasterClients = documasterClients;
 }
 public FinalizationSample(DocumasterClients documasterClients)
 {
     this.documasterClients = documasterClients;
 }
예제 #5
0
 public QuerySample(DocumasterClients documasterClients)
 {
     this.documasterClients = documasterClients;
 }
예제 #6
0
 public FullTextSearchSample(DocumasterClients documasterClients)
 {
     this.documasterClients = documasterClients;
 }
예제 #7
0
 public IntegrationSample(DocumasterClients documasterClients, string testFile1, string testFile2)
 {
     this.documasterClients = documasterClients;
     this.testFile1         = testFile1;
     this.testFile2         = testFile2;
 }