C#课程设计-企业进销存管理系统_第1页
C#课程设计-企业进销存管理系统_第2页
C#课程设计-企业进销存管理系统_第3页
C#课程设计-企业进销存管理系统_第4页
C#课程设计-企业进销存管理系统_第5页
已阅读5页,还剩28页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

目录TOC\o"1-5"\h\z摘要 1\o"CurrentDocument"Abstract 2\o"CurrentDocument"背景 3\o"CurrentDocument"需求分析及可行性研究 4\o"CurrentDocument"2.1需求分析 4\o"CurrentDocument"2.2系统的可行性研究 4\o"CurrentDocument"2.2.1经济可行性 4\o"CurrentDocument"2.2.2技术可行性 5\o"CurrentDocument"2.2.3社会可行性 5\o"CurrentDocument"系统总体设计及设计目标 6\o"CurrentDocument"3.1功能模块设计 63.1.1资料管理 6\o"CurrentDocument"3.1.2采购管理与销售管理 73.1.3库存管理 8\o"CurrentDocument"3.1.4应付款管理与应收款管理 93.1.5系统管理 93.2设计目标 9\o"CurrentDocument"数据库设计 10\o"CurrentDocument"4.1数据库分析 10\o"CurrentDocument"4.2系统的数据库表图 10\o"CurrentDocument"功能模块设计 15\o"CurrentDocument"5.1登陆界面设计 15\o"CurrentDocument"5.2主窗体界面设计 15\o"CurrentDocument"5.3其他窗体设计 165.3.1资料管理之供货商资料管理窗体165.3.2采购管理之进货单管理窗体18\o"CurrentDocument"系统测试 20\o"CurrentDocument"6.1测试举例 20\o"CurrentDocument"6.2测试项目 21\o"CurrentDocument"附录 23\o"CurrentDocument"7.1数据库连接类部分代码 23\o"CurrentDocument"7.2登录窗体部分代码 24\o"CurrentDocument"7.3用户管理部分代码 26致谢 31\o"CurrentDocument"参考文献 32企业进销存管理系统企业进销存管理系统.3用户管理部分代码privatevoidbutton1_Click(objectsender,EventArgse){//查询stringsqlstr="selectuser_idas用户编号,user_nameas用户姓名,user_passwordas密码,user_typeas类型fromuser_billwhereuser_namelike'%"+textBox1.Text+"%'";ds.Clear();ds=accessdbhelp.gettable(sqlstr);dataGridView1.DataSource=ds.Tables[0].DefaultView;}privatevoidbutton2_Click(objectsender,EventArgse){//修改==0)//判断是否选择了要修改的信息{MessageBox.Show("请选择要修改的信息","提示");}else{if(MessageBox.Show("修改过程不可逆,确定要修改?","警告",MessageBoxButtons.OKCancel)==DialogResult.OK){stringid=dataGridView1.SelectedCells[0].Value.ToString();stringsqlstr=+"',user_name='"++"',user_password='"++"',user_type='"++"'whereuser_id='"+id+"'";ds=accessdbhelp.gettable(sqlstr);MessageBox.Show("修改成功!");}}stringsqlstr1="selectuser_idas用户编号,user_nameas用户姓名,user_passwordas密码,user_typeas类型fromuser_bill";DataSetds1=newDataSet();ds1=accessdbhelp.gettable(sqlstr1);dataGridView1.DataSource=ds1.Tables[0].DefaultView;}privatevoidbutton3_Click(objectsender,EventArgse){//删除==0)//判断是否选择了要删除的信息{MessageBox.Show("请选择要删除的信息","提示");}else{if(MessageBox.Show("删除过程不可逆,确定要删除?","警告",MessageBoxButtons.OKCancel)==DialogResult.OK){stringid=dataGridView1.SelectedCells[0].Value.ToString();stringsqlstr="deletefromuser_billwhereuser_id='"+id+"'";ds=accessdbhelp.gettable(sqlstr);MessageBox.Show("删除成功!");}}stringsqlstr1="selectuser_idas用户编号,user_nameas用户姓名,user_passwordas密码,user_typeas类型fromuser_bill";DataSetds1=newDataSet();ds1=accessdbhelp.gettable(sqlstr1);dataGridView1.DataSource=ds1.Tables[0].DefaultView;}privatevoidbutton4_Click(objectsender,EventArgse){//添加textBox2.Enabled=true;OleDbConnectionconn=accessdbhelp.conn;try{if(textBox2.Text==""||textBox3.Text==""||textBox4.Text==""||comboBox1.Text=="")MessageBox.Show("请输入要添加用户的详细信息!","提示");else{conn.Open();stringsql="selectuser_idas用户编号,user_nameas用户姓名,user_passwordas密码,user_typeas类型fromuser_billwhereuser_id='"++"'";OleDbCommandcmmd=newOleDbCommand(sql);cmmd.CommandText=sql;cmmd.Connection=conn;cmmd.ExecuteScalar();if(null==cmmd.ExecuteScalar()){stringsqlstr="insertintouser_bill(user_id,user_name,user_password,user_type)values('"++"','"++"','"++"','"++"')";OleDbCommandcomm=newOleDbCommand(sqlstr);comm.CommandText=sqlstr;comm.Connection=conn;comm.ExecuteNonQuery();MessageBox.Show("用户信息添加成功!","提示");textBox2.Enabled=false;}else{MessageBox.Show("该用户"++"已经存在","提示");textBox2.Clear();textBox2.Focus();}}stringsqlstr1="selectuser_idas用户编号,user_nameas用户姓名,user_passwordas密码,user_typeas类型fromuser_bill";DataSetds1=newDataSet();ds1=accessdbhelp.gettable(sqlstr1);dataGridView1.DataSource=ds1.Tables[0].DefaultView;conn.Close();}catch(Exceptionex){MessageBox.Show(ex.Message);}}privatevoiddataGridView1_CellContentClick(objectsender,DataGridViewCellEventArgse)textBox2.Text=dataGridView1.SelectedCells[0].Value.ToString();textBox3.Text=dataGridView1.SelectedCells[1].Value.ToString();textBox4.Text=dataGridView1.SelectedCells[2].Value.ToString();comboBox1.Text=dataGridView1.SelectedCells[3].Value.ToString();}致谢经过两周的构思与设计,在指导老师的精心指导和安排下,本系统已经设计完毕。其使用功能基本符合公司在实际工作的需要,具有一定的实用性。但是由于时间比较仓促,加上本人软件设计经验的不足,在分析问题、解决问题时显得不够严密、完善,还需要在以后的工作中不断地改进和完善。在这次的程序设计中,我深深地体会到进行软件开发不是一件简单的事情,它需要设计者具有全面的专业知识、缜密的思维、严谨的工作态度以及较高的分析问题、解决问题的能力,而我在很多方面还有欠缺最后,我要衷心感谢老师在我的设计过程中给予我的极大帮助,使我能够及时、顺利地完成此次的程序设计。同时,也要感谢我的老师和同学们在本系统的设计过程中给予我的支持和帮助。参考文献郑宇军.C#语言程序设计基

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论