added required fields to addpatient
This commit is contained in:
parent
cfd3200669
commit
63be4b124d
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user