教学文库网 - 权威文档分享云平台
您的当前位置:首页 > 精品文档 > 政务民生 >

企业进销存管理系统(C#含源代码) - 图文(9)

来源:网络收集 时间:2025-09-14
导读: 河南科技大学本科毕业设计 MessageBoxButtons.OK, MessageBoxIcon.Information); return; } } } if (this.checkBox2.Checked) { P_Str_cmdtxt = \ + G_WinFormClass.DESEncrypt(this.txtOkPwd.Text) + \; P_Str_cmd

河南科技大学本科毕业设计

MessageBoxButtons.OK, MessageBoxIcon.Information); return; } } }

if (this.checkBox2.Checked) {

P_Str_cmdtxt = \ + G_WinFormClass.DESEncrypt(this.txtOkPwd.Text) + \;

P_Str_cmdtxt += \ + PropertyClass.SendUserIDValue + \; if (!G_SqlClass.GetExecute(P_Str_cmdtxt)) {

MessageBox.Show(\用户修改失败!\, \提示对话框\, MessageBoxButtons.OK, MessageBoxIcon.Information); return; } else {

G_SqlClass.GetExecute(P_Str_cmdtxt); } }

MessageBox.Show(\用户修改成功,系统下次启动后生效!\, \提示对话框\, MessageBoxButtons.OK, MessageBoxIcon.Information); } } else {

string P_Str_cmdtxt = String.Empty; string P_Str_update = String.Empty; string P_Str_select = String.Empty; //执行设置系统用户及权限的语句 P_Str_cmdtxt = \

Popedom(SysUserSort,SysUserName,EmployeeInfo,CompanyInfo,CustomerInfo\; P_Str_cmdtxt +=

\; P_Str_cmdtxt += \ + this.cbxLogin.Text + \ + this.listBox1.SelectedValue.ToString() + \;

P_Str_cmdtxt += \ + arylst[0].ToString() + \ + arylst[1].ToString() + \ + arylst[2].ToString() + \;

P_Str_cmdtxt += \ + arylst[3].ToString() + \ + arylst[4].ToString() + \ + arylst[5].ToString() + \;

P_Str_cmdtxt += \ + arylst[6].ToString() + \ + arylst[7].ToString() + \ + arylst[8].ToString() + \;

P_Str_cmdtxt += \ + arylst[9].ToString() + \ + arylst[10].ToString() + \ +

36

河南科技大学本科毕业设计

arylst[11].ToString() + \ + arylst[12].ToString() + \; if (G_SqlClass.GetExecute(P_Str_cmdtxt)) {

//获取权限表中最后一条记录

P_Str_select = \ + this.listBox1.SelectedValue.ToString() + \;

DataSet P_ds = G_SqlClass.GetDs(P_Str_select);

string P_Str_Num = P_ds.Tables[0].Rows[0][0].ToString(); P_Str_update = \ + this.listBox1.SelectedValue.ToString() + \;

P_Str_update += \ + G_WinFormClass.DESEncrypt(this.txtOkPwd.Text) + \ + P_Str_Num + \ + this.listBox1.SelectedValue.ToString() + \; G_SqlClass.GetExecute(P_Str_update);

MessageBox.Show(\权限设置成功,系统下次启动时生效!\, \提示对话框\, MessageBoxButtons.OK, MessageBoxIcon.Information); } else {

MessageBox.Show(\权限设置失败!\, \提示对话框\, MessageBoxButtons.OK, MessageBoxIcon.Information); } } }

在ListControl上更改SelectedValue属性时引发SelectedValueChanged事件代码如

下:

private void listBox1_SelectedValueChanged(object sender, EventArgs e)

{

string P_Str_cmdtxt2 = \ + this.listBox1.SelectedValue.ToString() + \;

P_Str_cmdtxt2 += \;

SqlDataReader P_dr1 = G_SqlClass.GetReader(P_Str_cmdtxt2); P_dr1.Read(); if (!P_dr1.HasRows) {

this.checkBox1.Enabled = false; this.checkBox2.Enabled = false; this.checkBox2.Checked = true; this.cbxLogin.Enabled = true; this.treeView1.Enabled = true;

this.labMessage.Text = \该用户不为系统用户\; } else {

37

河南科技大学本科毕业设计

this.checkBox1.Enabled = true; this.checkBox2.Enabled = true; this.checkBox2.Checked = false; this.treeView1.Enabled = false; this.cbxLogin.Enabled = false;

SqlDataReader P_dr2 = G_SqlClass.GetReader(\v_UserView\

+ \ + this.listBox1.SelectedValue.ToString() + \); if (P_dr2.Read()) {

PropertyClass.SendUserIDValue = P_dr2[\].ToString(); this.cbxLogin.SelectedValue = P_dr2[\].ToString(); }

P_dr2.Close();

this.labMessage.Text = \该用户已为系统用户\; }

P_dr1.Close(); }

3.7系统的(硬件)系统结构与处理方式设计

3.7.1系统处理方式

进销存管理系统采用分布式处理。采购、销售、库存三个部门按分配的不同权限进行相关操作,操作主机、数据文件服务器联成网络,相互通信。采购、销售、库存三个部门即可各自独立地进行业务处理也可自由转换角色处理,各部门之间的数据通信由网络完成。

3.7.2系统硬件配置

? 微机(包括主机、显示器及磁盘驱动器)。 ? 打印机。

? 适配器、电缆等其它网络配件。

3.7.3软件配置

? 多用户操作系统。 ? SQL Server数据库系统。

38

河南科技大学本科毕业设计

? 其它应用软件。

3.8系统的处理流程设计

3.8.1系统业务流程分析

进销存管理系统的业务流程(图18)。

否系统用户是否登录是分配权限操作模块中数据操作员用户权限分配管理员用户权限分配普通用户权限查看基本数据操作所有模块基本档案管理进货管理销售管理库存管理报表设计系统维护图18 进销存管理系统业务流程图

39

河南科技大学本科毕业设计

3.8.2新系统结构搭建

进销存管理管理基本档案管理进货管理商品销售管理商品库存设计报表维护系统查询基本信息更改用户退出系统查询商品销售处理退货生成报 …… 此处隐藏:2027字,全部文档内容请下载后查看。喜欢就下载吧 ……

企业进销存管理系统(C#含源代码) - 图文(9).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.jiaowen.net/wendang/446869.html(转载请注明文章来源)
Copyright © 2020-2025 教文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:78024566 邮箱:78024566@qq.com
苏ICP备19068818号-2
Top
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)