示例#1
0
        public void TestGetAlarmDepartmentViewModelByQuarter()
        {
            DateTime today = DateTime.Now;
            AlarmDepartmentService   service   = new AlarmDepartmentService();
            AlarmDepartmentViewModel ViewModel = service.GetViewModel("000001G001", "01000", "SS", today.ToString("yyyy-MM"));

            Console.WriteLine(UtilTest.GetJson(ViewModel));
        }
示例#2
0
        public void TestGetAlarmDepartmentViewModelByUser()
        {
            DateTime today = DateTime.Now;
            AlarmDepartmentService   service   = new AlarmDepartmentService();
            AlarmDepartmentViewModel ViewModel = service.GetViewModelByUserName("admin");

            Console.WriteLine(UtilTest.GetJson(ViewModel));
        }
示例#3
0
        public void TestSetAlarmDepartmentLevelUpdata()
        {
            DateTime today = DateTime.Now;
            AlarmDepartmentService service = new AlarmDepartmentService();
            decimal l1     = 0.2m;
            decimal l2     = 0.5m;
            int     result = service.SetDeptBuildAlarmLevel("000001G001", "01000", l1, l2);

            Console.WriteLine(UtilTest.GetJson(result));
        }