Пример #1
0
 private void LoadData()
 {
     dgrdInOrder.AutoGenerateColumns = false;
     _drugInfoDt = _storeQuery.LoadDrugInfo(_outDept.DeptID, (int)_currentDeptId);
     txtDgCode.SetSelectionCardDataSource(_drugInfoDt);
     _inOrderDt             = _billQuery.LoadOrder(_currentMaster);
     dgrdInOrder.DataSource = _inOrderDt;
 }
Пример #2
0
 private void LoadData()
 {
     try
     {
         dgrdStoreInfo.AutoGenerateColumns = false;
         _drugInfoDt      = _storeQuery.LoadDrugInfo((int)_currentDeptId);
         _drugStoreInfoDt = _storeQuery.LoadStoreInfo((int)_currentDeptId);
         txtQueryCode.SetSelectionCardDataSource(_drugInfoDt);
         dgrdStoreInfo.DataSource    = _drugStoreInfoDt;
         _drugStoreInfoDt.PrimaryKey = new DataColumn[] { _drugStoreInfoDt.Columns["MAKERDICID"] };
     }
     catch (Exception error)
     {
         throw error;
     }
 }