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)); }
public void TestGetAlarmDepartmentViewModelByUser() { DateTime today = DateTime.Now; AlarmDepartmentService service = new AlarmDepartmentService(); AlarmDepartmentViewModel ViewModel = service.GetViewModelByUserName("admin"); Console.WriteLine(UtilTest.GetJson(ViewModel)); }
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)); }