|
|
@@ -924,6 +924,8 @@ void FormShkjFree::on_pushButtonBatchDown_clicked()
|
|
|
QString errText;
|
|
|
errText = "";
|
|
|
defaultZipName = "batch";
|
|
|
+
|
|
|
+ int num = 0;
|
|
|
for(int i=0;i<ui->tableWidget->rowCount();i++)
|
|
|
{
|
|
|
QTableWidgetItem *item = ui->tableWidget->item(i,0);
|
|
|
@@ -940,6 +942,9 @@ void FormShkjFree::on_pushButtonBatchDown_clicked()
|
|
|
QString rpnum;
|
|
|
if(item->checkState()==Qt::Checked)
|
|
|
{
|
|
|
+ num++;
|
|
|
+ //ui->batchDlHint->setText(QString("正在分析第 %1 个文件,请稍候").arg(num));
|
|
|
+
|
|
|
ssid = item->data(Qt::UserRole).toString();
|
|
|
optdate = ui->tableWidget->item(i,1)->data(Qt::UserRole).toString();
|
|
|
province = ui->tableWidget->item(i,2)->data(Qt::UserRole).toString();
|
|
|
@@ -952,7 +957,8 @@ void FormShkjFree::on_pushButtonBatchDown_clicked()
|
|
|
selected++;
|
|
|
if(dealstatus=="2" || dealstatus=="3")
|
|
|
{
|
|
|
- defaultZipName += "_"+ssid;
|
|
|
+ if (num <= 10)
|
|
|
+ defaultZipName += "_"+ssid;
|
|
|
QDateTime now = QDateTime::currentDateTime();
|
|
|
QDateTime then = QDateTime::fromString(optdate,"yyyy-MM-dd hh:mm:ss");
|
|
|
qDebug()<<then.daysTo(now)<<then<<now<<optdate;
|
|
|
@@ -969,6 +975,11 @@ void FormShkjFree::on_pushButtonBatchDown_clicked()
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ //ui->batchDlHint->setText("");
|
|
|
+
|
|
|
+ if (num > 10)
|
|
|
+ defaultZipName += "_more";
|
|
|
+
|
|
|
if(selected==0)
|
|
|
{
|
|
|
QMessageBox::critical(this,"提示","请选择要下载的数据!",QMessageBox::Ok);
|
|
|
@@ -1010,7 +1021,8 @@ void FormShkjFree::on_pushButtonBatchDown_clicked()
|
|
|
QStringList files;
|
|
|
ui->pushButtonBatchDown->setEnabled(false);
|
|
|
this->setCursor(Qt::WaitCursor);
|
|
|
- int num = 0;
|
|
|
+
|
|
|
+ num = 0;
|
|
|
for(int i=0;i<ui->tableWidget->rowCount();i++)
|
|
|
{
|
|
|
QTableWidgetItem *item = ui->tableWidget->item(i,0);
|