private void SetYsbm() { DataSet ds = null; using (gjtEmrPatients.emrPatients ep = new gjtEmrPatients.emrPatients()) { ds = ep.GetValuateNowYsm(lblBH.Text); if (ds != null && ds.Tables.Count != 0 && ds.Tables[0].Rows.Count != 0) { lblZz.Text = ds.Tables[0].Rows[0][1].ToString(); //主任医师ChiefDoctor lblZg.Text = ds.Tables[0].Rows[0][0].ToString(); //主管医师 lblZr.Text = ds.Tables[0].Rows[0][2].ToString(); //责任医师 } } }