private void LoadData() { try { _deptDt = IN_InterFace.LoadClinicDept(); txtDeptDraw.SetSelectionCardDataSource(_deptDt); } catch (Exception error) { throw error; } }
private void LoadData() { try { _deptDt = IN_InterFace.LoadClinicDept(); if (_deptDt != null) { DataRow allDeptRow = _deptDt.NewRow(); allDeptRow["DEPT_ID"] = 0; allDeptRow["NAME"] = "全院科室"; allDeptRow["WB_CODE"] = "qyks"; allDeptRow["PY_CODE"] = "qyks"; _deptDt.PrimaryKey = new DataColumn[] { _deptDt.Columns["DEPT_ID"] }; _deptDt.Rows.Add(allDeptRow); } txtDeptDraw.SetSelectionCardDataSource(_deptDt); } catch (Exception error) { throw error; } }