asp 课程设计源代码-人事管理系统

上传人:zw****58 文档编号:42637172 上传时间:2018-06-02 格式:DOC 页数:31 大小:176.50KB
返回 下载 相关 举报
asp 课程设计源代码-人事管理系统_第1页
第1页 / 共31页
asp 课程设计源代码-人事管理系统_第2页
第2页 / 共31页
asp 课程设计源代码-人事管理系统_第3页
第3页 / 共31页
asp 课程设计源代码-人事管理系统_第4页
第4页 / 共31页
asp 课程设计源代码-人事管理系统_第5页
第5页 / 共31页
点击查看更多>>
资源描述

《asp 课程设计源代码-人事管理系统》由会员分享,可在线阅读,更多相关《asp 课程设计源代码-人事管理系统(31页珍藏版)》请在金锄头文库上搜索。

1、附录:源程序代码附录:源程序代码1).default.aspx无标题页#form1height: 213px;.style2width: 100%;height: 211px;.style6width: 99px;.style3text-align: center;人事信息管理系统用户名:用户密码:2)Default.aspx.csusing System; using System.Collections;using System.Configuration; using System.Data; using System.Linq; using System.Web; using Syst

2、em.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.OleDb;public partial class Default2 : System.Web.UI.Page protected void Page_Load(object sender, EventArgs e)this

3、.Title = “学生信息管理系统-登录“;protected void Button1_Click(object sender, EventArgs e)OleDbConnection conn = new OleDbConnection();string Id = TextBox1.Text;conn.ConnectionString = “provider=Microsoft.Jet.OleDb.4.0;“ + “Data Source=“ + Server.MapPath(“App_Data/student.mdb“);string StrSel = “Select * from m

4、essage where id=“ + TextBox1.Text + “and pwd=“ + TextBox2.Text + “;conn.Open();OleDbCommand com = new OleDbCommand(StrSel, conn);OleDbDataReader dr = com.ExecuteReader();dr.Read();if (dr.HasRows)Session“pass“ = TextBox1.Text;Server.Transfer(“glxt.aspx“);Response.Redirect(“glxt.aspx“);elseResponse.Re

5、direct(“Default.aspx“);conn.Close();3)Glxt.aspx无标题页body margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; background-color:#CCFFCC; .STYLE1 font-size: 12px; color: #FFFFFF; .STYLE3 font-size: 12px; color: #033d61; text-decoration:none; background-image:login_2.jpg; #leftfloat

6、:left;width:177px;.STYLE4float:left;clear:right; width:804px; background-image:content_1.jpg;height: 1032px;.style2width: 788px;height: 23px;.style3width: 817px;.style4height: 26px;.style5height: 91px;p.p0 margin:0pt; margin-bottom:0.0001pt; margin-bottom:0pt; margin-top:0pt; text-align:justify; fon

7、t-size:10.5000pt; font-family:Times New Roman; .style6width: 285px;height: 43px;.style7width: 100px;height: 43px;.style9width: 6px;#form1height: 307px;width: 1321px;.style10height: 43px;公司简介信息查询信息修改添加信 息密码修改退出登录记录xx商贸有限公司是国家外经贸局,海关总署批注的有进出口权的公司,公司有 雄厚的经济基础,强大的关系网络,完备的技术和人员配置,随着我国加入WTO,进出口贸易的日益增长,为了进

8、一步满足贸易商、进出口商的需求,我公 司为商家精心打造了门到门的一站式服务。我们在中国大陆有很完善的进出口服务系统, 已经和多家船公司,航空公司建立了密切的合作关系,可以为您的货物出口各国提供最佳 的航运、空运路线以及报关完税、代买保险等一系列服务,同时我公司在深圳有一个很完 善的配置仓库可以满足您的货物在深圳中转的需要,可以为您验收货源、散货拼柜,选择 合适的配送方式,安全快捷地送达货物。我们有 很广泛的商品信息网络,合作伙伴遍及世界各地,已经成为欧美许多贸易商在中国的全权 代理。我们在“创造最佳服务”的经营理念指导下,经过全体员工的不懈努力,已经取得了令人瞩目的成绩。 我公司拥有一支业务精

9、通,操作能力强的骨干队伍。在为客人提供多种物流解决方案的同 时,还可以为海外客户开拓中国市场寻找货源,验收货物,报关定仓解除进出口的一切后 顾之忧。提供专业化、个性化、全天候、全方位的服务。信息修改4)Glxt.aspx.csusing 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

10、.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using System.Data.OleDb;public partial class glxt : System.Web.UI.Page Panel a = new Panel6;protected void Page_Init(object sender, EventArgs e)this.Title = “人事信息管理系统“;a0 = Panel5;a1 =

11、 Panel6;a2 = Panel7;a3 = Panel8;a4 = Panel9;a5 = Panel10;a4.Visible = false;a5.Visible = false;Label1.Text = “今天的日期是“ + DateTime.Now.ToLongDateString() + DateTime.Now.ToLongTimeString();Label2.Text = “你好,“ + (string)Session“pass“;protected void LinkButton1_Click(object sender, EventArgs e)if (Panel1

12、.Visible = false)Panel1.Visible = true;elsePanel1.Visible = false;protected void LinkButton2_Click(object sender, EventArgs e)if (Panel2.Visible = false)Panel2.Visible = true;elsePanel2.Visible = false;protected void LinkButton3_Click(object sender, EventArgs e)if (Panel3.Visible = false)Panel3.Visi

13、ble = true;elsePanel3.Visible = false;protected void LinkButton4_Click(object sender, EventArgs e)if (Panel4.Visible = false)Panel4.Visible = true;elsePanel4.Visible = false;protected void LinkButton6_Click(object sender, EventArgs e)for (int i = 0; i alert(密码修改成功)“);protected void Button2_Click(obj

14、ect sender, EventArgs e)TextBox1.Text = “;TextBox2.Text = “;protected void LinkButton17_Click(object sender, EventArgs e)for (int i = 0; i alert(必须输入编号!);“);return;OleDbConnection conn = new OleDbConnection();conn.ConnectionString = “Provider=Microsoft.Jet.OleDb.4.0;“+“Data Source=“ + Server.MapPath

15、(“App_Data/student.mdb“);string SqlSelect = “select id,name,sex,academy,class,phone,adress,status from message where id=“ + TextBoxF.Text + “;OleDbDataAdapter da = new OleDbDataAdapter(SqlSelect, conn);DataTable dt = new DataTable();da.Fill(dt);GridView1.DataSource = dt;GridView1.DataBind();conn.Clo

16、se();protected void TextBoxF_TextChanged(object sender, EventArgs e)protected void LinkButton20_Click(object sender, EventArgs e) 5)Add.aspx添加记录.style1width: 61%;height: 193px;.style2height: 23px;.style3height: 23px;width: 74px;.style4width: 74px;.style5height: 23px;width: 194px;.style6width: 194px;.style7height: 23px;width: 114px;.style8width: 114px;添加

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 高等教育 > 其它相关文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号