1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
# -*- coding: utf-8 -*-
#======================================================================
# GNUmed billing plugin
#
# @copyright: authors
#======================================================================
__author__ = "Nico Latzer <nl@mnet-online.de>, Karsten Hilbert <Karsten.Hilbert@gmx.net>"
__license__ = 'GPL v2 or later (details at http://www.gnu.org)'
import logging
import wx
from Gnumed.wxpython import gmPlugin
from Gnumed.wxpython import gmBillingWidgets
from Gnumed.wxpython import gmAccessPermissionWidgets
_log = logging.getLogger('gm.billing')
#======================================================================
class gmBillingPlugin(gmPlugin.cNotebookPlugin):
tab_name = _('Billing')
required_minimum_role = 'full clinical access'
@gmAccessPermissionWidgets.verify_minimum_required_role (
required_minimum_role,
activity = _('loading plugin <%s>') % tab_name,
return_value_on_failure = False,
fail_silently = False
)
def register(self):
gmPlugin.cNotebookPlugin.register(self)
def name(self):
return gmBillingPlugin.tab_name
def GetWidget(self, parent):
self._widget = gmBillingWidgets.cBillingPluginPnl(parent, -1)
return self._widget
def MenuInfo(self):
pass
def can_receive_focus(self):
if not self._verify_patient_avail():
return None
return 1
#======================================================================
if __name__ == '__main__':
pass
|