protected void FeeDisplay(object sender, EventArgs e) { RoutingRules router = new RoutingRules(); if (campus.SelectedItem.Text == "Louisville") { account = "SullivanLouisville"; emailTo = "*****@*****.**"; } else if (campus.SelectedItem.Text == "Lexington") { account = "SullivanLexington"; emailTo = "[email protected]; [email protected]"; } else if (campus.SelectedItem.Text == "Online" || campus.SelectedValue == "Louisa") { emailTo = "[email protected]; [email protected]; [email protected]; [email protected]; [email protected]"; if (campus.SelectedItem.Text == "Online") { account = router.OnlineAccount(tbZipCode.Text); } else { account = "SullivanLexington"; } } Button1.PostBackUrl = "https://secure.sullivan.edu/Payments/PCAppPayments.aspx?account=" + account; }
private void Tiffer() { Email email = new Email(); String emailTo = "*****@*****.**"; //String emailTo = "*****@*****.**"; //String emailTo = "*****@*****.**"; TiffCreator tiff = new TiffCreator(); List <string> panelsNeeded = new List <string>(); RoutingRules rules = new RoutingRules(); string campusID = rules.CampusID(PersonalInfoForm.CampusAttending, PersonalInfoForm.ZipCode); string tiffEmailBody = "campusid=" + campusID + "\r\ntab=" + PersonalInfoForm.ReEntry + "|" + PersonalInfoForm.Phone + "\r\nfolder=" + PersonalInfoForm.StudentName + "\r\nf4=" + PersonalInfoForm.Email + "\r\n"; //Create Enrollment Agreement panelsNeeded.Add("PersonalInfoPanel"); panelsNeeded.Add("PersonalInfoPanel2"); panelsNeeded.Add("AcademicHistoryPanel"); panelsNeeded.Add("highSchoolPanel"); panelsNeeded.Add("GEDPanel"); panelsNeeded.Add("collegePanel"); panelsNeeded.Add("CollegePanel1"); panelsNeeded.Add("CollegePanel2"); panelsNeeded.Add("CollegePanel3"); panelsNeeded.Add("CollegePanel4"); panelsNeeded.Add("CollegePanel5"); panelsNeeded.Add("CollegePanel6"); panelsNeeded.Add("CollegePanel7"); panelsNeeded.Add("CollegePanel8"); panelsNeeded.Add("CollegePanel9"); var enrollmentAgreement = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("EnrollmentAgreement", 0, enrollmentAgreement)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } foreach (var item in transcriptAttatchments) { attachments.Add(item); } email.SendEmail("Enrollment Agreement", tiffEmailBody + "doctype=ADM - Application for Enrollment", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); }
private void Tiffer() { Email email = new Email(); String emailTo = "*****@*****.**"; //String emailTo = "*****@*****.**"; //String emailTo = "*****@*****.**"; TiffCreator tiff = new TiffCreator(); List <string> panelsNeeded = new List <string>(); List <string> tiffAttachments = new List <string>(); RoutingRules rules = new RoutingRules(); string campusID = rules.CampusID(campus.SelectedValue, ""); string tiffEmailBody = "campusid=" + campusID + "\r\ntab=Yep|" + tBoxHomePhoneNumber.Text.Trim() + "\r\nfolder=" + StudentName + "\r\n"; tiffEmailBody += "f4=" + tBoxEmailAddress.Text.Trim() + "\r\n"; panelsNeeded.Add("pnlStudentInfo"); panelsNeeded.Add("pnlReviewStatus"); panelsNeeded.Add("pnlRemainingCharges"); if (rblCreditContract.SelectedValue == "credit") { panelsNeeded.Add("pnlCreditHourRates"); } else { panelsNeeded.Add("pnlContractRates"); } var Verification = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("Verification", 0, Verification)) { if (!tiffAttachments.Contains(image)) { tiffAttachments.Add(image); } allAttachments.Add(image); } foreach (string file in attachments) { tiffAttachments.Add(file); } email.SendEmail("Re - Entry Verification Form", tiffEmailBody + "doctype=ADM - Re-entry Verification Worksheet", tiffAttachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); }
private void Tiffer() { Email email = new Email(); String emailTo = "*****@*****.**"; //String emailTo = "*****@*****.**"; TiffCreator tiff = new TiffCreator(); List <string> panelsNeeded = new List <string>(); int gradYear; string enrollQueue; string reEntry = PersonalInfoForm.ReEntry; RoutingRules rules = new RoutingRules(); string campusID = rules.CampusID(PersonalInfoForm.CampusAttending, PersonalInfoForm.ZipCode); string tiffEmailBody = "campusid=" + campusID + "\r\ntab=" + reEntry + "|" + PersonalInfoForm.Phone + "\r\nfolder=" + PersonalInfoForm.StudentName + "\r\n"; tiffEmailBody += "f4=" + PersonalInfoForm.Email + "\r\n"; try { //Create FERPA panelsNeeded.Add("PersonalInfoPanel"); panelsNeeded.Add("ferpaPanel"); panelsNeeded.Add("pnlFerpaRel1"); panelsNeeded.Add("pnlFerpaRel2"); panelsNeeded.Add("pnlFerpaRel3"); panelsNeeded.Add("pnlFerpaRel4"); var FERPA = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("FERPA", 0, FERPA)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } email.SendEmail("FERPA", tiffEmailBody + "doctype=ADM - FERPA Consent Form", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); } catch { } }
private void Tiffer() { Email email = new Email(); String emailTo = "*****@*****.**"; //String emailTo = "*****@*****.**"; TiffCreator tiff = new TiffCreator(); List <string> panelsNeeded = new List <string>(); RoutingRules rules = new RoutingRules(); string campusID = rules.CampusID(HousingForm.CampusAttending, ""); string tiffEmailBody = "campusid=" + campusID + "\r\ntab=Naw|" + HousingForm.Phone + "\r\nfolder=" + HousingForm.StudentName + "\r\n"; tiffEmailBody += "f4=" + HousingForm.Email + "\r\n"; try { //Create Housing App panelsNeeded.Add("pnlIntro"); panelsNeeded.Add("pnlPersonalInfo"); panelsNeeded.Add("pnlAddressInfo"); panelsNeeded.Add("pnlHousingQuestions"); panelsNeeded.Add("programPanel"); panelsNeeded.Add("pnlHousingPreference"); panelsNeeded.Add("pnlFelonyExplination"); panelsNeeded.Add("pnlHousing"); panelsNeeded.Add("pnlQuietSex"); panelsNeeded.Add("pnlHousingLease"); var housing = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("HousingApp", 0, housing)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } email.SendEmail("Housing Application", tiffEmailBody + "doctype=ADM - Housing Application", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); } catch { } }
private void Tiffer() { Email email = new Email(); String emailTo = "*****@*****.**"; //String emailTo = "*****@*****.**"; //String emailTo = "*****@*****.**"; TiffCreator tiff = new TiffCreator(); List <string> panelsNeeded = new List <string>(); RoutingRules rules = new RoutingRules(); string campusID = rules.CampusID(campus.SelectedValue, tBoxZipCode.Text); string tiffEmailBody = "campusid=" + campusID + "\r\ntab=Naw|" + tBoxHomePhoneNumber.Text.Trim() + "\r\nfolder=" + StudentName + "\r\n"; tiffEmailBody += "f4=" + tBoxEmailAddress.Text.Trim() + "\r\n"; attachments.Clear(); panelsNeeded.Add("pnlStudentInfo"); panelsNeeded.Add("programPanel"); panelsNeeded.Add("pnlTranscriptInfo"); panelsNeeded.Add("pnlDate"); panelsNeeded.Add("pnlName"); panelsNeeded.Add("pnlTimeConstraints"); panelsNeeded.Add("pnlClassRequests"); panelsNeeded.Add("pnlClassDecline"); panelsNeeded.Add("pnlOnlineClasses"); panelsNeeded.Add("pnlESig"); var FirstQuarterScheduleRequest = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("FirstQuarterScheduleRequest", 0, FirstQuarterScheduleRequest)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } email.SendEmail("First Quarter Schedule Requestt", tiffEmailBody + "doctype=ADM - First Qtr Schedule Request", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); }
private void Tiffer() { /* * Please note that this form uses different routing rules than the rest of the Admission's forms. * It uses the Financial Planning routing rules. */ Email email = new Email(); String emailTo = "*****@*****.**"; //String emailTo = "*****@*****.**"; TiffCreator tiff = new TiffCreator(); List <string> panelsNeeded = new List <string>(); RoutingRules rules = new RoutingRules(); string campusID = rules.CampusID(PersonalInfoForm.CampusAttending, ""); string tiffEmailBody = "campusid=" + campusID + "\r\ntab=" + PersonalInfoForm.StudentName + "\r\nfolder=" + AlumniUnderstandingForm.StudentID + "\r\n"; tiffEmailBody += "f4=" + DateTime.Now.ToShortDateString() + "|" + AlumniUnderstandingForm.AlumniRelationship + "\r\n"; //Create SOA panelsNeeded.Add("PersonalInfoPanel"); panelsNeeded.Add("pnlAlumniUnderstanding"); panelsNeeded.Add("pnlAlumniESig"); panelsNeeded.Add("pnlDOB"); panelsNeeded.Add("pnlParentAlumniESig"); var alumni = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("AlumniUnderstanding", 0, alumni)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } email.SendEmail("Alumni Understanding", tiffEmailBody + "doctype=ADM - Alumni Offer Statemnt Understandng", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); }
private void Tiffer() { Email email = new Email(); String emailTo = "*****@*****.**"; //String emailTo = "*****@*****.**"; //String emailTo = "*****@*****.**"; TiffCreator tiff = new TiffCreator(); List <string> panelsNeeded = new List <string>(); List <string> tiffAttachments = new List <string>(); RoutingRules rules = new RoutingRules(); string campusID = rules.CampusID(campus.SelectedValue, tBoxZipCode.Text); string tiffEmailBody = "campusid=" + campusID + "\r\ntab=Naw|" + tBoxHomePhoneNumber.Text.Trim() + "\r\nfolder=" + StudentName + "\r\n"; tiffEmailBody += "f4=" + tBoxEmailAddress.Text.Trim() + "\r\n"; panelsNeeded.Add("PersonalInfoPanel"); panelsNeeded.Add("PersonalInfoPanel2"); panelsNeeded.Add("pnlEducation"); panelsNeeded.Add("pnlESig"); var TranscriptEval = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("TranscriptEval", 0, TranscriptEval)) { if (!tiffAttachments.Contains(image)) { tiffAttachments.Add(image); } allAttachments.Add(image); } foreach (string file in attachments) { tiffAttachments.Add(file); } email.SendEmail("Transfer Credit Waiver", tiffEmailBody + "doctype=ADM - Transfer Credit Waiver", tiffAttachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); }
private void Tiffer() { Email email = new Email(); String emailTo = "*****@*****.**"; //String emailTo = "*****@*****.**"; TiffCreator tiff = new TiffCreator(); List <string> panelsNeeded = new List <string>(); int gradYear; string enrollQueue; string reEntry = Re_Entry.SelectedValue; RoutingRules rules = new RoutingRules(); string campusID = rules.CampusID(campus.SelectedItem.Text, tBoxZipCode.Text); string tiffEmailBody = "campusid=" + campusID + "\r\ntab=" + reEntry + "|" + tBoxHomePhoneNumber.Text + "\r\nfolder=" + StudentName + "\r\n"; tiffEmailBody += "f4=" + tBoxEmailAddress.Text + "\r\n"; try { //Create Enrollment Waiver panelsNeeded.Add("pnlStudentInfo"); panelsNeeded.Add("pnlEconomicNeed"); panelsNeeded.Add("pnlESig"); var waiver = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("waiver", 0, waiver)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } email.SendEmail("Enrollment Waiver", tiffEmailBody + "doctype=ADM - Enrollment Fee Waiver", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); } catch { } }
private void Tiffer() { Email email = new Email(); String emailTo = "*****@*****.**"; //String emailTo = "*****@*****.**"; //String emailTo = "*****@*****.**"; TiffCreator tiff = new TiffCreator(); List <string> panelsNeeded = new List <string>(); List <string> tiffAttachments = new List <string>(); RoutingRules rules = new RoutingRules(); string campusID = rules.CampusID(campus.SelectedValue, tBoxZipCode.Text); string tiffEmailBody = "campusid=" + campusID + "\r\ntab=Naw|" + tBoxHomePhoneNumber.Text.Trim() + "\r\nfolder=" + StudentName + "\r\n"; tiffEmailBody += "f4=" + tbEmailAddress.Text.Trim() + "\r\n"; panelsNeeded.Add("pnlStudentInfo"); panelsNeeded.Add("pnlCheckList"); panelsNeeded.Add("TranscriptPanel"); //panelsNeeded.Add("pnlAcceptanceDecision"); var TranscriptEval = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("ReEntrySOA", 0, TranscriptEval)) { if (!tiffAttachments.Contains(image)) { tiffAttachments.Add(image); } allAttachments.Add(image); } foreach (string file in attachments) { tiffAttachments.Add(file); } email.SendEmail("Re-Entry Statement of Understanding", tiffEmailBody + "doctype=ADM - Re-Entry Forgiveness SOU", tiffAttachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); }
private void Tiffer() { Email email = new Email(); String emailTo = "*****@*****.**"; TiffCreator tiff = new TiffCreator(); List <string> panelsNeeded = new List <string>(); RoutingRules rules = new RoutingRules(); if (Session["CampusNumber"] == null) { ViewState["CampusNumber"] = rules.CampusID(IPEDs.CampusAttending, ""); ViewState["Phone"] = IPEDs.Phone; ViewState["StudentName"] = IPEDs.StudentName; ViewState["Email"] = IPEDs.Email; ViewState["Campus"] = IPEDs.CampusAttending; ViewState["ZipCode"] = IPEDs.ZipCode; } string tiffEmailBody = "campusid=" + (string)ViewState["CampusNumber"] + "\r\ntab=Yep|" + (string)ViewState["Phone"] + "\r\nfolder=" + (string)ViewState["StudentName"] + "\r\n"; List <string> attachments = new List <string>(); tiffEmailBody += "f4=" + (string)ViewState["Email"] + "\r\n"; //Create IPED panelsNeeded.Add("IPEDPanel"); var IPED = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("IPED", 0, IPED)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } email.SendEmail("IPED", tiffEmailBody + "doctype=ADM - Integrated Postsecondary Ed DSS", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); formInfo.Clear(); tiff.CreateTiffs("Clear", 0, formInfo); }
private void Tiffer() { Email email = new Email(); String emailTo = "*****@*****.**"; //String emailTo = "*****@*****.**"; TiffCreator tiff = new TiffCreator(); List <string> panelsNeeded = new List <string>(); int gradYear; string enrollQueue; string reEntry = PersonalInfoForm.ReEntry; RoutingRules rules = new RoutingRules(); string campusID = rules.CampusID(PersonalInfoForm.CampusAttending, PersonalInfoForm.ZipCode); string tiffEmailBody = "campusid=" + campusID + "\r\ntab=" + reEntry + "|" + PersonalInfoForm.Phone + "\r\nfolder=" + PersonalInfoForm.StudentName + "\r\n"; tiffEmailBody += "f4=" + PersonalInfoForm.Email + "\r\n"; //try //{ foreach (string image in tiff.CreateTiffs("Registration", 0, formInfo)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } attachments.Add("C:\\Websites\\secure.sullivan.edu\\Admissions\\PDFs\\ThingsStudentsMustKnow.pdf"); email.SendEmail("Registration", tiffEmailBody + "doctype=ADM - Electronic Registration", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); //} //catch { } }
private void Tiffer() { Email email = new Email(); String emailTo = "*****@*****.**"; //String emailTo = "*****@*****.**"; TiffCreator tiff = new TiffCreator(); List <string> panelsNeeded = new List <string>(); RoutingRules rules = new RoutingRules(); string campusID = rules.CampusID(PersonalInfoForm.CampusAttending, ""); string reEntry = PersonalInfoForm.ReEntry; string tiffEmailBody = "campusid=" + campusID + "\r\ntab=" + reEntry + "|" + PersonalInfoForm.Phone + "\r\nfolder=" + PersonalInfoForm.StudentName + "\r\n"; tiffEmailBody += "f4=" + PersonalInfoForm.Email + "\r\n"; try { //Create Credit Disclosure panelsNeeded.Add("PersonalInfoPanel"); panelsNeeded.Add("CreditDisclosurePanel"); panelsNeeded.Add("creditPanel"); panelsNeeded.Add("TranscriptPanel"); var FERPA = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("CreditDisclosure", 0, FERPA)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } email.SendEmail("CreditDisclosure", tiffEmailBody + "doctype=ADM - Credit Transfer Disclosure", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); } catch { } }
private void Tiffer() { Email email = new Email(); String emailTo = "*****@*****.**"; //String emailTo = "*****@*****.**"; TiffCreator tiff = new TiffCreator(); List <string> panelsNeeded = new List <string>(); int gradYear; string enrollQueue; string reEntry = PersonalInfoForm.ReEntry; RoutingRules rules = new RoutingRules(); string campusID = rules.CampusID(PersonalInfoForm.CampusAttending, PersonalInfoForm.ZipCode); string tiffEmailBody = "campusid=" + campusID + "\r\ntab=" + reEntry + "|" + PersonalInfoForm.Phone + "\r\nfolder=" + PersonalInfoForm.StudentName + "\r\n"; tiffEmailBody += "f4=" + PersonalInfoForm.Email + "\r\n"; attachments.Clear(); //Create Disclosure panelsNeeded.Add("PersonalInfoPanel"); panelsNeeded.Add("pnlDisabilityDisclosure"); var DisabilityDisclosure = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("DisabilityDisclosure", 0, DisabilityDisclosure)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } attachments.Add("C:\\Websites\\secure.sullivan.edu\\Admissions\\PDFs\\disclosure.pdf"); email.SendEmail("Disability Disclosure", tiffEmailBody + "doctype=ADM - Disability Disclosure", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); }
private void Tiffer() { Email email = new Email(); String emailTo = "*****@*****.**"; //String emailTo = "*****@*****.**"; //String emailTo = "*****@*****.**"; TiffCreator tiff = new TiffCreator(); List <string> panelsNeeded = new List <string>(); RoutingRules rules = new RoutingRules(); string campusID = rules.CampusID(campus.SelectedValue, tBoxZipCode.Text); string tiffEmailBody = "campusid=" + campusID + "\r\ntab=Naw|" + tBoxPhone.Text.Trim() + "\r\nfolder=" + StudentName + "\r\n"; tiffEmailBody += "f4=" + tBoxEmail.Text.Trim() + "\r\n"; attachments.Clear(); panelsNeeded.Add("pnlPersonalInfo"); panelsNeeded.Add("programPanel"); panelsNeeded.Add("pnlTestInfo"); panelsNeeded.Add("pnlAdmissionRequirements"); panelsNeeded.Add("pnlProgramRequirements"); var AcceptanceAssessment = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("AcceptanceAssessment", 0, AcceptanceAssessment)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } email.SendEmail("Acceptance / Placement Assessment", tiffEmailBody + "doctype=ADM - Entrance Test Scores", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); }
private void Tiffer() { Email email = new Email(); String emailTo = "*****@*****.**"; //String emailTo = "*****@*****.**"; //String emailTo = "*****@*****.**"; TiffCreator tiff = new TiffCreator(); List <string> panelsNeeded = new List <string>(); RoutingRules rules = new RoutingRules(); string campusID = rules.CampusID(campus.SelectedItem.Text, tBoxZipCode.Text); string tiffEmailBody = "campusid=" + campusID + "\r\ntab=Naw|" + tBoxHomePhoneNumber.Text.Trim() + "\r\nfolder=" + StudentName + "\r\n"; tiffEmailBody += "f4=" + tBoxEmailAddress.Text.Trim() + "\r\n"; attachments.Clear(); panelsNeeded.Add("pnlStudentInfo"); panelsNeeded.Add("programPanel"); panelsNeeded.Add("pnlCheckList"); panelsNeeded.Add("pnlEnrollmentFeeWaived"); panelsNeeded.Add("pnlTranscriptFeeWaived"); var AdmissionsChecklist = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("AdmissionsChecklist", 0, AdmissionsChecklist)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } email.SendEmail("Admissions Checklist", tiffEmailBody + "doctype=ADM - Adult Admissions App Checklist", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); }
private void Tiffer() { Email email = new Email(); String emailTo = "*****@*****.**"; //String emailTo = "*****@*****.**"; TiffCreator tiff = new TiffCreator(); List <string> panelsNeeded = new List <string>(); string reEntry = "Naw"; RoutingRules rules = new RoutingRules(); string campusID = rules.CampusID(BackGroundScreeningForm.CampusAttending, ""); string tiffEmailBody = "campusid=" + campusID + "\r\ntab=" + reEntry + "|" + BackGroundScreeningForm.Phone + "\r\nfolder=" + BackGroundScreeningForm.StudentName + "\r\n"; tiffEmailBody += "f4=" + BackGroundScreeningForm.Email + "\r\n"; try { //Create KY Resident panelsNeeded.Add("pnlBackgroundScreening"); var BackgroundScreening = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("BackgroundScreening", 0, BackgroundScreening)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } email.SendEmail("Background Screening", tiffEmailBody + "doctype=ADM - Background/Drug Screen Acknowledge", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); } catch { } }
private void Tiffer() { Email email = new Email(); String emailTo = "*****@*****.**"; //String emailTo = "*****@*****.**"; //String emailTo = "*****@*****.**"; TiffCreator tiff = new TiffCreator(); List <string> panelsNeeded = new List <string>(); RoutingRules rules = new RoutingRules(); string campusID = rules.CampusID(campus.SelectedValue, tBoxZipCode.Text); string tiffEmailBody = "campusid=" + campusID + "\r\ntab=Naw|" + tBoxHomePhoneNumber.Text.Trim() + "\r\nfolder=" + StudentName + "\r\n"; tiffEmailBody += "f4=" + tBoxEmailAddress.Text.Trim() + "\r\n"; attachments.Clear(); panelsNeeded.Add("pnlAcademicHistory"); panelsNeeded.Add("programPanel"); panelsNeeded.Add("pnlAcceptanceInfo"); //panelsNeeded.Add("pnlAcceptanceDecision"); var GradSchool = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("GradSchoolAcceptance", 0, GradSchool)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } email.SendEmail("Graduate School Acceptance Worksheet", tiffEmailBody + "doctype=ADM - Grad School Acceptance Worksheet", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); }
private void Tiffer() { Email email = new Email(); String emailTo = "*****@*****.**"; //String emailTo = "*****@*****.**"; TiffCreator tiff = new TiffCreator(); List <string> panelsNeeded = new List <string>(); RoutingRules rules = new RoutingRules(); string campusID = rules.CampusID(Enroll.CampusAttending, PersonalInfo1.ZipCode); string tiffEmailBody = "campusid=" + campusID + "\r\ntab=Naw|" + PersonalInfo1.Phone + "\r\nfolder=" + PersonalInfo1.StudentName + "\r\n"; tiffEmailBody += "f4=" + PersonalInfo1.Email + "\r\n"; attachments.Clear(); //Create Enrollment Agreement panelsNeeded.Add("PersonalInfoPanel"); panelsNeeded.Add("nonUSPanel"); panelsNeeded.Add("permentResidentPanel"); panelsNeeded.Add("PersonalInfoPanel2"); if (PersonalInfo1.State == "California") { panelsNeeded.Add("pnlCalifornia"); } panelsNeeded.Add("TextPanel"); panelsNeeded.Add("reEntryPanel"); panelsNeeded.Add("TestScorePanel"); panelsNeeded.Add("EnrollPanel"); panelsNeeded.Add("pnlAddress"); panelsNeeded.Add("programPanel"); panelsNeeded.Add("DayNightPanel"); panelsNeeded.Add("pnlVAChapter"); panelsNeeded.Add("pnlCompany"); panelsNeeded.Add("pnlCompanyInfo"); panelsNeeded.Add("pnlMilitaryBranch"); panelsNeeded.Add("pnlLouisaCounty"); panelsNeeded.Add("pnlCarlisleNicholasCounty"); panelsNeeded.Add("pnlMayfield"); panelsNeeded.Add("felonyPanel"); panelsNeeded.Add("felonyPanelExplination"); panelsNeeded.Add("pnlAlumnusName"); panelsNeeded.Add("TranscriptPanel"); var enrollmentAgreement = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("EnrollmentAgreement", 0, enrollmentAgreement)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } email.SendEmail("Enrollment Agreement", tiffEmailBody + "doctype=ADM - Application for Enrollment", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); //Create Tuition Agreement panelsNeeded.Add("TuitionInfoPanel"); panelsNeeded.Add("tuitionPanel"); if (Enroll.enrollStartDate != "Winter: January 2018") { panelsNeeded.Add("pnlWithdraw"); if (Enroll.CampusAttending == "Fort Knox") { panelsNeeded.Add("pnlWithdrawFortKnox"); } } else { panelsNeeded.Add("pnlOldWithdraw"); } panelsNeeded.Add("withdrawPanel"); panelsNeeded.Add("TranscriptPanel"); var TuitionAgreement = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("TuitionAgreement", 0, TuitionAgreement)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } email.SendEmail("Tuition Agreement", tiffEmailBody + "doctype=ADM - Tuition Understanding", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); //Create Tuition Rate Tiff //panelsNeeded.Add("TuitionPDFPanel"); //panelsNeeded.Add("TranscriptPanel"); //var TuitionPDF = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); //foreach (string image in tiff.CreateTiffs("TuitionRateDocument", 0, TuitionPDF)) //{ // if (!attachments.Contains(image)) // attachments.Add(image); // allAttachments.Add(image); //} //foreach (var item in tuitionAttatchments) //{ // attachments.Add(item); //} //email.SendEmail("Tuition Rate Document", tiffEmailBody + "doctype=ADM - Tuition Rate Document", attachments, emailTo); //attachments.Clear(); //tiff.ClearAttachment(); //panelsNeeded.Clear(); //Create Academic Support Fee if (Enroll.degreeType != "POST GRADUATE") { panelsNeeded.Add("pnlASFContainer"); panelsNeeded.Add("pnlASF"); var asf = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("ASF", 0, asf)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } email.SendEmail("Academic Support Fee", tiffEmailBody + "doctype=ADM - Academic Support Fee", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); } //Create E-Signature panelsNeeded.Add("TranscriptPanel"); panelsNeeded.Add("parentSigPanel"); var ESignature = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("ESignature", 0, ESignature)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } email.SendEmail("E-Signature", tiffEmailBody + "doctype=ADM - E-Signature", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); }
private void Tiffer() { Email email = new Email(); String emailTo = "*****@*****.**"; //String emailTo = "*****@*****.**"; TiffCreator tiff = new TiffCreator(); List<string> panelsNeeded = new List<string>(); RoutingRules rules = new RoutingRules(); string campusID = rules.CampusID(Enroll.CampusAttending, PersonalInfo1.ZipCode); Session["CampusNumber"] = campusID; string tiffEmailBody = "campusid=" + campusID + "\r\ntab=Naw|" + PersonalInfo1.Phone + "\r\nfolder=" + PersonalInfo1.StudentName + "\r\n"; tiffEmailBody += "f4=" + PersonalInfo1.Email + "\r\n"; attachments.Clear(); //Create Enrollment Agreement panelsNeeded.Add("PersonalInfoPanel"); panelsNeeded.Add("nonUSPanel"); panelsNeeded.Add("permentResidentPanel"); panelsNeeded.Add("PersonalInfoPanel2"); if (PersonalInfo1.State == "California") { panelsNeeded.Add("pnlCalifornia"); } panelsNeeded.Add("TextPanel"); panelsNeeded.Add("reEntryPanel"); panelsNeeded.Add("TestScorePanel"); panelsNeeded.Add("EnrollPanel"); panelsNeeded.Add("pnlAddress"); panelsNeeded.Add("programPanel"); panelsNeeded.Add("DayNightPanel"); panelsNeeded.Add("pnlVAChapter"); panelsNeeded.Add("pnlCompany"); panelsNeeded.Add("pnlCompanyInfo"); panelsNeeded.Add("pnlMilitaryBranch"); panelsNeeded.Add("pnlLouisaCounty"); panelsNeeded.Add("pnlCarlisleNicholasCounty"); panelsNeeded.Add("pnlMayfield"); panelsNeeded.Add("pnlHousing"); panelsNeeded.Add("felonyPanel"); panelsNeeded.Add("felonyPanelExplination"); panelsNeeded.Add("pnlAlumnusName"); panelsNeeded.Add("AcademicHistoryPanel"); panelsNeeded.Add("highSchoolPanel"); panelsNeeded.Add("GEDPanel"); panelsNeeded.Add("commentPanel"); panelsNeeded.Add("TranscriptPanel"); var enrollmentAgreement = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("EnrollmentAgreement", 0, enrollmentAgreement)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } foreach (var item in ROIAttatchments) { attachments.Add(item); //allAttachments.Add(item); } email.SendEmail("Enrollment Agreement", tiffEmailBody + "doctype=ADM - Application for Enrollment", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); //Create HS GED Doc panelsNeeded.Add("AcademicHistoryPanel"); panelsNeeded.Add("highSchoolPanel"); panelsNeeded.Add("GEDPanel"); panelsNeeded.Add("TranscriptPanel"); var HSGED = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("HS_GED", 0, HSGED)) { if (!attachments.Contains(image)) attachments.Add(image); allAttachments.Add(image); } foreach (var item in HSGedAttatchments) { attachments.Add(item); //allAttachments.Add(item); } email.SendEmail("HS_GED", tiffEmailBody + "doctype=ADM - High School and/or GED Transcript", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); ////Create CollegeTranscript panelsNeeded.Add("collegePanel"); panelsNeeded.Add("CollegePanel1"); panelsNeeded.Add("creditPanel1"); panelsNeeded.Add("degreePanel1"); panelsNeeded.Add("CollegePanel2"); panelsNeeded.Add("creditPanel2"); panelsNeeded.Add("degreePanel2"); panelsNeeded.Add("CollegePanel3"); panelsNeeded.Add("creditPanel3"); panelsNeeded.Add("degreePanel3"); panelsNeeded.Add("CollegePanel4"); panelsNeeded.Add("creditPanel4"); panelsNeeded.Add("degreePanel4"); panelsNeeded.Add("CollegePanel5"); panelsNeeded.Add("creditPanel5"); panelsNeeded.Add("degreePanel5"); panelsNeeded.Add("CollegePanel6"); panelsNeeded.Add("creditPanel6"); panelsNeeded.Add("degreePanel6"); panelsNeeded.Add("CollegePanel7"); panelsNeeded.Add("creditPanel17"); panelsNeeded.Add("degreePanel7"); panelsNeeded.Add("CollegePanel8"); panelsNeeded.Add("creditPanel8"); panelsNeeded.Add("degreePanel8"); panelsNeeded.Add("CollegePanel9"); panelsNeeded.Add("creditPanel9"); panelsNeeded.Add("degreePanel9"); panelsNeeded.Add("TranscriptPanel"); var CollegeTranscpits = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("CollegeTranscpits", 0, CollegeTranscpits)) { if (!attachments.Contains(image)) attachments.Add(image); allAttachments.Add(image); } foreach (var file in CollegeAttatchments) { attachments.Add(file); //allAttachments.Add(file); } email.SendEmail("College Transcipts", tiffEmailBody + "doctype=ADM - College Transcripts", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); ////Create KY Resident if (Enroll.degreeType != "Graduate" && Enroll.degreeType != "POST GRADUATE") { panelsNeeded.Add("KYResidentContainer"); if (KYResidentInfo.KYRes == "Yes") { panelsNeeded.Add("panelStateResident"); } panelsNeeded.Add("TranscriptPanel"); var KYResident = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("KYResident", 0, KYResident)) { if (!attachments.Contains(image)) attachments.Add(image); allAttachments.Add(image); } email.SendEmail("KYResident", tiffEmailBody + "doctype=ADM - KY Residency Determination", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); } //Create Tuition Agreement panelsNeeded.Add("TuitionInfoPanel"); panelsNeeded.Add("tuitionPanel"); if(Enroll.enrollStartDate != "Winter: January 2018") { panelsNeeded.Add("pnlWithdraw"); if (Enroll.CampusAttending == "Fort Knox") { panelsNeeded.Add("pnlWithdrawFortKnox"); } } else { panelsNeeded.Add("pnlOldWithdraw"); } panelsNeeded.Add("withdrawPanel"); panelsNeeded.Add("TranscriptPanel"); var TuitionAgreement = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("TuitionAgreement", 0, TuitionAgreement)) { if (!attachments.Contains(image)) attachments.Add(image); allAttachments.Add(image); } email.SendEmail("Tuition Agreement", tiffEmailBody + "doctype=ADM - Tuition Understanding", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); //Create Matriculation Statement panelsNeeded.Add("MatriculationStatementPanel"); panelsNeeded.Add("TranscriptPanel"); var MatriculationStatement = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("MatriculationStatement", 0, MatriculationStatement)) { if (!attachments.Contains(image)) attachments.Add(image); allAttachments.Add(image); } email.SendEmail("Matriculation Statement", tiffEmailBody + "doctype=ADM - Matriculation Statement", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); //Create Tuition Rate Tiff //panelsNeeded.Add("TuitionPDFPanel"); //panelsNeeded.Add("TranscriptPanel"); //var TuitionPDF = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); //foreach (string image in tiff.CreateTiffs("TuitionRateDocument", 0, TuitionPDF)) //{ // if (!attachments.Contains(image)) // attachments.Add(image); // allAttachments.Add(image); //} //foreach (var item in tuitionAttatchments) //{ // attachments.Add(item); //} //email.SendEmail("Tuition Rate Document", tiffEmailBody + "doctype=ADM - Tuition Rate Document", attachments, emailTo); //attachments.Clear(); //tiff.ClearAttachment(); //panelsNeeded.Clear(); //Create Academic Support Fee if (Enroll.degreeType != "POST GRADUATE") { panelsNeeded.Add("pnlASFContainer"); panelsNeeded.Add("pnlASF"); var asf = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("ASF", 0, asf)) { if (!attachments.Contains(image)) attachments.Add(image); allAttachments.Add(image); } email.SendEmail("Academic Support Fee", tiffEmailBody + "doctype=ADM - Academic Support Fee", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); } //Create Supplement A panelsNeeded.Add("SupplementAPanel"); panelsNeeded.Add("TranscriptPanel"); var SupplementA = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("SupplementA", 0, SupplementA)) { if (!attachments.Contains(image)) attachments.Add(image); allAttachments.Add(image); } if (Enroll.CampusAttending != "Fort Knox") attachments.Add("C:\\Websites\\secure.sullivan.edu\\Admissions\\PDFs\\SupplementA.pdf"); else attachments.Add("C:\\Websites\\secure.sullivan.edu\\Admissions\\PDFs\\FortKnoxSupplementA.pdf"); email.SendEmail("SupplementA", tiffEmailBody + "doctype=ADM - Catalog Supplement A", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); //Create Credit Disclosure panelsNeeded.Add("CreditDisclosurePanel"); panelsNeeded.Add("creditPanel"); panelsNeeded.Add("creditGradTerms"); panelsNeeded.Add("TranscriptPanel"); var CreditDisclosure = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("CreditDisclosure", 0, CreditDisclosure)) { if (!attachments.Contains(image)) attachments.Add(image); attachments.Add(disclosureAttachment); allAttachments.Add(image); } email.SendEmail("Credit Disclosure", tiffEmailBody + "doctype=ADM - Credit Transfer Disclosure", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); //Create Computer Requirements panelsNeeded.Add("MainComputerPanel"); panelsNeeded.Add("computerPanel"); panelsNeeded.Add("TranscriptPanel"); var computerPanel = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("ComputerReqirements", 0, computerPanel)) { if (!attachments.Contains(image)) attachments.Add(image); allAttachments.Add(image); } email.SendEmail("Computer Reqirements", tiffEmailBody + "doctype=ADM - Online Requirements", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); //Create Enrollment Acknowledgement panelsNeeded.Add("EnrollmentAcknowledgementPanel"); panelsNeeded.Add("pnlGradWork"); panelsNeeded.Add("TranscriptPanel"); var EnrollmentAcknowledgement = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("EnrollmentAcknowledgement", 0, EnrollmentAcknowledgement)) { if (!attachments.Contains(image)) attachments.Add(image); allAttachments.Add(image); } email.SendEmail("Enrollment Acknowledgement", tiffEmailBody + "doctype=ADM - Enrollment Acknowledgement", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); //Create Financial Obligation panelsNeeded.Add("FinancialObligationPanel"); panelsNeeded.Add("TranscriptPanel"); var FinancialObligation = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("FinancialObligation", 0, FinancialObligation)) { if (!attachments.Contains(image)) attachments.Add(image); allAttachments.Add(image); } attachments.Add("C:\\Websites\\secure.sullivan.edu\\Admissions\\PDFs\\FinancialObligation.pdf"); email.SendEmail("Financial Obligation", tiffEmailBody + "doctype=ADM - Financial Obligation", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); //Create TN Check List //if (PersonalInfo1.State == "Tennessee") //{ // panelsNeeded.Add("TNEnrollPanel"); // panelsNeeded.Add("TNEnrollPanel2"); // panelsNeeded.Add("TranscriptPanel"); // var TNCheckList = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); // foreach (string image in tiff.CreateTiffs("TNCheckList", 0, TNCheckList)) // { // if (!attachments.Contains(image)) // attachments.Add(image); // allAttachments.Add(image); // } // foreach (var file in tnAttachments) // { // attachments.Add(file); // } // email.SendEmail("TN CheckList", tiffEmailBody + "doctype=ADM - TN Pre-Application Checklist", attachments, emailTo); // attachments.Clear(); // tiff.ClearAttachment(); // panelsNeeded.Clear(); //} //Create E-Signature panelsNeeded.Add("TranscriptPanel"); var ESignature = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("ESignature", 0, ESignature)) { if (!attachments.Contains(image)) attachments.Add(image); allAttachments.Add(image); } email.SendEmail("E-Signature", tiffEmailBody + "doctype=ADM - E-Signature", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); //Create FERPA panelsNeeded.Add("ferpaPanel"); panelsNeeded.Add("pnlFerpaRel1"); panelsNeeded.Add("pnlFerpaRel2"); panelsNeeded.Add("pnlFerpaRel3"); panelsNeeded.Add("pnlFerpaRel4"); var FERPA = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("FERPA", 0, FERPA)) { if (!attachments.Contains(image)) attachments.Add(image); allAttachments.Add(image); } email.SendEmail("FERPA", tiffEmailBody + "doctype=ADM - FERPA Consent Form", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); }
private void Tiffer() { Email email = new Email(); String emailTo = "*****@*****.**"; TiffCreator tiff = new TiffCreator(); List <string> panelsNeeded = new List <string>(); RoutingRules rules = new RoutingRules(); string campusID = rules.CampusID(Enroll.Campus, ""); string tiffEmailBody = "campusid=" + campusID + "\r\ntab=Yep|" + PersonalInfo1.Phone + "\r\nfolder=" + PersonalInfo1.StudentName + "\r\n"; tiffEmailBody += "f4=" + PersonalInfo1.Email + "\r\n"; attachments.Clear(); //Create Enrollment Agreement panelsNeeded.Add("PersonalInfoPanel"); panelsNeeded.Add("OPTPanel"); panelsNeeded.Add("PersonalInfoPanel2"); if (PersonalInfo1.State == "California") { panelsNeeded.Add("pnlCalifornia"); } panelsNeeded.Add("InternationalAddressPanel"); panelsNeeded.Add("AddressPanel"); panelsNeeded.Add("pnlOtherCountry"); panelsNeeded.Add("InternationEnrollPanel"); panelsNeeded.Add("degreeTypePanel"); panelsNeeded.Add("programPanel"); panelsNeeded.Add("DayNightPanel"); panelsNeeded.Add("felonyPanel"); panelsNeeded.Add("felonyPanelExplination"); panelsNeeded.Add("pnlAlumnusName"); panelsNeeded.Add("AcademicHistoryPanel"); panelsNeeded.Add("pnlOtherCountrySchool"); panelsNeeded.Add("collegePanel"); panelsNeeded.Add("CollegePanel1"); panelsNeeded.Add("pnlOtherCountry1"); panelsNeeded.Add("CollegePanel2"); panelsNeeded.Add("pnlOtherCountry2"); panelsNeeded.Add("CollegePanel3"); panelsNeeded.Add("pnlOtherCountry3"); panelsNeeded.Add("CollegePanel4"); panelsNeeded.Add("pnlOtherCountry4"); panelsNeeded.Add("CollegePanel5"); panelsNeeded.Add("pnlOtherCountry5"); panelsNeeded.Add("commentPanel"); var enrollmentAgreement = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("EnrollmentAgreement", 0, enrollmentAgreement)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } foreach (var item in transcriptAttatchments) { attachments.Add(item); } email.SendEmail("Enrollment Agreement", tiffEmailBody + "doctype=ADM - Application for Enrollment", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); //Create IPED panelsNeeded.Add("EthnictyPanel"); var IPED = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("IPED", 0, IPED)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } email.SendEmail("IPED", tiffEmailBody + "doctype=ADM - Integrated Postsecondary Ed DSS", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); //Create Tuition Agreement panelsNeeded.Add("TuitionInfoPanel"); panelsNeeded.Add("tuitionPanel"); if (Enroll.enrollStartDate != "Winter: January 2018") { panelsNeeded.Add("pnlWithdraw"); } else { panelsNeeded.Add("pnlOldWithdraw"); } var TuitionAgreement = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("TuitionAgreement", 0, TuitionAgreement)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } email.SendEmail("Tuition Agreement", tiffEmailBody + "doctype=ADM - Tuition Understanding", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); //Create Matriculation Statement panelsNeeded.Add("MatriculationStatementPanel"); var MatriculationStatement = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("MatriculationStatement", 0, MatriculationStatement)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } email.SendEmail("Matriculation Statement", tiffEmailBody + "doctype=ADM - Matriculation Statement", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); //Create Academic Support Fee panelsNeeded.Add("pnlASFContainer"); panelsNeeded.Add("pnlASF"); var asf = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("ASF", 0, asf)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } email.SendEmail("Academic Support Fee", tiffEmailBody + "doctype=ADM - Academic Support Fee", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); //Create Supplement A panelsNeeded.Add("SupplementAPanel"); var SupplementA = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("SupplementA", 0, SupplementA)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } if (Enroll.Campus != "Fort Knox") { attachments.Add("C:\\Websites\\secure.sullivan.edu\\Admissions\\PDFs\\SupplementA.pdf"); } else { attachments.Add("C:\\Websites\\secure.sullivan.edu\\Admissions\\PDFs\\FortKnoxSupplementA.pdf"); } email.SendEmail("SupplementA", tiffEmailBody + "doctype=ADM - Catalog Supplement A", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); //Create Credit Disclosure panelsNeeded.Add("CreditDisclosurePanel"); panelsNeeded.Add("creditPanel"); var CreditDisclosure = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("CreditDisclosure", 0, CreditDisclosure)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } email.SendEmail("Credit Disclosure", tiffEmailBody + "doctype=ADM - Credit Transfer Disclosure", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); //Create Computer Requirements panelsNeeded.Add("MainComputerPanel"); panelsNeeded.Add("computerPanel"); var computerPanel = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("ComputerReqirements", 0, computerPanel)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } email.SendEmail("Computer Reqirements", tiffEmailBody + "doctype=ADM - Online Requirements", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); //Create Enrollment Acknowledgement panelsNeeded.Add("EnrollmentAcknowledgementPanel"); panelsNeeded.Add("pnlGradWork"); var EnrollmentAcknowledgement = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("EnrollmentAcknowledgement", 0, EnrollmentAcknowledgement)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } email.SendEmail("Enrollment Acknowledgement", tiffEmailBody + "doctype=ADM - Enrollment Acknowledgement", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); //Create Financial Obligation panelsNeeded.Add("FinancialObligationPanel"); panelsNeeded.Add("TranscriptPanel"); var FinancialObligation = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("FinancialObligation", 0, FinancialObligation)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } attachments.Add("C:\\Websites\\secure.sullivan.edu\\Admissions\\PDFs\\FinancialObligation.pdf"); email.SendEmail("Financial ObligationPanel", tiffEmailBody + "doctype=ADM - Financial Obligation", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); //Create TN Check List //panelsNeeded.Add("TNCheckListPanel"); //panelsNeeded.Add("TNCheckListPanel2"); //var TNCheckList = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); //foreach (string image in tiff.CreateTiffs("TNCheckList", 0, TNCheckList)) //{ // if (!attachments.Contains(image)) // attachments.Add(image); // allAttachments.Add(image); //} //email.SendEmail("TN CheckList", tiffEmailBody + "doctype=ADM - TN Pre-Application Checklist", attachments, emailTo); //attachments.Clear(); //tiff.ClearAttachment(); //panelsNeeded.Clear(); //Create E-Signature panelsNeeded.Add("TranscriptPanel"); panelsNeeded.Add("parentSigPanel"); var ESignature = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("ESignature", 0, ESignature)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } email.SendEmail("E-Signature", tiffEmailBody + "doctype=ADM - E-Signature", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { string campus; RoutingRules router = new RoutingRules(); gradEnrollmentFeePanel.Visible = false; string[] files = Directory.GetFiles(@"C:\Websites\DropFolder\Sullivan_Admissions\"); if (Session["AllAttachments"] != null) { Session["AllAttachments"] = allAttachments; foreach (string attachment in allAttachments) { try { File.Delete(attachment); } catch { } } } foreach (string file in files) { if (File.GetCreationTime(file).AddMinutes(3.0) < DateTime.Now) { try { File.Delete(file); } catch { } } } allAttachments.Clear(); ViewState["Transcript"] = Session["Transcript"]; ViewState["Campus"] = Session["Campus"]; ViewState["enrollmentFee"] = Session["enrollmentFee"]; ViewState["StudentName"] = Session["StudentName"]; ViewState["CampusNumber"] = Session["CampusNumber"]; ViewState["ZipCode"] = Session["ZipCode"]; int paymentTotal = 0; campus = (string)ViewState["Campus"]; if (campus == "Louisville") { account = "SullivanLouisville"; emailTo = "*****@*****.**"; description = "Sullivan Louisville Enrollment"; } else if (campus == "Lexington") { account = "SullivanLexington"; emailTo = "[email protected]; [email protected]"; description = "Sullivan Lexington Enrollment"; } else if (campus == "Online" || campus == "Louisa" || campus == "Northern Kentucky" || campus == "CarlisleNicholas") { account = router.OnlineAccount((string)ViewState["ZipCode"]); emailTo = "[email protected]; [email protected]; [email protected]; [email protected]; [email protected]"; description = "Sullivan Online Enrollment"; if (campus == "Louisa") { description = "Sullivan Louisa Enrollment"; account = "SullivanLexington"; } else if (campus == "Northern Kentucky") { account = "SullivanLouisville"; description = "Sullivan Northern Kentucky Enrollment"; } else if(campus == "CarlisleNicholas") { description = "Sullivan Carlisle/Nicholas Enrollment"; account = "SullivanLexington"; } } //Assign serial number (account number) according to campus try { //sjAppEmails.Value = (string)Session["emailRecipients"]; if (ViewState["Transcript"].ToString() == "Yes") { transcriptPanel.Visible = true; paymentTotal += 15; } else { transcriptPanel.Visible = false; } if ((string)ViewState["Campus"] == "Fort Knox") { transcriptPanel.Visible = false; enrollmentFeePanel.Visible = false; paymentPanel.Visible = false; pnlSubmit.Visible = false; } else { if ((string)ViewState["enrollmentFee"] == "100.00" && (string)ViewState["Campus"] == "Online") { enrollmentFeePanel.Visible = false; gradEnrollmentFeePanel.Visible = true; pnlSubmit.Visible = true; paymentPanel.Visible = true; paymentTotal += 100; } else { enrollmentFeePanel.Visible = true; paymentTotal += 30; } } amount = paymentTotal.ToString() + ".00"; sjAmount.Text = amount; //if (((string)ViewState["Campus"] == "Louisa" || (string)ViewState["Campus"] == "Northern Kentucky") && ViewState["Transcript"].ToString() == "No" && ViewState["enrollmentFee"].ToString() != "100.00") //{ // paymentPanel.Visible = false; // pnlSubmit.Visible = false; //} enrollmentFee = (string)ViewState["enrollmentFee"]; } catch (Exception ex) { Response.Redirect("PayFees.aspx"); } ViewState["description"] = description; ViewState["account"] = account; ViewState["amount"] = amount; ViewState["emailTo"] = emailTo; Button1.PostBackUrl = "https://secure.sullivan.edu/Payments/PCAppPayments.aspx?account=" + account; //Assign amount, 100 for enrollment fee, optional housing fees //double Amount = 50.00; //sjAmount.Value = string.Format("{0:0.00}", Amount); } else { description = (string)ViewState["description"]; account = (string)ViewState["account"]; amount = (string)ViewState["amount"]; emailTo = (string)ViewState["emailTo"]; } }
protected void FeeDisplay(object sender, EventArgs e) { int paymentTotal = 0; RoutingRules router = new RoutingRules(); if (Transcript.SelectedIndex > -1 && campus.SelectedValue != "0" && tbZipCode.Text.Count() > 0) { if (Transcript.SelectedItem.Text == "Yes") { transcriptPanel.Visible = true; paymentTotal += 15; } else { transcriptPanel.Visible = false; } if (campus.SelectedItem.Text == "Fort Knox") { transcriptPanel.Visible = false; enrollmentFeePanel.Visible = false; paymentPanel.Visible = false; pnlFortKnox.Visible = true; } else { enrollmentFeePanel.Visible = true; paymentTotal += 30; if (campus.SelectedItem.Text == "Louisville") { account = "SullivanLouisville"; emailTo = "*****@*****.**"; description = "Sullivan Louisville Enrollment"; } else if (campus.SelectedItem.Text == "Lexington") { account = "SullivanLexington"; emailTo = "[email protected]; [email protected]"; description = "Sullivan Lexington Enrollment"; } else if (campus.SelectedItem.Text == "Online" || campus.SelectedValue == "Louisa" || campus.SelectedValue == "Northern Kentucky" || campus.SelectedValue == "CarlisleNicholas") { account = router.OnlineAccount(tbZipCode.Text); emailTo = "[email protected]; [email protected]; [email protected]; [email protected]; [email protected]"; description = "Sullivan Online Enrollment"; if (campus.SelectedValue == "Louisa") { account = "SullivanLexington"; description = "Sullivan Louisa Enrollment"; } else if (campus.SelectedValue == "Northern Kentucky") { account = "SullivanLouisville"; description = "Sullivan Northern Kentucky Enrollment"; } else if (campus.SelectedValue == "CarlisleNicholas") { description = "Sullivan Carlisle/Nicholas Enrollment"; account = "SullivanLexington"; } } } sjAmount.Text = paymentTotal.ToString() + ".00"; amount = paymentTotal.ToString() + ".00"; //if ((campus.SelectedValue == "Louisa" || campus.SelectedValue == "Northern Kentucky") && Transcript.SelectedItem.Text == "No") //{ // paymentPanel.Visible = false; // pnlSubmit.Visible = false; // pnlNoPayment.Visible = true; // pnlFortKnox.Visible = false; //} //else if (campus.SelectedItem.Text == "Fort Knox") //{ // paymentPanel.Visible = false; // pnlSubmit.Visible = false; // pnlNoPayment.Visible = false; // pnlFortKnox.Visible = true; //} //else //{ paymentPanel.Visible = true; pnlSubmit.Visible = true; pnlNoPayment.Visible = false; pnlFortKnox.Visible = false; //} ViewState["description"] = description; ViewState["account"] = account; ViewState["amount"] = amount; ViewState["emailTo"] = emailTo; Button1.PostBackUrl = "https://secure.sullivan.edu/Payments/PCAppPayments.aspx?account=" + account; } }
private void Tiffer() { Email email = new Email(); String emailTo = "*****@*****.**"; //String emailTo = "*****@*****.**"; TiffCreator tiff = new TiffCreator(); List <string> panelsNeeded = new List <string>(); RoutingRules rules = new RoutingRules(); string campusID = rules.CampusID(personalInfo1.CampusAttending, ""); string tiffEmailBody = "campusid=" + campusID + "\r\ntab=Naw|" + personalInfo1.Phone + "\r\nfolder=" + personalInfo1.StudentName + "\r\n"; tiffEmailBody += "f4=" + personalInfo1.Email + "\r\n"; //int gradYear; //string enrollQueue; try { //Create Enrollment Agreement //panelsNeeded.Add("PersonalInfoPanel"); //panelsNeeded.Add("TranscriptPanel"); //panelsNeeded.Add("parentSigPanel"); //var enrollmentAgreement = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); //foreach (string image in tiff.CreateTiffs("EnrollmentAgreement", 0, enrollmentAgreement)) //{ // if (!attachments.Contains(image)) // attachments.Add(image); //} //email.SendEmail("Enrollment Agreement", tiffEmailBody + "doctype=ADM - Application for Enrollment", attachments, emailTo); //attachments.Clear(); //tiff.ClearAttachment(); //panelsNeeded.Clear(); //Create Comp Fees panelsNeeded.Add("pnlCompFeePDF"); panelsNeeded.Add("TranscriptPanel"); var compFeePDF = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("CompFees", 0, compFeePDF)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } attachments.Add(Server.MapPath("PDFs/CompFees.pdf")); email.SendEmail("Comprehensive Fees", tiffEmailBody + "doctype=ADM - Comprehensive Fees", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); //Create Tech Standards panelsNeeded.Add("pnlTechStandardsPDF"); panelsNeeded.Add("TranscriptPanel"); var techStandards = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("Essential Functions and Technical Standards", 0, techStandards)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } attachments.Add(Server.MapPath("PDFs/TechStandards.pdf")); email.SendEmail("Background and Drug Screening Acknowledgement, Consent and Release", tiffEmailBody + "doctype=ADM - Technical Standards Form", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); ////Create Pharm ESig //panelsNeeded.Add("TranscriptPanel"); //panelsNeeded.Add("parentSigPanel"); //var pharmESig = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); //foreach (string image in tiff.CreateTiffs("PharmESig", 0, pharmESig)) //{ // if (!attachments.Contains(image)) // attachments.Add(image); //} //email.SendEmail("E-Signature", tiffEmailBody + "doctype=ADM - Application for Enrollment", attachments, emailTo); //attachments.Clear(); //tiff.ClearAttachment(); //panelsNeeded.Clear(); } catch { } }