Esempio n. 1
0
    def __init__(self):
        # 连接报表数据库
        self.conndb = connectDB()
        self.conn = self.conndb.connect(self.conndb.dbname_report)
        self.cur = self.conndb.getCursor(self.conn)

        # 从配置文件中获取SQL配置项
        self.confR = configReader(path)

        #获取用户中心配置项的值
        self.configValue = configValue()
        self.configKey = 'ConfigurationItem_zone'

        #计算DDDS
        self.calcddds = DDDS()

        self.hospitalitems = self.confR.getitems('hospital')  # 全院指标的SQL
        self.optitems = self.confR.getitems('zone')  # 常规SQL
        self.optcalc = self.confR.getitems('item_calc')  # 计算指标的SQL,两个数相乘
        self.optcalc100 = self.confR.getitems('item_calc100')  # 计算指标乘以100的SQL
        self.optcalcminus = self.confR.getitems('item_calc_minus')  # 两个指标相减
        self.itemname_config = self.confR.getitems('ConfigurationItem_zone')
        self.zoneddds = self.confR.getitems('zone_ddds')
        self.hospitalddds = self.confR.getitems('hospital_ddds')
        self.drugzone = self.confR.getitems('drug_zone')
        self.productInfor = self.confR.getitems('drug_productInfor')
        self.operation = self.confR.getitems('operation_zone')
Esempio n. 2
0
    def __init__(self):
        #连接报表数据库
        self.conndb = connectDB()
        self.conn = self.conndb.connect(self.conndb.dbname_report)
        self.cur = self.conndb.getCursor(self.conn)

        #从配置文件中获取SQL配置项
        self.confR = configReader(path)
Esempio n. 3
0
    def __init__(self):
        # 连接报表数据库
        self.conndb = connectDB()
        self.conn = self.conndb.connect(self.conndb.dbname_report)
        self.cur = self.conndb.getCursor(self.conn)

        # 从配置文件中获取SQL配置项
        self.confR = configReader(path)
        self.optitems = self.confR.getitems('default_group')  # 常规SQL
Esempio n. 4
0
    def __init__(self):
        # 连接报表数据库
        self.conndb = connectDB()
        self.conn = self.conndb.connect(self.conndb.dbname_report)
        self.cur = self.conndb.getCursor(self.conn)

        # 从配置文件中获取SQL配置项
        self.confR = configReader(path)

        #获取用户中心配置项的值
        self.configValue = configValue()
        self.configKey = 'ConfigurationItem_dept'

        #计算DDDS
        self.calcddds=DDDS()

        self.hospitalitems = self.confR.getitems('hospital_dept')  # 全院指标的SQL
        self.optitems = self.confR.getitems('default_dept')  # 常规SQL
        self.optcalc = self.confR.getitems('item_calc')  # 计算指标的SQL,两个数相乘
        self.optcalc100 = self.confR.getitems('item_calc100')  # 计算指标乘以100的SQL
        self.optcalcminus = self.confR.getitems('item_calc_minus')  # 两个指标相减
        self.itemname_config = self.confR.getitems('ConfigurationItem_dept')
        self.deptddds = self.confR.getitems('dept_ddds')
        self.hospitalddds = self.confR.getitems('hospitalDept_ddds')