protected void imgBtnSave_Click(object sender, ImageClickEventArgs e)
        {
            string area = Hidden1.Value;
            employee emp = new employee();
            MEmployee objemp = new MEmployee();
            objemp.Name = txtName.Text.Trim().ToString();
            objemp.Sex = dlSex.Text.ToString();
            objemp.Birthday = Convert.ToDateTime(txtBirthday.Text.Trim());
            objemp.LearnDegree = txtLearn.Text.Trim().ToString();
            objemp.Post = txtPost.Text.Trim().ToString();
            objemp.Dept = dlDepartment.Text.ToString();
            objemp.Job = dlJob.Text.ToString();
            objemp.Tel = txtTel.Text.Trim().ToString();
            objemp.Address = area + " " + txtAddress.Text.Trim().ToString();
            objemp.Email = txtEmail.Text.Trim().ToString();
            objemp.State = dlState.Text.ToString();
            objemp.PhotoPath = path;

            bool bl = emp.InsertIntoEmployee(objemp);
            if (bl)
            {
                this.ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('员工基础信息添加成功!');</script>");
            }
            else
            {
                this.ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('员工基础信息添加失败!');</script>");
                if (IsUploadPhoto)
                {
                    try
                    {
                        FileInfo file = new FileInfo(Server.MapPath(path));
                        file.Delete();
                    }
                    catch { }
                    finally { }
                }
            }
        }