def push_block_trade_button_clicked(self):
     # model = model_qtableview._setBlockTradeModel(self._get_block_trade_info())
     df, description = self._get_block_trade_info()
     model = model_qtableview.setModel(df, description)
     if model != 0:
         self.tableView.setModel(model)
         self.tableView.resizeColumnsToContents()
     else:  # TODO:弹出对话框说明无数据
         self._show_message_dialog('没有' + self.selectData + '大宗交易数据数据')
 def push_button_moneyflow_clicked(self):
     # model = model_qtableview._setmoneyflowModel(self._get_moneyflow_info())
     df, description = self._get_moneyflow_info()
     model = model_qtableview.setModel(df, description)
     if model != 0:
         self.tableView.setModel(model)
         self.tableView.resizeColumnsToContents()
     else:  # TODO:弹出对话框说明无数据
         self._show_message_dialog('没有' + self.selectData + '个股资金流向数据数据')
 def push_company_button_clicked(self):
     # model = model_qtableview._setCompanyModel(self._get_company_info())
     df, description = self._get_company_info()
     model = model_qtableview.setModel(df, description)
     if model != 0:
         self.tableView.setModel(model)
         self.tableView.resizeColumnsToContents()
     else:  # TODO:弹出对话框说明无数据
         self._show_message_dialog('没有公司基本信息数据')
 def push_daily_basic_button_clicked(self):
     # model = model_qtableview._setDailyBasickModel(self._get_daily_basic_info())
     df, description = self._get_daily_basic_info()
     model = model_qtableview.setModel(df, description)
     if model != 0:
         self.tableView.setModel(model)
         self.tableView.resizeColumnsToContents()
     else:  # TODO:弹出对话框说明无数据
         self._show_message_dialog('没有' + self.selectData + '交易指标数据')
 def pushButton_top_query_clicked(self):
     sql = self.textEdit_top_SQL.toPlainText()
     if sql == '':
         return
     # model = model_qtableview._setToplistModel(self._get_data_info(self.textEdit_top_SQL.toPlainText()))
     df, description = self._get_data_info(
         self.textEdit_top_SQL.toPlainText())
     model = model_qtableview.setModel(df, description)
     if model != 0:
         self.tableView_top.setModel(model)
         self.tableView_top.resizeColumnsToContents()
         self.top_model = model
     else:  # TODO:弹出对话框说明无数据
         self._show_message_dialog('没有龙虎榜数据')
 def _pushButton_query_clicked(self):
     sql = self.textEdit_SQL.toPlainText()
     if sql == '':
         return
     # model = model_qtableview._setDailyModel(self._get_data_info(self.textEdit_SQL.toPlainText()))
     df, description = self._get_data_info(self.textEdit_SQL.toPlainText())
     model = model_qtableview.setModel(df, description)
     if model != 0:
         self.tableView_daily.setModel(model)
         self.tableView_daily.resizeColumnsToContents()
         self.daily_model = model
     else:  # TODO:弹出对话框说明无数据
         self._show_message_dialog('没有' + self.calendarWidget.selectedDate(
         ).toString(Qt.ISODate).replace('-', '') + '数据')
    def pushButton_moneyflow_query_clicked(self):
        sql = self.textEdit_moneyflow_SQL.toPlainText()
        if sql == '':
            return
        # model = model_qtableview._setmoneyflowModel(self._get_data_info(self.textEdit_moneyflow_SQL.toPlainText()))
        df, description = self._get_data_info(
            self.textEdit_moneyflow_SQL.toPlainText())
        model = model_qtableview.setModel(df, description)
        if model != 0:

            self.tableView_moneyflow.setModel(model)
            self.tableView_moneyflow.resizeColumnsToContents()
            self.moneyflow_model = model
            self._checkBox_high_light_net_positive_clicked()
        else:  # TODO:弹出对话框说明无数据
            self._show_message_dialog('没有资金流向数据')