Ejemplo n.º 1
0
 /// <summary>
 /// 绑定用户数据,只在已存在数据时候使用
 /// 
 /// </summary>
 private void _blindDataForForm()
 {
     UserManage um = new UserManage();
     DataRow dr = um.getUserProfile(user);
     //基本信息 1->11
     int i = 1;
     this.Name.Text = dr[i++].ToString();
     this.Phone.Text = dr[i++].ToString();
     this.Gender.Text = dr[i++].ToString();
     this.Email.Text = dr[i++].ToString();
     this.Province.SelectedValue = dr[i++].ToString();
     this.University.Text = dr[i++].ToString();
     this.Major.Text = dr[i++].ToString();
     this.English.Text = dr[i++].ToString();
     this.Skill.Text = dr[i++].ToString();
     this.IdentityID.Text = dr[++i].ToString();
     //其他信息 14->64
     i = 14;
     this.universityone.Value=dr[i++].ToString();
     this.degreeone.Value=dr[i++].ToString();
     this.lodone.Value = dr[i++].ToString();
     this.academicdurationone.Value = dr[i++].ToString();
     this.majorone.Value = dr[i++].ToString();
     this.minorone.Value = dr[i++].ToString();
     this.gpaone.Value = dr[i++].ToString();
     this.universitytwo.Value = dr[i++].ToString();
     this.degreetwo.Value = dr[i++].ToString();
     this.lodtwo.Value = dr[i++].ToString();
     this.academicdurationtwo.Value = dr[i++].ToString();
     this.majortwo.Value = dr[i++].ToString();
     this.minortwo.Value = dr[i++].ToString();
     this.gpatwo.Value = dr[i++].ToString();
     this.universitythree.Value = dr[i++].ToString();
     this.degreethree.Value = dr[i++].ToString();
     this.lodthree.Value = dr[i++].ToString();
     this.academicdurationthree.Value = dr[i++].ToString();
     this.majorthree.Value = dr[i++].ToString();
     this.minorthree.Value = dr[i++].ToString();
     this.gpathree.Value = dr[i++].ToString();
     this.projectname.Value = dr[i++].ToString();
     this.projectdescription.Value = dr[i++].ToString();
     this.projectduration.Value = dr[i++].ToString();
     this.papername.Value = dr[i++].ToString();
     this.journal.Value=dr[i++].ToString();
     this.advisor.Value=dr[i++].ToString();
     this.workdescription.Value=dr[i++].ToString();
     this.raduration.Value=dr[i++].ToString();
     this.jobtitle.Value=dr[i++].ToString();
     this.company.Value=dr[i++].ToString();
     this.responsibility.Value=dr[i++].ToString();
     this.weduration.Value=dr[i++].ToString();
     this.eaname.Value=dr[i++].ToString();
     this.eanameother.Value=dr[i++].ToString();
     this.eatitle.Value=dr[i++].ToString();
     this.awardnameone.Value=dr[i++].ToString();
     this.awardlevelone.Value=dr[i++].ToString();
     this.awarddateone.Value=dr[i++].ToString();
     this.awardnametwo.Value=dr[i++].ToString();
     this.awardleveltwo.Value=dr[i++].ToString();
     this.awarddatetwo.Value=dr[i++].ToString();
     this.awardnamethree.Value=dr[i++].ToString();
     this.awardlevelthree.Value=dr[i++].ToString();
     this.awarddatethree.Value=dr[i++].ToString();
     this.languagename.Value=dr[i++].ToString();
     this.languageproficiency.Value=dr[i++].ToString();
     this.testname.Value=dr[i++].ToString();
     this.testnameother.Value=dr[i++].ToString();
     this.testscore.Value=dr[i++].ToString();
     this.codingablity.Value=dr[i++].ToString();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 绑定用户数据,只在已存在数据时候使用
 /// </summary>
 private void _blindDataForForm()
 {
     UserManage um = new UserManage();
     DataRow dr = um.getUserProfile(user);
     this.Name.Text = dr[1].ToString();
     this.Phone.Text = dr[2].ToString();
     this.Gender.Text = dr[3].ToString();
     this.Email.Text = dr[4].ToString();
     this.Province.SelectedValue = dr[5].ToString();
     this.University.Text = dr[6].ToString();
     this.Major.Text = dr[7].ToString();
     this.English.Text = dr[8].ToString();
     this.Skill.Text = dr[9].ToString();
     this.IdentityID.Text = dr[11].ToString();
 }