Пример #1
0
 private void LoadData()
 {
     try
     {
         _deptDt = IN_InterFace.LoadClinicDept();
         txtDeptDraw.SetSelectionCardDataSource(_deptDt);
     }
     catch (Exception error)
     {
         throw error;
     }
 }
Пример #2
0
 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;
     }
 }