/// <summary> /// 住院就诊记录查询 /// </summary> public void m_mthQueryChargesInfo() { if (string.IsNullOrEmpty(this.m_objViewer.cmbJZJLH.Text.Trim()) && string.IsNullOrEmpty(this.m_objViewer.cmbJSXH.Text.Trim())) { MessageBox.Show("【就诊记录号】与【社保结算序号】不能同时为空"); return; } List <clsChargeInfoZY_VO> lstChargeInfo = new List <clsChargeInfoZY_VO>(); clsDGExtra_VO objDGyb = new clsDGExtra_VO(); objDGyb.JZJLH = this.m_objViewer.cmbJZJLH.Text.Trim(); objDGyb.SDYWH = this.m_objViewer.cmbJSXH.Text.Trim(); objDGyb.JBR = this.m_objViewer.LoginInfo.m_strEmpNo; objDGyb.YYBH = clsYBPublic_cs.m_strReadXML("DGCSZYYB", "YYBHZY", "AnyOne"); objDGyb.CBDTCQBM = ""; long lngRes = clsYBPublic_cs.m_lngFunSP1207(objDGyb, out lstChargeInfo); this.m_objViewer.lsvChargeDetails.Items.Clear(); this.m_mthClearTextBox(); if (lstChargeInfo.Count > 0) { ListViewItem objItem = null; clsChargeInfoZY_VO objChargeInfo = new clsChargeInfoZY_VO(); for (int i = 0; i < lstChargeInfo.Count; i++) { objItem = new ListViewItem(objChargeInfo.GMSFHM); objChargeInfo = lstChargeInfo[i]; objItem.SubItems[0].Text = objChargeInfo.GMSFHM; objItem.SubItems.Add(objChargeInfo.XM); objItem.SubItems.Add(objChargeInfo.JZYY); objItem.SubItems.Add(objChargeInfo.ZYH); objItem.SubItems.Add(objChargeInfo.RYKS); objItem.SubItems.Add(objChargeInfo.YYRYKS); objItem.SubItems.Add(objChargeInfo.CYKS); objItem.SubItems.Add(objChargeInfo.YYCYKS); objItem.SubItems.Add(objChargeInfo.CWH); objItem.SubItems.Add(objChargeInfo.RYRQ); objItem.SubItems.Add(objChargeInfo.CYRQ); objItem.SubItems.Add(objChargeInfo.ZYLB); objItem.Tag = objChargeInfo; this.m_objViewer.lsvChargeDetails.Items.Add(objItem); } this.m_objViewer.lsvChargeDetails.Select(); } }
/// <summary> /// 绑定数据 /// </summary> public void m_mthFillAllData() { if (this.m_objViewer.lsvChargeDetails.SelectedItems.Count > 0) { clsChargeInfoZY_VO objChargeVO = this.m_objViewer.lsvChargeDetails.SelectedItems[0].Tag as clsChargeInfoZY_VO; this.m_objViewer.txtGMSFHM.Text = objChargeVO.GMSFHM; this.m_objViewer.txtXM.Text = objChargeVO.XM; this.m_objViewer.txtJZYY.Text = objChargeVO.JZYY; this.m_objViewer.txtZYH.Text = objChargeVO.ZYH; this.m_objViewer.txtRYKS.Text = objChargeVO.RYKS; this.m_objViewer.txtYYRYKS.Text = objChargeVO.YYRYKS; this.m_objViewer.txtCYKS.Text = objChargeVO.CYKS; this.m_objViewer.txtYYCYKS.Text = objChargeVO.YYCYKS; this.m_objViewer.txtCWH.Text = objChargeVO.CWH; this.m_objViewer.txtRYRQ.Text = objChargeVO.RYRQ; this.m_objViewer.txtCYRQ.Text = objChargeVO.CYRQ; this.m_objViewer.txtZYLB.Text = objChargeVO.ZYLB; this.m_objViewer.txtJZLB.Text = objChargeVO.JZLB; this.m_objViewer.txtRYZD.Text = objChargeVO.RYZD; this.m_objViewer.txtCYZD.Text = objChargeVO.CYZD; this.m_objViewer.txtWSBZ.Text = objChargeVO.WSBZ; this.m_objViewer.txtZQQRQK.Text = objChargeVO.ZQQRQK; this.m_objViewer.txtZQQRSBH.Text = objChargeVO.ZQQRSBH; this.m_objViewer.txtLXDH.Text = objChargeVO.LXDH; this.m_objViewer.txtBZ.Text = objChargeVO.BZ; this.m_objViewer.txtJBR.Text = objChargeVO.JBR; this.m_objViewer.txtJZJLH.Text = objChargeVO.JZJLH; this.m_objViewer.txtZYTS.Text = objChargeVO.ZYTS; this.m_objViewer.txtZYZJE.Text = objChargeVO.ZYZJE; this.m_objViewer.txtSBZFJE.Text = objChargeVO.SBZFJE; this.m_objViewer.txtGWYBZJE.Text = objChargeVO.GWYBZJE; this.m_objViewer.txtJZJE.Text = objChargeVO.JZJE; this.m_objViewer.txtGRZFJE.Text = objChargeVO.GRZFJE; this.m_objViewer.txtCYBZ.Text = objChargeVO.CYBZ; this.m_objViewer.txtJSQSRQ.Text = objChargeVO.JSQSRQ; this.m_objViewer.txtJSZZRQ.Text = objChargeVO.JSZZRQ; this.m_objViewer.txtJSSJ.Text = objChargeVO.JSSJ; this.m_objViewer.txtSDYWH.Text = objChargeVO.SDYWH; this.m_objViewer.txtZYSHJG.Text = objChargeVO.ZYSHJG; this.m_objViewer.txtCYYY.Text = objChargeVO.CYYY; this.m_objViewer.txtMZYFBXJE.Text = objChargeVO.MZYFBXJE; this.m_objViewer.txtDBYLJZJ.Text = objChargeVO.DBYLJZJ; this.m_objViewer.txtZTJSBZ.Text = objChargeVO.ZTJSBZ; this.m_objViewer.txtYSGH.Text = objChargeVO.YSGH; this.m_objViewer.txtFPHM.Text = objChargeVO.FPHM; this.m_objViewer.txtZDZMHM.Text = objChargeVO.ZDZMHM; this.m_objViewer.txtJSBZ.Text = objChargeVO.JSBZ; this.m_objViewer.txtCBDTCQBM.Text = objChargeVO.CBDTCQBM; this.m_objViewer.txtBCYLTCZF1.Text = objChargeVO.BCYLTCZF1; this.m_objViewer.txtBCYLTCZF2.Text = objChargeVO.BCYLTCZF2; this.m_objViewer.txtBCYLTCZF3.Text = objChargeVO.BCYLTCZF3; this.m_objViewer.txtBCYLTCZF4.Text = objChargeVO.BCYLTCZF4; this.m_objViewer.txtQTZHIFU.Text = objChargeVO.QTZHIFU; this.m_objViewer.txtRYDYZDBY.Text = objChargeVO.RYDYZDBY; this.m_objViewer.txtJSDYZDBY.Text = objChargeVO.JSDYZDBY; } }