|
@@ -9,6 +9,7 @@
|
9
|
9
|
################################################################################
|
10
|
10
|
|
11
|
11
|
import sys
|
|
12
|
+
|
12
|
13
|
sys.path.append("../..")
|
13
|
14
|
|
14
|
15
|
import sqlite3
|
|
@@ -24,8 +25,9 @@ from PySide6.QtWidgets import (QApplication, QCheckBox, QComboBox, QFormLayout,
|
24
|
25
|
QFrame, QGridLayout, QHBoxLayout, QHeaderView,
|
25
|
26
|
QLabel, QLineEdit, QListView, QMainWindow,
|
26
|
27
|
QPushButton, QSizePolicy, QStackedWidget, QTabWidget,
|
27
|
|
- QTableView, QTextEdit, QVBoxLayout, QWidget, QMessageBox,QTreeWidget)
|
28
|
|
-from Back.Program_Run.data_show import Arrange_Data, Arrange_Data1, Arrange_Data2, Data_in_Cell, Data_in_Cell1, Data_in_Cell2
|
|
28
|
+ QTableView, QTextEdit, QVBoxLayout, QWidget, QMessageBox, QTreeWidget)
|
|
29
|
+from Back.Program_Run.data_show import Arrange_Data, Arrange_Data1, Arrange_Data2, Data_in_Cell, Data_in_Cell1, \
|
|
30
|
+ Data_in_Cell2
|
29
|
31
|
from Back.Program_Run.database_operations import create_database_and_tables
|
30
|
32
|
from Back.Program_Run.file_system_watching import ComboBoxUpdater
|
31
|
33
|
from watchdog.observers import Observer
|
|
@@ -1504,10 +1506,6 @@ class Ui_MainWindow(object):
|
1504
|
1506
|
self.tabWidget.setTabsClosable(False)
|
1505
|
1507
|
self.tabWidget.setTabBarAutoHide(False)
|
1506
|
1508
|
|
1507
|
|
-
|
1508
|
|
-
|
1509
|
|
-
|
1510
|
|
-
|
1511
|
1509
|
self.resultTable = QWidget()
|
1512
|
1510
|
self.resultTable.setObjectName(u"resultTable")
|
1513
|
1511
|
self.verticalLayout_29 = QVBoxLayout(self.resultTable)
|
|
@@ -1536,7 +1534,7 @@ class Ui_MainWindow(object):
|
1536
|
1534
|
self.printTable.setTabletTracking(False)
|
1537
|
1535
|
self.verticalLayout_28 = QVBoxLayout(self.printTable)
|
1538
|
1536
|
self.verticalLayout_28.setObjectName(u"verticalLayout_28")
|
1539
|
|
- self.printTableView = QTextEdit(self.printTable)
|
|
1537
|
+ self.printTableView = QTextEdit(self.printTable)
|
1540
|
1538
|
self.printTableView.setObjectName(u"printTableView")
|
1541
|
1539
|
self.printTableView.setReadOnly(True)
|
1542
|
1540
|
self.verticalLayout_28.addWidget(self.printTableView)
|
|
@@ -1589,7 +1587,6 @@ class Ui_MainWindow(object):
|
1589
|
1587
|
self.tabWidget.setTabVisible(1, False)
|
1590
|
1588
|
self.tabWidget.setTabVisible(2, False)
|
1591
|
1589
|
|
1592
|
|
-
|
1593
|
1590
|
self.search = QPushButton(self.datainfo)
|
1594
|
1591
|
self.search.setObjectName(u"search")
|
1595
|
1592
|
sizePolicy4 = QSizePolicy(QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Fixed)
|
|
@@ -1648,7 +1645,7 @@ class Ui_MainWindow(object):
|
1648
|
1645
|
self.verticalLayout_30.setObjectName(u"verticalLayout_30")
|
1649
|
1646
|
self.horizontalLayout_11 = QHBoxLayout()
|
1650
|
1647
|
self.horizontalLayout_11.setObjectName(u"horizontalLayout_11")
|
1651
|
|
- #留个空,什么编辑排序筛选可以放在这儿
|
|
1648
|
+ # 留个空,什么编辑排序筛选可以放在这儿
|
1652
|
1649
|
self.edit_button = QPushButton(self.datainfo)
|
1653
|
1650
|
self.edit_button.setObjectName(u"edit_button")
|
1654
|
1651
|
sizePolicy4 = QSizePolicy(QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Fixed)
|
|
@@ -1704,6 +1701,20 @@ class Ui_MainWindow(object):
|
1704
|
1701
|
icon51.addFile(u":/icons/images/icons/1.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
|
1705
|
1702
|
self.View.addTab(self.resultTable1, icon51, "")
|
1706
|
1703
|
|
|
1704
|
+ self.reconTable1 = QWidget()
|
|
1705
|
+ self.reconTable1.setObjectName(u"reconTable1")
|
|
1706
|
+ # self.reconTable.setCursor(QCursor(Qt.CursorShape.UpArrowCursor))
|
|
1707
|
+ self.reconTable1.setMouseTracking(False)
|
|
1708
|
+ self.reconTable1.setTabletTracking(False)
|
|
1709
|
+ self.verticalLayout_36 = QVBoxLayout(self.reconTable1)
|
|
1710
|
+ self.verticalLayout_36.setObjectName(u"verticalLayout_36")
|
|
1711
|
+ self.reconTableView1 = QTableView(self.reconTable1)
|
|
1712
|
+ self.reconTableView1.setObjectName(u"modelTableView1")
|
|
1713
|
+ self.verticalLayout_36.addWidget(self.reconTableView1)
|
|
1714
|
+ icon7 = QIcon()
|
|
1715
|
+ icon7.addFile(u":/icons/images/icons/2.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
|
|
1716
|
+ self.View.addTab(self.reconTable1, icon7, "")
|
|
1717
|
+
|
1707
|
1718
|
self.printTable1 = QWidget()
|
1708
|
1719
|
self.printTable1.setObjectName(u"printTable1")
|
1709
|
1720
|
self.printTable1.setMouseTracking(False)
|
|
@@ -1715,22 +1726,9 @@ class Ui_MainWindow(object):
|
1715
|
1726
|
self.printTableView1.setReadOnly(True)
|
1716
|
1727
|
self.verticalLayout_35.addWidget(self.printTableView1)
|
1717
|
1728
|
icon6 = QIcon()
|
1718
|
|
- icon6.addFile(u":/icons/images/icons/2.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
|
|
1729
|
+ icon6.addFile(u":/icons/images/icons/3.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
|
1719
|
1730
|
self.View.addTab(self.printTable1, icon6, "")
|
1720
|
1731
|
|
1721
|
|
- self.reconTable1 = QWidget()
|
1722
|
|
- self.reconTable1.setObjectName(u"reconTable1")
|
1723
|
|
- # self.reconTable.setCursor(QCursor(Qt.CursorShape.UpArrowCursor))
|
1724
|
|
- self.reconTable1.setMouseTracking(False)
|
1725
|
|
- self.reconTable1.setTabletTracking(False)
|
1726
|
|
- self.verticalLayout_36 = QVBoxLayout(self.reconTable1)
|
1727
|
|
- self.verticalLayout_36.setObjectName(u"verticalLayout_36")
|
1728
|
|
- self.reconTableView1 = QTableView(self.reconTable1)
|
1729
|
|
- self.reconTableView1.setObjectName(u"modelTableView1")
|
1730
|
|
- self.verticalLayout_36.addWidget(self.reconTableView1)
|
1731
|
|
- icon7 = QIcon()
|
1732
|
|
- icon7.addFile(u":/icons/images/icons/3.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
|
1733
|
|
- self.View.addTab(self.reconTable1, icon7, "")
|
1734
|
1732
|
|
1735
|
1733
|
self.inputTable1 = QWidget()
|
1736
|
1734
|
self.inputTable1.setObjectName(u"inputTable1")
|
|
@@ -1746,7 +1744,7 @@ class Ui_MainWindow(object):
|
1746
|
1744
|
icon8.addFile(u":/icons/images/icons/4.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
|
1747
|
1745
|
self.View.addTab(self.inputTable1, icon8, "")
|
1748
|
1746
|
|
1749
|
|
- # 设置到处结果显示页面(View)的默认隐藏2.3页
|
|
1747
|
+ # 设置导出结果显示页面(View)的默认隐藏2.3页
|
1750
|
1748
|
self.View.setTabVisible(1, False)
|
1751
|
1749
|
self.View.setTabVisible(2, False)
|
1752
|
1750
|
self.View.setTabVisible(3, False)
|
|
@@ -1866,6 +1864,7 @@ class Ui_MainWindow(object):
|
1866
|
1864
|
|
1867
|
1865
|
self.stackedWidget.setCurrentIndex(1)
|
1868
|
1866
|
self.tabWidget.setCurrentIndex(0)
|
|
1867
|
+
|
1869
|
1868
|
# setupUi
|
1870
|
1869
|
|
1871
|
1870
|
# UI中的文字样式以及文字内容,Unicode编码的形式进行文字编辑的
|
|
@@ -2029,4 +2028,3 @@ class Ui_MainWindow(object):
|
2029
|
2028
|
self.btn_message.setText(QCoreApplication.translate("MainWindow", u"\u5207\u6362\u4e3b\u9898", None))
|
2030
|
2029
|
self.creditsLabel.setText(QCoreApplication.translate("MainWindow", u"\u7248\u6743\u4fe1\u606f", None))
|
2031
|
2030
|
self.version.setText(QCoreApplication.translate("MainWindow", u"v1.0.0", None))
|
2032
|
|
-
|