added breakage back

This commit is contained in:
EggMan20339 2024-02-16 10:12:36 -05:00
parent a1b90e522b
commit 22bb09981a
3 changed files with 16 additions and 7 deletions

View File

@ -303,6 +303,7 @@ namespace Louis__Pharmacy_CNSA212_FP
this.dgvPatient.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgvPatient.Size = new System.Drawing.Size(869, 270);
this.dgvPatient.TabIndex = 0;
this.dgvPatient.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvPatient_CellContentClick);
//
// pat_id
//
@ -971,7 +972,7 @@ namespace Louis__Pharmacy_CNSA212_FP
private System.Windows.Forms.Button btnPhysicianSearch;
private System.Windows.Forms.TextBox txtPatientLast;
private System.Windows.Forms.TextBox txtPatientFirst;
private System.Windows.Forms.DataGridView dgvPatient;
public System.Windows.Forms.DataGridView dgvPatient;
private System.Windows.Forms.TextBox txtPhysicianLast;
private System.Windows.Forms.TextBox txtPhysicianFirst;
private System.Windows.Forms.DataGridView dgvPhysician;

View File

@ -322,16 +322,25 @@ namespace Louis__Pharmacy_CNSA212_FP
{
if (dgvPatient.Rows.Count > 0)
{
// Console.WriteLine( dgvPatient.SelectedRows.Count);
DataGridViewRow row = dgvPatient.SelectedRows[0];
string patid = "";
patid = (row.Cells[0].Value).ToString();
frmPatientAdd PatientAdd = new frmPatientAdd(false);
PatientAdd.MdiParent = MdiParent;
PatientAdd.StartPosition = FormStartPosition.CenterScreen;
PatientAdd.Show();
PatientAdd.Focus();
// Console.WriteLine( dgvPatient.SelectedRows.Count);
// DataGridViewRow row = dgvPatient.SelectedRows[0];
// string patid = dgvPatient.SelectedRows[0].Cells[0].Value.ToString();
// PatientAdd.FillPatient(patid);
PatientAdd.FillPatient(patid);
}
}
private void dgvPatient_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
}
}
}

View File

@ -46,8 +46,7 @@ namespace Louis__Pharmacy_CNSA212_FP
else
{
}
}