Beispiel #1
0
        public void InitWeeks(int wkDay)
        {
            CDbUtility u = new CDbUtility();
            DateTime   startDate;
            DateTime   currDate;
            int        dow;

            currDate  = DateTime.Now;
            startDate = new DateTime(currDate.Year - 1, 1, 1);

            dow = DayOfWeekInt(startDate.DayOfWeek);

            while (dow != wkDay)
            {
                startDate = startDate.AddDays(1);
                dow       = DayOfWeekInt(startDate.DayOfWeek);
            }

            u.InitWeeksInDb(startDate);
        }
Beispiel #2
0
        public static DataSet GetJobStatList()
        {
            CDbUtility u = new CDbUtility();

            return(u.GetTestJobStat());
        }