61 ui->originEdit->setText(query.value(6).toString()); |
61 ui->originEdit->setText(query.value(6).toString()); |
62 ui->supplierEdit->setText(query.value(7).toString()); |
62 ui->supplierEdit->setText(query.value(7).toString()); |
63 ui->typeEdit->setCurrentIndex(query.value(2).toInt()); |
63 ui->typeEdit->setCurrentIndex(query.value(2).toInt()); |
64 ui->graintypeEdit->setCurrentIndex(query.value(20).toInt()); |
64 ui->graintypeEdit->setCurrentIndex(query.value(20).toInt()); |
65 ui->maxinbatchEdit->setValue(query.value(14).toDouble()); |
65 ui->maxinbatchEdit->setValue(query.value(14).toDouble()); |
66 ui->mashEdit->setChecked(query.value(16).toInt() ? true:false); |
66 ui->mashEdit->setChecked(query.value(15).toInt() ? true:false); |
67 ui->addafterEdit->setChecked(query.value(5).toInt() ? true:false); |
67 ui->addafterEdit->setChecked(query.value(5).toInt() ? true:false); |
68 ui->addedEdit->setCurrentIndex(query.value(17).toInt()); |
68 ui->addedEdit->setCurrentIndex(query.value(17).toInt()); |
69 ui->alwaysEdit->setChecked(query.value(5).toInt() ? true:false); |
69 ui->alwaysEdit->setChecked(query.value(5).toInt() ? true:false); |
70 ui->inventoryEdit->setValue(query.value(21).toDouble()); |
70 ui->inventoryEdit->setValue(query.value(21).toDouble()); |
71 ui->costEdit->setValue(query.value(22).toDouble()); |
71 ui->costEdit->setValue(query.value(22).toDouble()); |