Exemple #1
0
        public static string LookUpSystemIncomeStatusId(int lookupValue)
        {
            var lookobj = SystemIncomeStatus.FirstOrDefault(p => p.StatusId == lookupValue);

            return(lookobj == null ? "无效" : lookobj.ShortDescription);
        }
Exemple #2
0
        public static int LookUpSystemIncomeStatusId(string lookupValue)
        {
            var lookobj = SystemIncomeStatus.FirstOrDefault(p => p.ShortDescription == lookupValue);

            return(lookobj == null ? 0 : lookobj.StatusId);
        }