Ejemplo n.º 1
0
        public object GetMeterAlarmLog()
        {
            try
            {
                string userName = User.Identity.Name;

                return(service.GetAlarmLogViewModel(userName));
            }
            catch (Exception e)
            {
                return(e.Message);
            }
        }
Ejemplo n.º 2
0
        public void TestGet_AlarmLog_ByUser_BuildID_AlarmType()
        {
            MeterAlarmService service = new MeterAlarmService();

            var viewModel = service.GetAlarmLogViewModel("Admin", "000001G001", "2", "2019-06-26", "2019-06-26", 1, 50);

            Console.WriteLine(UtilTest.GetJson(viewModel));
        }
Ejemplo n.º 3
0
        public void TestGet_AlarmLog_User()
        {
            MeterAlarmService service = new MeterAlarmService();

            var viewModel = service.GetAlarmLogViewModel("Admin");

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