fixed swapped refills edit
This commit is contained in:
parent
d81eb7ebb1
commit
8f4c42556c
6
.idea/.idea.Louis' Pharmacy/.idea/sqldialects.xml
Normal file
6
.idea/.idea.Louis' Pharmacy/.idea/sqldialects.xml
Normal 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>
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user