Пример #1
0
        public static void UpdateTemplate(AnimalListItem obj)
        {
            var templateAnimal = FFPresenterModel.LoadActualTemplate(EidssSiteContext.Instance.CountryID, obj.idfsDiagnosisForCs, FFTypeEnum.LivestockAnimalCS);

            obj.FFPresenterCs.SetProperties(templateAnimal, obj.idfAnimal);
            obj.idfsFormTemplate = templateAnimal.idfsFormTemplate;
        }
Пример #2
0
        protected static void CustomValidations(AnimalListItem obj)
        {
            var acc = FFPresenterModel.Accessor.Instance(null);

            using (var manager = DbManagerFactory.Factory.Create(ModelUserContext.Instance))
            {
                acc.Validate(manager, obj.FFPresenterCs, true, false, true);
            }
        }