added breakage back
This commit is contained in:
parent
a1b90e522b
commit
22bb09981a
3
Louis'-Pharmacy_CNSA212-FP/frmInfo.Designer.cs
generated
3
Louis'-Pharmacy_CNSA212-FP/frmInfo.Designer.cs
generated
@ -303,6 +303,7 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
this.dgvPatient.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
this.dgvPatient.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||||
this.dgvPatient.Size = new System.Drawing.Size(869, 270);
|
this.dgvPatient.Size = new System.Drawing.Size(869, 270);
|
||||||
this.dgvPatient.TabIndex = 0;
|
this.dgvPatient.TabIndex = 0;
|
||||||
|
this.dgvPatient.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvPatient_CellContentClick);
|
||||||
//
|
//
|
||||||
// pat_id
|
// pat_id
|
||||||
//
|
//
|
||||||
@ -971,7 +972,7 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
private System.Windows.Forms.Button btnPhysicianSearch;
|
private System.Windows.Forms.Button btnPhysicianSearch;
|
||||||
private System.Windows.Forms.TextBox txtPatientLast;
|
private System.Windows.Forms.TextBox txtPatientLast;
|
||||||
private System.Windows.Forms.TextBox txtPatientFirst;
|
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 txtPhysicianLast;
|
||||||
private System.Windows.Forms.TextBox txtPhysicianFirst;
|
private System.Windows.Forms.TextBox txtPhysicianFirst;
|
||||||
private System.Windows.Forms.DataGridView dgvPhysician;
|
private System.Windows.Forms.DataGridView dgvPhysician;
|
||||||
|
@ -322,16 +322,25 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
{
|
{
|
||||||
if (dgvPatient.Rows.Count > 0)
|
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);
|
frmPatientAdd PatientAdd = new frmPatientAdd(false);
|
||||||
PatientAdd.MdiParent = MdiParent;
|
PatientAdd.MdiParent = MdiParent;
|
||||||
PatientAdd.StartPosition = FormStartPosition.CenterScreen;
|
PatientAdd.StartPosition = FormStartPosition.CenterScreen;
|
||||||
PatientAdd.Show();
|
PatientAdd.Show();
|
||||||
PatientAdd.Focus();
|
PatientAdd.Focus();
|
||||||
// Console.WriteLine( dgvPatient.SelectedRows.Count);
|
PatientAdd.FillPatient(patid);
|
||||||
// DataGridViewRow row = dgvPatient.SelectedRows[0];
|
|
||||||
// string patid = dgvPatient.SelectedRows[0].Cells[0].Value.ToString();
|
}
|
||||||
// PatientAdd.FillPatient(patid);
|
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void dgvPatient_CellContentClick(object sender, DataGridViewCellEventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -47,7 +47,6 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user