Esempio n. 1
0
    def create_qcl(self, code, definition, explanation):
        qcl = QualityControlLevel()
        qcl.code = code
        qcl.definition = definition
        qcl.explanation = explanation

        self._edit_session.add(qcl)
        self._edit_session.commit()
	def create_qcl(self, code, definition, explanation):
		qcl = QualityControlLevel()
		qcl.code = code
		qcl.definition = definition
		qcl.explanation = explanation

		self._edit_session.add(qcl)
		self._edit_session.commit()
		return qcl
Esempio n. 3
0
    def getQCL(self):
        q = QualityControlLevel()
        if self.rbCreate.Value:
            q.code = self.txtCode.Value
            q.definition= self.txtDefinition.Value
            q.explanation = self.txtExplanation.Value

        elif self.rbSelect.Value:
            index = self.GetLstSelection()
            print self.lstQCL.GetItem(index,-1).GetText()
            q= self.series_service.get_qcl_by_id(self.lstQCL.GetItem(index,-1).GetText())


##            q.id = self.lstQCL.GetItem(index,3).GetText()
##            q.code = self.lstQCL.GetItem(index, 0).GetText()
##            q.definition= self.lstQCL.GetItem(index, 1).GetText()
##            q.explanation=self.lstQCL.GetItem(index, 2).GetText()

        return q
Esempio n. 4
0
    def getQCL(self):
        q = QualityControlLevel()
        if self.rbCreate.Value:
            q.code = self.txtCode.Value
            q.definition = self.txtDefinition.Value
            q.explanation = self.txtExplanation.Value

        elif self.rbSelect.Value:
            index = self.GetLstSelection()
            print self.lstQCL.GetItem(index, -1).GetText()
            q = self.series_service.get_qcl_by_id(
                self.lstQCL.GetItem(index, -1).GetText())

##            q.id = self.lstQCL.GetItem(index,3).GetText()
##            q.code = self.lstQCL.GetItem(index, 0).GetText()
##            q.definition= self.lstQCL.GetItem(index, 1).GetText()
##            q.explanation=self.lstQCL.GetItem(index, 2).GetText()

        return q