Exemplo n.º 1
0
        /// <summary>
        /// 初始化/刷新住院患者列表数
        /// </summary>
        void LoadInpatient()
        {
            // 业务层

            Neusoft.HISFC.BizProcess.Integrate.Terminal.Confirm confirmIntegrate = new Neusoft.HISFC.BizProcess.Integrate.Terminal.Confirm();
            // 患者树结点
            TreeNode treeNode = new TreeNode();

            treeNode.ImageIndex         = 0;
            treeNode.SelectedImageIndex = 1;
            // 结果
            Neusoft.HISFC.BizProcess.Integrate.Terminal.Result result = new Result();

            this.isLoad = true;

            // 获取树结点

            result = confirmIntegrate.GetOutpatientTreeNode(ref treeNode);
            if (result == Neusoft.HISFC.BizProcess.Integrate.Terminal.Result.Failure)
            {
                MessageBox.Show(confirmIntegrate.Err);
                this.isLoad = false;
                return;
            }
            // 添加结点数组到树
            this.treeView1.Nodes.Add(treeNode);
            // 展开所有树结点
            this.treeView1.ExpandAll();

            this.isLoad = false;
        }
Exemplo n.º 2
0
        /// <summary>
        /// 初始化/刷新门诊患者列表树
        /// </summary>
        public void LoadOutpatient()
        {
            Neusoft.FrameWork.WinForms.Classes.Function.ShowWaitForm("正在加载患者信息...");
            Application.DoEvents();
            // 业务层

            Neusoft.HISFC.BizProcess.Integrate.Terminal.Confirm confirmIntegrate = new Neusoft.HISFC.BizProcess.Integrate.Terminal.Confirm();
            // 患者树结点
            TreeNode treeNode = new TreeNode();

            treeNode.ImageIndex         = 2;
            treeNode.SelectedImageIndex = 2;
            // 结果
            Neusoft.HISFC.BizProcess.Integrate.Terminal.Result result = new Result();

            this.isLoad = true;

            // 获取树结点

            result = confirmIntegrate.GetOutpatientTreeNode(ref treeNode);
            if (result == Neusoft.HISFC.BizProcess.Integrate.Terminal.Result.Failure)
            {
                MessageBox.Show(confirmIntegrate.Err);
                this.isLoad = false;
                return;
            }
            this.treeView1.Nodes.Clear();
            // 添加结点数组到树
            this.treeView1.Nodes.Add(treeNode);
            // 展开所有树结点
            this.treeView1.ExpandAll();

            this.isLoad = false;
            Neusoft.FrameWork.WinForms.Classes.Function.HideWaitForm();
        }