private void btn_select_Click(object sender, EventArgs e) { People people = new People(); people = PeopleMSHelper.Select_people_by_usid(txt_usid.Text.Trim()); if (people == null || people.Userid == null) { MessageBox.Show("请输入用户编号再点击选择"); return; } txt_usid.Text = people.Userid; txt_usname.Text = people.Name; if (people.Sex.Equals("男")) { rbt_sex1.Checked = true; } else { rbtn_sex2.Checked = true; } dt_birth.Value = people.Birth; txt_idnumber.Text = people.Idnumber; txt_local.Text = people.Local; txt_home.Text = people.Home_address; txt_phone.Text = people.Phone; txt_other.Text = people.Other; }
private void FormAddPersonalMsg_Load(object sender, EventArgs e) { txt_usid.ReadOnly = true; txt_usid.Text = user.Userid; People peo = PeopleMSHelper.Select_people_by_usid(user.Userid); init_msg(peo); }
private void btn_fresh_Click(object sender, EventArgs e) { People peo = PeopleMSHelper.Select_people_by_usid(user.Userid); init_msg(peo); }