/// <summary> /// 初始化 /// </summary> protected void Init() { ArrayList al = Neusoft.HISFC.BizProcess.Factory.Function.IntegrateEPR.GetQCName(); if (al == null) { MessageBox.Show(Neusoft.HISFC.BizProcess.Factory.Function.IntegrateEPR.Err); return; } this.listBox1.Items.Clear(); for (int i = 0; i < al.Count; i++) { this.listBox1.Items.Add(al[i]); } try { Neusoft.FrameWork.Management.Interface ISql = new Neusoft.FrameWork.Management.Interface(); string fileName = TemplateDesignerHost.Function.SystemPath + "PATIENTINFO.xml"; ISql.ReadXML(fileName); this.listBox2.Items.Clear(); for (int i = 0; i < ISql.Count; i++) { if (ISql.GetInfo(i).showType == "1") { this.listBox2.Items.Add(ISql.GetInfo(i)); } } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
/// <summary> /// 设置患者信息 /// </summary> /// <param name="inpatientNo"></param> /// <param name="table"></param> public void SetPatient(string inpatientNo, string table, Neusoft.FrameWork.Management.Interface ISql) { // Neusoft.HISFC.Management.File.DataFile datafileManager = new Neusoft.HISFC.Management.File.DataFile(); this.nodeRelation.Nodes.Clear(); this.nodeNormal.Nodes.Clear(); myInpatientno = inpatientNo; myTable = table; ArrayList al = Neusoft.HISFC.BizProcess.Factory.Function.IntegrateManager.GetUserTextList("RELATION", 2);//获得常用相关信息列表 if (al == null) { MessageBox.Show(Neusoft.HISFC.BizProcess.Factory.Function.IntegrateManager.Err); return; } foreach (Neusoft.HISFC.Models.Base.UserText obj in al) { TreeNode node = new TreeNode(obj.Name); string sName = obj.Name; //去掉[] if (sName.Substring(0, 1) == "[" && sName.Substring(sName.Length - 1) == "]") { sName = sName.Substring(1, sName.Length - 2); } //获得节点数值 string sValue = Neusoft.HISFC.BizProcess.Factory.Function.IntegrateEPR.GetNodeValueFormDataStore(table, inpatientNo, sName); if (sValue == "-1") { sValue = ""; } obj.Text = sValue; try { node.ImageIndex = 1; node.SelectedImageIndex = 2; } catch { } node.Tag = obj; this.nodeRelation.Nodes.Add(node);//相关信息 } if (ISql == null) { return; } this.iSql = ISql; for (int j = 0; j < ISql.Count; j++) { Neusoft.FrameWork.Models.NeuInfo obj = ISql.GetInfo(j); Neusoft.HISFC.Models.Base.UserText objText = new Neusoft.HISFC.Models.Base.UserText(); objText.Name = obj.Name; objText.Text = obj.value; if (obj.showType.Trim() == "1" && obj.type == Neusoft.FrameWork.Models.NeuInfo.infoType.Temp) { TreeNode node = new TreeNode(obj.Name); try { node.ImageIndex = 1; node.SelectedImageIndex = 2; } catch { } node.Tag = objText; this.nodeNormal.Nodes.Add(node);//常用信息 } } }