#include"InfoPage.h"
#pragma warning(disable : 4996)
void InfoPage(int type,int nowType){
MOUSEMSG m4;
InfoPageOpen = 1;
cleardevice();
IMAGE backGround, title;
loadimage(&backGround, "resources/backGround.jpg");
loadimage(&title, "resources/title.png", 290, 109);
putimage(0, 0, &backGround);
drawAlpha(&title, 630, 30);
//print texts
rectProperties text1, text2;
text1 = { 60,45,500,100 };
text2 = { 60,85,500,200 };
char adminText1[50] = { "用户信息管理系统:" };
char adminText2[50];
if (type == AdminToVol && nowType == Administrator) {
char AdminToVolText[50] = {"管理员发件箱:"};
strcpy(adminText2, AdminToVolText);
}
if (type == AdminToVol && nowType == Volunteer) {
char AdminToVolText[50] = { "工作人员收件箱:" };
strcpy(adminText2, AdminToVolText);
}
if (type == VolToAdmin && nowType == Administrator) {
char AdminToVolText[50] = { "管理员收件箱:" };
strcpy(adminText2, AdminToVolText);
}
if (type == VolToAdmin && nowType == Volunteer) {
char AdminToVolText[50] = { "工作人员发件箱:" };
strcpy(adminText2, AdminToVolText);
}
if (type == ResiToVol && nowType == Volunteer) {
char AdminToVolText[50] = { "工作人员收件箱:" };
strcpy(adminText2, AdminToVolText);
}
if (type == ResiToVol && nowType == Residente) {
char AdminToVolText[50] = { "用户发件箱:" };
strcpy(adminText2, AdminToVolText);
}
if (type == VolToResi && nowType == Residente) {
char AdminToVolText[50] = { "用户收件箱:" };
strcpy(adminText2, AdminToVolText);
}
if (type == VolToResi && nowType == Volunteer) {
char AdminToVolText[50] = { "工作人员发件箱:" };
strcpy(adminText2, AdminToVolText);
}
DrawTextsSingle(text1, songTi, adminText1, 30, 600, 0, blueOfText);
DrawTextsSingle(text2, songTi, adminText2, 20, 500, 0, blackOfText);
char exitButtonText[50] = { "退出" };
char nextPageButtonText[50] = { "下移" };
char lastPageButtonText[50] = { "上移" };
char addUserInfoText[50] = { "发布信息" };
char delUserInfoText[50] = { "删除信息" };
char reWriteUserInfoText[50] = { "切换发出/收到" };
rectProperties exitButtonCorr, nextPageButtonCorr, lastPageButtonCorr;
rectProperties addUserInfoCorr, delUserInfoCorr, reWriteUserInfoCorr;
int downLeftCorr = 100, downTopCorr = 470, downButtonWidth = 120, downButtonHeight = 40;
//int tempDownLeftCorr = downLeftCorr;
rectProperties rectSolve = { 528,122,637,159,0,1 };
addUserInfoCorr = { downLeftCorr,downTopCorr,downLeftCorr + 1 * downButtonWidth + 0 * 10,downTopCorr + downButtonHeight,0,1 };
delUserInfoCorr = { downLeftCorr + 1 * downButtonWidth + 1 * 10,downTopCorr,downLeftCorr + 2 * downButtonWidth + 1 * 10,downTopCorr + downButtonHeight,0,1 };
reWriteUserInfoCorr = { downLeftCorr + 2 * downButtonWidth + 2 * 10,downTopCorr,downLeftCorr + 3 * downButtonWidth + 2 * 10,downTopCorr + downButtonHeight,0,1 };
lastPageButtonCorr = { downLeftCorr + 3 * downButtonWidth + 3 * 10,downTopCorr,downLeftCorr + 4 * downButtonWidth + 3 * 10,downTopCorr + downButtonHeight,0,1 };
nextPageButtonCorr = { downLeftCorr + 4 * downButtonWidth + 4 * 10,downTopCorr,downLeftCorr + 5 * downButtonWidth + 4 * 10,downTopCorr + downButtonHeight,0,1 };
exitButtonCorr = { downLeftCorr + 5 * downButtonWidth + 5 * 10,downTopCorr,downLeftCorr + 6 * downButtonWidth + 5 * 10,downTopCorr + downButtonHeight,0,1 };
DrawButton(exitButtonCorr, colorOutOfTheButton, colorInTheButton, colorClickingTheButton, exitButtonText, 20);
DrawButton(rectSolve, colorOutOfTheButton, colorInTheButton, colorClickingTheButton, exitButtonText, 20);
std::vector<TextExchange> temp;
if (type == AdminToVol) {
temp.assign(AdminToVOlMessageList.begin(), AdminToVOlMessageList.end());
}
if (type == VolToAdmin) {
temp.assign(VolToAdminMessageList.begin(), VolToAdminMessageList.end());
}
if (type == ResiToVol) {
temp.assign(ResiToVolMessageList.begin(), ResiToVolMessageList.end());
}
if (type == VolToResi) {
temp.assign(VolToResiMessageList.begin(), VolToResiMessageList.end());
}
forceToFlashButton = 1;
indexToDrawPage = 0;
do {
m4 = GetMouseMsg();
CheckButton(m4, exitButtonCorr, ExitButtonForAdminInfoPage, exitButtonText, 20);
DrawTextModule(m4, temp);
forceToFlashButton = 0;
} while (InfoPageOpen);
}
void ExitButtonForAdminInfoPage() {
InfoPageOpen = 0;
AdminPage();
}
void ReciManageMenu(){
MOUSEMSG m3;
ResiManagePageOpen = 1;
//print background
cleardevice();
IMAGE backGround, title;
loadimage(&backGround, "resources/backGround.jpg");
loadimage(&title, "resources/title.png", 290, 109);
putimage(0, 0, &backGround);
drawAlpha(&title, 630, 30);
//print texts
rectProperties text1, text2;
text1 = { 60,45,500,100 };
text2 = { 60,85,500,200 };
char adminText1[50] = { "用户信息管理系统:" };
char adminText2[50] = {"点击各个单元格可修改单元格内容"};
DrawTextsSingle(text1, songTi, adminText1, 30, 600, 0, blueOfText);
DrawTextsSingle(text2, songTi, adminText2, 20, 500, 0, blackOfText);
rectProperties exitButtonCorr, nextPageButtonCorr, lastPageButtonCorr;
rectProperties addUserInfoCorr, delUserInfoCorr, reWriteUserInfoCorr;
int downLeftCorr = 100, downTopCorr = 470, downButtonWidth = 120, downButtonHeight = 40;
//int tempDownLeftCorr = downLeftCorr;
addUserInfoCorr = { downLeftCorr,downTopCorr,downLeftCorr + 1 * downButtonWidth + 0 * 10,downTopCorr + downButtonHeight,0,1 };
delUserInfoCorr = { downLeftCorr + 1 * downButtonWidth + 1 * 10,downTopCorr,downLeftCorr + 2 * downButtonWidth + 1 * 10,downTopCorr + downButtonHeight,0,1 };
reWriteUserInfoCorr = { downLeftCorr + 2 * downButtonWidth + 2 * 10,downTopCorr,downLeftCorr + 3 * downButtonWidth + 2 * 10,downTopCorr + downButtonHeight,0,1 };
lastPageButtonCorr = { downLeftCorr + 3 * downButtonWidth + 3 * 10,downTopCorr,downLeftCorr + 4 * downButtonWidth + 3 * 10,downTopCorr + downButtonHeight,0,1 };
nextPageButtonCorr = { downLeftCorr + 4 * downButtonWidth + 4 * 10,downTopCorr,downLeftCorr + 5 * downButtonWidth + 4 * 10,downTopCorr + downButtonHeight,0,1 };
exitButtonCorr = { downLeftCorr + 5 * downButtonWidth + 5 * 10,downTopCorr,downLeftCorr + 6 * downButtonWidth + 5 * 10,downTopCorr + downButtonHeight,0,1 };
char exitButtonText[50] = { "退出" };
char nextPageButtonText[50] = { "下移" };
char lastPageButtonText[50] = { "上移" };
char addUserInfoText[50] = { "添加用户" };
char delUserInfoText[50] = { "删除用户" };
char reWriteUserInfoText[50] = { "覆写文件" };
//print sheet
int leftCoor = 22, topCoor = 170, rectWidth = 115, rectHeight = 30;
rectProperties rects0[20];
rectProperties rects1[20];
rectProperties rects2[20];
rectProperties rects3[20];
rectProperties rects4[20];
rectProperties rects5[20];
rectProperties rects6[20];
rectProperties rects7[20];
rectProperties rects8[20];
rectProperties rects9[20];
int tempLeftCoor = leftCoor, tempTopCoor = topCoor;
for (int i = 0; i < 8; i++) {
rects0[i] = { tempLeftCoor,tempTopCoor - 1 * rectHeight,tempLeftCoor + rectWidth,tempTopCoor + 0 * rectHeight ,0,1 };
tempLeftCoor += rectWidth;
}
tempLeftCoor = leftCoor, tempTopCoor = topCoor;
for (int i = 0; i < 8; i++) {
rects1[i] = { tempLeftCoor,tempTopCoor + 0 * rectHeight,tempLeftCoor + rectWidth,tempTopCoor + 1*rectHeight ,0,1 };
tempLeftCoor += rectWidth;
}
tempLeftCoor = leftCoor, tempTopCoor = topCoor;
for (int i = 0; i < 8; i++) {
rects2[i] = { tempLeftCoor,tempTopCoor + 1 * rectHeight,tempLeftCoor + rectWidth,tempTopCoor + 2*rectHeight ,0,1 };
tempLeftCoor += rectWidth;
}
tempLeftCoor = leftCoor, tempTopCoor = topCoor;
for (int i = 0; i < 8; i++) {
rects3[i] = { tempLeftCoor,tempTopCoor + 2 * rectHeight,tempLeftCoor + rectWidth,tempTopCoor + 3*rectHeight ,0,1 };
tempLeftCoor += rectWidth;
}
tempLeftCoor = leftCoor, tempTopCoor = topCoor;
for (int i = 0; i < 8; i++) {
rects4[i] = { tempLeftCoor,tempTopCoor + 3 * rectHeight,tempLeftCoor + rectWidth,tempTopCoor + 4*rectHeight ,0,1 };
tempLeftCoor += rectWidth;
}
tempLeftCoor = leftCoor, tempTopCoor = topCoor;
f
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
基于C++实现的社区疫情防控人员管理系统源码+编译好的可执行程序+使用操作说明(毕业设计项目).zip 【编译运行方式】 1、打开根目录下的EasyX_20220610_6.exe 2、在安装向导中选择你使用的Visual Studio版本进行安装。 3、双击,使用Visual Studio打开根目录下的CovidLilithAccesser.sln文件 4、编译运行 【源代码查看】 1、双击进入CovidLilithAccesser文件夹 2、即可查看所有源文件。 基于C++实现的社区疫情防控人员管理系统源码+编译好的可执行程序+使用操作说明(毕业设计项目).zip
资源推荐
资源详情
资源评论
收起资源包目录
基于C++实现的社区疫情防控人员管理系统源码+编译好的可执行程序+使用操作说明(毕业设计项目).zip (43个子文件)
CovidLilithAccesser
ResiPage.cpp 2KB
CovidLilithAccesser.h 201B
resources
loginAsUser.png 8KB
main.png 75KB
penLogo.webp 5KB
main.psd 2.31MB
loginAsVlounteer.png 12KB
title.png 8KB
未标题-2.psd 87KB
未标题-1.psd 109KB
backGround.jpg 4KB
loginAsAdmin.png 11KB
covidProofWorkers.png 312KB
penLogo.png 21KB
covidProofWorkers.jpg 102KB
data
message 350B
volinfo 1KB
tmp 2KB
admininfo 7B
resinfo 1KB
InfoPage.cpp 35KB
SighIn.h 222B
LoadLoginPage.cpp 5KB
SighIn.cpp 4KB
InfoPage.h 797B
VolPage.cpp 2KB
AdminPage.h 800B
CovidLilithAccesser.cpp 623B
VolPage.h 136B
LoadLoginPage.h 139B
ResiPage.h 157B
Global.cpp 1KB
DrawItems.cpp 17KB
Global.h 3KB
CovidLilithAccesser.vcxproj.filters 2KB
AdminPage.cpp 11KB
DrawItems.h 1KB
CovidLilithAccesser.vcxproj 7KB
.gitattributes 2KB
EasyX_20220610_6.exe 347KB
使用操作说明文档.md 506B
CovidLilithAccesser.sln 1KB
.gitignore 6KB
共 43 条
- 1
资源评论
- 2301_781010832023-07-04资源很实用,对我启发很大,有很好的参考价值,内容详细。
- m0_628740472023-04-15资源很不错,内容和描述一致,值得借鉴,赶紧学起来!onnx2023-06-27加油~互相学习
- Nora9992023-01-08资源很受用,资源主总结的很全面,内容与描述一致,解决了我当下的问题。onnx2023-06-27感谢认可!
onnx
- 粉丝: 9971
- 资源: 5626
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功