コード例 #1
0
        private void runTreatmentNotesForDate(string aDate)
        {
            intChart = new IntelleChartSpider(propertyFile);
            this.currentStatus = "Retrieving all Patients";
            DateTime thisDate = DateTime.Parse(aDate);
            if (allChartNumbers.ContainsKey(thisDate))
            {
                intChart.getAllPatients(aDate, (string[]) allChartNumbers[thisDate]);
            }
            this.currentStatus = "Downloading Treatment Notes";
            
            DateTime theDate = DateTime.Now;
            if (aDate != null && aDate.Length > 0)
            {
                theDate = DateTime.Parse(aDate);
            }
            List<Hashtable> allLetters;
            string[] thisChartNumbers;
            foreach (DictionaryEntry entry in allChartNumbers) {
                thisChartNumbers = (string[]) entry.Value;
                for (int i = 0; i < thisChartNumbers.Length; i++)
                {
                    allLetters = intChart.downloadTreatmentNotes(data["TREATMENT_NOTES"], thisChartNumbers[i], ((DateTime)entry.Key).ToString("MM/dd/yyyy"), this.forceDownload);
                }

            }
            this.currentStatus = "Complete";
        }