private void btnRefresh_Click(object sender, EventArgs e) { try { this.Cursor = GWMHIS.BussinessLogicLayer.Classes.PublicStaticFun.WaitCursor(); if (_dispenseModel == 1) { lstPatInfo.Items.Clear(); List <ZY_PatList> patList = IN_InterFace.QueryAllZYPat(); LstPatBind(patList); } else { LoadTLMessage(); } } catch (Exception error) { MessageBox.Show(error.Message); } finally { this.Cursor = DefaultCursor; } }
private void LoadTLMessage() { List <ZY_PatList> patList = IN_InterFace.QueryAllZYPat((int)_currentDeptId, _searchDeptId); ZY_PatList nullPat = new ZY_PatList(); nullPat.PatListID = 0; _recipeOrder = IN_InterFace.QueryRecipeOrder(nullPat, (int)_currentDeptId); dgrdRecipeInfo.DataSource = _recipeOrder; _allDispPats.Clear(); foreach (ZY_PatList pat in patList) { DataTable singleOrder = IN_InterFace.QueryRecipeOrder(pat, (int)_currentDeptId); _allDispPats.Add(pat.CureNo, singleOrder); } LstPatBind(patList); }
/// <summary> /// 加载发药消息头到科室节点 /// </summary> /// <param name="msgMasters">待发药消息头列表</param> /// <param name="deptNode">科室节点</param> private void AddMsgToDeptNode(int _searchDeptId, TreeNode deptNode) { List <HIS.Model.ZY_PatList> patlist = IN_InterFace.QueryAllZYPat(Convert.ToInt32(_currentDeptId), _searchDeptId); if (patlist != null) { foreach (ZY_PatList pat in patlist) { { TreeNode msgNode = new TreeNode(pat.PatientInfo.PatName + "__" + pat.CureNo + "__" + pat.PatientInfo.PatSex); msgNode.Tag = pat; deptNode.Nodes.Add(msgNode); } } } }