fixed swapped refills edit

This commit is contained in:
EggMan20339 2024-02-21 00:32:19 -05:00
parent d81eb7ebb1
commit 8f4c42556c
2 changed files with 10 additions and 4 deletions

View File

@ -0,0 +1,6 @@
<?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

@ -1257,8 +1257,8 @@ namespace Louis__Pharmacy_CNSA212_FP
cmdString.CommandText = "CreatePrescription";
cmdString.Parameters.Add("@Medication_id", SqlDbType.VarChar, 7).Value = Medication_id;
cmdString.Parameters.Add("@numRefills", SqlDbType.Int).Value = Completed_refills;
cmdString.Parameters.Add("@pastNumRefills", SqlDbType.Int).Value = Max_refills;
cmdString.Parameters.Add("@numRefills", SqlDbType.Int).Value = Max_refills;
cmdString.Parameters.Add("@pastNumRefills", SqlDbType.Int).Value = Completed_refills;
cmdString.Parameters.Add("@PrescribedBy", SqlDbType.VarChar, 30).Value = Physician_name;
cmdString.Parameters.Add("@Physician_id", SqlDbType.VarChar, 8).Value = Physician_id;
cmdString.Parameters.Add("@Patient_id", SqlDbType.VarChar, 8).Value = Patient_id;
@ -1299,8 +1299,8 @@ namespace Louis__Pharmacy_CNSA212_FP
cmdString.CommandText = "UpdatePrescription";
cmdString.Parameters.Add("@Medication_id", SqlDbType.VarChar, 7).Value = Medication_id;
cmdString.Parameters.Add("@numRefills", SqlDbType.VarChar, 60).Value = Completed_refills;
cmdString.Parameters.Add("@pastNumRefills", SqlDbType.VarChar, 30).Value = Max_refills;
cmdString.Parameters.Add("@numRefills", SqlDbType.VarChar, 60).Value = Max_refills;
cmdString.Parameters.Add("@pastNumRefills", SqlDbType.VarChar, 30).Value = Completed_refills;
cmdString.Parameters.Add("@PrescribedBy", SqlDbType.VarChar, 30).Value = Physician_name;
cmdString.Parameters.Add("@Physician_id", SqlDbType.VarChar, 30).Value = Physician_id;
cmdString.Parameters.Add("@Patient_id", SqlDbType.VarChar, 100).Value = Patient_id;