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