Пример #1
0
    def menuClick(self,  action ):
        name = action.objectName()
        for menu in self.__menu:
            if menu.menu_sid == name:
                LogManager.info('Opening form with sid %s' %menu.form_sid)
                FormManager.openForm(menu.form_sid)
                LogManager.info('Form with sid %s is opened' %menu.form_sid)

                break
Пример #2
0
    def onModify(self):
        print 'modify'
        cur_dep = {'id': 1, 'name': 'test', 'description':'test descr'} #FIXME: get current departament

        FormManager.openForm('modifyDepartaments', parent=self, modality=True, is_create=False, departament=cur_dep )
Пример #3
0
 def onInsert(self):
     print 'insert'
     FormManager.openForm('modifyDepartaments', parent=self, modality=True, is_create=True)