employmentHistoryPanel.py (1072B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\shared\neocom\charsheet\employmentHistoryPanel.py 2 from carbonui.primitives.container import Container 3 from eve.client.script.ui.control.eveScroll import Scroll 4 5 class EmploymentHistoryPanel(Container): 6 default_name = 'EmploymentHistoryPanel' 7 __notifyevents__ = [] 8 9 def ApplyAttributes(self, attributes): 10 Container.ApplyAttributes(self, attributes) 11 sm.RegisterNotify(self) 12 self.employmentList = None 13 self.scroll = Scroll(parent=self, padding=(0, 4, 0, 4)) 14 self.scroll.sr.id = 'charsheet_employmenthistory' 15 16 def LoadPanel(self, *args): 17 if self.employmentList is None: 18 self.employmentList = sm.GetService('info').GetEmploymentHistorySubContent(session.charid) 19 self.scroll.Load(contentList=self.employmentList) 20 21 def OnSessionChanged(self, isRemote, session, change): 22 if 'corpid' in change: 23 self.employmentList = None 24 if self.display: 25 self.LoadPanel()