public static IBxUnit EMFind(this IBxUnitsCenter center, string unitCateCode, string unitCode) { IBxUnitCategory cate = center.Find(unitCateCode); if (cate == null) { return(null); } return(cate.Find(unitCode)); }
public IBxUnitCategory Find(string categoryCode) { IBxUnitCategory cate = _cates.Find(x => x.Code == categoryCode); if (cate == null) { cate = _baseUnitsCenter.Find(categoryCode); } return(cate); }