private void LoadData() { dgrdInOrder.AutoGenerateColumns = false; _drugInfoDt = _storeQuery.LoadDrugInfo(_outDept.DeptID, (int)_currentDeptId); txtDgCode.SetSelectionCardDataSource(_drugInfoDt); _inOrderDt = _billQuery.LoadOrder(_currentMaster); dgrdInOrder.DataSource = _inOrderDt; }
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; } }