Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }
Exemple #4
0
        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);
        }