Пример #1
0
        public string GetProductLineData()
        {
            DCSAlarmService service = new DCSAlarmService();

            DataTable dt = service.GetProductLine();
            string[] column = {"ID","Name"};
            string result = ComboboxJsonParser.DataTableToJson(dt, column);

            return result;
        }
Пример #2
0
        public string GetDCSWarningLogData()
        {
            DCSAlarmService service = new DCSAlarmService();

            DataTable dt = service.GetDCSWarningLog();
            string[] column = { "WarningTime", "Label", "EndingTime", "Message", "HandleInformation" };
            string result = DataGridJsonParser.DataTableToJson(dt, column);

            return result;
        }