JobsOnline/Account/frmResume.aspx.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SqlDataClass;

public partial class Account_frmResume : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            int id = 0;
            if (Session["userID"] != null)
            {
                id = Convert.ToInt32(Session["userID"]);
                TextBind(id);
            }
            hideid.Value = id.ToString();
        }
    }

    private void TextBind(int sid)
    {
        SelfInformation sf = BaseData.Instanse.SelectSelfInformationBySbh(sid);
        if (sf != null)
        {
            txtsname.Text = sf.sname;
            dsex.Text = sf.sex;
            txtdate.Text = Convert.ToDateTime(sf.brithdate).ToString("yyyy-MM-dd");
            txtbrithPlace.Text = sf.brithPlace;
            txtMajor.Text = sf.major;
            txtdegree.Text = sf.degree;
            txtSelfIntroduction.Text = sf.selfintroduction;
            txtWorkHour.Text = sf.workhour.ToString();
            txtWorkdetail.Text = sf.workdetail;
            txtselfability.Text = sf.selfabiity;
        }
        SelfContact sc = BaseData.Instanse.SelectSelfContactBySbh(sid);
        if (sc != null)
        {
            txtAddress.Text = sc.address;
            txtSelfPhone.Text = sc.selfPhone;
            txtQQ.Text = sc.QQ;
            txtEmail.Text = sc.email;
            txtotherContract.Text = sc.otherContract;
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。