Пример #1
0
    def general_custom_send_report(self):
        RG = ReportGeneraler(input_file_path=self.path_openfile_name)
        RG.file_path_check(output_file_path=self.output_path)

        print(self.SendDatatype.currentText())
        _temp_sendtype = self.SendDatatype.currentText()
        sendtype_dict = {
            "日":0,
            "周":1,
            "月":2
        }

        SendMail_Info_Path, Send_df_state = RG.send_file_table_output(
            StartDate=self.StartDate.text(),
            EndDate=self.EndDate.text(),
            output_type=sendtype_dict[_temp_sendtype],
            if_mail=True
        )

        self.SendMailPath_Info = SendMail_Info_Path
        self.SendMail_Info_state = Send_df_state

        if Send_df_state:
            self.creat_table_show(file_path=SendMail_Info_Path)
        else:
            self.tempSendTable.show()
Пример #2
0
    def general_weekly_send_report(self):
        SD = SeasonDict()
        RG = ReportGeneraler(input_file_path=self.path_openfile_name)
        RG.file_path_check(output_file_path = self.output_path)
        SendMail_Info_Path,Send_df_state = RG.send_file_table_output(
            StartDate=SD['week'],
            EndDate=SD['week'],
            output_type=1,
            if_mail=True
        )
        self.SendMailPath_Info = SendMail_Info_Path
        self.SendMail_Info_state = Send_df_state

        if Send_df_state:
            self.creat_table_show(file_path=SendMail_Info_Path)
        else:
            self.tempSendTable.show()