Commit 9c3ad5fe by LIDINGDA\ldd

1.界面调整

parent a64ce3fc
......@@ -46,8 +46,6 @@ bool FMPDataBase::dlt(QString table, QString condition)
bool flag = query.exec(sql);
FMP_INFO(_logger) << "000000000000000000000 "<< sql;
if(!flag)
FMP_WARN(_logger) << query.lastError();
......
......@@ -9,6 +9,7 @@
#include <fmp_logger_i.h>
#include <QSqlTableModel>
#include <QStyledItemDelegate>
#include <QMouseEvent>
#include <QPropertyAnimation>
......@@ -22,7 +23,9 @@ FMPPayDialog::FMPPayDialog(FMPePayPrivate *control, FMPLoggerInterface *logger,
ui->setupUi(this);
ui->label_date->setText(QString::fromLocal8Bit("营业日:") + basicinfo[FMP_EPAY_BUSINESSDATE].toString());
_b_mouse_pressed = false;
ui->label_date->setText(QString::fromLocal8Bit("当前营业日 : ") + basicinfo[FMP_EPAY_BUSINESSDATE].toString());
ui->label_storeid->setText(QString::fromLocal8Bit("门店号:") + basicinfo[FMP_EPAY_STOREID].toString());
ui->label_posno->setText(QString::fromLocal8Bit("POS编号:") + basicinfo[FMP_EPAY_STATIONID].toString());
ui->label_optid->setText(QString::fromLocal8Bit("操作员:") + basicinfo[FMP_EPAY_OPERATORID].toString());
......@@ -258,9 +261,32 @@ void FMPPayDialog::onSelectionChanged(QModelIndex idx)
}
}
void FMPPayDialog::keyPressEvent(QKeyEvent *)
void FMPPayDialog::keyPressEvent(QKeyEvent *e)
{
}
void FMPPayDialog::mousePressEvent(QMouseEvent *event)
{
_b_mouse_pressed = true;
_mMovePosition = event->globalPos() - pos();
return QDialog::mousePressEvent(event);
}
void FMPPayDialog::mouseMoveEvent(QMouseEvent *event)
{
if (_b_mouse_pressed && (event->buttons() && Qt::LeftButton)
&& (event->globalPos()-_mMovePosition).manhattanLength() > QApplication::startDragDistance())
{
move(event->globalPos()-_mMovePosition);
_mMovePosition = event->globalPos() - pos();
}
return QDialog::mouseMoveEvent(event);
}
void FMPPayDialog::mouseReleaseEvent(QMouseEvent *event)
{
_b_mouse_pressed = false;
}
void FMPPayDialog::setPaySuccessView(QJsonObject json)
......
......@@ -49,6 +49,10 @@ public slots:
protected:
void keyPressEvent(QKeyEvent *);
void mousePressEvent(QMouseEvent *);
void mouseMoveEvent(QMouseEvent *);
void mouseReleaseEvent(QMouseEvent *);
private slots:
void on_widget_change();
......@@ -117,6 +121,8 @@ private:
bool _success_flag;
bool _is_amt;
bool _b_mouse_pressed;
QPoint _mMovePosition;
};
#endif // DIALOG_H
......@@ -35,9 +35,13 @@
<item>
<widget class="QWidget" name="main" native="true">
<property name="styleSheet">
<string notr="true"/>
<string notr="true">#main
{
background-color: rgb(255, 255, 255);
}</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<layout class="QVBoxLayout" name="verticalLayout_6">
<property name="spacing">
<number>0</number>
</property>
......@@ -100,9 +104,12 @@
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Maximum</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>328</width>
<width>25</width>
<height>20</height>
</size>
</property>
......@@ -157,47 +164,36 @@
<widget class="QPushButton" name="btn_close">
<property name="minimumSize">
<size>
<width>26</width>
<height>26</height>
<width>54</width>
<height>54</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>26</width>
<height>26</height>
<width>54</width>
<height>54</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/img/fm-icon_close_02.png);</string>
<string notr="true">#btn_close
{
background-color: rgb(56, 56, 64);
border-radius: 0px;
image: url(:/img/fm-icon_close_02.png);
}</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Maximum</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>15</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout" stretch="0,0">
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="spacing">
<number>0</number>
<number>15</number>
</property>
<item>
<widget class="QFrame" name="frm_left_bg">
......@@ -411,6 +407,49 @@
</widget>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing">
<number>0</number>
</property>
<item>
<widget class="QWidget" name="widget" native="true">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>72</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">#widget
{
border-bottom: 1 solid silver;
background-color: rgb(255, 255, 255);
}</string>
</property>
<widget class="QLabel" name="label_date">
<property name="geometry">
<rect>
<x>0</x>
<y>20</y>
<width>231</width>
<height>34</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">#label_date
{
color:rgb(177, 177, 177);
font: 12pt &quot;微软雅黑&quot;;
}</string>
</property>
<property name="text">
<string>当前营业日:</string>
</property>
</widget>
</widget>
</item>
<item>
<widget class="QWidget" name="wdg_right_bg" native="true">
<property name="styleSheet">
<string notr="true">#wdg_right_bg
......@@ -423,8 +462,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>630</width>
<height>532</height>
<width>613</width>
<height>460</height>
</rect>
</property>
<property name="styleSheet">
......@@ -434,12 +473,12 @@
}
QPushButton {
min-width: 50px; min-height: 50px;
max-width: 50px; max-height: 50px;
min-width: 68px; min-height: 55px;
max-width: 68px; max-height: 55px;
background-color: rgb(255, 255, 255);
font: 75 24px &quot;微软雅黑&quot;;
border-radius: 12px;
border-radius: 16px;
border: 1 solid silver;
color: rgb(57, 57, 57);
}
......@@ -447,18 +486,18 @@ QPushButton {
QPushButton:hover {
background-color: rgb(249, 249, 249);
border:2px solid rgb(99, 148, 235);
border-radius:12px;
border-radius:16px;
color: rgb(99, 148, 235);
padding: 2 0 0 2;
}
#btn_linefeed {
min-width: 50px; min-height: 50px;
max-width: 50px; max-height: 50px;
min-width: 68px; min-height: 55px;
max-width: 68px; max-height: 55px;
background-color: rgb(255, 255, 255);
font: 75 18px &quot;微软雅黑&quot;;
border-radius: 12px;
border-radius: 16px;
border: 1 solid silver;
color: rgb(57, 57, 57);
}
......@@ -466,7 +505,7 @@ QPushButton:hover {
#btn_linefeed:hover {
background-color: rgb(249, 249, 249);
border:2px solid rgb(99, 148, 235);
border-radius:12px;
border-radius:16px;
color: rgb(99, 148, 235);
padding: 2 0 0 2;
}
......@@ -495,25 +534,27 @@ QPushButton:hover {
#btn_confirm01{
font: 75 18px &quot;Microsoft YaHei&quot;;
color: rgb(255,255,255);
min-height: 106px;
max-height: 106px;
min-width: 68px; min-height: 120px;
max-width: 68px; max-height: 120px;
background-color: rgb(99, 148, 235);
}
#btn_confirm01:hover {
padding: 2 0 0 2;
background-color: rgb(249, 249, 249);
border:2px solid rgb(99, 148, 235);
border-radius:12px;
border-radius:16px;
color: rgb(99, 148, 235);
}</string>
</property>
<widget class="QFrame" name="frame">
<property name="geometry">
<rect>
<x>20</x>
<y>80</y>
<width>212</width>
<height>372</height>
<x>0</x>
<y>55</y>
<width>245</width>
<height>295</height>
</rect>
</property>
<property name="styleSheet">
......@@ -526,60 +567,19 @@ QPushButton:hover {
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<widget class="QWidget" name="layoutWidget">
<widget class="FMPFocusLineEdit" name="lineedit_num">
<property name="geometry">
<rect>
<x>0</x>
<y>110</y>
<width>211</width>
<height>111</height>
<x>20</x>
<y>50</y>
<width>206</width>
<height>47</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<widget class="QLabel" name="label_code">
<property name="minimumSize">
<size>
<width>80</width>
<height>31</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>80</width>
<height>31</height>
</size>
</property>
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>12</pointsize>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">#label_code
{
background-color: rgb(233, 239, 251);
color: rgb(99,148,235) ;
font: 12pt &quot;微软雅黑&quot;;
}</string>
</property>
<property name="text">
<string>支付条码</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_5">
<item>
<widget class="FMPFocusLineEdit" name="lineedit_code">
<property name="minimumSize">
<size>
<width>0</width>
<height>34</height>
<height>47</height>
</size>
</property>
<property name="maximumSize">
......@@ -589,11 +589,11 @@ QPushButton:hover {
</size>
</property>
<property name="styleSheet">
<string notr="true">#lineedit_code
<string notr="true">#lineedit_num
{
background-color: rgb(233, 239, 251);
border:2px solid rgb(99, 148, 235);
border-radius:4px;
border-radius:2px;
font: 12pt &quot;微软雅黑&quot;;
}
</string>
......@@ -608,60 +608,63 @@ QPushButton:hover {
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<property name="placeholderText">
<string>手动输入或扫描付款条形码</string>
<string>本次消费金额</string>
</property>
<property name="neednumpay" stdset="0">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btn_cleancode">
<widget class="QLabel" name="label_num">
<property name="geometry">
<rect>
<x>20</x>
<y>16</y>
<width>80</width>
<height>31</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>20</width>
<height>50</height>
<width>80</width>
<height>31</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>20</width>
<height>50</height>
<width>80</width>
<height>31</height>
</size>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>12</pointsize>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">#btn_cleancode
<string notr="true">#label_num
{
image: url(:/img/fmclient-icon_payment_delete.png);
border:0px;
min-width: 20px;
max-width: 20px;
background-color: rgb(233, 239, 251);
color: rgb(99,148,235) ;
font: 12pt &quot;微软雅黑&quot;;
}</string>
</property>
<property name="text">
<string/>
<string>应付金额</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QWidget" name="layoutWidget">
<widget class="QLabel" name="label_code">
<property name="geometry">
<rect>
<x>0</x>
<y>10</y>
<width>211</width>
<height>101</height>
<x>20</x>
<y>115</y>
<width>80</width>
<height>31</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_7">
<item>
<widget class="QLabel" name="label_num">
<property name="minimumSize">
<size>
<width>80</width>
......@@ -684,7 +687,7 @@ QPushButton:hover {
</font>
</property>
<property name="styleSheet">
<string notr="true">#label_num
<string notr="true">#label_code
{
background-color: rgb(233, 239, 251);
color: rgb(99,148,235) ;
......@@ -692,32 +695,36 @@ QPushButton:hover {
}</string>
</property>
<property name="text">
<string>支付金额</string>
<string>付款条码</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_7">
<item>
<widget class="FMPFocusLineEdit" name="lineedit_num">
<widget class="FMPFocusLineEdit" name="lineedit_code">
<property name="geometry">
<rect>
<x>20</x>
<y>154</y>
<width>206</width>
<height>47</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>34</height>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>31</height>
<height>16777215</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">#lineedit_num
<string notr="true">#lineedit_code
{
background-color: rgb(233, 239, 251);
border:2px solid rgb(99, 148, 235);
border-radius:4px;
border-radius:2px;
font: 12pt &quot;微软雅黑&quot;;
}
</string>
......@@ -732,56 +739,20 @@ QPushButton:hover {
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<property name="placeholderText">
<string>本次消费金额</string>
<string>手动输入或扫描付款条形码</string>
</property>
<property name="neednumpay" stdset="0">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btn_cleannum">
<property name="minimumSize">
<size>
<width>20</width>
<height>50</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>20</width>
<height>50</height>
</size>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="styleSheet">
<string notr="true">#btn_cleannum
{
image: url(:/img/fmclient-icon_payment_delete.png);
border:0px;
min-width: 20px;
max-width: 20px;
}</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</widget>
<widget class="QFrame" name="frame_2">
<property name="geometry">
<rect>
<x>242</x>
<y>80</y>
<width>351</width>
<height>371</height>
<x>245</x>
<y>55</y>
<width>346</width>
<height>295</height>
</rect>
</property>
<property name="styleSheet">
......@@ -801,14 +772,14 @@ QPushButton:hover {
<widget class="QPushButton" name="btn_num7">
<property name="minimumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="cursor">
......@@ -826,14 +797,14 @@ QPushButton:hover {
<widget class="QPushButton" name="btn_num8">
<property name="minimumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="cursor">
......@@ -851,14 +822,14 @@ QPushButton:hover {
<widget class="QPushButton" name="btn_num9">
<property name="minimumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="cursor">
......@@ -876,14 +847,14 @@ QPushButton:hover {
<widget class="QPushButton" name="btn_backspace">
<property name="minimumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="cursor">
......@@ -901,14 +872,14 @@ QPushButton:hover {
<widget class="QPushButton" name="btn_num4">
<property name="minimumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="cursor">
......@@ -926,14 +897,14 @@ QPushButton:hover {
<widget class="QPushButton" name="btn_num5">
<property name="minimumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="cursor">
......@@ -951,14 +922,14 @@ QPushButton:hover {
<widget class="QPushButton" name="btn_num6">
<property name="minimumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="cursor">
......@@ -976,14 +947,14 @@ QPushButton:hover {
<widget class="QPushButton" name="btn_linefeed">
<property name="minimumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="font">
......@@ -1010,14 +981,14 @@ QPushButton:hover {
<widget class="QPushButton" name="btn_num1">
<property name="minimumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="cursor">
......@@ -1035,14 +1006,14 @@ QPushButton:hover {
<widget class="QPushButton" name="btn_num2">
<property name="minimumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="cursor">
......@@ -1060,14 +1031,14 @@ QPushButton:hover {
<widget class="QPushButton" name="btn_num3">
<property name="minimumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="cursor">
......@@ -1085,14 +1056,14 @@ QPushButton:hover {
<widget class="QPushButton" name="btn_confirm01">
<property name="minimumSize">
<size>
<width>52</width>
<height>108</height>
<width>70</width>
<height>122</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>52</width>
<height>108</height>
<width>70</width>
<height>122</height>
</size>
</property>
<property name="cursor">
......@@ -1110,14 +1081,14 @@ QPushButton:hover {
<widget class="QPushButton" name="btn_num0">
<property name="minimumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="cursor">
......@@ -1135,14 +1106,14 @@ QPushButton:hover {
<widget class="QPushButton" name="btn_num00">
<property name="minimumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="cursor">
......@@ -1160,14 +1131,14 @@ QPushButton:hover {
<widget class="QPushButton" name="btn_numdot">
<property name="minimumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="cursor">
......@@ -1189,8 +1160,8 @@ QPushButton:hover {
<rect>
<x>0</x>
<y>0</y>
<width>630</width>
<height>532</height>
<width>613</width>
<height>460</height>
</rect>
</property>
<property name="styleSheet">
......@@ -1200,12 +1171,12 @@ QPushButton:hover {
}
QPushButton {
min-width: 50px; min-height: 50px;
max-width: 50px; max-height: 50px;
min-width: 68px; min-height: 55px;
max-width: 68px; max-height: 55px;
background-color: rgb(255, 255, 255);
font: 75 24px &quot;微软雅黑&quot;;
border-radius: 12px;
border-radius: 16px;
border: 1 solid silver;
color: rgb(57, 57, 57);
}
......@@ -1213,18 +1184,18 @@ QPushButton {
QPushButton:hover {
background-color: rgb(249, 249, 249);
border:2px solid rgb(99, 148, 235);
border-radius:12px;
border-radius:16px;
color: rgb(99, 148, 235);
padding: 2 0 0 2;
}
#btn_linefeed_refund {
min-width: 50px; min-height: 50px;
max-width: 50px; max-height: 50px;
min-width: 68px; min-height: 55px;
max-width: 68px; max-height: 55px;
background-color: rgb(255, 255, 255);
font: 75 18px &quot;微软雅黑&quot;;
border-radius: 12px;
border-radius: 16px;
border: 1 solid silver;
color: rgb(57, 57, 57);
}
......@@ -1232,7 +1203,7 @@ QPushButton:hover {
#btn_linefeed_refund:hover {
background-color: rgb(249, 249, 249);
border:2px solid rgb(99, 148, 235);
border-radius:12px;
border-radius:16px;
color: rgb(99, 148, 235);
padding: 2 0 0 2;
}
......@@ -1262,8 +1233,8 @@ QPushButton:hover {
background: rgb(93,144,237);
font: 75 18px &quot;Microsoft YaHei&quot;;
color: white;
min-height: 106px;
max-height: 106px;
min-height: 120px;
max-height: 120px;
border: 0 solid white;
border-right: 1 solid silver;
}
......@@ -1271,17 +1242,17 @@ QPushButton:hover {
padding: 2 0 0 2;
background-color: rgb(249, 249, 249);
border:2px solid rgb(99, 148, 235);
border-radius:12px;
border-radius:16px;
color: rgb(99, 148, 235);
}</string>
</property>
<widget class="QFrame" name="frame_5">
<property name="geometry">
<rect>
<x>20</x>
<y>80</y>
<width>212</width>
<height>372</height>
<x>0</x>
<y>55</y>
<width>245</width>
<height>295</height>
</rect>
</property>
<property name="styleSheet">
......@@ -1294,18 +1265,15 @@ QPushButton:hover {
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<widget class="QWidget" name="layoutWidget_4">
<widget class="QLabel" name="label_num_refund">
<property name="geometry">
<rect>
<x>0</x>
<y>110</y>
<width>211</width>
<height>111</height>
<x>20</x>
<y>16</y>
<width>80</width>
<height>31</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_8">
<item>
<widget class="QLabel" name="label_code_refund">
<property name="minimumSize">
<size>
<width>80</width>
......@@ -1328,7 +1296,7 @@ QPushButton:hover {
</font>
</property>
<property name="styleSheet">
<string notr="true">#label_code_refund
<string notr="true">#label_num_refund
{
background-color: rgb(233, 239, 251);
color: rgb(99,148,235) ;
......@@ -1336,100 +1304,18 @@ QPushButton:hover {
}</string>
</property>
<property name="text">
<string>退款条码</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_8">
<item>
<widget class="FMPFocusLineEdit" name="lineedit_code_refund">
<property name="minimumSize">
<size>
<width>0</width>
<height>34</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>31</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">#lineedit_code_refund
{
background-color: rgb(233, 239, 251);
border:2px solid rgb(99, 148, 235);
border-radius:4px;
font: 12pt &quot;微软雅黑&quot;;
}
</string>
</property>
<property name="inputMask">
<string/>
</property>
<property name="text">
<string/>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<property name="placeholderText">
<string>手动输入或扫描退款条形码</string>
</property>
<property name="neednumpay" stdset="0">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btn_cleancode_refund">
<property name="minimumSize">
<size>
<width>20</width>
<height>50</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>20</width>
<height>50</height>
</size>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="styleSheet">
<string notr="true">#btn_cleancode_refund
{
image: url(:/img/fmclient-icon_payment_delete.png);
border:0px;
min-width: 20px;
max-width: 20px;
}</string>
</property>
<property name="text">
<string/>
<string>退款金额</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QWidget" name="layoutWidget_5">
<widget class="QLabel" name="label_code_refund">
<property name="geometry">
<rect>
<x>0</x>
<y>10</y>
<width>211</width>
<height>101</height>
<x>20</x>
<y>115</y>
<width>80</width>
<height>31</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_9">
<item>
<widget class="QLabel" name="label_num_refund">
<property name="minimumSize">
<size>
<width>80</width>
......@@ -1452,7 +1338,7 @@ QPushButton:hover {
</font>
</property>
<property name="styleSheet">
<string notr="true">#label_num_refund
<string notr="true">#label_code_refund
{
background-color: rgb(233, 239, 251);
color: rgb(99,148,235) ;
......@@ -1460,32 +1346,36 @@ QPushButton:hover {
}</string>
</property>
<property name="text">
<string>退款金额</string>
<string>退款条码</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_9">
<item>
<widget class="FMPFocusLineEdit" name="lineedit_num_refund">
<widget class="FMPFocusLineEdit" name="lineedit_code_refund">
<property name="geometry">
<rect>
<x>20</x>
<y>50</y>
<width>206</width>
<height>47</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>34</height>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>31</height>
<height>16777215</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">#lineedit_num_refund
<string notr="true">#lineedit_code_refund
{
background-color: rgb(233, 239, 251);
border:2px solid rgb(99, 148, 235);
border-radius:4px;
border-radius:2px;
font: 12pt &quot;微软雅黑&quot;;
}
</string>
......@@ -1500,56 +1390,67 @@ QPushButton:hover {
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<property name="placeholderText">
<string>本次退款金额</string>
<string>手动输入或扫描退款条形码</string>
</property>
<property name="neednumpay" stdset="0">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btn_cleannum_refund">
<widget class="FMPFocusLineEdit" name="lineedit_num_refund">
<property name="geometry">
<rect>
<x>20</x>
<y>154</y>
<width>206</width>
<height>47</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>20</width>
<height>50</height>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>20</width>
<height>50</height>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="styleSheet">
<string notr="true">#btn_cleannum_refund
<string notr="true">#lineedit_num_refund
{
image: url(:/img/fmclient-icon_payment_delete.png);
border:0px;
min-width: 20px;
max-width: 20px;
}</string>
background-color: rgb(233, 239, 251);
border:2px solid rgb(99, 148, 235);
border-radius:2px;
font: 12pt &quot;微软雅黑&quot;;
}
</string>
</property>
<property name="inputMask">
<string/>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
</layout>
</item>
</layout>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<property name="placeholderText">
<string>本次退款金额</string>
</property>
<property name="neednumpay" stdset="0">
<bool>false</bool>
</property>
</widget>
</widget>
<widget class="QFrame" name="frame_3">
<property name="geometry">
<rect>
<x>242</x>
<y>80</y>
<width>351</width>
<height>371</height>
<x>245</x>
<y>55</y>
<width>346</width>
<height>295</height>
</rect>
</property>
<property name="styleSheet">
......@@ -1570,14 +1471,14 @@ QPushButton:hover {
<widget class="QPushButton" name="btn_num7_refund">
<property name="minimumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="cursor">
......@@ -1595,14 +1496,14 @@ QPushButton:hover {
<widget class="QPushButton" name="btn_num8_refund">
<property name="minimumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="cursor">
......@@ -1620,14 +1521,14 @@ QPushButton:hover {
<widget class="QPushButton" name="btn_num9_refund">
<property name="minimumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="cursor">
......@@ -1641,18 +1542,18 @@ QPushButton:hover {
</property>
</widget>
</item>
<item row="0" column="3">
<widget class="QPushButton" name="btn_backspace_refund">
<item row="1" column="0">
<widget class="QPushButton" name="btn_num4_refund">
<property name="minimumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="cursor">
......@@ -1662,22 +1563,22 @@ QPushButton:hover {
<string notr="true"/>
</property>
<property name="text">
<string/>
<string>4</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QPushButton" name="btn_num4_refund">
<item row="0" column="3">
<widget class="QPushButton" name="btn_backspace_refund">
<property name="minimumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="cursor">
......@@ -1687,22 +1588,22 @@ QPushButton:hover {
<string notr="true"/>
</property>
<property name="text">
<string>4</string>
<string/>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QPushButton" name="btn_num5_refund">
<item row="1" column="2">
<widget class="QPushButton" name="btn_num6_refund">
<property name="minimumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="cursor">
......@@ -1712,22 +1613,22 @@ QPushButton:hover {
<string notr="true"/>
</property>
<property name="text">
<string>5</string>
<string>6</string>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QPushButton" name="btn_num6_refund">
<item row="1" column="1">
<widget class="QPushButton" name="btn_num5_refund">
<property name="minimumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="cursor">
......@@ -1737,7 +1638,7 @@ QPushButton:hover {
<string notr="true"/>
</property>
<property name="text">
<string>6</string>
<string>5</string>
</property>
</widget>
</item>
......@@ -1745,14 +1646,14 @@ QPushButton:hover {
<widget class="QPushButton" name="btn_linefeed_refund">
<property name="minimumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="font">
......@@ -1775,18 +1676,18 @@ QPushButton:hover {
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QPushButton" name="btn_num1_refund">
<item row="2" column="1">
<widget class="QPushButton" name="btn_num2_refund">
<property name="minimumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="cursor">
......@@ -1796,22 +1697,22 @@ QPushButton:hover {
<string notr="true"/>
</property>
<property name="text">
<string>1</string>
<string>2</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QPushButton" name="btn_num2_refund">
<item row="2" column="0">
<widget class="QPushButton" name="btn_num1_refund">
<property name="minimumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="cursor">
......@@ -1821,7 +1722,7 @@ QPushButton:hover {
<string notr="true"/>
</property>
<property name="text">
<string>2</string>
<string>1</string>
</property>
</widget>
</item>
......@@ -1829,14 +1730,14 @@ QPushButton:hover {
<widget class="QPushButton" name="btn_num3_refund">
<property name="minimumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="cursor">
......@@ -1854,14 +1755,14 @@ QPushButton:hover {
<widget class="QPushButton" name="btn_confirm01_refund">
<property name="minimumSize">
<size>
<width>51</width>
<height>106</height>
<width>69</width>
<height>120</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>51</width>
<height>106</height>
<width>69</width>
<height>120</height>
</size>
</property>
<property name="cursor">
......@@ -1879,14 +1780,14 @@ QPushButton:hover {
<widget class="QPushButton" name="btn_num0_refund">
<property name="minimumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="cursor">
......@@ -1904,14 +1805,14 @@ QPushButton:hover {
<widget class="QPushButton" name="btn_num00_refund">
<property name="minimumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="cursor">
......@@ -1929,14 +1830,14 @@ QPushButton:hover {
<widget class="QPushButton" name="btn_numdot_refund">
<property name="minimumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>52</width>
<height>52</height>
<width>70</width>
<height>57</height>
</size>
</property>
<property name="cursor">
......@@ -1958,8 +1859,8 @@ QPushButton:hover {
<rect>
<x>0</x>
<y>0</y>
<width>630</width>
<height>532</height>
<width>613</width>
<height>460</height>
</rect>
</property>
<property name="styleSheet">
......@@ -1969,7 +1870,7 @@ QPushButton:hover {
<property name="geometry">
<rect>
<x>40</x>
<y>110</y>
<y>90</y>
<width>431</width>
<height>261</height>
</rect>
......@@ -2427,7 +2328,7 @@ QPushButton:hover {
<property name="geometry">
<rect>
<x>40</x>
<y>40</y>
<y>20</y>
<width>61</width>
<height>61</height>
</rect>
......@@ -2459,7 +2360,7 @@ image: url(:/img/fmclient-icon_payment_success.png);</string>
<property name="geometry">
<rect>
<x>110</x>
<y>50</y>
<y>30</y>
<width>121</width>
<height>41</height>
</rect>
......@@ -2491,15 +2392,15 @@ font: 75 24px &quot;微软雅黑&quot;;</string>
<property name="geometry">
<rect>
<x>40</x>
<y>390</y>
<y>360</y>
<width>371</width>
<height>61</height>
<height>58</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>42</height>
<height>0</height>
</size>
</property>
<property name="font">
......@@ -2527,8 +2428,8 @@ border:0px</string>
<rect>
<x>0</x>
<y>0</y>
<width>630</width>
<height>532</height>
<width>613</width>
<height>460</height>
</rect>
</property>
<property name="styleSheet">
......@@ -2757,13 +2658,15 @@ QHeaderView::section {
</layout>
</widget>
<zorder>wdg_query_main</zorder>
<zorder>wdg_pay_main</zorder>
<zorder>wdg_success_main</zorder>
<zorder>wdg_refund_main</zorder>
<zorder>wdg_pay_main</zorder>
</widget>
</item>
</layout>
</item>
</layout>
</item>
<item>
<widget class="QFrame" name="frm_bottom_bg">
<property name="minimumSize">
......@@ -2813,7 +2716,7 @@ QHeaderView::section {
</property>
<property name="sizeHint" stdset="0">
<size>
<width>60</width>
<width>20</width>
<height>20</height>
</size>
</property>
......@@ -2907,36 +2810,6 @@ QHeaderView::section {
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="label_date">
<property name="styleSheet">
<string notr="true">#label_date
{
color: rgb(255, 255, 255);
font: 12pt &quot;微软雅黑&quot;;
}</string>
</property>
<property name="text">
<string>营业日:</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_8">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Maximum</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>60</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
......
......@@ -19,7 +19,7 @@ FMPPayWait::FMPPayWait(QWidget *parent) : QDialog(parent), ui(new Ui::FMPPayWait
qRegisterMetaType<FMPPayWait::Type>("FMPPayWait::Type");
setStyleSheet("QWidget#mainWdg{background:rgba(110,110,110,0.5)}");
//setStyleSheet("QWidget#mainWdg{background:rgba(110,110,110,0.5)}");
}
FMPPayWait::~FMPPayWait()
......
......@@ -17,7 +17,7 @@
<string notr="true">#FMPPayWait
{
opacity: 223;
background-color: rgb(148, 148, 148);
background-color: rgb(148, 148, 148, 0);
}
#label_logo
......
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