Beispiel #1
0
        private bool IsFirstRun()
        {
            if (repeaterHistoryData == null)
            {
                repeaterHistoryData = new RepeaterHistoryData();
                repeaterHistoryData.HistoryDataBeginDate = DateTime.Parse("2000-1-1");
                repeaterHistoryData.HistoryDataEndDate   = DateTime.Parse("2010-02-01");
                repeaterHistoryData.FirstRun             = 1;
            }

            if (!repeaterHistoryData.FirstRun.HasValue || repeaterHistoryData.FirstRun == 1)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Beispiel #2
0
        private void GetHistoryRunData()
        {
            DataCommand dc = DataCommandManager.GetDataCommand("GetHistoryRunData");

            repeaterHistoryData = dc.ExecuteEntity <RepeaterHistoryData>();
        }