From f2cd4ad4ff516f66acb0a83cdc48801eee1bc5e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=AA=20Th=C3=A0nh=20=C4=90=E1=BA=A1t?= <91755733+lds217@users.noreply.github.com> Date: Tue, 20 May 2025 01:09:38 +0700 Subject: [PATCH] [refactor] Update CheckUpPage to remove diagnosis and notes from table, retaining only status --- .../client/ui/component/CheckUpPage/CheckUpPage.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/BsK/client/ui/component/CheckUpPage/CheckUpPage.java b/src/main/java/BsK/client/ui/component/CheckUpPage/CheckUpPage.java index f0342a3..f891340 100644 --- a/src/main/java/BsK/client/ui/component/CheckUpPage/CheckUpPage.java +++ b/src/main/java/BsK/client/ui/component/CheckUpPage/CheckUpPage.java @@ -94,9 +94,9 @@ public class CheckUpPage extends JPanel { tableData[i][2] = p.getCustomerLastName(); tableData[i][3] = p.getCustomerFirstName(); tableData[i][4] = p.getDoctorName(); - tableData[i][5] = p.getDiagnosis(); - tableData[i][6] = p.getNotes(); - tableData[i][7] = p.getStatus(); + //tableData[i][5] = p.getDiagnosis(); + //tableData[i][6] = p.getNotes(); + tableData[i][5] = p.getStatus(); } return tableData; } @@ -363,7 +363,7 @@ public class CheckUpPage extends JPanel { rightBottomPanel.setLayout(new BorderLayout()); rightBottomPanel.setBorder(BorderFactory.createEmptyBorder(20, 20, 20, 10)); - String[] columns = {"Mã khám bệnh", "Ngày Tháng", "Họ", "Tên", "Bác Sĩ", "Chẩn đoán", "Ghi chú", "Trạng thái"}; + String[] columns = {"Mã khám bệnh", "Ngày Tháng", "Họ", "Tên", "Bác Sĩ", "Trạng thái"}; model = new DefaultTableModel(preprocessPatientDataForTable(this.patientQueue), columns) { @Override public boolean isCellEditable(int row, int column) { @@ -1069,7 +1069,7 @@ public class CheckUpPage extends JPanel { this.patientQueue.add(new Patient(patientData)); } } - model.setDataVector(preprocessPatientDataForTable(this.patientQueue), new String[]{"Mã khám bệnh", "Ngày Tháng", "Họ", "Tên", "Bác Sĩ", "Chẩn đoán", "Ghi chú", "Trạng thái"}); + model.setDataVector(preprocessPatientDataForTable(this.patientQueue), new String[]{"Mã khám bệnh", "Ngày Tháng", "Họ", "Tên", "Bác Sĩ", "Trạng thái"}); if (tvQueueFrame != null && tvQueueFrame.isVisible()) { tvQueueFrame.updateQueueData(this.rawQueueForTv); } @@ -1084,7 +1084,7 @@ public class CheckUpPage extends JPanel { this.patientQueue.add(new Patient(patientData)); } } - model.setDataVector(preprocessPatientDataForTable(this.patientQueue), new String[]{"Mã khám bệnh", "Ngày Tháng", "Họ", "Tên", "Bác Sĩ", "Chẩn đoán", "Ghi chú", "Trạng thái"}); + model.setDataVector(preprocessPatientDataForTable(this.patientQueue), new String[]{"Mã khám bệnh", "Ngày Tháng", "Họ", "Tên", "Bác Sĩ", "Trạng thái"}); if (tvQueueFrame != null && tvQueueFrame.isVisible()) { tvQueueFrame.updateQueueData(this.rawQueueForTv); }