private void DoctorForm_Load(object sender, EventArgs e) { this.Text = p.b_name + " 信息修改"; if (mode == 3) { Five f = AllValue.Mapping <Five, Person>(p); f.f_eye_op = AllValue.loginUser.m_name; f.f_oral_op = AllValue.loginUser.m_name; f.f_oto_op = AllValue.loginUser.m_name; propertyGrid1.SelectedObject = f; } else if (mode == 2) { propertyGrid1.SelectedObject = AllValue.Mapping <Basic_info, Person>(p); } else if (mode == 4) { Wai w = AllValue.Mapping <Wai, Person>(p); w.w_advice = AllValue.loginUser.m_name; propertyGrid1.SelectedObject = w; } else if (mode == 5) { Nei n = AllValue.Mapping <Nei, Person>(p); n.n_advice = AllValue.loginUser.m_name; propertyGrid1.SelectedObject = n; } else if (mode == 6) { Other o = AllValue.Mapping <Other, Person>(p); o.o_advice = AllValue.loginUser.m_name; propertyGrid1.SelectedObject = o; } else if (mode == 7) { Summary s = AllValue.Mapping <Summary, Person>(p); s.s_hosi_sign = AllValue.loginUser.m_hospital; s.s_sign = AllValue.loginUser.m_name; propertyGrid1.SelectedObject = s; } else if (mode == 8) { ReCheck c = AllValue.Mapping <ReCheck, Person>(p); c.c_sign = AllValue.loginUser.m_hospital; propertyGrid1.SelectedObject = c; } else if (mode == 1) { SuperEdit sp = AllValue.Mapping <SuperEdit, Person>(p); propertyGrid1.SelectedObject = sp; } }