개정판 81d2706d
add text area sort
Change-Id: Ie275055bf7eadb4bd531b8d85630b26a10c3539d
DTI_PID/DTI_PID/AppDocData.py | ||
---|---|---|
1017 | 1017 |
# Get a cursor object |
1018 | 1018 |
cursor = conn.cursor() |
1019 | 1019 |
|
1020 |
sql = "select UID, Name, AREA, [TEXT] from TitleBlockProperties" |
|
1020 |
sql = "select UID, Name, AREA, [TEXT] from TitleBlockProperties ASC"
|
|
1021 | 1021 |
cursor.execute(sql) |
1022 | 1022 |
rows = cursor.fetchall() |
1023 | 1023 |
for row in rows: |
DTI_PID/DTI_PID/ItemPropertyTableWidget.py | ||
---|---|---|
448 | 448 |
for title_area in title_area_list: |
449 | 449 |
area = Area(title_area[1], title_area[0]) |
450 | 450 |
title_list.append(area) |
451 |
for area in area_list + title_list: |
|
451 |
areas = area_list + title_list |
|
452 |
areas.sort(key=lambda x: x.name) |
|
453 |
for area in areas: |
|
452 | 454 |
self._areaComboBox.addItem(area.name) |
453 | 455 |
self.setCellWidget(4, 3, self._areaComboBox) |
454 | 456 |
name = [area.name for area in area_list + title_list if item.area == area.uid] |
내보내기 Unified diff