




已阅读5页,还剩3页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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;namespace 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); protected 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;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 WebApplication1 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 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.Text=ds.Tables0 .Rowsi部门代码.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.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;using System.Data.SqlTypes;namespace WebApplication1 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;Integrated 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用户密码.ToString() 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 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 WebApplication1 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 = false; 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 = 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保险.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.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_Load(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.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.Text=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;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 WebApplication1 public partial class 人员修改 : System.Web.UI.Page protect
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 第3单元-《思乡曲》说课稿-2025-2026学年粤教版初中音乐七年级下册
- 2025国际设备采购合同的当事人被称为甲乙双方
- 七年级生物上册 第一单元 第一章 第二节调查周边环境中的生物说课稿 (新版)新人教版
- 2025荆州计算机硬件采购与维护服务合同
- 音乐知识教学设计-2025-2026学年初中音乐七年级下册(2024)人音版(2024 主编:赵季平杜永寿)
- 潍坊事业单位笔试真题2025
- 2025合同模板:解除房屋租赁合同协议书范本
- 2025年通辽市国企考试真题
- 2025房屋租赁代理合同
- 2025绿源小区前期物业管理合同
- 麻醉科职责及管理制度
- 教科版五年级上册科学期中测试卷附答案(夺分金卷)
- 药房管理规章制度目录
- 中职第1课 社会主义在中国的确立和探索试题
- 2025年辽宁省交投集团招聘笔试参考题库含答案解析
- 2024年版高尔夫球场场地租赁及会员服务协议3篇
- 香港 信托合同范本
- 少先队活动课《民族团结一家亲-同心共筑中国梦》课件
- 阀门培训课件
- 《焦化机械设备维护检修标准》
- DB11∕T 899-2019 盆栽蝴蝶兰栽培技术规程
评论
0/150
提交评论