#ifndef DEPARTMENT_DETAIL_DIALOG_H #define DEPARTMENT_DETAIL_DIALOG_H #include namespace core { class HisCore; } class QTableWidget; class QLabel; class QPushButton; // 科室详情对话框:显示指定科室的医生和药品列表 // 实现动态展示功能 class DepartmentDetailDialog : public QDialog { Q_OBJECT public: explicit DepartmentDetailDialog(core::HisCore& core, const QString& departmentId, QWidget* parent = nullptr); ~DepartmentDetailDialog() override = default; private: core::HisCore& core_; QString departmentId_; QLabel* deptNameLabel_; QLabel* deptDescLabel_; QTableWidget* doctorTable_; QTableWidget* medicineTable_; QTableWidget* checkTable_; QPushButton* refreshButton_; QPushButton* closeButton_; void setupUI(); void loadDepartmentInfo(); void loadDoctors(); void loadMedicines(); void loadChecks(); private slots: void onRefresh(); }; #endif // DEPARTMENT_DETAIL_DIALOG_H