MyTetra Share
Делитесь знаниями!
Создание допа при принятии заявки на изменение
Время создания: 13.12.2019 16:44
Раздел: INFO - JOB - rtneo - Работа над задачами
Запись: wwwlir/Tetra/master/base/15722330762iziha4r5f/text.html на raw.githubusercontent.com

com.groupstp.rtneo.service.ModificationAcceptServiceBean#postAccept



//После принятия заявки, удаляем не принятые допы, и создаем новый.
ContractService contractService = AppBeans.get(ContractService.NAME);
DataManager dataManager = AppBeans.get(DataManager.NAME);
ViewRepository vRep = AppBeans.get(ViewRepository.NAME);

dataManager.load(entity.getClass()).id(entity.getId()).view("_local").one();
View view = vRep.getView(entity.getMetaClass(), "_local");
view.addProperty("contragent", vRep.getView(Contragent.class, "_local"));
dataManager.reload(entity, view);
metadata.getClass(entity.getClass());
Так же в этом разделе:
 
MyTetra Share v.0.59
Яндекс индекс цитирования