public PatentPaymentCode(EnumsAll.PayCaseType payCaseType, EnumsAll.PatentType?patentType, string sFeeName, decimal nAmount) { PayCaseType = payCaseType; PatentType = patentType; FeeName = sFeeName; Amount = nAmount; }
public static List <PatentPaymentCode> GetPatentPaymentCodes(EnumsAll.PayCaseType payCaseType, EnumsAll.PatentType patentType) { return (listPatentPaymentCodes.Where( p => p.PayCaseType == payCaseType && ((p.PatentType.HasValue && p.PatentType == patentType) || !p.PatentType.HasValue)).ToList()); }