ImageVerifierCode 换一换
格式:DOCX , 页数:31 ,大小:19.80KB ,
资源ID:19096792      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/19096792.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(课程设计代码Word文件下载.docx)为本站会员(b****5)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

课程设计代码Word文件下载.docx

1、.ToString(); public 用户登录() InitializeComponent(); private void button1_Click(object sender, EventArgs e)/登录 Common.Name = this.textBox1.Text; string usernumber = textBox1.Text.Trim(); string passward = textBox2.Text.Trim(); int p = 0; int q = 0; SqlConnection connection = new SqlConnection(strcon);

2、connection.Open(); if (connection.State.ToString() = Open) string sqls = Select * from Enter; SqlDataAdapter da = new SqlDataAdapter(sqls, connection); DataSet ds = new DataSet(); da.Fill(ds, Enter); for (int i = 0; i ds.Tables0.Rows.Count; i+) if (Convert.ToInt32(ds.Tables0.RowsiproductShu) 1000) q

3、 = q + 1; connection.Close(); if (radioButton1.Checked)/系统管理员登陆 string strsql = select count(*) from Enterlable where usenumber= + textBox1.Text.Trim() + and password= + textBox2.Text.Trim() + and role= + radioButton1.Text + SqlCommand cmd = new SqlCommand(strsql, connection); int i = (int)cmd.Execu

4、teScalar(); if (i 0) Form1 aa = new Form1(); aa.Show(); this.Hide(); else MessageBox.Show(请输入登录信息, 错误提示, MessageBoxButtons.OKCancel, MessageBoxIcon.Stop); else if (radioButton2.Checked)/部门经理登录 + radioButton2.Text + Form4 aa = new Form4(); else if (radioButton3.Checked)/仓库管理员登陆 + radioButton3.Text +

5、if (p 0 | q MessageBox.Show(有 + p + 种产品不足需采购,有 + q + 种产品过多停止采购 Form2 aa = new Form2();请选择登录权限 connection.Close(); private void 用户登录_Load(object sender, EventArgs e)仓库管理员模块 public partial class Form2 : private string strcon = ConfigurationManager.ConnectionStrings public Form2() private void 修改密码_Cli

6、ck(object sender, EventArgs e) 修改密码 aa = new 修改密码(); private void 出货管理_Click(object sender, EventArgs e) 删除采购 aa = new 删除采购(); private void 进货管理_Click(object sender, EventArgs e) 添加 aa = new 添加(); private void button1_Click(object sender, EventArgs e) 修改采购 aa = new 修改采购(); private void button2_Click

7、(object sender, EventArgs e) 查询采购 aa = new 查询采购(); private void button3_Click(object sender, EventArgs e) 入库 aa = new 入库(); private void button4_Click(object sender, EventArgs e) 出库 aa = new 出库); private void button5_Click(object sender, EventArgs e) 库存信息查询 aa = new 库存信息查询(); private void button6_Cl

8、ick(object sender, EventArgs e) 用户登录 aa = new 用户登录();经理管理模块 public partial class Form4 : public Form4() private void 信息查询_Click(object sender, EventArgs e) private void 修改密_Click(object sender, EventArgs e) 库存查询 aa = new 库存查询();系统管理模块 public partial class Form1 : public Form1() private void 退出系统_Cli

9、ck(object sender, EventArgs e) 系统管理 aa = new 系统管理();private void button3_Click(object sender, EventArgs e) 修改密码系统_管理员_ aa = new 修改密码_系统管理员_();修改密码 public partial class 修改密码 : public 修改密码() private void 确认_Click(object sender, EventArgs e) if (textBox1.Text.Trim() = textBox2.Text.Trim() String strsql

10、1 = + textBox3.Text.Trim() + + textBox4.Text.Trim() + SqlCommand cmd1 = new SqlCommand(strsql1, connection); int i = (int)cmd1.ExecuteScalar(); if(i0)update EnterLable set password = where usenumber= int iresult = cmd.ExecuteNonQuery(); if (iresult 信息更改成功 else信息更改失败);旧密码?输?入?错洙?误两次密码不一样,请重新输入 return

11、; private void 取消_Click(object sender, EventArgs e) This.Hide();修改采购 public partial class 修改采购: public 修改采购() private void 修改采购_Load(object sender, EventArgs e) this.gRNTableAdapter.Fill(this.jinxiaocunSystemDataSet2.GRN); if (textBox1.Text != & textBox2.Text ! textBox3.Text ! textBox4.Text ! textBo

12、x5.Text ! textBox6.Text ! textBox7.Text ! textBox8.Text !update GRN set Credentialsnumber=,CKnumber=,Goodsnumber=,Goodnumber=,Inunit= + textBox5.Text.Trim() + ,Incktime= + textBox6.Text.Trim() + ,Makingpeople= + textBox7.Text.Trim() + ,Purchasingpeople= + textBox8.Text.Trim() + where Credentialsnumb

13、er= SqlCommand cmda = new SqlCommand(strsql, connection); int iresult = cmda.ExecuteNonQuery();修改信息成功修改信息失骸败, 修改信息不能为空? textBox1.Text = null; textBox2.Text = null; textBox3.Text = null; textBox4.Text = null; textBox5.Text = null; textBox6.Text = null; textBox7.Text = null; textBox8.Text = null; 添加采购using Sy

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1