基于BS结构的工资管理系统的设计与实现毕业论文 - 图文 联系客服

发布时间 : 星期五 文章基于BS结构的工资管理系统的设计与实现毕业论文 - 图文更新完毕开始阅读27a467aa02d8ce2f0066f5335a8102d276a26184

第四章 系统设计

jianyanrenbeizu tijiaofuzheren 检验类型 提交负责人

表4-4 新闻发布信息表 代码 Id biaoti neirong date 描述 新闻编号 新闻标题 新闻内容 新闻发表时间 数据类型 单位 字段长度 10 50 max 30 20 20 4.3 系统总体功能

系统全局功能如图4.2所示:

特种设备管理系统系统首页业务受理报检设备综合统计基础信息

图4.2 系统总体功能图

系统全局功能如图4.3所示:

检验系统基本功能系统首页业务受理报检设备综合统计基础信息缴费受理企业录入信息修改缴费统计电梯检测锅炉检测游乐设施客运索道电梯检测锅炉检测游乐设施客运索道最新公告公告管理 用户管理 关于我们10

第五章 系统实现

图4.3 系统全局功能图

第五章 系统实现

5.1 主要功能实现 5.1.1 安全验证

//如果检测到登录用户名为空,则返回登录界面

if (Session[\] == null) {

Response.Redirect(\); } else {

Label88.Text = Session[\].ToString(); }

5.1.2 查询特种设备

using (SqlConnection conn = new SqlConnection(@\

Source=.\\SQLEXPRESS;AttachDbFilename=D:\\wpp\\App_Data\\tzsb.mdf;Integrated Security=True;User Instance=True\)) {

conn.Open();

using (SqlCommand cmd = conn.CreateCommand()) {

cmd.CommandText = \shoujiandanwei='\ + TextBox14.Text + \;

using (SqlDataReader reader = cmd.ExecuteReader()) {

if (reader.Read()) {

this.TextBox1.Text = reader[\].ToString(); this.TextBox2.Text = reader[\].ToString(); this.TextBox3.Text = reader[\].ToString(); this.TextBox4.Text = reader[\].ToString();

11

第五章 系统实现

this.TextBox5.Text = reader[\].ToString(); this.TextBox6.Text = reader[\].ToString(); this.TextBox7.Text = reader[\].ToString(); this.TextBox8.Text = reader[\].ToString(); this.TextBox9.Text = reader[\].ToString(); this.TextBox10.Text = reader[\].ToString(); this.TextBox11.Text = reader[\].ToString(); this.TextBox12.Text = reader[\].ToString(); this.TextBox13.Text = reader[\].ToString();

Label1.Text = \;

Label2.Text = \已经找到了!\; } } } }

5.1.3 增加特种设备

using (SqlConnection conn = new SqlConnection(@\

Source=.\\SQLEXPRESS;AttachDbFilename=D:\\wpp\\App_Data\\tzsb.mdf;Integrated Security=True;User Instance=True\)) {

conn.Open();

using (SqlCommand cmd = conn.CreateCommand()) {

cmd.CommandText = \

baojianshebei(shoujiandanwei,fadingdaibiaoren,danweibianhao,danweilianxiren,danweidianhua,danweiyoubian,jianyanrenyan,anpaizubie,lianxishouji,lianxidianhua,dianziyouxiang,jianyanrenbeizu,tijiaofuzheren) values('\ + TextBox1.Text + \ + TextBox2.Text + \ + TextBox3.Text + \ + TextBox4.Text + \ + TextBox5.Text + \ + TextBox6.Text + \ + TextBox7.Text + \ + TextBox8.Text + \ + TextBox9.Text + \ + TextBox10.Text + \ + TextBox11.Text + \ + TextBox12.Text + \ + TextBox13.Text + \; cmd.ExecuteNonQuery(); Label1.Text = \;

Label2.Text = \添加成功!\; } }

12

第五章 系统实现

5.1.4 特种设备信息修改

using (SqlConnection conn = new SqlConnection(@\

Source=.\\SQLEXPRESS;AttachDbFilename=D:\\wpp\\App_Data\\tzsb.mdf;Integrated Security=True;User Instance=True\)) {

conn.Open();

using (SqlCommand cmd = conn.CreateCommand()) {

cmd.CommandText = \ baojianshebei set fadingdaibiaoren='\ + TextBox2.Text + \ + TextBox3.Text + \ + TextBox4.Text + \ + TextBox5.Text + \ +

TextBox6.Text + \ + TextBox7.Text + \ + TextBox8.Text + \ + TextBox9.Text + \ + TextBox10.Text +

\ + TextBox11.Text + \ + TextBox12.Text +

\ + TextBox13.Text + \ + TextBox1.Text + \; cmd.ExecuteNonQuery(); Label1.Text = \;

Label2.Text = \修改成功!\; } }

5.1.5 特种设备删除

using (SqlConnection conn = new SqlConnection(@\

Source=.\\SQLEXPRESS;AttachDbFilename=D:\\wpp\\App_Data\\tzsb.mdf;Integrated Security=True;User Instance=True\)) {

conn.Open();

using (SqlCommand cmd = conn.CreateCommand()) {

cmd.CommandText = \ baojianshebei where shoujiandanwei='\ + TextBox1.Text + \;

cmd.ExecuteNonQuery(); Label1.Text = \;

Label2.Text = \删除成功!\; } }

13