| | |
| | | { |
| | | CDialogEx::OnInitDialog(); |
| | | InitRxWindows(); |
| | | SetTimer(TIMER_ID_DEVICE_STATUS, 3000, nullptr); |
| | | SetTimer(TIMER_ID_DEVICE_STATUS, 800, nullptr); |
| | | SetTimer(TIMER_ID_ROBOT_STATUS, 1000, nullptr); // 每 1000ms 更新一次状态 |
| | | |
| | | // 图示 |
| | |
| | | #include <vector> |
| | | #include <map> |
| | | #include <utility> |
| | | #include <algorithm> |
| | | #include <sstream> |
| | | #include <cwchar> |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | std::sort(roles.begin(), roles.end(), [](const RoleInfo& a, const RoleInfo& b) { |
| | | if (a.level == b.level) { |
| | | return a.name < b.name; |
| | | } |
| | | return a.level > b.level; |
| | | }); |
| | | |
| | | return roles; |
| | | } |
| | | |
| | | std::vector<CUserManager2::UserInfo> CUserManager2::getUsers() |
| | | { |
| | | std::vector<UserInfo> users; |
| | |
| | | |
| | | // model init |
| | | theApp.m_model.init(); |
| | | SetTimer(TIMER_ID_LOGIN, 1000, nullptr); |
| | | SetTimer(TIMER_ID_LOGIN, 1500, nullptr); |
| | | |
| | | // 菜单 |
| | | CMenu menu; |