public string GetmastersDatas(string ProductLineID) { int id = 0; int.TryParse(ProductLineID, out id); MasterConfigureService service = new MasterConfigureService(); DataTable dt = service.GetMaser(id); string[] column = { "VariableName", "EquipmentName" }; string result = ComboboxJsonParser.DataTableToJson(dt, column); return(result); }
public string GetAlarmConfigureDatas(string ProductLineID) { int id = 0; int.TryParse(ProductLineID, out id); MasterConfigureService service = new MasterConfigureService(); DataTable dt = service.GetAlarmConfigure(id); string[] column = { "VariableName", "EquipmentName", "Ismaster", "Belong", "IsAlarm", "StopPosition", "AlarmPosition", "AlarmMessage" }; string result = DataGridJsonParser.DataTableToJson(dt, column); return(result); }