/// <summary> /// 浏览病区床位信息 /// </summary> public void m_mthFindArea() { clsDcl_Charge objCharge = new clsDcl_Charge(); DataTable dt = new DataTable(); long l = objCharge.m_lngGetDeptArea(out dt, 2); if (l == 0) { return; } frmAreaBedInfo f = new frmAreaBedInfo(dt, 0); if (f.ShowDialog() == DialogResult.OK) { this.m_objViewer.RegisterID = f.regid; this.m_objViewer.PatientID = f.pid; this.m_objViewer.Zyh = f.Zyh; this.m_objViewer.Zycs = f.Zycs; this.m_objViewer.PatName = f.patname; this.m_objViewer.InType = 1; clsPublic.m_mthWriteParm(f.regid, f.Zyh, f.CardNo); this.m_objViewer.DialogResult = DialogResult.OK; } }
private void frmAidChooseDept_Load(object sender, EventArgs e) { clsDcl_Charge objCharge = new clsDcl_Charge(); DataTable dt; long l = objCharge.m_lngGetDeptArea(out dt, 1); if (l > 0) { for (int i = 0; i < dt.Rows.Count; i++) { DataRow dr = dt.Rows[i]; if (LimitDeptIDArr.Count > 0) { if (LimitDeptIDArr.IndexOf(dr["deptid_chr"].ToString()) < 0) { continue; } } string[] sarr = new string[4]; sarr[0] = "F"; sarr[1] = Convert.ToString(i + 1); sarr[2] = dr["code_vchr"].ToString().Trim(); sarr[3] = dr["deptname_vchr"].ToString().Trim(); int row = this.dtDept.Rows.Add(sarr); this.dtDept.Rows[row].Tag = dr; } } this.txtVal.Focus(); }
/// <summary> /// 建树 /// </summary> private void m_mthLoad() { clsDcl_Charge objCharge = new clsDcl_Charge(); long l = objCharge.m_lngGetDeptArea(out dt, 1); if (l > 0) { this.m_mthCreateTree(null, null); } }
/// <summary> /// 加载字典数据 /// </summary> private void m_mthLoadData() { long l = 0; dtRecord = null; if (ParmType == 1) { clsDcl_Charge objCharge = new clsDcl_Charge(); l = objCharge.m_lngGetDeptArea(out dtRecord, 2); } else if (ParmType == 2 || ParmType == 3) { clsDcl_CommonFind objFind = new clsDcl_CommonFind(); l = objFind.m_lngGetBedinfo(ParmAreaID, 0, out dtRecord); } if (l > 0) { this.m_mthFillArea("1=1"); } }