442 lines
12 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>708</width>
<height>493</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<widget class="QWidget" name="centralwidget">
<widget class="QStackedWidget" name="stackedWidget">
<property name="geometry">
<rect>
<x>-50</x>
<y>-40</y>
<width>701</width>
<height>481</height>
</rect>
</property>
<property name="autoFillBackground">
<bool>true</bool>
</property>
<property name="currentIndex">
<number>2</number>
</property>
<widget class="QWidget" name="quitAppPage">
<widget class="QPushButton" name="confirmQuitButton">
<property name="geometry">
<rect>
<x>310</x>
<y>260</y>
<width>80</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>确认</string>
</property>
</widget>
<widget class="QLabel" name="confirmQuitLabel">
<property name="geometry">
<rect>
<x>270</x>
<y>180</y>
<width>161</width>
<height>51</height>
</rect>
</property>
<property name="text">
<string>确认退出应用吗?</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget>
</widget>
<widget class="QWidget" name="settingPage">
<widget class="QWidget" name="verticalLayoutWidget_2">
<property name="geometry">
<rect>
<x>240</x>
<y>70</y>
<width>229</width>
<height>118</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="QLabel" name="label">
<property name="font">
<font>
<family>Microsoft JhengHei UI</family>
<pointsize>11</pointsize>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>连接读卡器</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>选择端口COM</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="comNumberBox">
<property name="minimumSize">
<size>
<width>80</width>
<height>20</height>
</size>
</property>
<property name="font">
<font>
<pointsize>9</pointsize>
</font>
</property>
<property name="value">
<number>3</number>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QRadioButton" name="directLinkButton">
<property name="text">
<string>直连模式</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QPushButton" name="connectReaderButton">
<property name="geometry">
<rect>
<x>320</x>
<y>200</y>
<width>80</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>连接</string>
</property>
</widget>
<widget class="QWidget" name="verticalLayoutWidget_3">
<property name="geometry">
<rect>
<x>250</x>
<y>260</y>
<width>231</width>
<height>159</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<widget class="QLabel" name="label_3">
<property name="font">
<font>
<family>Microsoft JhengHei UI</family>
<pointsize>11</pointsize>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>连接数据库</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_5">
<item>
<layout class="QGridLayout" name="gridLayout">
<item row="2" column="0">
<widget class="QLabel" name="portLabel">
<property name="text">
<string>端口:</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="ipAddrEdit">
<property name="text">
<string>172.29.68.245</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="ipAddrLabel">
<property name="text">
<string>IP地址</string>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="passwordLabel">
<property name="text">
<string>密码:</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QSpinBox" name="portBox">
<property name="minimumSize">
<size>
<width>80</width>
<height>20</height>
</size>
</property>
<property name="font">
<font>
<pointsize>9</pointsize>
</font>
</property>
<property name="minimum">
<number>1024</number>
</property>
<property name="maximum">
<number>65534</number>
</property>
<property name="value">
<number>3306</number>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QLineEdit" name="passwordEdit"/>
</item>
<item row="5" column="0">
<widget class="QLabel" name="deviceLabel">
<property name="text">
<string>设备名:</string>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="QLineEdit" name="deviceEdit"/>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QPushButton" name="connectDatabaseButton">
<property name="geometry">
<rect>
<x>330</x>
<y>430</y>
<width>80</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>连接</string>
</property>
</widget>
</widget>
<widget class="QWidget" name="newCardPage">
<widget class="QWidget" name="gridLayoutWidget">
<property name="geometry">
<rect>
<x>210</x>
<y>130</y>
<width>347</width>
<height>84</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="1" column="1">
<widget class="QSpinBox" name="spinBox">
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>200</width>
<height>16777215</height>
</size>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QComboBox" name="cardIdBox">
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>200</width>
<height>16777215</height>
</size>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="cardIdLabel">
<property name="text">
<string>卡号:</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="userIdLabel">
<property name="text">
<string>学/工号:</string>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QPushButton" name="inventoryButton">
<property name="text">
<string>查询</string>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QPushButton" name="pushButton">
<property name="geometry">
<rect>
<x>300</x>
<y>230</y>
<width>80</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>开卡</string>
</property>
</widget>
</widget>
</widget>
</widget>
<widget class="QStatusBar" name="statusBar">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>20</height>
</size>
</property>
</widget>
<widget class="QToolBar" name="toolBar">
<property name="windowTitle">
<string>toolBar_2</string>
</property>
<attribute name="toolBarArea">
<enum>LeftToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
<addaction name="settingAction"/>
<addaction name="NewCardAction"/>
<addaction name="depositAction"/>
<addaction name="ConsumptionAction"/>
<addaction name="QueryAction"/>
<addaction name="reportLossAction"/>
<addaction name="quitAppAction"/>
</widget>
<action name="settingAction">
<property name="text">
<string>设置</string>
</property>
<property name="menuRole">
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="quitAppAction">
<property name="text">
<string>退出</string>
</property>
<property name="menuRole">
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="ConsumptionAction">
<property name="text">
<string>消费</string>
</property>
<property name="menuRole">
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="NewCardAction">
<property name="text">
<string>开卡</string>
</property>
<property name="menuRole">
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="QueryAction">
<property name="text">
<string>查询</string>
</property>
<property name="menuRole">
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="depositAction">
<property name="text">
<string>充值</string>
</property>
<property name="menuRole">
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
<action name="reportLossAction">
<property name="text">
<string>挂失</string>
</property>
<property name="menuRole">
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
</widget>
<resources/>
<connections/>
</ui>