예제 #1
0
        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;
        }
예제 #2
0
        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;
        }