Professional Documents
Culture Documents
ConnectDB();
int row= jTable1.getSelectedRow();
this.hide();
Bill_Room frm = new Bill_Room();
frm.setVisible(true);
String add= jTable1.getModel().getValueAt(row, 0).toString();
frm.txtBillNo.setText(add);
String add3= jTable1.getModel().getValueAt(row, 1).toString();
frm.PatientID.setText(add3);
String add4= jTable1.getModel().getValueAt(row, 2).toString();
frm.txtPatientName.setText(add4);
String add5= jTable1.getModel().getValueAt(row, 3).toString();
frm.txtGender.setText(add5);
String add6= jTable1.getModel().getValueAt(row, 4).toString();
frm.txtBloodGroup.setText(add6);
String add7= jTable1.getModel().getValueAt(row, 5).toString();
frm.txtDisease.setText(add7);
String add8= jTable1.getModel().getValueAt(row, 6).toString();
frm.txtAdmitDate.setText(add8);
String add9= jTable1.getModel().getValueAt(row, 7).toString();
frm.txtRoomNo.setText(add9);
String add10= jTable1.getModel().getValueAt(row, 8).toString();
frm.txtDoctorID.setText(add10);
String add11= jTable1.getModel().getValueAt(row, 9).toString();
frm.txtDoctorName.setText(add11);
String add12= jTable1.getModel().getValueAt(row, 10).toString();
frm.txtDischargeDate.setText(add12);
String add13= jTable1.getModel().getValueAt(row, 11).toString();
frm.txtRoomCharges.setText(add13);
String add14= jTable1.getModel().getValueAt(row, 12).toString();
frm.txtServiceCharges.setText(add14);
String add15= jTable1.getModel().getValueAt(row, 13).toString();
frm.txtBillingDate.setText(add15);
String add16= jTable1.getModel().getValueAt(row, 14).toString();
frm.cmbPaymentMode.setSelectedItem(add16);
String add17= jTable1.getModel().getValueAt(row, 15).toString();
frm.txtPaymentModeDetails.setText(add17);
String add18= jTable1.getModel().getValueAt(row, 16).toString();
frm.txtTotalCharges.setText(add18);
String add21= jTable1.getModel().getValueAt(row, 17).toString();
frm.txtNoOfDays.setText(add21);
String add22= jTable1.getModel().getValueAt(row, 18).toString();
frm.txtTotalRoomCharges.setText(add22);