Пример #1
0
 /// <summary>
 /// 获取所有的值班医生
 /// </summary>
 /// <param name="role_id"></param>
 private void GetAllDutyDoctors(string role_id)
 {
     advSelectDoctors.Nodes.Clear();
     for (int i = 0; i < Userinfos.Count; i++)
     {
         UserInfo tempuinfo = (UserInfo)Userinfos[i];
         if (tempuinfo.Role_id == role_id)
         {
             for (int j = 0; j < tempuinfo.Usernodes.Count; j++)
             {
                 DevComponents.AdvTree.Node node = (DevComponents.AdvTree.Node)tempuinfo.Usernodes[j];
                 node.CheckBoxVisible = true;
                 node.Text            = tempuinfo.Usernodes[j].Text;
                 node.Name            = tempuinfo.Usernodes[j].Name;
                 node.ImageIndex      = 0;
                 advSelectDoctors.Nodes.Add(node.Copy());
             }
         }
     }
 }