图书管理系统c++源代码

图书管理系统c++源代码

ID:8273566

大小:181.50 KB

页数:50页

时间:2018-03-15

图书管理系统c++源代码_第1页
图书管理系统c++源代码_第2页
图书管理系统c++源代码_第3页
图书管理系统c++源代码_第4页
图书管理系统c++源代码_第5页
资源描述:

《图书管理系统c++源代码》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库

1、usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Text;usingSystem.Windows.Forms;namespaceWindowsApplication1{publicpartialclassForm_BuyAndSale:Form{publicForm_BuyAndSale(){InitializeComponent();}SQLsql;strin

2、glastSQL="";publicvoidshow(){listBox1.Items.Clear();listBox2.Items.Clear();listBox3.Items.Clear();if(sql.rows.GetLength(0)!=0){for(inti=0;i

3、l.rows[i,2].ToString());}}else{listBox1.Text="";listBox2.Text="";listBox3.Text="";MessageBox.Show("无符合查询条件的结果!","提示");}}privatevoidForm_BuyAndSale_Load(objectsender,EventArgse){//将窗体的任务栏隐藏this.FormBorderStyle=System.Windows.Forms.FormBorderStyle.None;sql=newSQL(Form_load.connec

4、tionString);sql.ExecuteSQL("select*fromts_tushuxiaoshou");show();lastSQL="select*fromts_tushuxiaoshou";}privatevoidbutThisQuarter_Click(objectsender,EventArgse){intmonth=System.DateTime.Now.Month;intspace=(3-month%3)%3;stringmin=System.DateTime.Now.Year.ToString()+STR.add0(Conv

5、ert.ToString(month+space-2))+"00";stringmax=System.DateTime.Now.Year.ToString()+STR.add0(Convert.ToString(month+space))+"99";sql.ExecuteSQL("select*fromts_tushuxiaoshouwheresaledate>'"+min+"'andsaledate<'"+max+"'");show();lastSQL="select*fromts_tushuxiaoshouwheresaledate>'"+min

6、+"'andsaledate<'"+max+"'";}privatevoidbutThisYear_Click(objectsender,EventArgse){stringmin=System.DateTime.Now.Year.ToString()+"0000";stringmax=System.DateTime.Now.Year.ToString()+"9999";sql.ExecuteSQL("select*fromts_tushuxiaoshouwheresaledate>'"+min+"'andsaledate<'"+max+"'");s

7、how();lastSQL="select*fromts_tushuxiaoshouwheresaledate>'"+min+"'andsaledate<'"+max+"'";}privatevoidbutAll_Click(objectsender,EventArgse){sql.ExecuteSQL("select*fromts_tushuxiaoshou");show();lastSQL="select*fromts_tushuxiaoshou";}privatevoidbutSearch_Click(objectsender,EventArg

8、se){try{int.Parse(Min.Text);int.Parse(Max.Text);}catch

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。