private void 教师_个人信息1_Load(object sender, EventArgs e) { string str = uid; label5.Text = str; Sex.Enabled = false; Grade.Enabled = false; Major.Enabled = false; College.Enabled = false; Guidance.Enabled = false; Number.Enabled = false; Title.Enabled = false; if (!str.Equals("")) { BLL.Message b_mess = new BLL.Message(); MODEL.Message message = new MODEL.Message(); message.Id = str; b_mess.select_info(message); sName.Text = message.Name; Sex.Text = message.Sex; Phone.Text = message.Phone; Major.Text = message.Major; Grade.Text = message.Grade; Email.Text = message.Email; College.Text = message.College; Number.Text = message.Number.ToString(); Title.Text = message.Title; pwd.Text = message.Psd; Guidance.Text = message.Gudiance; } }
private void 学生_个人信息管理_Load(object sender, EventArgs e) { string str = this.uid; label5.Text = str; sName.Enabled = false; Sex.Enabled = false; College.Enabled = false; Grade.Enabled = false; Class.Enabled = false; Major.Enabled = false; if (str != null || !str.Equals("")) { BLL.Message b_mess = new BLL.Message(); Model.Message message = new Model.Message(); message.Id = str; b_mess.select_info(message); sName.Text = message.Name; Sex.Text = message.Sex; Phone.Text = message.Phone; Major.Text = message.Major; Grade.Text = message.Grade; Email.Text = message.Email; College.Text = message.College; Class.Text = message.Class; Intro.Text = message.Introduction; } }