static void SACalc() { SACalculate Calc = new SACalculate(); DateTime StartDateTime = new DateTime(2014, 3, 1, 0, 0, 0); DateTime EndDateTime = new DateTime(2014, 3, 14); //Calc.ArchiveCalculation(StartDateTime, EndDateTime); Calc.Calculation(); Calc.CalcShiftSAScore(); //for (int i = 0; i < 1000; i++) { // Calc.Calculation(); //} Console.ReadLine(); }
/// <summary> /// 重算7月份安全得分 /// </summary> static void ReCalc() { SACalculate Calc = new SACalculate(); DateTime StartDateTime = new DateTime(2014, 8, 1, 0, 30, 0); DateTime EndDateTime = StartDateTime.AddHours(8); DateTime EndDate = new DateTime(2014, 9, 1, 0, 30, 0); while (EndDateTime <= EndDate) { Console.WriteLine("开始时间:{0},结束时间:{1} ", StartDateTime, EndDateTime); Calc.Calculate(StartDateTime, EndDateTime); StartDateTime = EndDateTime; EndDateTime = StartDateTime.AddHours(8); //Console.WriteLine("开始时间:{0},结束时间:{1} ",StartDateTime, EndDateTime); } //Console.Read(); }
static void SACalc() { SACalculate Calc = new SACalculate(); DateTime StartDateTime = new DateTime(2014, 3, 1,0,0,0); DateTime EndDateTime = new DateTime(2014, 3, 14); //Calc.ArchiveCalculation(StartDateTime, EndDateTime); Calc.Calculation(); Calc.CalcShiftSAScore(); //for (int i = 0; i < 1000; i++) { // Calc.Calculation(); //} Console.ReadLine(); }