public string GetProductLineData() { DCSAlarmService service = new DCSAlarmService(); DataTable dt = service.GetProductLine(); string[] column = {"ID","Name"}; string result = ComboboxJsonParser.DataTableToJson(dt, column); return result; }
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; }