书店图书零售系统

上传人:xins****2008 文档编号:110941546 上传时间:2019-11-01 格式:DOC 页数:17 大小:259KB
返回 下载 相关 举报
书店图书零售系统_第1页
第1页 / 共17页
书店图书零售系统_第2页
第2页 / 共17页
书店图书零售系统_第3页
第3页 / 共17页
书店图书零售系统_第4页
第4页 / 共17页
书店图书零售系统_第5页
第5页 / 共17页
点击查看更多>>
资源描述

《书店图书零售系统》由会员分享,可在线阅读,更多相关《书店图书零售系统(17页珍藏版)》请在金锄头文库上搜索。

1、2012-2013学年第二学期无锡商业职业技术学院信息工程学院C/S应用程序开发实训 班级 软件122 学号 12477128 姓名 王锁 班级 软件122 学号 12477121 姓名 王蓓 班级 软件122 学号 12477143 姓名 苏宁 班级 软件122 学号 12477135 姓名 宋娇 班级 软件122 学号 12477137 姓名 屠雪娟 2013年7月一、课程设计要求 1、学生实训以小组为单位,小组人数以3人左右为宜。2、学生实训时认真做好小组分工和实训计划,并书写需求说明文档和设计文档,以电子稿或打印稿方式提交,同时每个小组必须提供完整的源程序代码。3、教师应在小组成绩的基

2、础上认真评定个人成绩,并对学生的课程实训说明书进行批改。4、指导教师在实训开始前,布置若干个难度适中的实训课题供学生选用。鼓励学生自选课题,但要经指导教师审核。5、成绩考核评定:(1) 积极参与课程实训,按质按量完成课程实训要求。(2) 出勤情况,占20%.(3) 在项目开发过程中完成的工作量,占30%.(4) 对开发的项目涵盖的知识点的掌握情况,占40%。(5) 项目中有新功能或创意,占10%。2、 设计题目3、 设计思路及分析(可附页)登陆系统界面书店管理系统界面图书管理界面会员管理界面收银台界面四、程序清单(可附页)登陆系统界面设计using System;using System.Co

3、llections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Data.SqlClient;namespace 书店图书零售系统 public partial class 登录系统 : Form public 登录系统() InitializeComponent(); private void Form1_Load(object sender, EventArgs e) p

4、rivate void button1_Click(object sender, EventArgs e) SqlConnection con = new SqlConnection(); con.ConnectionString = Data Source=pc-201302190923;Initial Catalog=BookStore;Integrated Security=True; con.Open(); SqlCommand cmd = new SqlCommand(); cmd.Connection = con; cmd.CommandText = select count(*)

5、 from admin where name=+textBox1 .Text +and mima=+textBox2.Text +; int i=(int )cmd.ExecuteScalar (); if (i0) 书店管理系统 ff= new 书店管理系统 (); ff.Show (); else MessageBox .Show (用户名或密码不正确!); private void button2_Click(object sender, EventArgs e) Application.Exit(); private void textBox2_TextChanged(object s

6、ender, EventArgs e) private void textBox1_TextChanged(object sender, EventArgs e) 书店管理系统界面设计using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace 书店图书零售系统 public partial class 书店管理系统 : F

7、orm public 书店管理系统() InitializeComponent(); private void button1_Click(object sender, EventArgs e) 图书管理 ff = new 图书管理 (); ff.Show(); private void button2_Click(object sender, EventArgs e) 会员管理 ww = new 会员管理 (); ww.Show(); private void button3_Click(object sender, EventArgs e) 收银台 dd= new 收银台 (); dd.S

8、how (); private void 书店管理系统_Load(object sender, EventArgs e) 图书管理界面设计using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Data.SqlClient;using System.Configuration;namespace 书店图书零售系统

9、 public partial class 图书管理 : Form protected SqlCommand cmd; protected SqlConnection conn; protected BookStoreDataSetTableAdapters.BookTableAdapter adapter; public 图书管理() InitializeComponent(); DataView dv = null; SqlConnection cn = new SqlConnection(Data Source=pc-201302190923;Initial Catalog=BookSt

10、ore;Integrated Security=True);/创建连接 SqlDataAdapter da; DataSet ds = new DataSet(); private void Form2_Load(object sender, EventArgs e) / TODO: 这行代码将数据加载到表“bookStoreDataSet.Book”中。您可以根据需要移动或移除它。 this.bookTableAdapter.Fill(this.bookStoreDataSet.Book); da = new SqlDataAdapter(select * from Book, cn); d

11、a.Fill(ds, Book); /填充数据集 dataGrid1.DataSource = ds.TablesBook; dv = bookStoreDataSet.Book.DefaultView; dataGrid1.DataSource = dv; private void btncheck_Click(object sender, EventArgs e) if (!checkBox1.Checked & !checkBox2.Checked & !checkBox3.Checked) MessageBox.Show(至少输入一个查询条件, 温馨提示, MessageBoxButtons.OK, MessageBoxIcon.Warning); return; if (checkBox1.Checked & cmbasm .Text = ) MessageBox.Show(请输入书名, 温馨提示, MessageBoxButtons.OK, MessageBoxIcon.Warning); cmbasm.Focus();

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 大杂烩/其它

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号