收藏 分销(赏)

人事管理系统数据库源代码.doc

上传人:精*** 文档编号:3557103 上传时间:2024-07-09 格式:DOC 页数:12 大小:45KB
下载 相关 举报
人事管理系统数据库源代码.doc_第1页
第1页 / 共12页
人事管理系统数据库源代码.doc_第2页
第2页 / 共12页
人事管理系统数据库源代码.doc_第3页
第3页 / 共12页
人事管理系统数据库源代码.doc_第4页
第4页 / 共12页
人事管理系统数据库源代码.doc_第5页
第5页 / 共12页
点击查看更多>>
资源描述

1、using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;namespac

2、e WebApplication1 public partial class WebForm1 : System.Web.UI.Page protected void Page_Load(object sender, EventArgs e) protected void Button1_Click(object sender, EventArgs e) Response.Redirect(/登录.aspx); protected void Button2_Click(object sender, EventArgs e) Response.Redirect(/人员信息查询.aspx); pr

3、otected void Button3_Click(object sender, EventArgs e) Response.Redirect(/人员修改.aspx); protected void Button4_Click(object sender, EventArgs e) Response.Redirect(/部门信息.aspx); protected void Button5_Click(object sender, EventArgs e) Response.Redirect(/工资信息.aspx); using System;using System.Collections;

4、using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;using System.Data.SqlClient;namespace WebAppli

5、cation1 public partial class 部门信息 : System.Web.UI.Page protected void Page_Load(object sender, EventArgs e) protected void Button1_Click(object sender, EventArgs e) bool find =false; SqlConnection con=new SqlConnection(server=localhost;Integrated Security=SSPI;database=人事管理系统); con.Open(); string cm

6、dstr=select * from 部门表; SqlDataAdapter da=new SqlDataAdapter(cmdstr,con); DataSet ds=new DataSet(); da.Fill(ds); for(int i=0;ids.Tables0.Rows.Count;i+) for(int j=0;jds.Tables0.Columns.Count;j+) String data=(ds.Tables0.Rowsij.ToString().Trim(); if(data=TextBox1.Text.Trim() TextBox2.Text=ds.Tables0 .R

7、owsi部门代码.ToString(); TextBox3.Text=ds.Tables0 .Rowsi部门名称.ToString(); find=true; if (find = false) Response.Write(window.alert(没有有关记录!); con.Close(); protected void Button2_Click(object sender, EventArgs e) Response.Redirect(/Default.aspx); using System;using System.Collections;using System.Configura

8、tion;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;using System.Data.SqlClient;using System.Data.SqlTypes;namespace Web

9、Application1 public partial class _Default : System.Web.UI.Page protected void Page_Load(object sender, EventArgs e) protected void TextBox1_TextChanged(object sender, EventArgs e) protected void Button1_Click(object sender, EventArgs e) SqlConnection con = new SqlConnection(server=localhost;Integra

10、ted Security=SSPI;database=人事管理系统); string strCount; strCount = select * from 人事表; con.Open(); SqlCommand com = new SqlCommand(strCount, con); SqlDataReader dr = com.ExecuteReader(); string strUsername = , strPassword = ; while (dr.Read() if (TextBox1.Text = dr编号.ToString()|TextBox2.Text = dr顾客密码.To

11、String() strUsername = dr编号.ToString(); strPassword = dr顾客密码.ToString(); break; dr.Close(); con.Close(); if (strUsername = ) Response.Write(alert(登录成功!);); return; protected void Button2_Click(object sender, EventArgs e) Response.Redirect(/Default.aspx); using System;using System.Collections;using S

12、ystem.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;using System.Data.SqlClient;namespace WebApplication1

13、 public partial class 工资信息 : System.Web.UI.Page protected void Page_Load(object sender, EventArgs e) protected void TextBox2_TextChanged(object sender, EventArgs e) protected void TextBox5_TextChanged(object sender, EventArgs e) protected void Button1_Click(object sender, EventArgs e) bool find = fa

14、lse; SqlConnection con = new SqlConnection(server=localhost;Integrated Security=SSPI;database=人事管理系统); con.Open(); string cmdstr = select * from 工资表; SqlDataAdapter da = new SqlDataAdapter(cmdstr, con); DataSet ds = new DataSet(); da.Fill(ds); for (int i = 0; i ds.Tables0.Rows.Count; i+) for (int j

15、= 0; j ds.Tables0.Columns.Count; j+) String data = (ds.Tables0.Rowsij.ToString().Trim(); if (data = TextBox1.Text.Trim() TextBox2.Text = ds.Tables0.Rowsi应发工资.ToString(); TextBox3.Text = ds.Tables0.Rowsi岗位津贴.ToString(); TextBox4.Text = ds.Tables0.Rowsi奖励.ToString(); TextBox5.Text = ds.Tables0.Rowsi保险

16、.ToString(); find = true; if (find = false) Response.Write(window.alert(没有有关记录!); con.Close(); protected void Button2_Click(object sender, EventArgs e) Response.Redirect(/Default.aspx); using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.

17、Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;using System.Data.SqlClient;namespace WebApplication1 public partial class 人员信息 : System.Web.UI.Page protected void Page_L

18、oad(object sender, EventArgs e) protected void Button1_Click(object sender, EventArgs e) Response.Redirect(/Default.aspx); protected void Button2_Click(object sender, EventArgs e) bool find =false; SqlConnection con = new SqlConnection(server=localhost;Integrated Security=SSPI;database=人事管理系统); con.

19、Open(); string cmdstr=select * from 工资表; SqlDataAdapter da=new SqlDataAdapter(cmdstr,con); DataSet ds=new DataSet(); da.Fill(ds); for(int i=0;ids.Tables0.Rows.Count;i+) for(int j=0;jds.Tables0.Columns.Count;j+) String data=(ds.Tables0.Rowsij.ToString().Trim(); if(data=TextBox1.Text.Trim() TextBox2.T

20、ext=ds.Tables0 .Rowsi应发工资.ToString(); TextBox3.Text=ds.Tables0 .Rowsi岗位津贴.ToString(); TextBox4.Text=ds.Tables0 .Rowsi奖励.ToString(); TextBox5.Text = ds.Tables0.Rowsi保险.ToString(); find=true; if (find = false) Response.Write(window.alert(没有有关记录!); con.Close(); using System;using System.Collections;usi

21、ng System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;using System.Data.SqlClient;namespace WebApplicat

22、ion1 public partial class 人员修改 : System.Web.UI.Page protected void Page_Load(object sender, EventArgs e) protected void TextBox5_TextChanged(object sender, EventArgs e) protected void Button2_Click(object sender, EventArgs e) SqlConnection con=new SqlConnection(server=localhost;Integrated Security=S

23、SPI;database=人事管理系统); con.Open(); string insert=insert into 人事表(员工号,姓名,性别,职称,学历) values(+ TextBox1.Text.Trim() +,+ + TextBox2.Text.Trim() +,+ TextBox3.Text.Trim() + , + TextBox4.Text.Trim() +,+ +TextBox5.Text.Trim() + +);Response.Write(insert);SqlCommand cmd1=new SqlCommand(insert,con);con.Close(); protected void Button1_Click(object sender, EventArgs e) Response.Redirect(/Default.aspx); protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)

展开阅读全文
相似文档                                   自信AI助手自信AI助手
猜你喜欢                                   自信AI导航自信AI导航
搜索标签

当前位置:首页 > 包罗万象 > 大杂烩

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        获赠5币

©2010-2024 宁波自信网络信息技术有限公司  版权所有

客服电话:4008-655-100  投诉/维权电话:4009-655-100

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :gzh.png    weibo.png    LOFTER.png 

客服