made some small changes to fix a bug relating to how dgvs are updated when searches are preformed in other tabs

This commit is contained in:
caschick221 2024-02-21 10:57:51 -05:00
parent a00de37d5c
commit 799d216474
3 changed files with 5 additions and 11 deletions

View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="SqlDialectMappings">
<file url="dbSrc:///505d1dbd/8ad1107e-d5b4-4250-a780-1ee9739c8bad/database/FinalProjectOfficialPharmacy/schema/dbo/routine/PastRefills.sql" dialect="GenericSQL" />
</component>
</project>

View File

@ -434,7 +434,7 @@ namespace Louis__Pharmacy_CNSA212_FP
}
catch (Exception ex)
{
MessageBox.Show(precID + " Has an Associated Prescriptions. Could Not Delete", "Error", MessageBoxButtons.OK);
MessageBox.Show(precID + " Has an Associated Refill. Could Not Delete", "Error", MessageBoxButtons.OK);
}
finally
{

View File

@ -502,7 +502,7 @@ namespace Louis__Pharmacy_CNSA212_FP
if (dgvPatient.Rows.Count > 0)
{
dgvPatient.DataSource = ds.Tables[0];
// dgvPatient.DataSource = ds.Tables[0];
DataGridViewRow row = new DataGridViewRow();
row = dgvPatient.SelectedRows[0];
string patid = "";
@ -557,7 +557,7 @@ namespace Louis__Pharmacy_CNSA212_FP
if (dgvPhysician.Rows.Count > 0)
{
dgvPhysician.DataSource = ds.Tables[0];
// dgvPhysician.DataSource = ds.Tables[0];
DataGridViewRow row = new DataGridViewRow();
row = dgvPhysician.SelectedRows[0];
string phyID = "";
@ -626,7 +626,7 @@ namespace Louis__Pharmacy_CNSA212_FP
if (dgvPrescription.Rows.Count > 0)
{
dgvPrescription.DataSource = ds.Tables[0];
// dgvPrescription.DataSource = ds.Tables[0];
DataGridViewRow row = new DataGridViewRow();
row = dgvMedication.SelectedRows[0];
string medID = "";
@ -688,7 +688,7 @@ namespace Louis__Pharmacy_CNSA212_FP
if (dgvPrescription.Rows.Count > 0)
{
dgvPrescription.DataSource = ds.Tables[0];
// dgvPrescription.DataSource = ds.Tables[0];
DataGridViewRow row = new DataGridViewRow();
row = dgvPrescription.SelectedRows[0];
string PresID = "";