Ejemplo n.º 1
0
        public void TestMethod1()
        {
            var parameters = new Dictionary <DictionaryParameter, string>();

            //parameters[DictionaryParameter.LocationCountry] = "GE";
            parameters[DictionaryParameter.StartDate] = new DateTime(2014, 09, 25).ToShortDateString();
            using (var dataAccess = new AgeingDataAccess(parameters))
            {
                var d = dataAccess.GetAgeingEntries();
            }
            Assert.IsTrue(true);
        }
Ejemplo n.º 2
0
        private void RefreshGrid()
        {
            var mergedParameters = ucParameters.GetParameterDictionary();

            List <AgeingRow> ageingData;

            using (var dataAccess = new AgeingDataAccess(mergedParameters))
            {
                lblLastUpdate.Text = LastUpdatedFromFleetNow.GetLastUpdatedDateTime(dataAccess);
                ageingData         = dataAccess.GetAgeingEntries();
            }
            ucAgeingGrid.LoadGrid(ageingData);
        }
Ejemplo n.º 3
0
        private void PopulateAgeingReport(Dictionary <DictionaryParameter, string> parameters)
        {
            List <AgeingRow> ageingData;

            using (var dataAccess = new AgeingDataAccess(parameters))
            {
                ageingData = dataAccess.GetAgeingEntries();
            }
            ucAgeingGrid.LoadGrid(ageingData);
            ucAgeingChart.LoadChart(ageingData);
            upAgeingGrid.Update();
            upAgeingChart.Update();
        }