/// <summary>
        /// 获取留观患者信息
        /// </summary>
        /// <returns></returns>
        private int LoadPatient()
        {
            if (this.tvPatient.Nodes.Count > 0)
            {
                tvPatient.Nodes.Clear();
            }
            TreeNode root = new TreeNode("留观患者");

            root.ImageIndex = 0;
            Neusoft.HISFC.Models.Base.Employee employee = Neusoft.FrameWork.Management.Connection.Operator as Neusoft.HISFC.Models.Base.Employee;

            ArrayList al = registerIntegrate.PatientQueryByNurseCell(employee.Dept.ID, Neusoft.HISFC.Models.Base.EnumInState.I.ToString());

            if (al == null)
            {
                MessageBox.Show("查询留观患者信息失败!" + registerIntegrate.Err);
                return(-1);
            }
            foreach (Neusoft.HISFC.Models.Registration.Register r in al)
            {
                TreeNode node = new TreeNode(r.Name);
                node.ImageIndex         = 6;
                node.SelectedImageIndex = 7;
                node.Tag = r;
                root.Nodes.Add(node);
            }
            this.tvPatient.Nodes.Add(root);
            this.tvPatient.ExpandAll();
            return(1);
        }
Пример #2
0
        //{1C0814FA-899B-419a-94D1-789CCC2BA8FF}
        /// <summary>
        /// 加载留观患者
        /// </summary>
        private void GetEnEmergencyPatient(Neusoft.FrameWork.WinForms.Controls.NeuTreeView tree)
        {
            TreeNode nodeRoot = new TreeNode("留观患者");//留观患者根

            nodeRoot.ImageIndex         = 3;
            nodeRoot.SelectedImageIndex = 2;
            nodeRoot.Tag = "Observance";
            ArrayList alPatient = regManagement.PatientQueryByNurseCell(this.employee.Dept.ID);

            if (alPatient == null)
            {
                MessageBox.Show("加载留观患者信息失败!");
                return;
            }
            if (alPatient.Count == 0)
            {
                return;
            }

            foreach (Neusoft.HISFC.Models.Registration.Register r in alPatient)
            {
                AddPatientToRoot(nodeRoot, r);
            }
            tree.Nodes.Add(nodeRoot);
        }