#include "cbusiness.h" //#include #include #include #include #include #include void OnDevInfoChange(const int &iType, void *pStruct) { // qDebug()<<(QString *)pStruct; } CBusiness::CBusiness(QObject *parent) : QObject(parent) { engine.load(QUrl(QLatin1String("qrc:/main.qml"))); //加载main.qml文件 engine.rootContext()->setContextProperty("FControl",this); //设置可以在qml中直接通过FControl属性访问当前c++对象的属性和功能 m_pHttpThreadNum1 = new HttpThreadNum1; connect(m_pHttpThreadNum1,&HttpThreadNum1::sig_result,this,&CBusiness::slot_result); m_pHttpThreadNum1->init(); //初始化 } //接受sig_result反馈结果,发送给sig_qml void CBusiness::slot_result(int iType, QVariant qvariant) { if (qvariant.toInt() == EHTN1TYPE_error) { qDebug() << "类型:" << iType << "EHTN1TYPE_error"; emit sig_qml(0, "error"); } switch (iType) { case EHTN1TYPE_LoginReturn: { S_HTN1_LoginReturn structTemp = qvariant.value(); emit sig_qml(0, "structTemp.role_name:\n" + structTemp.role_name + "\n" + "structTemp.code:\n" + QString::number(structTemp.code) + "\n" + "structTemp.message:\n" + structTemp.message + "\n" + "structTemp.uid:\n" + structTemp.uid + "\n"); } break; case EHTN1TYPE_ReturnAllCarState: { S_HTN1_ReturnAllCarState structTemp = qvariant.value(); for (int i = 0; i < structTemp.data.count(); i++) { /*if(structTemp.data[i].name=="1号车") { emit sig_qml_CarOneState(structTemp.data[i].state); } else if (structTemp.data[i].name == "2号车") { emit sig_qml_CarTwoState(structTemp.data[i].state); }*/ if (structTemp.data[i].name == "3号车") { emit sig_qml_CarThreeState(structTemp.data[i].state); emit sig_qml_CarThreeSlagState(structTemp.data[i].vehicle_pot_state); } /*else if (structTemp.data[i].name == "4号车") { emit sig_qml_CarFourState(structTemp.data[i].state); } else if (structTemp.data[i].name == "5号车") { emit sig_qml_CarFiveState(structTemp.data[i].state); }*/ } } break; case EHTN1TYPE_ReturnStartUpState: { S_HTN1_ReturnStartUpState structTemp = qvariant.value(); emit sig_qml(0, QString::number(structTemp.code) + "\n" + structTemp.data); } break; case EHTN1TYPE_ReturnShutDownState: { S_HTN1_ReturnShutDownState structTemp = qvariant.value(); emit sig_qml(0, QString::number(structTemp.code) + "\n" + structTemp.data); } break; case EHTN1TYPE_ReturnRemoteRequestState: { S_HTN1_ReturnRemoteRequestState structTemp = qvariant.value(); emit sig_qml(0, QString::number(structTemp.code) + "\n" + structTemp.data); } break; case EHTN1TYPE_ReturnStartWorkState: { S_HTN1_ReturnDoStartWorkState structTemp = qvariant.value(); emit sig_qml(0, QString::number(structTemp.code) + "\n" + structTemp.data); } break; case EHTN1TYPE_ReturnAddCarState: { S_HTN1_ReturnAddCarState structTemp = qvariant.value(); emit sig_qml(0, QString::number(structTemp.code) + "\n" + structTemp.data); } break; case EHTN1TYPE_ReturnRenameCarState: { S_HTN1_ReturnReanmeCarState structTemp = qvariant.value(); emit sig_qml(0, QString::number(structTemp.code) + "\n" + structTemp.data[0].uuid); } break; case EHTN1TYPE_ReturnDeleteCarState: { S_HTN1_ReturnDeleteCarState structTemp = qvariant.value(); emit sig_qml(0, QString::number(structTemp.code) + "\n" + structTemp.data); } break; case EHTN1TYPE_ReturnTaskListData: { S_HTN1_ReturnTaskListData structTemp = qvariant.value(); emit sig_qml(0, QString::number(structTemp.code) + "\n" + structTemp.data[0].uuid); } break; case EHTN1TYPE_ReturnStopTask: { S_HTN1_ReturnStopTask structTemp = qvariant.value(); emit sig_qml(0, QString::number(structTemp.code) + "\n" + structTemp.data); } break; case EHTN1TYPE_ReturnCancelTask: { S_HTN1_ReturnCancelTask structTemp = qvariant.value(); emit sig_qml(0, QString::number(structTemp.code) + "\n" + structTemp.data); } break; case EHTN1TYPE_ReturnSlagState: { S_HTN1_ReturnSlagState structTemp = qvariant.value(); //空数据保护 if (structTemp.data.isEmpty()) { qDebug() << "===============" << "得到空的数据" << "=========================\n"; return; } else { //调度信息区域罐状态显示信号 for (int i = 0; i < structTemp.data.size(); i++) { //根据包号发包的状态 switch (structTemp.data[i].pot_number) { case 1: emit sig_qml_SlagStateA1(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 2: emit sig_qml_SlagStateA2(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 3: emit sig_qml_SlagStateA3(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 4: emit sig_qml_SlagStateA4(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 5: emit sig_qml_SlagStateA5(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 6: emit sig_qml_SlagStateA6(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 7: emit sig_qml_SlagStateA7(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 8: emit sig_qml_SlagStateA8(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 9: emit sig_qml_SlagStateA9(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 10: emit sig_qml_SlagStateA10(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 11: emit sig_qml_SlagStateA11(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 12: emit sig_qml_SlagStateA12(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 13: emit sig_qml_SlagStateA13(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 14: emit sig_qml_SlagStateA14(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 15: emit sig_qml_SlagStateA15(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 16: emit sig_qml_SlagStateA16(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 17: emit sig_qml_SlagStateA17(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 18: emit sig_qml_SlagStateA18(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 19: emit sig_qml_SlagStateA19(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 20: emit sig_qml_SlagStateA20(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 21: emit sig_qml_SlagStateA21(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 22: emit sig_qml_SlagStateA22(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 23: emit sig_qml_SlagStateA23(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 24: emit sig_qml_SlagStateA24(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 25: emit sig_qml_SlagStateA25(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 26: emit sig_qml_SlagStateA26(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 27: emit sig_qml_SlagStateA27(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 28: emit sig_qml_SlagStateA28(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 29: emit sig_qml_SlagStateA29(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 30: emit sig_qml_SlagStateA30(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 31: emit sig_qml_SlagStateA31(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 32: emit sig_qml_SlagStateB1(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 33: emit sig_qml_SlagStateB2(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 34: emit sig_qml_SlagStateB3(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 35: emit sig_qml_SlagStateB4(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 36: emit sig_qml_SlagStateB5(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 37: emit sig_qml_SlagStateB6(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 38: emit sig_qml_SlagStateB7(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 39: emit sig_qml_SlagStateB8(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 40: emit sig_qml_SlagStateB9(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 41: emit sig_qml_SlagStateB10(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 42: emit sig_qml_SlagStateB11(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 43: emit sig_qml_SlagStateB12(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 44: emit sig_qml_SlagStateB13(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 45: emit sig_qml_SlagStateB14(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 46: emit sig_qml_SlagStateB15(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 47: emit sig_qml_SlagStateB16(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 48: emit sig_qml_SlagStateB17(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 49: emit sig_qml_SlagStateB18(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 50: emit sig_qml_SlagStateB19(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 51: emit sig_qml_SlagStateB20(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 52: emit sig_qml_SlagStateB21(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 53: emit sig_qml_SlagStateB22(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 54: emit sig_qml_SlagStateB23(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 55: emit sig_qml_SlagStateB24(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 56: emit sig_qml_SlagStateB25(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 57: emit sig_qml_SlagStateB26(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 58: emit sig_qml_SlagStateB27(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 59: emit sig_qml_SlagStateB28(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 60: emit sig_qml_SlagStateB29(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 61: emit sig_qml_SlagStateB30(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 62: emit sig_qml_SlagStateB31(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 63: emit sig_qml_SlagStateC1(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 64: emit sig_qml_SlagStateC2(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 65: emit sig_qml_SlagStateC3(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 66: emit sig_qml_SlagStateC4(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 67: emit sig_qml_SlagStateC5(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 68: emit sig_qml_SlagStateC6(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 69: emit sig_qml_SlagStateC7(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 70: emit sig_qml_SlagStateC8(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 71: emit sig_qml_SlagStateC9(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 72: emit sig_qml_SlagStateC10(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 73: emit sig_qml_SlagStateC11(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 74: emit sig_qml_SlagStateC12(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 75: emit sig_qml_SlagStateC13(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 76: emit sig_qml_SlagStateC14(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 77: emit sig_qml_SlagStateC15(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 78: emit sig_qml_SlagStateC16(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 79: emit sig_qml_SlagStateC17(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 80: emit sig_qml_SlagStateC18(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 81: emit sig_qml_SlagStateC19(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 82: emit sig_qml_SlagStateC20(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 83: emit sig_qml_SlagStateC21(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 84: emit sig_qml_SlagStateC22(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 85: emit sig_qml_SlagStateC23(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 86: emit sig_qml_SlagStateC24(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 87: emit sig_qml_SlagStateC25(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 88: emit sig_qml_SlagStateC26(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 89: emit sig_qml_SlagStateC27(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 90: emit sig_qml_SlagStateC28(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 91: emit sig_qml_SlagStateC29(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 92: emit sig_qml_SlagStateC30(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 93: emit sig_qml_SlagStateC31(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 94: emit sig_qml_SlagStateD1(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 95: emit sig_qml_SlagStateD2(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 96: emit sig_qml_SlagStateD3(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 97: emit sig_qml_SlagStateD4(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 98: emit sig_qml_SlagStateD5(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 99: emit sig_qml_SlagStateD6(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 100: emit sig_qml_SlagStateD7(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 101: emit sig_qml_SlagStateD8(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 102: emit sig_qml_SlagStateD9(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 103: emit sig_qml_SlagStateD10(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 104: emit sig_qml_SlagStateD11(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 105: emit sig_qml_SlagStateD12(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 106: emit sig_qml_SlagStateD13(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 107: emit sig_qml_SlagStateD14(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 108: emit sig_qml_SlagStateD15(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 109: emit sig_qml_SlagStateD16(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 110: emit sig_qml_SlagStateD17(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 111: emit sig_qml_SlagStateD18(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 112: emit sig_qml_SlagStateD19(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 113: emit sig_qml_SlagStateD20(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 114: emit sig_qml_SlagStateD21(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 115: emit sig_qml_SlagStateD22(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 116: emit sig_qml_SlagStateD23(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 117: emit sig_qml_SlagStateD24(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 118: emit sig_qml_SlagStateD25(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 119: emit sig_qml_SlagStateD26(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 120: emit sig_qml_SlagStateD27(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 121: emit sig_qml_SlagStateD28(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 122: emit sig_qml_SlagStateD29(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 123: emit sig_qml_SlagStateD30(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 124: emit sig_qml_SlagStateD31(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 125: emit sig_qml_SlagStateE1(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 126: emit sig_qml_SlagStateE2(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 127: emit sig_qml_SlagStateE3(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 128: emit sig_qml_SlagStateE4(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 129: emit sig_qml_SlagStateE5(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 130: emit sig_qml_SlagStateE6(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 131: emit sig_qml_SlagStateE7(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 132: emit sig_qml_SlagStateE8(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 133: emit sig_qml_SlagStateE9(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 134: emit sig_qml_SlagStateE10(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 135: emit sig_qml_SlagStateE11(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 136: emit sig_qml_SlagStateE12(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 137: emit sig_qml_SlagStateE13(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 138: emit sig_qml_SlagStateE14(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 139: emit sig_qml_SlagStateE15(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 140: emit sig_qml_SlagStateE16(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 141: emit sig_qml_SlagStateE17(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 142: emit sig_qml_SlagStateE18(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 143: emit sig_qml_SlagStateE19(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 144: emit sig_qml_SlagStateE20(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 145: emit sig_qml_SlagStateE21(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 146: emit sig_qml_SlagStateE22(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 147: emit sig_qml_SlagStateE23(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 148: emit sig_qml_SlagStateE24(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 149: emit sig_qml_SlagStateE25(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 150: emit sig_qml_SlagStateE26(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 151: emit sig_qml_SlagStateE27(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 152: emit sig_qml_SlagStateE28(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 153: emit sig_qml_SlagStateE29(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 154: emit sig_qml_SlagStateE30(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 155: emit sig_qml_SlagStateE31(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 156: emit sig_qml_SlagStateF1(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 157: emit sig_qml_SlagStateF2(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 158: emit sig_qml_SlagStateF3(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 159: emit sig_qml_SlagStateF4(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 160: emit sig_qml_SlagStateF5(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 161: emit sig_qml_SlagStateF6(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 162: emit sig_qml_SlagStateF7(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 163: emit sig_qml_SlagStateF8(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 164: emit sig_qml_SlagStateF9(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 165: emit sig_qml_SlagStateF10(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 166: emit sig_qml_SlagStateF11(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 167: emit sig_qml_SlagStateF12(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 168: emit sig_qml_SlagStateF13(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 169: emit sig_qml_SlagStateF14(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 170: emit sig_qml_SlagStateF15(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 171: emit sig_qml_SlagStateF16(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 172: emit sig_qml_SlagStateF17(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 173: emit sig_qml_SlagStateF18(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 174: emit sig_qml_SlagStateF19(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 175: emit sig_qml_SlagStateF20(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 176: emit sig_qml_SlagStateF21(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 177: emit sig_qml_SlagStateF22(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 178: emit sig_qml_SlagStateF23(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 179: emit sig_qml_SlagStateF24(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 180: emit sig_qml_SlagStateF25(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 181: emit sig_qml_SlagStateF26(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 182: emit sig_qml_SlagStateF27(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 183: emit sig_qml_SlagStateF28(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 184: emit sig_qml_SlagStateF29(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 185: emit sig_qml_SlagStateF30(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 186: emit sig_qml_SlagStateF31(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 187: emit sig_qml_SlagStateG1(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 188: emit sig_qml_SlagStateG2(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 189: emit sig_qml_SlagStateG3(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 190: emit sig_qml_SlagStateG4(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 191: emit sig_qml_SlagStateG5(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 192: emit sig_qml_SlagStateG6(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 193: emit sig_qml_SlagStateG7(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 194: emit sig_qml_SlagStateG8(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 195: emit sig_qml_SlagStateG9(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 196: emit sig_qml_SlagStateG10(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 197: emit sig_qml_SlagStateG11(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 198: emit sig_qml_SlagStateG12(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 199: emit sig_qml_SlagStateG13(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 200: emit sig_qml_SlagStateG14(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 201: emit sig_qml_SlagStateG15(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 202: emit sig_qml_SlagStateG16(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 203: emit sig_qml_SlagStateG17(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 204: emit sig_qml_SlagStateG18(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 205: emit sig_qml_SlagStateG19(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 206: emit sig_qml_SlagStateG20(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 207: emit sig_qml_SlagStateG21(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 208: emit sig_qml_SlagStateG22(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 209: emit sig_qml_SlagStateG23(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 210: emit sig_qml_SlagStateG24(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 211: emit sig_qml_SlagStateG25(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 212: emit sig_qml_SlagStateG26(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 213: emit sig_qml_SlagStateG27(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 214: emit sig_qml_SlagStateG28(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 215: emit sig_qml_SlagStateG29(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 216: emit sig_qml_SlagStateG30(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 217: emit sig_qml_SlagStateG31(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 218: emit sig_qml_SlagStateH1(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 219: emit sig_qml_SlagStateH2(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 220: emit sig_qml_SlagStateH3(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 221: emit sig_qml_SlagStateH4(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 222: emit sig_qml_SlagStateH5(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 223: emit sig_qml_SlagStateH6(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 224: emit sig_qml_SlagStateH7(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 225: emit sig_qml_SlagStateH8(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 226: emit sig_qml_SlagStateH9(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 227: emit sig_qml_SlagStateH10(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 228: emit sig_qml_SlagStateH11(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 229: emit sig_qml_SlagStateH12(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 230: emit sig_qml_SlagStateH13(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 231: emit sig_qml_SlagStateH14(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 232: emit sig_qml_SlagStateH15(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 233: emit sig_qml_SlagStateH16(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 234: emit sig_qml_SlagStateH17(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 235: emit sig_qml_SlagStateH18(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 236: emit sig_qml_SlagStateH19(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 237: emit sig_qml_SlagStateH20(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 238: emit sig_qml_SlagStateH21(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 239: emit sig_qml_SlagStateH22(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 240: emit sig_qml_SlagStateH23(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 241: emit sig_qml_SlagStateH24(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 242: emit sig_qml_SlagStateH25(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 243: emit sig_qml_SlagStateH26(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 244: emit sig_qml_SlagStateH27(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 245: emit sig_qml_SlagStateH28(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 246: emit sig_qml_SlagStateH29(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 247: emit sig_qml_SlagStateH30(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 248: emit sig_qml_SlagStateH31(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 249: emit sig_qml_SlagStateI1(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 250: emit sig_qml_SlagStateI2(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 251: emit sig_qml_SlagStateI3(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 252: emit sig_qml_SlagStateI4(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 253: emit sig_qml_SlagStateI5(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 254: emit sig_qml_SlagStateI6(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 255: emit sig_qml_SlagStateI7(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 256: emit sig_qml_SlagStateI8(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 257: emit sig_qml_SlagStateI9(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 258: emit sig_qml_SlagStateI10(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 259: emit sig_qml_SlagStateI11(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 260: emit sig_qml_SlagStateI12(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 261: emit sig_qml_SlagStateI13(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 262: emit sig_qml_SlagStateI14(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 263: emit sig_qml_SlagStateI15(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 264: emit sig_qml_SlagStateI16(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 265: emit sig_qml_SlagStateI17(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 266: emit sig_qml_SlagStateI18(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 267: emit sig_qml_SlagStateI19(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 268: emit sig_qml_SlagStateI20(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 269: emit sig_qml_SlagStateI21(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 270: emit sig_qml_SlagStateI22(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 271: emit sig_qml_SlagStateI23(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 272: emit sig_qml_SlagStateI24(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 273: emit sig_qml_SlagStateI25(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 274: emit sig_qml_SlagStateI26(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 275: emit sig_qml_SlagStateI27(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 276: emit sig_qml_SlagStateI28(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 277: emit sig_qml_SlagStateI29(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 278: emit sig_qml_SlagStateI30(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 279: emit sig_qml_SlagStateI31(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 280: emit sig_qml_SlagStateJ1(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 281: emit sig_qml_SlagStateJ2(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 282: emit sig_qml_SlagStateJ3(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 283: emit sig_qml_SlagStateJ4(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 284: emit sig_qml_SlagStateJ5(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 285: emit sig_qml_SlagStateJ6(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 286: emit sig_qml_SlagStateJ7(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 287: emit sig_qml_SlagStateJ8(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 288: emit sig_qml_SlagStateJ9(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 289: emit sig_qml_SlagStateJ10(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 290: emit sig_qml_SlagStateJ11(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 291: emit sig_qml_SlagStateJ12(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 292: emit sig_qml_SlagStateJ13(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 293: emit sig_qml_SlagStateJ14(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 294: emit sig_qml_SlagStateJ15(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 295: emit sig_qml_SlagStateJ16(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 296: emit sig_qml_SlagStateJ17(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 297: emit sig_qml_SlagStateJ18(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 298: emit sig_qml_SlagStateJ19(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 299: emit sig_qml_SlagStateJ20(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 300: emit sig_qml_SlagStateJ21(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 301: emit sig_qml_SlagStateJ22(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 302: emit sig_qml_SlagStateJ23(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 303: emit sig_qml_SlagStateJ24(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 304: emit sig_qml_SlagStateJ25(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 305: emit sig_qml_SlagStateJ26(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 306: emit sig_qml_SlagStateJ27(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 307: emit sig_qml_SlagStateJ28(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 308: emit sig_qml_SlagStateJ29(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 309: emit sig_qml_SlagStateJ30(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 310: emit sig_qml_SlagStateJ31(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 311: emit sig_qml_SlagStateK1(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 312: emit sig_qml_SlagStateK2(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 313: emit sig_qml_SlagStateK3(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 314: emit sig_qml_SlagStateK4(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 315: emit sig_qml_SlagStateK5(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 316: emit sig_qml_SlagStateK6(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 317: emit sig_qml_SlagStateK7(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 318: emit sig_qml_SlagStateK8(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 319: emit sig_qml_SlagStateK9(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 320: emit sig_qml_SlagStateK10(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 321: emit sig_qml_SlagStateK11(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 322: emit sig_qml_SlagStateK12(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 323: emit sig_qml_SlagStateK13(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 324: emit sig_qml_SlagStateK14(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 325: emit sig_qml_SlagStateK15(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 326: emit sig_qml_SlagStateK16(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 327: emit sig_qml_SlagStateK17(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 328: emit sig_qml_SlagStateK18(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 329: emit sig_qml_SlagStateK19(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 330: emit sig_qml_SlagStateK20(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 331: emit sig_qml_SlagStateK21(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 332: emit sig_qml_SlagStateK22(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 333: emit sig_qml_SlagStateK23(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 334: emit sig_qml_SlagStateK24(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 335: emit sig_qml_SlagStateK25(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 336: emit sig_qml_SlagStateK26(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 337: emit sig_qml_SlagStateK27(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 338: emit sig_qml_SlagStateK28(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 339: emit sig_qml_SlagStateK29(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 340: emit sig_qml_SlagStateK30(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 341: emit sig_qml_SlagStateK31(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 342: emit sig_qml_SlagStateL1(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 343: emit sig_qml_SlagStateL2(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 344: emit sig_qml_SlagStateL3(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 345: emit sig_qml_SlagStateL4(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 346: emit sig_qml_SlagStateL5(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 347: emit sig_qml_SlagStateL6(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 348: emit sig_qml_SlagStateL7(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 349: emit sig_qml_SlagStateL8(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 350: emit sig_qml_SlagStateL9(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 351: emit sig_qml_SlagStateL10(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 352: emit sig_qml_SlagStateL11(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 353: emit sig_qml_SlagStateL12(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 354: emit sig_qml_SlagStateL13(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 355: emit sig_qml_SlagStateL14(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 356: emit sig_qml_SlagStateL15(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 357: emit sig_qml_SlagStateL16(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 358: emit sig_qml_SlagStateL17(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 359: emit sig_qml_SlagStateL18(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 360: emit sig_qml_SlagStateL19(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 361: emit sig_qml_SlagStateL20(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 362: emit sig_qml_SlagStateL21(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 363: emit sig_qml_SlagStateL22(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 364: emit sig_qml_SlagStateL23(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 365: emit sig_qml_SlagStateL24(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 366: emit sig_qml_SlagStateL25(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 367: emit sig_qml_SlagStateL26(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 368: emit sig_qml_SlagStateL27(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 369: emit sig_qml_SlagStateL28(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 370: emit sig_qml_SlagStateL29(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 371: emit sig_qml_SlagStateL30(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 372: emit sig_qml_SlagStateL31(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 373: emit sig_qml_SlagStateM1(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 374: emit sig_qml_SlagStateM2(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 375: emit sig_qml_SlagStateM3(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 376: emit sig_qml_SlagStateM4(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 377: emit sig_qml_SlagStateM5(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 378: emit sig_qml_SlagStateM6(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 379: emit sig_qml_SlagStateM7(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 380: emit sig_qml_SlagStateM8(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 381: emit sig_qml_SlagStateM9(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 382: emit sig_qml_SlagStateM10(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 383: emit sig_qml_SlagStateM11(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 384: emit sig_qml_SlagStateM12(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 385: emit sig_qml_SlagStateM13(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 386: emit sig_qml_SlagStateM14(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 387: emit sig_qml_SlagStateM15(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 388: emit sig_qml_SlagStateM16(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 389: emit sig_qml_SlagStateM17(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 390: emit sig_qml_SlagStateM18(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 391: emit sig_qml_SlagStateM19(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 392: emit sig_qml_SlagStateM20(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 393: emit sig_qml_SlagStateM21(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 394: emit sig_qml_SlagStateM22(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 395: emit sig_qml_SlagStateM23(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 396: emit sig_qml_SlagStateM24(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 397: emit sig_qml_SlagStateM25(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 398: emit sig_qml_SlagStateM26(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 399: emit sig_qml_SlagStateM27(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 400: emit sig_qml_SlagStateM28(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 401: emit sig_qml_SlagStateM29(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 402: emit sig_qml_SlagStateM30(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 403: emit sig_qml_SlagStateM31(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 404: emit sig_qml_SlagStateN1(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 405: emit sig_qml_SlagStateN2(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 406: emit sig_qml_SlagStateN3(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 407: emit sig_qml_SlagStateN4(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 408: emit sig_qml_SlagStateN5(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 409: emit sig_qml_SlagStateN6(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 410: emit sig_qml_SlagStateN7(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 411: emit sig_qml_SlagStateN8(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 412: emit sig_qml_SlagStateN9(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 413: emit sig_qml_SlagStateN10(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 414: emit sig_qml_SlagStateN11(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 415: emit sig_qml_SlagStateN12(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 416: emit sig_qml_SlagStateN13(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 417: emit sig_qml_SlagStateN14(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 418: emit sig_qml_SlagStateN15(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 419: emit sig_qml_SlagStateN16(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 420: emit sig_qml_SlagStateN17(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 421: emit sig_qml_SlagStateN18(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 422: emit sig_qml_SlagStateN19(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 423: emit sig_qml_SlagStateN20(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 424: emit sig_qml_SlagStateN21(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 425: emit sig_qml_SlagStateN22(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 426: emit sig_qml_SlagStateN23(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 427: emit sig_qml_SlagStateN24(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 428: emit sig_qml_SlagStateN25(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 429: emit sig_qml_SlagStateN26(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 430: emit sig_qml_SlagStateN27(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 431: emit sig_qml_SlagStateN28(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 432: emit sig_qml_SlagStateN29(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 433: emit sig_qml_SlagStateN30(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; case 434: emit sig_qml_SlagStateN31(structTemp.data[i].pot_status); qDebug() << "打印包号" << structTemp.data[i].pot_number << "打印状态" << structTemp.data[i].pot_status << "\n"; break; } } //将S_HTN1_ReturnWarningState转换为QVariantMap类型,可以在qml中识别 QVariantMap map; map["code"] = structTemp.code; // 处理嵌套结构体数据 QVariantList dataList; for (int i = 0; i < structTemp.data.size(); i++) { QVariantMap nestedMap; nestedMap["pot_name"] = structTemp.data[i].pot_name; nestedMap["pot_status"] = structTemp.data[i].pot_status; nestedMap["pot_number"] = structTemp.data[i].pot_number; dataList.append(nestedMap); } map["data"] = dataList; emit sig_qml_SlagState(map["data"]); } } break; case EHTN1TYPE_ReturnWarningState: { S_HTN1_ReturnWarningState structTemp = qvariant.value(); //将S_HTN1_ReturnWarningState转换为QVariantMap类型,可以在qml中识别 QVariantMap map; map["code"] = structTemp.code; // 处理嵌套结构体数据 QVariantList dataList; for (int i=0;ipostData(EHTN1TYPE_LoginInfo, &postLogin); } } break; case EHTN1TYPE_GetAllCarState: { S_HTN1_GetAllCarState postGetAllCarState; postGetAllCarState.code = par1.toInt(); m_pHttpThreadNum1->postData(EHTN1TYPE_GetAllCarState, &postGetAllCarState); } break; case EHTN1TYPE_DoStartUpCar: { QStringList temp = par1.split(","); if (temp.count() == 2) { S_HTN1_DoStartUpCar postDoStartUpCar; postDoStartUpCar.code = temp[0].toInt(); postDoStartUpCar.uuid = temp[1]; m_pHttpThreadNum1->postData(EHTN1TYPE_DoStartUpCar, &postDoStartUpCar); } } break; case EHTN1TYPE_ShutDownCar: { QStringList temp = par1.split(","); if (temp.count() == 2) { S_HTN1_ShutDownCar postShutDownCar; postShutDownCar.code = temp[0].toInt(); postShutDownCar.uuid = temp[1]; m_pHttpThreadNum1->postData(EHTN1TYPE_ShutDownCar, &postShutDownCar); } } break; case EHTN1TYPE_RemoteRequest: { QStringList temp = par1.split(","); if (temp.count() == 2) { S_HTN1_RemoteRequest postRemoteRequest; postRemoteRequest.code = temp[0].toInt(); postRemoteRequest.uuid = temp[1]; m_pHttpThreadNum1->postData(EHTN1TYPE_RemoteRequest, &postRemoteRequest); } } break; case EHTN1TYPE_DoStartWorkCar: { QStringList temp = par1.split(","); if (temp.count() == 4) { S_HTN1_DoStartWorkCar postDoStartWorkCar; postDoStartWorkCar.code = temp[0].toInt(); postDoStartWorkCar.uuid = temp[1]; postDoStartWorkCar.task_type = temp[2].toInt(); postDoStartWorkCar.target_point_name= temp[3]; m_pHttpThreadNum1->postData(EHTN1TYPE_DoStartWorkCar, &postDoStartWorkCar); qDebug() << "发指令" << postDoStartWorkCar.code << postDoStartWorkCar.task_type<< EHTN1TYPE_DoStartWorkCar<<"\n"; } } break; case EHTN1TYPE_AddCar: { QStringList temp = par1.split(","); if (temp.count() == 2) { S_HTN1_AddCar postAddCar; postAddCar.code = temp[0].toInt(); postAddCar.name = temp[1]; m_pHttpThreadNum1->postData(EHTN1TYPE_AddCar, &postAddCar); } } break; case EHTN1TYPE_RenameCar: { QStringList temp = par1.split(","); if (temp.count() == 3) { S_HTN1_RenameCar postRenameCar; postRenameCar.code = temp[0].toInt(); postRenameCar.uuid = temp[1]; postRenameCar.name = temp[2]; m_pHttpThreadNum1->postData(EHTN1TYPE_RenameCar, &postRenameCar); } } break; case EHTN1TYPE_DeleteCar: { QStringList temp = par1.split(","); if (temp.count() == 2) { S_HTN1_DeleteCar postDeleteCar; postDeleteCar.code = temp[0].toInt(); postDeleteCar.uuid = temp[1]; m_pHttpThreadNum1->postData(EHTN1TYPE_DeleteCar, &postDeleteCar); } } break; case EHTN1TYPE_TaskList: { QStringList temp = par1.split(","); if (temp.count() == 3) { S_HTN1_TaskList postTaskList; postTaskList.code = temp[0].toInt(); postTaskList.page = temp[1].toInt(); postTaskList.size = temp[2].toInt(); m_pHttpThreadNum1->postData(EHTN1TYPE_TaskList, &postTaskList); } } break; case EHTN1TYPE_StopTask: { QStringList temp = par1.split(","); if (temp.count() == 2) { S_HTN1_StopTask postStopTask; postStopTask.code = temp[0].toInt(); postStopTask.uuid = temp[1]; m_pHttpThreadNum1->postData(EHTN1TYPE_StopTask, &postStopTask); } } break; case EHTN1TYPE_CancelTask: { QStringList temp = par1.split(","); if (temp.count() == 2) { S_HTN1_CancelTask postCancelTask; postCancelTask.code = temp[0].toInt(); postCancelTask.uuid = temp[1]; m_pHttpThreadNum1->postData(EHTN1TYPE_CancelTask, &postCancelTask); } } break; case EHTN1TYPE_GetSlagState: { QStringList temp = par1.split(","); if (temp.count() == 1) { S_HTN1_GetSlagState postGetSlagState; postGetSlagState.code = temp[0].toInt(); m_pHttpThreadNum1->postData(EHTN1TYPE_GetSlagState, &postGetSlagState); } } break; case EHTN1TYPE_GetWarningState: { QStringList temp = par1.split(","); if (temp.count() == 1) { S_HTN1_GetWarningState postGetWarningState; postGetWarningState.code = temp[0].toInt(); m_pHttpThreadNum1->postData(EHTN1TYPE_GetWarningState, &postGetWarningState); } } break; } }