コード例 #1
0
        /// <summary>
        /// 初始化树型列表
        /// </summary>
        /// <returns></returns>
        protected int InitDeptTree()
        {
            Neusoft.HISFC.BizProcess.Integrate.Manager deptManager = new Neusoft.HISFC.BizProcess.Integrate.Manager();

            if (this.isShowNurseCell)
            {
                ArrayList alNurse = deptManager.GetDeptmentIn(Neusoft.HISFC.Models.Base.EnumDepartmentType.N);
                if (alNurse == null)
                {
                    MessageBox.Show(Language.Msg("显示病区列表发生错误"));
                    return(-1);
                }

                return(this.AddDataToTree(alNurse));
            }
            else
            {
                ArrayList alDept = deptManager.GetDeptmentIn(Neusoft.HISFC.Models.Base.EnumDepartmentType.I);
                if (alDept == null)
                {
                    MessageBox.Show(Language.Msg("显示科室列表发生错误"));
                    return(-1);
                }

                return(this.AddDataToTree(alDept));
            }
        }