欢迎来到天天文库
浏览记录
ID:48487692
大小:100.50 KB
页数:29页
时间:2020-02-04
《图书管理系统的C#代码(完整版).doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、.C#代码清单共1个项目,包含5个类。项目:librarysystem类:Program.csReaders.csManage.csMenu.csPublications.cs主类代码:namespacelibrarysystem{//////类名:Program///功能:项目主类///时间:2015-11-19///classProgram{staticvoidMain(string[]args){Menumeu=newMenu();meu.ShowMainMenu();Console.ReadLine();}}专业资料.}出版物类代码:
2、namespacelibrarysystem{//////类名:Publications///功能:馆藏出版物信息///时间:2015-11-19///classPublications{/*出版物编号*/privatestringPublicationISBN;publicstringPublicationIsbn{get{returnPublicationISBN;}set{PublicationISBN=value;}专业资料.}/*出版物名称*/publicstringPublicationName;/*出版物作者或出版机构*/pub
3、licstringPublicationAuthor;/*出版物在架状态*/publicboolPublicationStatus;/*出版物类型*/publicstringPublicationType;publicPublications(){}publicPublications(stringPublicationISBN,stringPublicationName,stringPublicationAuthor,stringPublicationType,boolPublicationStatus){this.PublicationISBN=PublicationISBN
4、;this.PublicationName=PublicationName;this.PublicationAuthor=PublicationAuthor;this.PublicationType=PublicationType;this.PublicationStatus=PublicationStatus;}}专业资料.}读者类代码:namespacelibrarysystem{//////类名:Readers///功能:已获取权限读者的信息///时间:2015-11-19///classReaders{privatestringRea
5、derID;publicstringReaderId{get{returnReaderID;}set{ReaderID=value;}}专业资料.publicstringReaderName;publicstringReaderSex;publicstringReaderDepartment;publicstringReaderMajor;publicstring[]BowPublication=newstring[10]{"","","","","","","","","",""};publicReaders(){}publicReaders(stringReaderID,st
6、ringReaderName,stringReaderSex,stringReaderDepartment,stringReaderMajor){this.ReaderID=ReaderID;this.ReaderName=ReaderName;this.ReaderSex=ReaderSex;this.ReaderDepartment=ReaderDepartment;this.ReaderMajor=ReaderMajor;}}}管理类代码:namespacelibrarysystem{///专业资料.///类名:Manage///功能:管理员执行图书管理操
7、作///时间:2015-11-19///classManage{publicboolBorrowFlag=false;/*借阅操作成功标志*/publicboolReturnFlag=false;/*归还操作成功标志*/publicPublicationspub_search;/*保存查询到的出版物*/publicReadersRed_valid;/*保存查询到的合法用户*//*声明馆藏出版物数组*/publicPublications[]pubs=newPu
此文档下载收益归作者所有