实验室管理系统源代码及图片Word下载.docx

上传人:b****6 文档编号:22189150 上传时间:2023-02-03 格式:DOCX 页数:38 大小:2.25MB
下载 相关 举报
实验室管理系统源代码及图片Word下载.docx_第1页
第1页 / 共38页
实验室管理系统源代码及图片Word下载.docx_第2页
第2页 / 共38页
实验室管理系统源代码及图片Word下载.docx_第3页
第3页 / 共38页
实验室管理系统源代码及图片Word下载.docx_第4页
第4页 / 共38页
实验室管理系统源代码及图片Word下载.docx_第5页
第5页 / 共38页
点击查看更多>>
下载资源
资源描述

实验室管理系统源代码及图片Word下载.docx

《实验室管理系统源代码及图片Word下载.docx》由会员分享,可在线阅读,更多相关《实验室管理系统源代码及图片Word下载.docx(38页珍藏版)》请在冰豆网上搜索。

实验室管理系统源代码及图片Word下载.docx

//查询设备结果

voiddelequ();

//删除设备界面

voidchange();

//修改界面

voiduser();

//用户界面

voidreport();

//上报信息界面

voidfindreport();

//上报信息显示界面

voidabout();

//关于我们界面

voidhelp();

//帮助界面

voidthank();

//退出界面

intsave();

//文件保存

intload();

//文件读取

structEquipt//结构体(设备信息)

{

charequiptname[20];

//设备名称

charequiptnumber[20];

//设备编号

charprice[20];

//设备价格

charbuytime[20];

//购买时间

charlocation[20];

//所在位置

charcondition[20];

//设备状态

charstaff[20];

//操作人员

charnumber[20];

//联系方式

charusetime[20];

//操作时间

};

EquiptEt[100];

structReport//结构体(上报信息)

charroomnumber[20];

//教室编号

charfault[20];

//故障现象

charreporter[20];

//上报人员

//联系方式

charreporttime[20];

//上报时间

};

ReportRt[100];

structUser//结构体

{

charusername[30];

//用户名

charbianhao[30];

//编号

charnumber[30];

Userur[100];

charusername[50];

//用户名

charuserpassword[50];

//密码

charglyname[50];

//管理员账户

charglypassword[50];

//管理员密码

char*inputstring(intx,inty)

PIMAGEimg=newimage();

setbkmode(TRANSPARENT);

getimage(img,x,y-20,200,50);

charstr[20];

charc;

inti=0;

setcolor(0x3FA61F);

setfont(26,0,"

宋体"

);

while

(1)

{

c=getch();

if(c==27)//ESC

{

return"

#ESC"

;

}

elseif(i>

0&

&

c=='

\b'

i--;

str[i]='

\0'

putimage(x,y-20,img,PATCOPY);

putimage(x,y-20,img,SRCCOPY);

outtextxy(x,y,str);

elseif(c!

='

\r'

str[i++]=c;

str[i]='

else

returnstr;

}

intmain()

setinitmode(0);

//去掉启动动画

initgraph(690,500);

//初始化,显示一个窗口,这里和TC略有区别

welcome();

return0;

voidwelcome()//欢迎界面

PIMAGEwelcomeing=newimage();

//定义变量

getimage(welcomeing,"

image/welcome.jpg"

//获取图片数据

putimage(0,0,welcomeing);

//图片显示在屏幕窗体上

charkey=getch();

switch(key)

case'

0'

:

exit(0);

break;

default:

login();

}

return;

voidlogin()//登陆界面

PIMAGElogining=newimage();

getimage(logining,"

image/login.jpg"

putimage(0,0,logining);

1'

logingly();

2'

loginuser();

case27:

save();

voidlogingly()//管理员登陆界面

PIMAGEloginglying=newimage();

getimage(loginglying,"

image/login1.jpg"

while

(1)

putimage(0,0,loginglying);

strcpy(glyname,inputstring(410,115));

strcpy(glypassword,inputstring(410,160));

if(strcmp(glyname,"

guanliyuan"

)==0&

strcmp(glypassword,"

123456"

)==0)

manner();

outtextxy(420,340,"

用户名或密码错误"

reggly();

3'

password();

4'

about();

5'

help();

voidloginuser()//用户登录界面

PIMAGEloginusering=newimage();

getimage(loginusering,"

putimage(0,0,loginusering);

strcpy(username,inputstring(410,115));

strcpy(userpassword,inputstring(410,160));

if(strcmp(username,"

user"

strcmp(userpassword,"

user();

voidreggly()//管理员注册界面

PIMAGEregglying=newimage();

getimage(regglying,"

image/reg.jpg"

putimage(0,0,regglying);

strcpy(glyname,inputstring(175,74));

if(strcmp(glyname,"

return;

strcpy(glypassword,inputstring(175,140));

if(strcmp(glypassword,"

strcpy(glypassword,inputstring(175,197));

strcpy(glypassword,inputstring(175,267));

strcpy(glypassword,inputstring(175,333));

regok();

voidreguser()//注册界面

PIMAGEregusering=newimage();

getimage(regusering,"

putimage(0,0,regusering);

strcpy(username,inputstring(175,74));

if(strcmp(username,"

strcpy(userpassword,inputstring(175,140));

if(strcmp(userpassword,"

strcpy(userpassword,inputstring(175,197));

strcpy(userpassword,inputstring(175,267));

strcpy(userpassword,inputstring(175,333));

voidregok()//注册成功页面

PIMAGEregoking=newimage();

getimage(regoking,"

image/regok.jpg"

putimage(0,0,regoking);

getch();

login();

voidpassword()//修改密码页面

PIMAGEpasswording=newimage();

getimage(passwording,"

image/password.jpg"

putimage(0,0,passwording);

strcpy(userpassword,inputstring(221,121));

strcpy(userpassword,inputstring(221,123));

strcpy(userpassword,inputstring(221,188));

strcpy(userpassword,inputstring(221,252));

strcpy(userpassword,inputstring(221,317));

passwordok();

voidpasswordok()//修改密码成功页面

PIMAGEpasswordoking=newimage();

getimage(passwordoking,"

image/passwordok.png"

putimage(0,0,passwordoking);

voidmanner()//管理员界面

PIMAGEmannering=newimage();

getimage(mannering,"

image/manner.png"

putimage(0,0,mannering);

mannerS();

usermanner();

findreport();

voidusermanner()//用户管理界面

PIMAGEusermannering=newimage();

getimage(usermannering,"

image/usermanner.png"

putimage(0,0,usermannering);

charc=getch();

switch(c)

case'

del();

break;

userinfo();

manner();

voiduserinfo()//用户信息界面

PIMAGEuserinfoing=newimage();

getimage(userinfoing,"

image/userinfo.jpg"

putimage(0,0,userinfoing);

charusername[20]={'

u'

'

s'

e'

r'

printf("

%s"

username);

charbianhao[20]={'

charnumber[20]={'

6'

for(inti=0;

i<

1;

i++)

if(strlen(bianhao)>

0)

{

outtextxy(124,184+40*i,bianhao);

outtextxy(248,184+40*i,username);

outtextxy(406,184+40*i,number);

}

}

charkey=getch();

switch(key)

user();

break;

return;

voiddel()//删除用户界面

cleardevice();

//清屏

PIMAGEdeling=newimage();

getimage(deling,"

image/del.jpg"

putimage(0,0,deling);

charbianhao[20];

strcpy(bianhao,inputstring(170,203));

for(inti=0;

100;

if(strcmp(bianhao,ur[i].bianhao)==0)

for(intj=i+1;

j<

100-i;

j++)

Et[i]=Et[j];

outtextxy(100,450,"

删除成功"

//设置位置

charc=ege:

getch();

voidmannerS()//设备管理界面

PIMAGEmannerSing=newimage();

getimage(mannerSing,"

image/mannerS.png"

putimage(0,0,mannerSing);

charbb[10];

add();

//跳转添加设备界面

delequ();

//跳转删除界面

change();

//跳转修改界面

find();

//跳转查询界面

case27:

voidadd()//设备添加界面

PIMAGEadding=newimage();

getimage(adding,"

image/add.png"

putimage(0,0,adding);

PIMAGEh=newimage();

getimage(h,"

setbkmode(TRANSPARENT);

charc;

putimage(0,0,adding);

setfont(25,0,"

if(strlen(Et[i].equiptname)<

1)//发现空位置

strcpy(Et[i].equiptname,inputstring(203,55));

strcpy(Et[i].equiptnumber,inputstring(203,99));

strcpy(Et[i].price,inputstring(203,141));

strcpy(Et[i].buytime,inputstring(203,184));

strcpy(Et[i].location,inputstring(203,228));

strcpy(Et[i].condition,inputstring(203,271));

strcpy(Et[i].staff,inputstring(203,323));

strcpy(Et[i].number,inputstring(203,366));

strcpy(Et[i].usetime,inputstring(203,411));

break;

}

setfont(30,0,"

黑体"

//设置字体大小类型

outtextxy(65,446,"

录入成功:

"

switch(c)

case27:

voiduser()//用户界面

PIMAGEusering=newimage();

getimage(usering,"

image/user.png"

putimage(0,0,usering);

report();

voidreport()//上报信息界面

PIMAGEreporting=newimage();

getimage(reporting,"

image/report.jpg"

putimage(0,0,reporting);

if(strlen(Rt[i].

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 工程科技 > 环境科学食品科学

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1