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:
parent
a00de37d5c
commit
799d216474
@ -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>
|
|
@ -434,7 +434,7 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
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
|
finally
|
||||||
{
|
{
|
||||||
|
@ -502,7 +502,7 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
if (dgvPatient.Rows.Count > 0)
|
if (dgvPatient.Rows.Count > 0)
|
||||||
{
|
{
|
||||||
|
|
||||||
dgvPatient.DataSource = ds.Tables[0];
|
// dgvPatient.DataSource = ds.Tables[0];
|
||||||
DataGridViewRow row = new DataGridViewRow();
|
DataGridViewRow row = new DataGridViewRow();
|
||||||
row = dgvPatient.SelectedRows[0];
|
row = dgvPatient.SelectedRows[0];
|
||||||
string patid = "";
|
string patid = "";
|
||||||
@ -557,7 +557,7 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
if (dgvPhysician.Rows.Count > 0)
|
if (dgvPhysician.Rows.Count > 0)
|
||||||
{
|
{
|
||||||
|
|
||||||
dgvPhysician.DataSource = ds.Tables[0];
|
// dgvPhysician.DataSource = ds.Tables[0];
|
||||||
DataGridViewRow row = new DataGridViewRow();
|
DataGridViewRow row = new DataGridViewRow();
|
||||||
row = dgvPhysician.SelectedRows[0];
|
row = dgvPhysician.SelectedRows[0];
|
||||||
string phyID = "";
|
string phyID = "";
|
||||||
@ -626,7 +626,7 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
if (dgvPrescription.Rows.Count > 0)
|
if (dgvPrescription.Rows.Count > 0)
|
||||||
{
|
{
|
||||||
|
|
||||||
dgvPrescription.DataSource = ds.Tables[0];
|
// dgvPrescription.DataSource = ds.Tables[0];
|
||||||
DataGridViewRow row = new DataGridViewRow();
|
DataGridViewRow row = new DataGridViewRow();
|
||||||
row = dgvMedication.SelectedRows[0];
|
row = dgvMedication.SelectedRows[0];
|
||||||
string medID = "";
|
string medID = "";
|
||||||
@ -688,7 +688,7 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
if (dgvPrescription.Rows.Count > 0)
|
if (dgvPrescription.Rows.Count > 0)
|
||||||
{
|
{
|
||||||
|
|
||||||
dgvPrescription.DataSource = ds.Tables[0];
|
// dgvPrescription.DataSource = ds.Tables[0];
|
||||||
DataGridViewRow row = new DataGridViewRow();
|
DataGridViewRow row = new DataGridViewRow();
|
||||||
row = dgvPrescription.SelectedRows[0];
|
row = dgvPrescription.SelectedRows[0];
|
||||||
string PresID = "";
|
string PresID = "";
|
||||||
|
Loading…
Reference in New Issue
Block a user