コード例 #1
0
        private void runData(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 Encounter Forms";
            DateTime theDate = DateTime.Now;
            if (aDate != null && aDate.Length > 0)
            {
                theDate = DateTime.Parse(aDate);
            }
            List<Hashtable> allLetters;
            string []chartNumbers;
            foreach(DictionaryEntry entry in allChartNumbers){
                chartNumbers = (string[]) entry.Value;
                theDate = ((DateTime) entry.Key);
                for (int i = 0; i < chartNumbers.Length; i++)
                {

                    allLetters = intChart.downloadData(data["ENCOUNTER_DATA_FOLDER"], chartNumbers[i], theDate.ToString("yyyy-MM-dd"), this.forceDownload);
                }
            }
            this.currentStatus = "Complete";
        }