Commit 74f20383 by 李定达

1.token修改为正式环境;2.小票打印配置支持串口并口usb口打印

parent d54fb0d1
...@@ -14,12 +14,12 @@ ...@@ -14,12 +14,12 @@
#define DEFAULT_DBNAME "order.db" #define DEFAULT_DBNAME "order.db"
#define DEFAULT_DBFORM "orderlist" #define DEFAULT_DBFORM "orderlist"
#define SHA256RSA_PRIVATEKEY "MIICeQIBADANBgkqhkiG9w0BAQEFAASCAmMwggJfAgEAAoGBAKbFeAqipCea1OXTR6wmz2D7XKUJ6ffRl/VRgF23kbxhhUseJ1jWJW9n7bJ1DyJsMzNgLzpi5jwCasZlvMAS+TdRYQtlvdHV8EDH8JKVaCn1O+emoN/Tbp+ngZLkZNqu3bWTQ6fBgbun4gyeFC1cXb87kn0dnBdkjnGZ/MuDu9oPAgMBAAECgYEAip3t1iEzgnvOY60GkM+9ZWXoroEcCNEcllqE8OCo8MS6LyLEH7H3ca8XwlJMHxeCQzy6ZLRZnB2CNJ/RkHD01S12JH3NPoeuY04/zhpl1BRq5Zm9iuIMkg5LP1cNjRnB5v8/ENZdLTXYEcrz4d3UDXZXvD2ywqoNNGqMqqp/U1ECQQDma32C2t3LV3lS9QeLejGXwDTeksJ53NzsUoGUOIQNkIC7f66tQfYG6wVWBfGoZTpxcLWweC+jPQ+75knWdmLHAkEAuUkYGKtzIeNmKJ0siew/dY31+Rb/pVHYj7TnZDx3dIYly0mwigQGCU7uVzkADXqyEqU+AQWU+RagQWwmjlWGeQJBALdYiMJ6zUlkDVIJTzuYu6V4d5kzRjQZnmEdNaZvYgQ5G3YWnzOV7OKMV+6fRC8ufVaOzMPinmVRzRdCozZXdTkCQQCapPo6pOasMyqx3TUuTINOr1TMOLjYl65Diz7Rt3IQTGLBAFkbaG5NWJavMADuPyjfTRGqMql7GLpawFSR2aopAkEAmKme0TgKB4EpdxS7xV4/XEm+MuZXE/dAfnN5fNOVueWw+23gDYvLXZAoAZNdpdaWw/CZl66XL6M1RMiDYllNvw==" //#define SHA256RSA_PRIVATEKEY "MIICeQIBADANBgkqhkiG9w0BAQEFAASCAmMwggJfAgEAAoGBAKbFeAqipCea1OXTR6wmz2D7XKUJ6ffRl/VRgF23kbxhhUseJ1jWJW9n7bJ1DyJsMzNgLzpi5jwCasZlvMAS+TdRYQtlvdHV8EDH8JKVaCn1O+emoN/Tbp+ngZLkZNqu3bWTQ6fBgbun4gyeFC1cXb87kn0dnBdkjnGZ/MuDu9oPAgMBAAECgYEAip3t1iEzgnvOY60GkM+9ZWXoroEcCNEcllqE8OCo8MS6LyLEH7H3ca8XwlJMHxeCQzy6ZLRZnB2CNJ/RkHD01S12JH3NPoeuY04/zhpl1BRq5Zm9iuIMkg5LP1cNjRnB5v8/ENZdLTXYEcrz4d3UDXZXvD2ywqoNNGqMqqp/U1ECQQDma32C2t3LV3lS9QeLejGXwDTeksJ53NzsUoGUOIQNkIC7f66tQfYG6wVWBfGoZTpxcLWweC+jPQ+75knWdmLHAkEAuUkYGKtzIeNmKJ0siew/dY31+Rb/pVHYj7TnZDx3dIYly0mwigQGCU7uVzkADXqyEqU+AQWU+RagQWwmjlWGeQJBALdYiMJ6zUlkDVIJTzuYu6V4d5kzRjQZnmEdNaZvYgQ5G3YWnzOV7OKMV+6fRC8ufVaOzMPinmVRzRdCozZXdTkCQQCapPo6pOasMyqx3TUuTINOr1TMOLjYl65Diz7Rt3IQTGLBAFkbaG5NWJavMADuPyjfTRGqMql7GLpawFSR2aopAkEAmKme0TgKB4EpdxS7xV4/XEm+MuZXE/dAfnN5fNOVueWw+23gDYvLXZAoAZNdpdaWw/CZl66XL6M1RMiDYllNvw=="
#define DEFAULT_ACCESS_TOKEN "1a3bd3e3-02b4-44ac-ab13-65069e85938b" //#define DEFAULT_ACCESS_TOKEN "1a3bd3e3-02b4-44ac-ab13-65069e85938b"
//正式环境 //正式环境
//#define SHA256RSA_PRIVATEKEY "MIICeQIBADANBgkqhkiG9w0BAQEFAASCAmMwggJfAgEAAoGBAKbFeAqipCea1OXTR6wmz2D7XKUJ6ffRl/VRgF23kbxhhUseJ1jWJW9n7bJ1DyJsMzNgLzpi5jwCasZlvMAS+TdRYQtlvdHV8EDH8JKVaCn1O+emoN/Tbp+ngZLkZNqu3bWTQ6fBgbun4gyeFC1cXb87kn0dnBdkjnGZ/MuDu9oPAgMBAAECgYEAip3t1iEzgnvOY60GkM+9ZWXoroEcCNEcllqE8OCo8MS6LyLEH7H3ca8XwlJMHxeCQzy6ZLRZnB2CNJ/RkHD01S12JH3NPoeuY04/zhpl1BRq5Zm9iuIMkg5LP1cNjRnB5v8/ENZdLTXYEcrz4d3UDXZXvD2ywqoNNGqMqqp/U1ECQQDma32C2t3LV3lS9QeLejGXwDTeksJ53NzsUoGUOIQNkIC7f66tQfYG6wVWBfGoZTpxcLWweC+jPQ+75knWdmLHAkEAuUkYGKtzIeNmKJ0siew/dY31+Rb/pVHYj7TnZDx3dIYly0mwigQGCU7uVzkADXqyEqU+AQWU+RagQWwmjlWGeQJBALdYiMJ6zUlkDVIJTzuYu6V4d5kzRjQZnmEdNaZvYgQ5G3YWnzOV7OKMV+6fRC8ufVaOzMPinmVRzRdCozZXdTkCQQCapPo6pOasMyqx3TUuTINOr1TMOLjYl65Diz7Rt3IQTGLBAFkbaG5NWJavMADuPyjfTRGqMql7GLpawFSR2aopAkEAmKme0TgKB4EpdxS7xV4/XEm+MuZXE/dAfnN5fNOVueWw+23gDYvLXZAoAZNdpdaWw/CZl66XL6M1RMiDYllNvw==" #define SHA256RSA_PRIVATEKEY "MIICeQIBADANBgkqhkiG9w0BAQEFAASCAmMwggJfAgEAAoGBAKbFeAqipCea1OXTR6wmz2D7XKUJ6ffRl/VRgF23kbxhhUseJ1jWJW9n7bJ1DyJsMzNgLzpi5jwCasZlvMAS+TdRYQtlvdHV8EDH8JKVaCn1O+emoN/Tbp+ngZLkZNqu3bWTQ6fBgbun4gyeFC1cXb87kn0dnBdkjnGZ/MuDu9oPAgMBAAECgYEAip3t1iEzgnvOY60GkM+9ZWXoroEcCNEcllqE8OCo8MS6LyLEH7H3ca8XwlJMHxeCQzy6ZLRZnB2CNJ/RkHD01S12JH3NPoeuY04/zhpl1BRq5Zm9iuIMkg5LP1cNjRnB5v8/ENZdLTXYEcrz4d3UDXZXvD2ywqoNNGqMqqp/U1ECQQDma32C2t3LV3lS9QeLejGXwDTeksJ53NzsUoGUOIQNkIC7f66tQfYG6wVWBfGoZTpxcLWweC+jPQ+75knWdmLHAkEAuUkYGKtzIeNmKJ0siew/dY31+Rb/pVHYj7TnZDx3dIYly0mwigQGCU7uVzkADXqyEqU+AQWU+RagQWwmjlWGeQJBALdYiMJ6zUlkDVIJTzuYu6V4d5kzRjQZnmEdNaZvYgQ5G3YWnzOV7OKMV+6fRC8ufVaOzMPinmVRzRdCozZXdTkCQQCapPo6pOasMyqx3TUuTINOr1TMOLjYl65Diz7Rt3IQTGLBAFkbaG5NWJavMADuPyjfTRGqMql7GLpawFSR2aopAkEAmKme0TgKB4EpdxS7xV4/XEm+MuZXE/dAfnN5fNOVueWw+23gDYvLXZAoAZNdpdaWw/CZl66XL6M1RMiDYllNvw=="
//#define DEFAULT_ACCESS_TOKEN "5c1bf782-a117-4aed-8ddc-66a415820d34" #define DEFAULT_ACCESS_TOKEN "5c1bf782-a117-4aed-8ddc-66a415820d34"
#define TIMEOUT_TRY_LOGING 20000 #define TIMEOUT_TRY_LOGING 20000
...@@ -255,4 +255,6 @@ ...@@ -255,4 +255,6 @@
#define DEFAULT_PRINTF_MAIN_SESSION "Printer" #define DEFAULT_PRINTF_MAIN_SESSION "Printer"
#define DEFAULT_PRINTF_OTHER_SESSION "OtherPrinter" #define DEFAULT_PRINTF_OTHER_SESSION "OtherPrinter"
#define DEFAULT_SESSION_COMDEF "COMDEF"
#endif // PREDEFINE_H #endif // PREDEFINE_H
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
#include <winver.h> #include <winver.h>
#endif #endif
VS_VERSION_INFO VERSIONINFO VS_VERSION_INFO VERSIONINFO
FILEVERSION 2,0,0,4 FILEVERSION 2,0,0,5
PRODUCTVERSION 2,0,0,4 PRODUCTVERSION 2,0,0,5
FILEFLAGSMASK 0x3fL FILEFLAGSMASK 0x3fL
#ifdef _DEBUG #ifdef _DEBUG
FILEFLAGS VS_FF_DEBUG FILEFLAGS VS_FF_DEBUG
...@@ -22,12 +22,12 @@ VS_VERSION_INFO VERSIONINFO ...@@ -22,12 +22,12 @@ VS_VERSION_INFO VERSIONINFO
BEGIN BEGIN
VALUE "CompanyName", "ShangHai Freemud Co., Ltd." VALUE "CompanyName", "ShangHai Freemud Co., Ltd."
VALUE "FileDescription", "FREEMUD Manager System" VALUE "FileDescription", "FREEMUD Manager System"
VALUE "FileVersion", "2.0.0.4" VALUE "FileVersion", "2.0.0.5"
VALUE "InternalName", "FREEMUD" VALUE "InternalName", "FREEMUD"
VALUE "LegalCopyright", "Copyright (C)2017-2020" VALUE "LegalCopyright", "Copyright (C)2017-2020"
VALUE "OriginalFilename", "fmTakeout.exe" VALUE "OriginalFilename", "fmTakeout.exe"
VALUE "ProductName", "fmTakeout" VALUE "ProductName", "fmTakeout"
VALUE "ProductVersion", "2.0.0.4" VALUE "ProductVersion", "2.0.0.5"
END END
END END
BLOCK "VarFileInfo" BLOCK "VarFileInfo"
......
...@@ -35,7 +35,7 @@ PrtSettingForm::PrtSettingForm(QWidget *parent) : ...@@ -35,7 +35,7 @@ PrtSettingForm::PrtSettingForm(QWidget *parent) :
* labe_high 标签纸高 * labe_high 标签纸高
* label_type 标签打印类型 * label_type 标签打印类型
****************/ ****************/
void PrtSettingForm::GetData(char *data, QString type, QString ip, QString name, QString label_name, QString label_wigth, QString labe_high, QString label_type) void PrtSettingForm::GetData(char *data, QString type, QString lptname, QString usbname, QString ip, QString name, QString label_name, QString label_wigth, QString labe_high, QString label_type)
{ {
std::string ini; std::string ini;
//ini.append(config.value("Printer/Name").toString()); //ini.append(config.value("Printer/Name").toString());
...@@ -63,7 +63,11 @@ void PrtSettingForm::GetData(char *data, QString type, QString ip, QString name, ...@@ -63,7 +63,11 @@ void PrtSettingForm::GetData(char *data, QString type, QString ip, QString name,
ini.append("All"); ini.append("All");
ini.append("|"); ini.append("|");
//ini.append(config.value("Printer/parallel").toString()); //ini.append(config.value("Printer/parallel").toString());
ini.append("3"); if(!lptname.isEmpty())
ini.append(lptname.toUtf8().data());
else
ini.append("LPT1");
//ini.append("3");
ini.append("|"); ini.append("|");
//ini.append(config.value("Printer/type").toString()); //ini.append(config.value("Printer/type").toString());
if(!type.isEmpty()) if(!type.isEmpty())
...@@ -75,7 +79,11 @@ void PrtSettingForm::GetData(char *data, QString type, QString ip, QString name, ...@@ -75,7 +79,11 @@ void PrtSettingForm::GetData(char *data, QString type, QString ip, QString name,
//ini.append("4"); //ini.append("4");
ini.append("|"); ini.append("|");
//ini.append(config.value("Printer/usb").toString()); //ini.append(config.value("Printer/usb").toString());
ini.append("BYUSB3"); if(!usbname.isEmpty())
ini.append(usbname.toUtf8().data());
else
ini.append("BYUSB-0");
//ini.append("BYUSB3");
ini.append("|"); ini.append("|");
//ini.append(config.value("Printer/IP").toString()); //ini.append(config.value("Printer/IP").toString());
if(label_name.isEmpty()) if(label_name.isEmpty())
...@@ -206,9 +214,31 @@ void PrtSettingForm::on_pushButton_test_clicked() ...@@ -206,9 +214,31 @@ void PrtSettingForm::on_pushButton_test_clicked()
if(ui->radioButton_dev->isChecked()) if(ui->radioButton_dev->isChecked())
type = "4"; type = "4";
else if(ui->radioButton_com->isChecked())
type = "0";
else if(ui->radioButton_lpt->isChecked())
type = "1";
else if(ui->radioButton_usb->isChecked())
type = "2";
else else
type = "3"; type = "3";
QString session = DEFAULT_SESSION_COMDEF;
QString filename = qApp->applicationDirPath() + "/" + PREINTER_CONSS;
QLOG_DEBUG() << "printf file name : " << filename;
if(QString("0").compare(type) == 0)
{
QSettings(filename, QSettings::IniFormat).setValue(session + "/" + "Baudrate", ui->comboBox_com_btl->currentText());
QSettings(filename, QSettings::IniFormat).setValue(session + "/" + "com", ui->lineEdit_com->text());
QSettings(filename, QSettings::IniFormat).setValue(session + "/" + "DataBits", ui->comboBox_com_suw->currentText());
QSettings(filename, QSettings::IniFormat).setValue(session + "/" + "StopBits", ui->comboBox_com_stop->currentText());
QSettings(filename, QSettings::IniFormat).setValue(session + "/" + "Parity", ui->comboBox_com_jy->currentText());
QSettings(filename, QSettings::IniFormat).setValue(session + "/" + "FlowControl", ui->comboBox_com_control->currentText());
}
QString labtype; QString labtype;
if(ui->comboBox_zlj->currentIndex() == 1) if(ui->comboBox_zlj->currentIndex() == 1)
...@@ -218,7 +248,7 @@ void PrtSettingForm::on_pushButton_test_clicked() ...@@ -218,7 +248,7 @@ void PrtSettingForm::on_pushButton_test_clicked()
QLOG_INFO() << type; QLOG_INFO() << type;
GetData(arr, type, ui->lineEdit_ip->text(), name, ui->lineEdit_lab_name->text(), ui->lineEdit_lab_widgh->text(), GetData(arr, type, ui->lineEdit_lpt->text(), ui->lineEdit_usb->text(), ui->lineEdit_ip->text(), name, ui->lineEdit_lab_name->text(), ui->lineEdit_lab_widgh->text(),
ui->lineEdit_lab_high->text(), labtype); ui->lineEdit_lab_high->text(), labtype);
QLOG_INFO() << "prt info" << arr; QLOG_INFO() << "prt info" << arr;
...@@ -271,7 +301,7 @@ void PrtSettingForm::on_btn_lab_test_clicked() ...@@ -271,7 +301,7 @@ void PrtSettingForm::on_btn_lab_test_clicked()
labtype = "1"; labtype = "1";
GetData(arr, type, ui->lineEdit_ip->text(), name, labelname, ui->lineEdit_lab_widgh->text(), GetData(arr, type, ui->lineEdit_lpt->text(), ui->lineEdit_usb->text(),ui->lineEdit_ip->text(), name, labelname, ui->lineEdit_lab_widgh->text(),
ui->lineEdit_lab_high->text(), labtype); ui->lineEdit_lab_high->text(), labtype);
QLOG_INFO() << "prt info" << arr; QLOG_INFO() << "prt info" << arr;
...@@ -305,9 +335,27 @@ void PrtSettingForm::on_pushButton_save_clicked() ...@@ -305,9 +335,27 @@ void PrtSettingForm::on_pushButton_save_clicked()
QString type = "4"; QString type = "4";
if(ui->radioButton_dev->isChecked()) if(ui->radioButton_dev->isChecked())
type = "3";
else
type = "4"; type = "4";
else if(ui->radioButton_com->isChecked())
type = "0";
else if(ui->radioButton_lpt->isChecked())
type = "1";
else if(ui->radioButton_usb->isChecked())
type = "2";
else
type = "3";
QString filename = qApp->applicationDirPath() + "/" + PREINTER_CONSS;
if(QString("0").compare(type) == 0)
{
QSettings(filename, QSettings::IniFormat).setValue(QString(DEFAULT_SESSION_COMDEF) + "/" + "Baudrate", ui->comboBox_com_btl->currentText());
QSettings(filename, QSettings::IniFormat).setValue(QString(DEFAULT_SESSION_COMDEF) + "/" + "com", ui->lineEdit_com->text());
QSettings(filename, QSettings::IniFormat).setValue(QString(DEFAULT_SESSION_COMDEF) + "/" + "DataBits", ui->comboBox_com_suw->currentText());
QSettings(filename, QSettings::IniFormat).setValue(QString(DEFAULT_SESSION_COMDEF) + "/" + "StopBits", ui->comboBox_com_stop->currentText());
QSettings(filename, QSettings::IniFormat).setValue(QString(DEFAULT_SESSION_COMDEF) + "/" + "Parity", ui->comboBox_com_jy->currentText());
QSettings(filename, QSettings::IniFormat).setValue(QString(DEFAULT_SESSION_COMDEF) + "/" + "FlowControl", ui->comboBox_com_control->currentText());
}
QString Wigth = ui->comboBox_width->currentText(); QString Wigth = ui->comboBox_width->currentText();
QString Ip = ui->lineEdit_ip->text(); QString Ip = ui->lineEdit_ip->text();
...@@ -315,8 +363,6 @@ void PrtSettingForm::on_pushButton_save_clicked() ...@@ -315,8 +363,6 @@ void PrtSettingForm::on_pushButton_save_clicked()
if(Ip.isEmpty()) if(Ip.isEmpty())
Ip = "127.0.0.1"; Ip = "127.0.0.1";
QString filename = qApp->applicationDirPath() + "/" + PREINTER_CONSS;
QLOG_DEBUG() << "printf file name : " << filename; QLOG_DEBUG() << "printf file name : " << filename;
if(Wigth.isEmpty() || name.isEmpty()) if(Wigth.isEmpty() || name.isEmpty())
...@@ -329,7 +375,8 @@ void PrtSettingForm::on_pushButton_save_clicked() ...@@ -329,7 +375,8 @@ void PrtSettingForm::on_pushButton_save_clicked()
else else
QSettings(confilename, QSettings::IniFormat).setValue(INI_NEEDPTR, 0); QSettings(confilename, QSettings::IniFormat).setValue(INI_NEEDPTR, 0);
QSettings(filename, QSettings::IniFormat).setValue(session + "/" + "usb", ui->lineEdit_usb->text());
QSettings(filename, QSettings::IniFormat).setValue(session + "/" + "parallel", ui->lineEdit_lpt->text());
QSettings(filename, QSettings::IniFormat).setValue(session + "/" + "printType", type); QSettings(filename, QSettings::IniFormat).setValue(session + "/" + "printType", type);
QSettings(filename, QSettings::IniFormat).setValue(session + "/" + "type", type); QSettings(filename, QSettings::IniFormat).setValue(session + "/" + "type", type);
QSettings(filename, QSettings::IniFormat).setValue(session + "/" + "IP", Ip); QSettings(filename, QSettings::IniFormat).setValue(session + "/" + "IP", Ip);
......
...@@ -14,7 +14,7 @@ class PrtSettingForm : public QDialog ...@@ -14,7 +14,7 @@ class PrtSettingForm : public QDialog
public: public:
explicit PrtSettingForm(QWidget *parent = 0); explicit PrtSettingForm(QWidget *parent = 0);
~PrtSettingForm(); ~PrtSettingForm();
void GetData(char *data, QString type, QString ip, QString name, QString label_name, QString label_wigth, QString labe_high, QString label_type); void GetData(char *data, QString type, QString lptname, QString usbname, QString ip, QString name, QString label_name, QString label_wigth, QString labe_high, QString label_type);
private slots: private slots:
void on_pushButton_test_clicked(); void on_pushButton_test_clicked();
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>829</width> <width>963</width>
<height>477</height> <height>481</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
...@@ -27,34 +27,17 @@ ...@@ -27,34 +27,17 @@
background-color: rgb(255, 255, 255); background-color: rgb(255, 255, 255);
}</string> }</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_4"> <layout class="QVBoxLayout" name="verticalLayout_3">
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
</property> </property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin"> <property name="topMargin">
<number>0</number> <number>0</number>
</property> </property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin"> <property name="bottomMargin">
<number>0</number> <number>0</number>
</property> </property>
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout_3">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>10</number>
</property>
<property name="rightMargin">
<number>10</number>
</property>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_7"> <layout class="QHBoxLayout" name="horizontalLayout_7">
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
...@@ -278,6 +261,348 @@ ...@@ -278,6 +261,348 @@
</layout> </layout>
</item> </item>
<item> <item>
<spacer name="verticalSpacer_16">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_16">
<property name="spacing">
<number>0</number>
</property>
<item>
<widget class="QLineEdit" name="lineEdit_com">
<property name="text">
<string>COM1</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_13">
<property name="text">
<string>波特率:</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboBox_com_btl">
<property name="minimumSize">
<size>
<width>68</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<item>
<property name="text">
<string>9600</string>
</property>
</item>
<item>
<property name="text">
<string>19200</string>
</property>
</item>
<item>
<property name="text">
<string>34800</string>
</property>
</item>
<item>
<property name="text">
<string>43000</string>
</property>
</item>
<item>
<property name="text">
<string>56000</string>
</property>
</item>
<item>
<property name="text">
<string>57600</string>
</property>
</item>
<item>
<property name="text">
<string>115200</string>
</property>
</item>
<item>
<property name="text">
<string>4800</string>
</property>
</item>
<item>
<property name="text">
<string>2400</string>
</property>
</item>
<item>
<property name="text">
<string>1200</string>
</property>
</item>
<item>
<property name="text">
<string>600</string>
</property>
</item>
<item>
<property name="text">
<string>300</string>
</property>
</item>
</widget>
</item>
<item>
<widget class="QLabel" name="label_14">
<property name="text">
<string>校验位:</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboBox_com_jy">
<property name="minimumSize">
<size>
<width>31</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>32</width>
<height>16777215</height>
</size>
</property>
<item>
<property name="text">
<string>0</string>
</property>
</item>
<item>
<property name="text">
<string>1</string>
</property>
</item>
</widget>
</item>
<item>
<widget class="QLabel" name="label_15">
<property name="text">
<string>数据位:</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboBox_com_suw">
<property name="minimumSize">
<size>
<width>32</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>32</width>
<height>16777215</height>
</size>
</property>
<item>
<property name="text">
<string>8</string>
</property>
</item>
<item>
<property name="text">
<string>16</string>
</property>
</item>
<item>
<property name="text">
<string>32</string>
</property>
</item>
</widget>
</item>
<item>
<widget class="QLabel" name="label_16">
<property name="text">
<string>停止位:</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboBox_com_stop">
<property name="minimumSize">
<size>
<width>32</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>32</width>
<height>16777215</height>
</size>
</property>
<item>
<property name="text">
<string>0</string>
</property>
</item>
<item>
<property name="text">
<string>1</string>
</property>
</item>
</widget>
</item>
<item>
<widget class="QLabel" name="label_17">
<property name="text">
<string>控制位:</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboBox_com_control">
<property name="minimumSize">
<size>
<width>32</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>32</width>
<height>16777215</height>
</size>
</property>
<item>
<property name="text">
<string>0</string>
</property>
</item>
<item>
<property name="text">
<string>1</string>
</property>
</item>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton_com">
<property name="text">
<string>串口打印</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer_15">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_17">
<item>
<widget class="QLineEdit" name="lineEdit_lpt">
<property name="text">
<string>LPT1</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_26">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QRadioButton" name="radioButton_lpt">
<property name="text">
<string>并口打印</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer_5">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_18">
<item>
<widget class="QLineEdit" name="lineEdit_usb">
<property name="text">
<string>USB-0</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_27">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QRadioButton" name="radioButton_usb">
<property name="text">
<string>USB打印</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer_3"> <spacer name="verticalSpacer_3">
<property name="orientation"> <property name="orientation">
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>
...@@ -545,8 +870,6 @@ ...@@ -545,8 +870,6 @@
</spacer> </spacer>
</item> </item>
</layout> </layout>
</item>
</layout>
</widget> </widget>
</item> </item>
<item> <item>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment