完善RFID卡
This commit is contained in:
+25
-18
@@ -210,7 +210,8 @@ void MainWidget::_on_pushButtonPowerOff_pressed(bool notice)
|
||||
on_m_LeftBtn_clicked();
|
||||
//on_pushButtonReclaimTankClose_pressed();
|
||||
sysPara->status.powerOffAppending = true;
|
||||
enableReclaimCtrlButton(false); //所有的按钮全部屏蔽
|
||||
setReclaimCloseBtnStatus(false);
|
||||
setReclaimOpenBtnStatus(false);
|
||||
}
|
||||
}
|
||||
else {
|
||||
@@ -1530,11 +1531,6 @@ int MainWidget::imageToPrintData(QImage &image, int startX, int startY)
|
||||
return totalOfProcessedDots;
|
||||
}
|
||||
|
||||
void MainWidget::enableReclaimCtrlButton(bool enable){
|
||||
m_RightBtn->setEnabled(enable);
|
||||
m_LeftBtn->setEnabled(enable);
|
||||
}
|
||||
|
||||
void MainWidget::enablePrintButton(bool enable){
|
||||
#ifdef QT_DEBUG
|
||||
enable = true;
|
||||
@@ -1669,7 +1665,10 @@ void MainWidget::on_m_StartBtn_clicked()
|
||||
sysPara->status.lastSynColDelay = -1; //目的是为了清空原来的数据
|
||||
|
||||
/*---------------------------------开关回收槽------------------------------*/
|
||||
enableReclaimCtrlButton(false);
|
||||
|
||||
setReclaimCloseBtnStatus(false);
|
||||
setReclaimOpenBtnStatus(false);
|
||||
|
||||
updatePrintDisplayLabel();
|
||||
// 20170717 移动此,以观察条形码打印异常问题。
|
||||
if(!startPrintingFlag)
|
||||
@@ -1706,7 +1705,9 @@ void MainWidget::on_m_StopBtn_clicked()
|
||||
sysPara->devOp->printCtrl( PRINT_CTRL_STOP);//:PRINT_CTRL_STOPSYNCNT
|
||||
// LogInfo::setRunStatusText(tr("停止打印"));
|
||||
|
||||
enableReclaimCtrlButton(true);
|
||||
setReclaimCloseBtnStatus(sysPara->status.currReclaimTankPos != 0);
|
||||
setReclaimOpenBtnStatus(sysPara->status.currReclaimTankPos == 0);
|
||||
|
||||
printintFlag = false;
|
||||
startPrintingFlag = false;
|
||||
updatePrintDisplayLabel();
|
||||
@@ -1795,6 +1796,16 @@ int MainWidget::getCurrPrintStatus()
|
||||
return printStatus;
|
||||
}
|
||||
|
||||
void MainWidget::setReclaimOpenBtnStatus(bool enable)
|
||||
{
|
||||
ui.m_RightBtn->setEnabled(enable);
|
||||
}
|
||||
|
||||
void MainWidget::setReclaimCloseBtnStatus(bool enable)
|
||||
{
|
||||
ui.m_LeftBtn->setEnabled(enable);
|
||||
}
|
||||
|
||||
void MainWidget::setReclaimStatus(bool isOpen, int rate)
|
||||
{
|
||||
// if (!sysPara->devOp->isReclaimTankOpenEnable()) {
|
||||
@@ -1811,6 +1822,7 @@ void MainWidget::setReclaimStatus(bool isOpen, int rate)
|
||||
QString str = rate == 0? tr("喷嘴已关闭"):tr("喷嘴关闭中");
|
||||
ui.lb_LeftBtn->setText(str);
|
||||
ui.lb_RightBtn->setText(tr("喷嘴开启"));
|
||||
// ui.lb_RightBtn->setStyleSheet("color: black;");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2192,9 +2204,9 @@ void MainWidget::updateSysStatusToUI(){ //100ms
|
||||
}
|
||||
// ui->labelSynRate->setText(tr("%1.%2[%3.%4]米/分").arg(mm/1000).arg(mm%1000,3,10,QLatin1Char('0'))
|
||||
// .arg(maxMM/1000).arg(maxMM%1000,3,10,QLatin1Char('0')));
|
||||
// 20260414
|
||||
ui.lb_curSpeed->setText(tr("%1.%2").arg(mm/1000).arg(mm%1000,3,10,QLatin1Char('0')));
|
||||
ui.lb_maxSpeed->setText(tr("%1.%2").arg(maxMM/1000).arg(maxMM%1000,3,10,QLatin1Char('0')));
|
||||
// 20260414 0708:为防止变形,保存两位小数
|
||||
ui.lb_curSpeed->setText(tr("%1.%2").arg(mm/1000).arg(mm%1000,2,10,QLatin1Char('0')));
|
||||
ui.lb_maxSpeed->setText(tr("%1.%2").arg(maxMM/1000).arg(maxMM%1000,2,10,QLatin1Char('0')));
|
||||
}
|
||||
else {
|
||||
ui.lb_curSpeed->setText("0");
|
||||
@@ -2351,13 +2363,6 @@ void MainWidget::updateSysStatusToUI(){ //100ms
|
||||
}else{
|
||||
// ui->pushButton_Reboot->setEnabled(false);
|
||||
}
|
||||
|
||||
if(sysPara->RFIDPara.inkCardTimeOut || sysPara->RFIDPara.solventCardTimeOut || sysPara->RFIDPara.needMaintenance) {
|
||||
m_RightBtn->setEnabled(false);
|
||||
}
|
||||
else if(sysPara->status.selfCheckDone == 1) {
|
||||
m_RightBtn->setEnabled(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3444,6 +3449,8 @@ void MainWidget::RefreshStatusLight(){//100ms
|
||||
|
||||
if(sysPara->status.isPrinting && sysPara->status.selfCheckDone){
|
||||
setRunStatus(tr("正在喷印......."));
|
||||
setReclaimCloseBtnStatus(false);
|
||||
setReclaimOpenBtnStatus(false);
|
||||
}
|
||||
|
||||
// 20160620 新增主界面显示:压力,粘度,隔膜位置,晶振电压数,相位
|
||||
|
||||
Reference in New Issue
Block a user