您目前尚未登陆,请选择【登陆】或【注册
首页->行政办公->某公司人事工资管理系统源码>>FileManage/ResumeForm.aspx.cs>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:某公司人事工资管理系统源码
当前文件:文件类型 StaffSalaryManage/FileManage/ResumeForm.aspx.cs打开代码结构图
高亮显示
		            //文件名:ResumeForm.aspx.cs
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class FileManage_ResumeForm : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string MyForbidString = Session["MyForbid"].ToString();
        if (MyForbidString.IndexOf("A3") > 1)
        {
            Server.Transfer("~/SystemManage/AllErrorHelp.aspx");
        }
    }
    protected void Button2_Click(object sender, EventArgs e)
    {//新增员工工作简历信息
        this.SqlDataSource3.Insert();
    }
    protected void Button3_Click(object sender, EventArgs e)
    {//修改员工工作简历信息
        this.SqlDataSource3.Update();         
    }
    protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e)
    {//弹出删除操作确认对话框
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            Button MyButton = (Button)e.Row.FindControl("Button1");
            MyButton.OnClientClick = "return confirm('是否确认删除当前选择的记录?')";
        }
    }
    protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
    {//在控件中显示选择的记录
        this.TextBox2.Text = this.GridView1.SelectedRow.Cells[2].Text.ToString();
        this.TextBox3.Text = this.GridView1.SelectedRow.Cells[5].Text.ToString();
        this.TextBox4.Text = this.GridView1.SelectedRow.Cells[6].Text.ToString();
        this.TextBox5.Text = this.GridView1.SelectedRow.Cells[7].Text.ToString();
        this.TextBox6.Text = this.GridView1.SelectedRow.Cells[8].Text.ToString();
        this.TextBox7.Text = this.GridView1.SelectedRow.Cells[9].Text.ToString();
        this.TextBox8.Text = this.GridView1.SelectedRow.Cells[10].Text.ToString();
    }
}


        
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:某公司人事工资管理系统源码
51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号