Exemple #1
0
        public List <Soway.Query.Entity.ColStateValue> GetStateValues(Soway.Query.Entity.IQueryColumn Col)
        {
            List <Soway.Query.Entity.ColStateValue> result = new List <Soway.Query.Entity.ColStateValue>();

            foreach (var i in cols[Col].Model.EnumValues)
            {
                result.Add(new Soway.Query.Entity.ColStateValue()
                {
                    ShowName = i.String, DBName = i.Value.ToString()
                });
            }
            return(result);
        }
Exemple #2
0
        public string GetStateStr(Soway.Query.Entity.IQueryColumn Col, string value)
        {
            var emunvalue = cols[Col].Model.EnumValues.FirstOrDefault(p => p.Value.ToString() == value);

            if (emunvalue == null)
            {
                return("");
            }
            else
            {
                return(emunvalue.String);
            }
        }