|
|
@ -1,5 +1,6 @@ |
|
|
|
|
|
|
|
// #include "db/dao/user_dao.hpp"
|
|
|
|
#include "service/statistics_sync_service.hpp"
|
|
|
|
#include "ui/ui.h"
|
|
|
|
#include "uicontroler/base/page_processer.hpp"
|
|
|
|
namespace iflytop { |
|
|
@ -50,7 +51,9 @@ static muInfoTable_t usrMuInfoTable = // |
|
|
|
.muInfo = { |
|
|
|
{ob_navi_muInterval, pg_muInterval}, // 加酸间隔
|
|
|
|
{ob_navi_muChangePwd, pg_muChangePasswd}, // 修改密码
|
|
|
|
{ob_navi_muLoginOut, 0} // 退出登录
|
|
|
|
{ob_navi_muLoginOut, 0}, // 退出登录
|
|
|
|
{ob_navi_powerOff, 0} // 关机
|
|
|
|
|
|
|
|
}}; |
|
|
|
// 库管菜单配置
|
|
|
|
static muInfoTable_t storeKeeperMuInfoTable = //
|
|
|
@ -61,7 +64,9 @@ static muInfoTable_t storeKeeperMuInfoTable = // |
|
|
|
{ob_navi_muChangePwd, pg_muChangePasswd}, // 修改密码
|
|
|
|
{ob_navi_muAcidTakeMgr, pg_muAcidDistMgr}, // 领酸管理
|
|
|
|
{ob_navi_muAcidUseRecd, pg_muAcidUseRecd}, // 用酸记录
|
|
|
|
{ob_navi_muLoginOut, 0} // 退出登录
|
|
|
|
{ob_navi_muLoginOut, 0}, // 退出登录
|
|
|
|
{ob_navi_powerOff, 0} // 关机
|
|
|
|
|
|
|
|
}}; |
|
|
|
// 管理员菜单配置
|
|
|
|
static muInfoTable_t adminMuInfoTable = //
|
|
|
@ -79,7 +84,8 @@ static muInfoTable_t adminMuInfoTable = // |
|
|
|
{ob_navi_muReCtlerBind, pg_muReCtlerBind}, // 手柄绑定
|
|
|
|
{ob_navi_muChangePwd, pg_muChangePasswd}, // 修改密码
|
|
|
|
{ob_navi_muDeviceInfo, pg_muDeviceInfo}, // 设备信息
|
|
|
|
{ob_navi_muLoginOut, 0} // 退出登录
|
|
|
|
{ob_navi_muLoginOut, 0}, // 退出登录
|
|
|
|
{ob_navi_powerOff, 0} // 关机
|
|
|
|
}}; |
|
|
|
|
|
|
|
/***********************************************************************************************************************
|
|
|
@ -144,7 +150,13 @@ class NaviPage : public IPageProcesser { |
|
|
|
if (curMuTable->muInfo[muIndex].page != 0) { |
|
|
|
UIControler::ins()->chpage(curMuTable->muInfo[muIndex].page, true); |
|
|
|
} else { |
|
|
|
UIControler::ins()->chpage(pg_login, true); |
|
|
|
UILoadingCxt cxt; |
|
|
|
StatisticsSyncService::doSyncOnUnLoginOrPowerOff(); |
|
|
|
if (curMuTable->muInfo[muIndex].bid == ob_navi_powerOff) { |
|
|
|
UIControler::ins()->popPowerOffWin("已关机,请关闭设备电源"); |
|
|
|
} else if (curMuTable->muInfo[muIndex].bid == ob_navi_muLoginOut) { |
|
|
|
UIControler::ins()->chpage(pg_login, true); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|