|
@@ -117,6 +117,7 @@ public:
|
|
|
getFrameInfo();
|
|
|
//getPartSetting(StoragePreferences::getString(STORE_PARTID, ""));
|
|
|
reinforceDispaly();
|
|
|
+ setDirectorAndHeadNurse();
|
|
|
return;
|
|
|
}
|
|
|
string url = getHttpGateway() + "/deviceRoom/get_device_by_eth_mac/" + StoragePreferences::getString(STORE_MAC_ADDR, "0.0.0.0");
|
|
@@ -231,6 +232,8 @@ public:
|
|
|
partSetting.doctorValid = root["doctor_valid"].asInt();
|
|
|
partSetting.nurseTitle = root["nurse_title"].asString();
|
|
|
partSetting.nurseValid = root["nurse_valid"].asInt();
|
|
|
+ partSetting.partDirector = root["part_director"].asString();
|
|
|
+ partSetting.partNurseHead = root["part_nurse_head"].asString();
|
|
|
partSetting.doorNurseTitle = root["door_nurse_title"].asString();
|
|
|
partSetting.doorNurseValid = root["door_nurse_valid"].asInt();
|
|
|
partSetting.doorNursingTitle = root["door_nursing_title"].asString();
|
|
@@ -280,6 +283,7 @@ public:
|
|
|
|
|
|
setRightTitle(root);
|
|
|
callBedButtonSetVisible();
|
|
|
+ setDirectorAndHeadNurse();
|
|
|
|
|
|
getFrameRoom(frameInfo["frame_id"].asInt());
|
|
|
|
|
@@ -320,6 +324,10 @@ public:
|
|
|
rightTitleInfo["nurse_valid"] = partSetting["nurse_valid"].asInt();
|
|
|
}
|
|
|
|
|
|
+ static void setDirectorAndHeadNurse() {
|
|
|
+ mDirectorTextViewPtr->setText(partSetting.partDirector);
|
|
|
+ mHeadNurseTextViewPtr->setText(partSetting.partNurseHead);
|
|
|
+ }
|
|
|
|
|
|
static void getVersion() {
|
|
|
std::string url = getHttpGateway() + "/deviceRoom/get_app_version?device_type=303&part_id=" + StoragePreferences::getString(STORE_PARTID, "");
|