|
@@ -99,34 +99,34 @@ void goCare() {
|
|
|
EASYUICONTEXT->closeActivity("moreActivity");
|
|
|
}
|
|
|
|
|
|
-void callBedButtonSetVisible() {
|
|
|
- if (mnavibarPtr == NULL) {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- int roomCallBed = StoragePreferences::getInt(STORE_ROOM_CALL_BED, 1);
|
|
|
- if (!roomCallBed) {
|
|
|
- // 如果roomCallBed是0的话,那就隐藏
|
|
|
- mCallBedButtonPtr->setVisible(roomCallBed);
|
|
|
- mCallBedPicPainterPtr->setVisible(roomCallBed);
|
|
|
-
|
|
|
- mHelpButtonPtr->setPosition(LayoutPosition(10, 822, 77, 77));
|
|
|
- mHelpPicPainterPtr->setPosition(LayoutPosition(35, 834, 32, 26));
|
|
|
- mCallNurseButtonPtr->setPosition(LayoutPosition(10, 909, 77, 77));
|
|
|
- mCallNursePicPainterPtr->setPosition(LayoutPosition(34, 919, 27, 27));
|
|
|
-
|
|
|
- }
|
|
|
- else {
|
|
|
- // 如果roomCallBed是1的话,那就显示
|
|
|
- mCallBedButtonPtr->setVisible(roomCallBed);
|
|
|
- mCallBedPicPainterPtr->setVisible(roomCallBed);
|
|
|
-
|
|
|
- mHelpButtonPtr->setPosition(LayoutPosition(10, 735, 77, 77));
|
|
|
- mHelpPicPainterPtr->setPosition(LayoutPosition(33, 747, 32, 26));
|
|
|
- mCallNurseButtonPtr->setPosition(LayoutPosition(10, 822, 77, 77));
|
|
|
- mCallNursePicPainterPtr->setPosition(LayoutPosition(35, 834, 27, 27));
|
|
|
- }
|
|
|
-}
|
|
|
+//void callBedButtonSetVisible() {
|
|
|
+// if (mnavibarPtr == NULL) {
|
|
|
+// return;
|
|
|
+// }
|
|
|
+//
|
|
|
+// int roomCallBed = StoragePreferences::getInt(STORE_ROOM_CALL_BED, 1);
|
|
|
+// if (!roomCallBed) {
|
|
|
+// // 如果roomCallBed是0的话,那就隐藏
|
|
|
+// mCallBedButtonPtr->setVisible(roomCallBed);
|
|
|
+// mCallBedPicPainterPtr->setVisible(roomCallBed);
|
|
|
+//
|
|
|
+// mHelpButtonPtr->setPosition(LayoutPosition(10, 822, 77, 77));
|
|
|
+// mHelpPicPainterPtr->setPosition(LayoutPosition(35, 834, 32, 26));
|
|
|
+// mCallNurseButtonPtr->setPosition(LayoutPosition(10, 909, 77, 77));
|
|
|
+// mCallNursePicPainterPtr->setPosition(LayoutPosition(34, 919, 27, 27));
|
|
|
+//
|
|
|
+// }
|
|
|
+// else {
|
|
|
+// // 如果roomCallBed是1的话,那就显示
|
|
|
+// mCallBedButtonPtr->setVisible(roomCallBed);
|
|
|
+// mCallBedPicPainterPtr->setVisible(roomCallBed);
|
|
|
+//
|
|
|
+// mHelpButtonPtr->setPosition(LayoutPosition(10, 735, 77, 77));
|
|
|
+// mHelpPicPainterPtr->setPosition(LayoutPosition(33, 747, 32, 26));
|
|
|
+// mCallNurseButtonPtr->setPosition(LayoutPosition(10, 822, 77, 77));
|
|
|
+// mCallNursePicPainterPtr->setPosition(LayoutPosition(35, 834, 27, 27));
|
|
|
+// }
|
|
|
+//}
|
|
|
/**
|
|
|
* 注册定时器
|
|
|
* 填充数组用于注册定时器
|
|
@@ -142,7 +142,7 @@ static S_ACTIVITY_TIMEER REGISTER_ACTIVITY_TIMER_TAB[] = {
|
|
|
*/
|
|
|
static void onUI_init(){
|
|
|
//Tips :添加 UI初始化的显示代码到这里,如:mText1->setText("123");
|
|
|
- callBedButtonSetVisible();
|
|
|
+// callBedButtonSetVisible();
|
|
|
setNavibarTheme();
|
|
|
}
|
|
|
|
|
@@ -275,11 +275,8 @@ static bool onButtonClick_CallNurseButton(ZKButton *pButton) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
-static bool onButtonClick_CallBedButton(ZKButton *pButton) {
|
|
|
- LOGD(" ButtonClick CallBedButton !!!\n");
|
|
|
-
|
|
|
- Intent* intent = new Intent();
|
|
|
- intent->putExtra(functionWindows, "callBed");
|
|
|
- EASYUICONTEXT->openActivity("functionActivity", intent);
|
|
|
+static bool onButtonClick_CallCancelButton(ZKButton *pButton) {
|
|
|
+ LOGD(" ButtonClick CallCancelButton !!!\n");
|
|
|
+ sendVoiceCancelByDoor();
|
|
|
return false;
|
|
|
}
|