/// <summary> /// 刷新列表 /// </summary> public void RefreshList() { this.treeView1.Nodes[0].Nodes.Clear(); this.treeView1.Nodes[1].Nodes.Clear(); Neusoft.HISFC.Models.Base.Employee p = Neusoft.FrameWork.Management.Connection.Operator as Neusoft.HISFC.Models.Base.Employee; if (p == null) { return; } ArrayList al; if (this.groupInfo == null || this.groupInfo.ID == "") { al = manager.GetList(p.Dept.ID, 1);//获得科室 } else { al = manager.GetList(this.groupInfo.ID, p.Dept.ID, 1); } if (al == null) { MessageBox.Show(manager.Err); return; } foreach (Neusoft.HISFC.Models.Base.UserText obj in al) { TreeNode node = new TreeNode(obj.Name);//+"【"+obj.Text+"】"); try { node.ImageIndex = 2; node.SelectedImageIndex = 3; } catch { } node.Tag = obj; this.treeView1.Nodes[1].Nodes.Add(node);//科室 } if (this.groupInfo == null || this.groupInfo.ID == "") { al = manager.GetList(p.ID, 0);//获得个人 } else { al = manager.GetList(this.groupInfo.ID, p.ID, 0); } if (al == null) { MessageBox.Show(manager.Err); return; } foreach (Neusoft.HISFC.Models.Base.UserText obj in al) { TreeNode node = new TreeNode(obj.Name); try { node.ImageIndex = 2; node.SelectedImageIndex = 3; } catch { } node.Tag = obj; this.treeView1.Nodes[0].Nodes.Add(node);//个人 } try { ShowGroup(); } catch { } this.treeView1.Nodes[0].Expand(); this.treeView1.Nodes[1].Expand(); //在刷新树的时候同时刷新外部数据 路志鹏 2007-5-9 this.OnChanged(); }
/// <summary> /// 刷新列表 /// </summary> public void RefreshList() { this.nodeSign.Nodes.Clear(); this.nodeRelation.Nodes.Clear(); this.nodeWord.Nodes.Clear(); //获得当前操作员工 Neusoft.HISFC.Models.Base.Employee p = manager.Operator as Neusoft.HISFC.Models.Base.Employee; if (p == null) { return; } #region 获得常用符号列表 ArrayList al = manager.GetList("SIGN", 2);//获得常用符号列表 if (al == null) { MessageBox.Show(manager.Err); return; } foreach (Neusoft.HISFC.Models.Base.UserText obj in al) { TreeNode node = new TreeNode(obj.Name); try { node.ImageIndex = 1; node.SelectedImageIndex = 2; } catch { } node.Tag = obj; this.nodeSign.Nodes.Add(node);//符号 } #endregion #region 获得常用单词 al = manager.GetList("WORD", 2);//获得常用单词列表 if (al == null) { MessageBox.Show(manager.Err); return; } foreach (Neusoft.HISFC.Models.Base.UserText obj in al) { TreeNode node = new TreeNode(obj.Name); try { node.ImageIndex = 1; node.SelectedImageIndex = 2; } catch { } node.Tag = obj; this.nodeWord.Nodes.Add(node);//单词 } #endregion #region 相关信息 if (this.myInpatientno == "") { al = manager.GetList("RELATION", 2);//获得常用相关信息列表 if (al == null) { MessageBox.Show(manager.Err); return; } foreach (Neusoft.HISFC.Models.Base.UserText obj in al) { TreeNode node = new TreeNode(obj.Name); try { node.ImageIndex = 1; node.SelectedImageIndex = 2; } catch { } node.Tag = obj; this.nodeRelation.Nodes.Add(node);//相关信息 } } else { this.SetPatient(this.myInpatientno, this.myTable, this.iSql); } #endregion this.treeView1.ExpandAll(); }
public System.Collections.ArrayList UserTextGetList(string type, int usertype) { Neusoft.HISFC.BizLogic.Manager.UserText manager = new Neusoft.HISFC.BizLogic.Manager.UserText(); this.SetDB(manager); return(manager.GetList(type, usertype)); }