def accept(self):
     if not self.get_new_mh():
         return
     if not self.has_edits and self.mh.chkdate != self.new_mh.chkdate:
         if (
             QtWidgets.QMessageBox.question(
                 self,
                 _("question"),
                 _("No changes - mark as checked today?"),
                 QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.No,
                 QtWidgets.QMessageBox.No,
             )
             == QtWidgets.QMessageBox.Yes
         ):
             self.checked_only = True
         else:
             BaseDialog.reject(self)
             return
     elif self.is_new_mh and not self.has_edits:
         if (
             QtWidgets.QMessageBox.question(
                 self,
                 _("question"),
                 _("Blank Medical History Entered - mark as checked today?"),
                 QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.No,
                 QtWidgets.QMessageBox.No,
             )
             == QtWidgets.QMessageBox.No
         ):
             BaseDialog.reject(self)
             return
     BaseDialog.accept(self)
Пример #2
0
    def accept(self):
        card = apptcardPrint.Card()
        card.setProps(self.pt, self.appts)

        card.print_()
        self.pt.addHiddenNote("printed", "appt card")
        BaseDialog.accept(self)
Пример #3
0
    def accept(self):
        if self.appts == []:
            QtGui.QMessageBox.information(self, "warning",
                                          _("No appointments to print!"))
            self.reject()

        card = apptcardPrint.Card()
        card.setProps(self.pt, self.appts)

        card.print_()
        self.pt.addHiddenNote("printed", "appt card")
        BaseDialog.accept(self)
Пример #4
0
    def accept(self):
        if self.appts == []:
            QtGui.QMessageBox.information(self, "warning",
                                          _("No appointments to print!"))
            self.reject()

        card = apptcardPrint.Card()
        card.setProps(self.pt, self.appts)

        card.print_()
        self.pt.addHiddenNote("printed", "appt card")
        BaseDialog.accept(self)
Пример #5
0
 def accept(self):
     if not self.get_new_mh():
         return
     if not self.has_edits and self.mh.chkdate != self.new_mh.chkdate:
         if QtWidgets.QMessageBox.question(
                 self, _("question"),
                 _("No changes - mark as checked today?"),
                 QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.No,
                 QtWidgets.QMessageBox.No) == QtWidgets.QMessageBox.Yes:
             self.checked_only = True
         else:
             BaseDialog.reject(self)
             return
     elif self.is_new_mh and not self.has_edits:
         if QtWidgets.QMessageBox.question(
                 self, _("question"),
                 _("Blank Medical History Entered - mark as checked today?"
                   ), QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.No,
                 QtWidgets.QMessageBox.No) == QtWidgets.QMessageBox.No:
             BaseDialog.reject(self)
             return
     BaseDialog.accept(self)