Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        public IBxUnitCategory Find(string categoryCode)
        {
            IBxUnitCategory cate = _cates.Find(x => x.Code == categoryCode);

            if (cate == null)
            {
                cate = _baseUnitsCenter.Find(categoryCode);
            }

            return(cate);
        }