上机实习报告总结结尾文档格式.docx
- 文档编号:15311902
- 上传时间:2022-10-29
- 格式:DOCX
- 页数:12
- 大小:18.49KB
上机实习报告总结结尾文档格式.docx
《上机实习报告总结结尾文档格式.docx》由会员分享,可在线阅读,更多相关《上机实习报告总结结尾文档格式.docx(12页珍藏版)》请在冰豆网上搜索。
logofrom=newlogo();
();
EventArgse)
privatevoidbutton2_Click(objectsender,EventArgse){
Form2from=newForm2();
privatevoidbutton3_Click(objectsender,EventArgse)http:
///shijuan/试卷{
Form3from=newForm3();
privatevoidbutton4_Click(objectsender,EventArgse){
Form4from=newForm4();
二.登录模块
代码如下:
using
;
publicpartialclasslogo:
Form
publiclogo()
privatevoidForm1_Load(objectsender,EventArgse)
privatevoidbutton1_Click(objectsender,EventArgse){
stringconnstring=@"
DataSource=panlunzhao;
InitialCatalog=;
IntegratedSecurity=True"
;
SqlConnectionconn=newSqlConnection(connstring);
();
stringusername=();
stringpassword=();
SqlCommandcomm=();
="
select*frommanagewhereusername='
"
+username+"
'
andpassword='
+password+"
SqlDataReadersqlda=();
if(())
ifhttp:
///gongzuobaogao/工作报告(sqlda.ToString().Trim()==password){
//("
恭喜您登陆成功!
"
登陆成功!
,);
//Form2f=newForm2();
//();
else{("
密码错误,请重新输入!
错误
"
}
此用户不存在,请您注册!
注册"
http:
///dangtuangongzuozongjie/党团工作总结
三.会员管理模块
publicpartialclassForm2:
Form
protectedSqlConnectionconn;
protectedSqlCommandcmd;
DataSou/article/述职报告rce=panlunzhao;
publicForm2()
privatevoidForm2_Load(objectsender,EventArgse)
load1();
load();
protectedvoidload1()
stringsql="
select*fromcustomer"
conn=newSqlConnection(connstring);
SqlDataAdapterda=newSqlDataAdapter(sql,conn);
DataSetds=newDataSet();
(ds,"
book"
);
=;
protectedvoidload()
stringsql_select="
SELECTIDFROMcustomer"
cmd=newSqlCommand(sql_select,conn);
SqlDataReaderdr=();
while(())
(dr);
privateDataTableBindData(stringsql)
stringsql_select=sql;
SqlDataAdapterad=newSqlDataAdapter(sql_select,conn);
customer"
return;
select*fromcustomerwhereID='
+()+"
SqlCommandcmd=newSqlCommand(sql,conn);
SqlDataReaderds=();
=ds.ToString();
http:
///xuexiaogongzuozongjie/学校工作总结=ds.ToString();
=(bool)ds;
privatevoidupdate_Click(objectsender,EventArgse){
customerset
name=@name,Levels=@Levels,Birthday=@Birthday,Degree=@Degree,Address=@Address,Telephone=@Telephone,Email=@Email,Score=@ScorewhereID=@ID"
conn=newSqlConnection(connstring);
cmd=newSqlCommand(sql,conn);
("
@ID"
).Value=();
@name"
,20).Value=();
@Levels"
@Birthday"
).Value=();
@Degree"
,
20).Value=();
@Address"
,256).Value=();
@Telephone"
50).Value=();
@Email"
,50).Value=();
///yundonghuiyanjianggao/运动会演讲稿@Gender"
).Value=(bool);
@Score"
privatevoid_Click(objectsender,EventArgse){
stringsql_="
into
customer(Name,Levels,Gender,Birthday,Degree,Address,Telephone,Email,Score)
values(@Name,@Levels,@Gender,@Birthday,@Degree,@Address,@Telephone,@Email,@Score)"
cmd=newSqlCommand(sql_,conn);
try
@Name"
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 上机 实习 报告 总结 结尾