added required fields to addpatient

This commit is contained in:
EggMan20339 2024-02-21 08:07:37 -05:00
parent cfd3200669
commit 63be4b124d

View File

@ -123,12 +123,27 @@ namespace Louis__Pharmacy_CNSA212_FP
epLocal.SetError(txtLname, "Invalid Value");
parseHasFailed = true;
}
if (LastName.Length < 1)
{
epLocal.SetError(txtLname, "Must Enter A Last Name");
parseHasFailed = true;
}
{
}
if (FirstName.Length > 30)
{
epLocal.SetError(txtFname, "Invalid Value");
parseHasFailed = true;
}
if (FirstName.Length < 1)
{
epLocal.SetError(txtFname, "Must Enter A First Name");
parseHasFailed = true;
}
if (Patient_id.Length > 8)
{
epLocal.SetError(txtPatientID, "Invalid Value");