Beispiel #1
0
        public static string GetMachineHaltReasonsWithTreeGridFormat()
        {
            DataTable dt   = MachineHaltReasonsService.GetMachineHaltReasons();
            string    json = TreeGridJsonParser.DataTableToJsonByLevelCode(dt, "LevelCode", "MachineHaltReasonID", "ReasonText", "ReasonStatisticsTypeId", "Remarks", "Enabled");

            return(json);
        }
Beispiel #2
0
        public static string GetReasonStatisticsTypeData()
        {
            string m_ReasonStatisticsTypeValue = MachineHaltReasonsService.GetReasonStatisticsTypeInfo();

            return(m_ReasonStatisticsTypeValue);
        }
Beispiel #3
0
        public static void SaveMachineHaltReasons(string json)
        {
            DataTable dt = TreeGridJsonParser.JsonToDataTable(json);

            MachineHaltReasonsService.SaveMachineHaltReasons(dt);
        }