Пример #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        // Session["empid"]="02069";

        if (Session["empid"] == null)
        {   // 给Session["empid"]
            InitUser.GetLoginUserInfo(Page, Request.ServerVariables["LOGON_USER"]);
        }
        if (!Page.IsPostBack)
        {
            BaseFun   fun = new BaseFun();
            DataTable dt  = fun.getEmpInfo(Session["empid"].ToString());
            this.txtXingMing.Value  = dt.Rows[0]["empname"].ToString();
            this.txtEmpId.Value     = dt.Rows[0]["EMPLOYEEID"].ToString();
            this.txtRiQi.Value      = DateTime.Now.ToShortDateString();
            this.txtBaoJia_no.Value = Request.QueryString["Baojia_no"];
            this.txtTurns.Value     = Request.QueryString["turns"];

            //历史记录
            ShowFile();
        }
    }