/// <summary> /// 窗体加载 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ShuXuePG_Load(object sender, EventArgs e) { try { cmbYiShiQM.DataSource = _DataDicDal.GetUserByType(1); cmbYiShiQM.DisplayMember = "user_name"; BindPatInfo(); // BindPatMZInfo(); bindShuXueinfo(); string jurisdiction = new UserRoleBll().GetUserRole(Program.customer); if (jurisdiction.Contains("8")) { btnUnlock.Visible = true; } else { btnUnlock.Visible = false; } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }