public void FillFormForDiscipline(string discipline, string examinationNumber, string examinationName, string appleant, string fName, string mName, string lName, string aka, string lastFourSSN, string contactPhone, string mailingAddress, string city, string state, string zip, string email, string cEmail, string empNumber, string payroll, string department, string appealIssue, string notificationDocument, string attachmentDesciption, string classificationDoc, string ClassificationDocDesc, string remedy ) { // SubmitAppeal.Clicks(); BtnIAgree.Clicks(); DisciplineHeadingID.Clicks(); if (discipline.Contains("1-5 day Suspension") || discipline.Contains("LayOff") || discipline.Contains("Probationary Discharge") || discipline.Contains("Probationary Reduction") || discipline.Contains("Reduction due to Lay-Off") || discipline.Contains("Release From Temporary Employment") || discipline.Contains("Transfer") || discipline.Contains("Resignation")) { if (discipline.Contains("1-5 day Suspension")) { Suspension.Clicks(); } else if (discipline.Contains("LayOff")) { LayOff.Clicks(); } else if (discipline.Contains("Probationary Discharge")) { ProbationaryDischarge.Clicks(); } else if (discipline.Contains("Probationary Reduction")) { ProbationaryReduction.Clicks(); } else if (discipline.Contains("Reduction due to Lay-Off")) { ReductionDueToLayOff.Clicks(); } else if (discipline.Contains("Release From Temporary Employment")) { ReleaseFromTemporaryEmployment.Clicks(); } else if (discipline.Contains("Transfer")) { Transfer.Clicks(); } else if (discipline.Contains("Resignation")) { Resignation.Clicks(); } if (appleant.Contains("Yourself")) { FillingYourSelf.Click(); } FName.EnterText(fName); MName.EnterText(mName); LName.EnterText(lName); Aka.EnterText(aka); LastFourSSN.EnterText(lastFourSSN); ContactPhone.EnterText(contactPhone); MailingAddress.EnterText(mailingAddress); City.EnterText(city); State.ClearText(state); ZipCode.EnterText(zip); PreferredEmail.EnterText(email); ConfirmEmail.EnterText(cEmail); EmployeeNumber.EnterText(empNumber); Payroll.EnterText(payroll); EmployingDepartment.EnterText(department); AppealIssue.EnterText(appealIssue); Attach.Clicks(); Browse.UploadFile(notificationDocument); AttachmentDescription.EnterText(attachmentDesciption); Remedy.SendKeys(remedy); SubmitBtn.Clicks(); AcceptPopupBtn.Clicks(); } else if (discipline.Contains("ClassificationStudy")) { ClassificationStudy.Clicks(); ExaminationNumber.SendKeys(examinationNumber); ExaminationName.SendKeys(examinationName); if (appleant == "Yourself") { FillingYourSelf.Click(); } FName.EnterText(fName); MName.EnterText(mName); LName.EnterText(lName); Aka.EnterText(aka); LastFourSSN.EnterText(lastFourSSN); ContactPhone.EnterText(contactPhone); MailingAddress.EnterText(mailingAddress); City.EnterText(city); State.ClearText(state); ZipCode.EnterText(zip); PreferredEmail.EnterText(email); ConfirmEmail.EnterText(cEmail); EmployeeNumber.EnterText(empNumber); Payroll.EnterText(payroll); EmployingDepartment.EnterText(department); AppealIssue.EnterText(appealIssue); Attach.Clicks(); Browse.UploadFile(notificationDocument); AttachmentDescription.EnterText(attachmentDesciption); AttachAdditional.Clicks(); BrowseAdditional.UploadFile(classificationDoc); DescriptionAdditional.EnterText(ClassificationDocDesc); Remedy.SendKeys(remedy); SubmitBtn.Clicks(); AcceptPopupBtn.Clicks(); } }
protected virtual void OnLayOff(EmployeeLayOffEventArgs e) { LayOff?.Invoke(this, e); }