Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        /// <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();
        }
Ejemplo n.º 3
0
 /// <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();
 }
Ejemplo n.º 4
0
        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();
        }