public PanelProfcheckupView(PageContainer container, ContractLocal contractLocal, ProfcheckupLocal profcheckup) throws ClipsException {
super(container);
initComponents();
this.profcheckup = profcheckup;
//поиск цехового терапевта
DirectoryEnterpriseItem enterprise = null;
DirectoryCollaboratorItem collaborator = null;
enterprise = contractLocal.getEnterprise();
if (enterprise != null) {
collaborator = enterprise.getCollaborator();
}
while (collaborator == null && enterprise != null){
collaborator = enterprise.getCollaborator();
enterprise = enterprise.getParent();
}
panelProfcheckup = new PanelProfcheckup(container, collaborator, contractLocal, profcheckup);
this.add(panelProfcheckup, BorderLayout.CENTER);
// this.revalidate();