/// <summary>
 /// 修改科室
 /// </summary>
 public void ModifyDepartment()
 {
     try
     {
         if (this.tvDeptList1.SelectedNode.Level == 2)
         {
             Neusoft.HISFC.Models.Base.Department dept = this.tvDeptList1.SelectedNode.Tag as Neusoft.HISFC.Models.Base.Department;
             //通过科室编码获得科室名称
             Neusoft.HISFC.Models.Base.Department department = departmentManager.GetDeptmentById(dept.ID);
             if (department == null)
             {
                 MessageBox.Show("选中的科室不存在!");
             }
             ucDeptmentInfoPanel ucDeptInfo = new ucDeptmentInfoPanel(dept);
             Neusoft.FrameWork.WinForms.Classes.Function.PopForm.Text = "修改科室";
             DialogResult diaR = Neusoft.FrameWork.WinForms.Classes.Function.PopShowControl(ucDeptInfo);
             if (diaR == DialogResult.OK)
             {
                 parentTreeNode.Nodes.Clear();
                 deptsCache = new Hashtable();
                 LoadDeptAll();
             }
         }
     }
     catch (Exception a)
     {
         MessageBox.Show(a.Message);
     }
 }
        /// <summary>
        /// 添加科室
        /// </summary>
        public void AddNewDepartment()
        {
            try
            {
                ucDeptmentInfoPanel ucDeptInfo = new ucDeptmentInfoPanel();
                Neusoft.FrameWork.WinForms.Classes.Function.PopForm.Text = "添加科室";

                DialogResult di = Neusoft.FrameWork.WinForms.Classes.Function.PopShowControl(ucDeptInfo);
                if (di == DialogResult.OK)
                {
                    parentTreeNode.Nodes.Clear();
                    deptsCache = new Hashtable();
                    LoadDeptAll();
                }
                else if (di == DialogResult.Cancel)
                {
                    if (ucDeptInfo.tr)
                    {
                        parentTreeNode.Nodes.Clear();
                        deptsCache = new Hashtable();
                        LoadDeptAll();
                    }
                }
            }
            catch (Exception ee)
            {
                MessageBox.Show(ee.Message);
            }
        }