public static String GetPOSTypeDisplayName(Int32 value) { MAS_WorkFlowService.RequestConfig config = (MAS_WorkFlowService.RequestConfig) System.Configuration.ConfigurationManager.GetSection("RequestConfig"); // config.Status var result = config.POSStatus[value].DisplayName; return(result); }
public static RequestConfigElement GetPOSType(string key) { MAS_WorkFlowService.RequestConfig config = (MAS_WorkFlowService.RequestConfig) System.Configuration.ConfigurationManager.GetSection("RequestConfig"); // config.Status var result = config.POSStatus[key]; return(result); }
public static MAS_WorkFlowService.RequestConfigElement GetStatusConfig(Int32 value) { MAS_WorkFlowService.RequestConfig config = (MAS_WorkFlowService.RequestConfig) System.Configuration.ConfigurationManager.GetSection("RequestConfig"); // config.Status //var result = config.Status[value].DisplayName; var result = (from MAS_WorkFlowService.RequestConfigElement s in config.Status where s.Value == value select s).FirstOrDefault(); return(result); }
public static String GetRequestTypeDisplayName(Int32 value) { MAS_WorkFlowService.RequestConfig config = (MAS_WorkFlowService.RequestConfig) System.Configuration.ConfigurationManager.GetSection("RequestConfig"); var result = (from MAS_WorkFlowService.RequestConfigElement s in config.RequestType where s.Value == value select s).FirstOrDefault(); // config.Status return(result.DisplayName); }