Exemple #1
0
        private void loadTerms(UniqueEntityView item)
        {
            Terms.Clear();
            if (item is null)
            {
                return;
            }
            terms.FixedFilter = GetMember.Name <UnitTermData>(x => x.MasterId);
            terms.FixedValue  = item.Id;
            var list = terms.Get().GetAwaiter().GetResult();

            foreach (var e in list)
            {
                Terms.Add(UnitTermViewFactory.Create(e));
            }
        }
Exemple #2
0
        private void loadFactors(UniqueEntityView item)
        {
            Factors.Clear();
            if (item is null)
            {
                return;
            }
            factors.FixedFilter = GetMember.Name <UnitFactorData>(x => x.UnitId);
            factors.FixedValue  = item.Id;
            var list = factors.Get().GetAwaiter().GetResult();

            foreach (var e in list)
            {
                Factors.Add(UnitFactorViewFactory.Create(e));
            }
        }