Merge remote-tracking branch 'origin/master'

# Conflicts:
#	Louis'-Pharmacy_CNSA212-FP/PharmacyDataTier.cs
This commit is contained in:
EggMan20339 2024-02-19 22:25:37 -05:00
commit 322a59e698
2 changed files with 29 additions and 0 deletions

View File

@ -1023,6 +1023,34 @@ namespace Louis__Pharmacy_CNSA212_FP
}
public static void PastRefills(string rxNum)
{
try
{
myConn.Open();
cmdString.Parameters.Clear();
cmdString.Connection = myConn;
cmdString.CommandType = CommandType.StoredProcedure;
cmdString.CommandTimeout = 1500;
cmdString.CommandText = "PastRefills";
cmdString.Parameters.Add("@Prescription_id", SqlDbType.VarChar, 11).Value = rxNum;
cmdString.ExecuteNonQuery();
}
catch (Exception ex)
{
throw new ArgumentException(ex.Message);
}
finally
{
myConn.Close();
}
}
public static void FillComboBox(string table, string ValueMember, string displayMember, ComboBox myComboBox)
{
try

View File

@ -77,6 +77,7 @@ namespace Louis__Pharmacy_CNSA212_FP
rxNum = txtRxNumber.Text.Trim();
PharmacyDataTier.AddRefill(refillID, date, patientID, medicationID, rxNum);
PharmacyDataTier.PastRefills(rxNum);
}
else
{