资源预览内容
第1页 / 共17页
第2页 / 共17页
第3页 / 共17页
第4页 / 共17页
第5页 / 共17页
第6页 / 共17页
第7页 / 共17页
第8页 / 共17页
第9页 / 共17页
第10页 / 共17页
亲,该文档总共17页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
2012-2013学年第二学期无锡商业职业技术学院信息工程学院C/S应用程序开发实训 班级 软件122 学号 12477128 姓名 王锁 班级 软件122 学号 12477121 姓名 王蓓 班级 软件122 学号 12477143 姓名 苏宁 班级 软件122 学号 12477135 姓名 宋娇 班级 软件122 学号 12477137 姓名 屠雪娟 2013年7月一、课程设计要求 1、学生实训以小组为单位,小组人数以3人左右为宜。2、学生实训时认真做好小组分工和实训计划,并书写需求说明文档和设计文档,以电子稿或打印稿方式提交,同时每个小组必须提供完整的源程序代码。3、教师应在小组成绩的基础上认真评定个人成绩,并对学生的课程实训说明书进行批改。4、指导教师在实训开始前,布置若干个难度适中的实训课题供学生选用。鼓励学生自选课题,但要经指导教师审核。5、成绩考核评定:(1) 积极参与课程实训,按质按量完成课程实训要求。(2) 出勤情况,占20%.(3) 在项目开发过程中完成的工作量,占30%.(4) 对开发的项目涵盖的知识点的掌握情况,占40%。(5) 项目中有新功能或创意,占10%。2、 设计题目3、 设计思路及分析(可附页)登陆系统界面书店管理系统界面图书管理界面会员管理界面收银台界面四、程序清单(可附页)登陆系统界面设计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;namespace 书店图书零售系统 public partial class 登录系统 : Form public 登录系统() InitializeComponent(); private void Form1_Load(object sender, EventArgs e) private 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(*) 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 sender, 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 书店管理系统 : Form 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.Show (); 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 书店图书零售系统 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=BookStore;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); da.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();
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号