def apply(self): ''' commit changes to database ''' LOGGER.info("applying date for mh form check") try: medform_check.insert(self.pt.serialno, self.check_date) LOGGER.debug("insertion OK") except medform_check.connect.IntegrityError: LOGGER.info("date already present in medforms table") QtWidgets.QMessageBox.information( self, _("Success!"), "%s %s %s %s" % (_("Sucessfully saved "), localsettings.formatDate( self.check_date), _("for patient"), self.pt.serialno))
def apply(self): ''' commit changes to database ''' LOGGER.info("applying date for mh form check") self.pt.mh_form_date = self.check_date try: medform_check.insert(self.pt.serialno, self.check_date) LOGGER.debug("insertion OK") if self.date_edit.date() == QtCore.QDate.currentDate(): self.pt.addHiddenNote("mednotes", _("Medical Form Completed"), one_only=True) except medform_check.connect.IntegrityError: LOGGER.info("date already present in medforms table")
def apply(self): ''' commit changes to database ''' LOGGER.info("applying date for mh form check") try: medform_check.insert(self.pt.serialno, self.check_date) LOGGER.debug("insertion OK") except medform_check.connect.IntegrityError: LOGGER.info("date already present in medforms table") QtGui.QMessageBox.information( self, _("Success!"), "%s %s %s %s" % (_("Sucessfully saved "), localsettings.formatDate(self.check_date), _("for patient"), self.pt.serialno))
def apply(self): ''' commit changes to database ''' LOGGER.info("applying date for mh form check") self.pt.mh_form_date = self.check_date try: medform_check.insert(self.pt.serialno, self.check_date) LOGGER.debug("insertion OK") if self.date_edit.date() == QtCore.QDate.currentDate(): self.pt.addHiddenNote( "mednotes", _("Medical Form Completed"), one_only=True ) except medform_check.connect.IntegrityError: LOGGER.info("date already present in medforms table")