You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.1 KiB
Python
34 lines
1.1 KiB
Python
2 years ago
|
from DcsUi.variablecoercion.model import variableGroupModel
|
||
|
from DcsUi.variablecoercion.smallWindow import searchWindow
|
||
|
|
||
|
|
||
|
class mandatoryListWindow(searchWindow):
|
||
|
|
||
|
def __init__(self, group_name=None):
|
||
|
searchWindow.__init__(self, group_name)
|
||
|
|
||
|
def onComboboxActivate(self):
|
||
|
text1 = self.line1.text()
|
||
|
text2 = self.line2.text()
|
||
|
conditiontext1 = self.comboboxColumn1.currentText()
|
||
|
conditiontext2 = self.comboboxColumn2.currentText()
|
||
|
conditiontext3 = self.combobox.currentText()
|
||
|
if self.group_name == None:
|
||
|
group_points = variableGroupModel.mandatorysearchDate(
|
||
|
column1=conditiontext1,
|
||
|
column2=conditiontext2,
|
||
|
value1=text1,
|
||
|
value2=text2,
|
||
|
relation=conditiontext3
|
||
|
)
|
||
|
else:
|
||
|
group_points = variableGroupModel.mandatorySelectGroupData(
|
||
|
name=self.group_name,
|
||
|
column1=conditiontext1,
|
||
|
column2=conditiontext2,
|
||
|
value1=text1,
|
||
|
value2=text2,
|
||
|
relation=conditiontext3
|
||
|
)
|
||
|
return group_points
|