|
@@ -761,16 +761,14 @@ static void obtainListItemData_BedListView(ZKListView *pListView,ZKListView::ZKL
|
|
|
doctor->setText(frameBedList[index]["doctor_name"].asString());
|
|
|
nurse->setText(frameBedList[index]["nurse_name"].asString());
|
|
|
|
|
|
- if (frameBedList[index]["bed_device_id"].asString() != "") {
|
|
|
- affair->setInvalid(false);
|
|
|
- event->setInvalid(false);
|
|
|
+
|
|
|
+ if (frameBedList[index]["bed_device_id"].asString() == "") {
|
|
|
+ affair->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/main/affair2_grey.png");
|
|
|
}
|
|
|
else {
|
|
|
- affair->setInvalid(true);
|
|
|
- event->setInvalid(true);
|
|
|
+ affair->setButtonStatusPic(ZK_CONTROL_STATUS_NORMAL, "/main/affair2.png");
|
|
|
}
|
|
|
|
|
|
-
|
|
|
// // 护理项相关
|
|
|
// Json::Value nurseConfigList = frameBedList[index]["nurse_config_dtos"];
|
|
|
// if (nurseConfigList.size() > 0) {
|
|
@@ -824,11 +822,16 @@ static void obtainListItemData_BedListView(ZKListView *pListView,ZKListView::ZKL
|
|
|
}
|
|
|
|
|
|
static void onListItemClick_BedListView(ZKListView *pListView, int index, int id) {
|
|
|
- //LOGD(" onListItemClick_ BedListView !!!\n");
|
|
|
+ LOGD(" onListItemClick_ BedListView !!!\n");
|
|
|
if (frameBedList[index]["bed_device_id"].asString() == "") {
|
|
|
+// Intent* intent = new Intent();
|
|
|
+// intent->putExtra(functionWindows, "warn");
|
|
|
+// intent->putExtra(warnText, LANGUAGEMANAGER->getValue("NotBedDevice"));
|
|
|
+// EASYUICONTEXT->openActivity("functionActivity", intent);
|
|
|
return;
|
|
|
}
|
|
|
if (id == ID_MAIN_EventSubItem) {
|
|
|
+ LOGD("触发事件按钮,index ===> %d", index);
|
|
|
string _customerId = frameBedList[index]["customer_id"].asString();
|
|
|
string _deviceId = frameBedList[index]["bed_device_id"].asString();
|
|
|
|
|
@@ -839,6 +842,7 @@ static void onListItemClick_BedListView(ZKListView *pListView, int index, int id
|
|
|
|
|
|
}
|
|
|
else if (id == ID_MAIN_AffairSubItem) {
|
|
|
+ LOGD("触发事务按钮,index ===> %d", index);
|
|
|
string _customerId = frameBedList[index]["customer_id"].asString();
|
|
|
string _deviceId = frameBedList[index]["bed_device_id"].asString();
|
|
|
|