private void Tiffer() { Email email = new Email(); String emailTo = "*****@*****.**"; TiffCreator tiff = new TiffCreator(); List <string> panelsNeeded = new List <string>(); string tiffEmailBody = "campusid=01\r\ntab=Naw|" + HIMDisclaimer1.Phone + "\r\nfolder=" + HIMDisclaimer1.Name + "\r\n"; tiffEmailBody += "f4=" + HIMDisclaimer1.Email + "\r\n"; try { //Create Disclaimer panelsNeeded.Add("pnlPersonalInfo"); panelsNeeded.Add("pnlDisclaimer"); var HIMDisclaimer = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("HIMDisclaimer", 0, HIMDisclaimer)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } email.SendEmail("HIM Disclaimer", tiffEmailBody + "doctype=ADM - MC Disclosure Form", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); //Create Waiver panelsNeeded.Add("pnlPersonalInfo"); panelsNeeded.Add("pnlWaiver"); var HIMWaiver = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("HIMWaiver", 0, HIMWaiver)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } email.SendEmail("HIM Waiver", tiffEmailBody + "doctype=ADM - HIM Disclosure Form", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); } catch { } }
private void Tiffer() { Email email = new Email(); String emailTo = "*****@*****.**"; TiffCreator tiff = new TiffCreator(); List<string> panelsNeeded = new List<string>(); string tiffEmailBody = "campusid=" + (string)ViewState["CampusNumber"] +"\r\ntab=Naw\r\nfolder=" + (string)ViewState["StudentName"] + "\r\n"; List<string> attachments = new List<string>(); //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); } email.SendEmail("IPED", tiffEmailBody + "doctype=ADM - Integrated Postsecondary Ed DSS", 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(); 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 = "*****@*****.**"; //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() { 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() { /* * 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=" + 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 = "*****@*****.**"; //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 = 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>(); 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.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>(); 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 = "*****@*****.**"; //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 = "*****@*****.**"; 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(); }
public void Tiffer() { Email email = new Email(); String emailTo = "*****@*****.**"; //String emailTo = "*****@*****.**"; TiffCreator tiff = new TiffCreator(); List <string> panelsNeeded = new List <string>(); List <string> attachments = new List <string>(); string tiffEmailBody = "campusid=04\r\ntab=Yep|" + PersonalInfo1.Phone + "\r\nfolder=" + PersonalInfo1.StudentName + "\r\n"; tiffEmailBody += "f4=" + PersonalInfo1.Email + "\r\n"; //Create Tuition Agreement panelsNeeded.Add("TuitionInfoPanel"); panelsNeeded.Add("tuitionTermPanel"); //Create E-Signature panelsNeeded.Add("TranscriptPanel"); panelsNeeded.Add("parentSigPanel"); 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(); }
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 { } }
public void Tiffer() { Email email = new Email(); String emailTo = "*****@*****.**"; //String emailTo = "*****@*****.**"; TiffCreator tiff = new TiffCreator(); List <string> panelsNeeded = new List <string>(); string tiffEmailBody = "campusid=04\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("EthnictyPanel"); panelsNeeded.Add("TestScorePanel"); panelsNeeded.Add("EnrollPanel"); panelsNeeded.Add("AcademicHistoryPanel"); panelsNeeded.Add("highSchoolPanel"); panelsNeeded.Add("GEDPanel"); panelsNeeded.Add("pnlFirstGenCollegeStudent"); 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"); panelsNeeded.Add("commentPanel"); panelsNeeded.Add("TuitionInfoPanel"); panelsNeeded.Add("tuitionTermPanel"); 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); } 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 Tuition Agreement panelsNeeded.Add("TuitionInfoPanel"); panelsNeeded.Add("tuitionTermPanel"); panelsNeeded.Add("TranscriptPanel"); panelsNeeded.Add("parentSigPanel"); 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 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); } attachments.Add("C:\\Websites\\secure.sullivan.edu\\Admissions\\PDFs\\SupplementA.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("computerPanel", 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"); 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 PA Supplemental panelsNeeded.Add("paSupplemental"); panelsNeeded.Add("pnlEnrollmentFee"); panelsNeeded.Add("FelonyPanel"); panelsNeeded.Add("pnlPrerequisites"); panelsNeeded.Add("supplementalPrerequisitesPanel"); panelsNeeded.Add("supplementalPrerequisitesPanel1"); panelsNeeded.Add("supplementalPrerequisitesPanel2"); panelsNeeded.Add("supplementalPrerequisitesPanel3"); panelsNeeded.Add("supplementalPrerequisitesPanel4"); panelsNeeded.Add("supplementalPrerequisitesPanel5"); panelsNeeded.Add("employmentPanel"); panelsNeeded.Add("pnlPAAdditionalRequirements"); panelsNeeded.Add("paRequirementsPanel"); var PASupplemental = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("PASupplemental", 0, PASupplemental)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } email.SendEmail("PA Supplemental", tiffEmailBody + "doctype=ADM - COP Supplemental Form", 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(); //Create FERPA panelsNeeded.Add("ferpaPanel"); panelsNeeded.Add("pnlFerpaRel1"); panelsNeeded.Add("pnlFerpaRel2"); panelsNeeded.Add("pnlFerpaRel3"); panelsNeeded.Add("pnlFerpaRel4"); panelsNeeded.Add("pnlPAROIAuthorization"); 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(); //Create ROI Verification panelsNeeded.Add("pnlPAROIAuthorization"); var roiVerification = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("roiVerification", 0, roiVerification)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } email.SendEmail("roiVerification", tiffEmailBody + "doctype=ADM - PA Application for Enrollment", 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 = "*****@*****.**"; //String emailTo = "*****@*****.**"; TiffCreator tiff = new TiffCreator(); List <string> panelsNeeded = new List <string>(); string tiffEmailBody = "campusid=04\r\ntab=Yep|" + PersonalInfoForm.Phone + "\r\nfolder=" + PersonalInfoForm.StudentName + "\r\n"; tiffEmailBody += "f4=" + PersonalInfoForm.Email + "\r\n"; //Create Enrollment Agreement panelsNeeded.Add("PersonalInfoPanel"); panelsNeeded.Add("nonUSPanel"); panelsNeeded.Add("permentResidentPanel"); panelsNeeded.Add("PersonalInfoPanel2"); panelsNeeded.Add("TextPanel"); //panelsNeeded.Add("EthnictyPanel"); panelsNeeded.Add("TestScorePanel"); panelsNeeded.Add("EnrollPanel"); panelsNeeded.Add("programPanel"); panelsNeeded.Add("DayNightPanel"); panelsNeeded.Add("AcademicHistoryPanel"); panelsNeeded.Add("highSchoolPanel"); panelsNeeded.Add("GEDPanel"); panelsNeeded.Add("pnlFirstGenCollegeStudent"); 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 = "*****@*****.**"; 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(); }
private void Tiffer() { Email email = new Email(); //String emailTo = "*****@*****.**"; String emailTo = "*****@*****.**"; TiffCreator tiff = new TiffCreator(); List <string> panelsNeeded = new List <string>(); string tiffEmailBody = "campusid=01\r\ntab=Naw|" + personalInfo1.Phone + "\r\nfolder=" + personalInfo1.StudentName + "\r\n"; tiffEmailBody += "f4=" + personalInfo1.Email + "\r\n"; //string tiffEmailBody = "Test"; try { ////Create Enrollment Agreement //panelsNeeded.Add("PersonalInfoPanel"); //panelsNeeded.Add("PersonalInfoPanel2"); //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 Pharm Acceptance panelsNeeded.Add("pnlPharmAcceptance"); panelsNeeded.Add("pnlPharmESig"); var pharmAcceptance = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("PharmAcceptance", 0, pharmAcceptance)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } email.SendEmail("Admissions Acceptance Requirements", tiffEmailBody + "doctype=ADM - Admissions Requirement Form", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); //Create Pharm Background panelsNeeded.Add("PersonalInfoPanel"); panelsNeeded.Add("pnlPharmBackground"); panelsNeeded.Add("pnlPharmESig"); var pharmBackground = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("PharmBackground", 0, pharmBackground)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } foreach (string file in pharmBackground1.GetAttachments()) { attachments.Add(file); } email.SendEmail("Background and Drug Screening Acknowledgement, Consent and Release", tiffEmailBody + "doctype=ADM - Criminal Background Check", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); //Create Pharm Release panelsNeeded.Add("PersonalInfoPanel"); panelsNeeded.Add("pnlPharmRelease"); panelsNeeded.Add("pnlPharmAddress1"); panelsNeeded.Add("pnlPharmAddress2"); panelsNeeded.Add("pnlPharmAddress3"); panelsNeeded.Add("pnlPharmAddress4"); panelsNeeded.Add("pnlPharmAddress5"); panelsNeeded.Add("pnlPharmESig"); var pharmRelease = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("PharmRelease", 0, pharmRelease)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } email.SendEmail("Release and Consent Form", tiffEmailBody + "doctype=ADM - Consumer Consent Form", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); //Create PharmPDF panelsNeeded.Add("pnlPharmPDF"); panelsNeeded.Add("pnlPharmESig"); var pharmPDF = formInfo.Where(control => panelsNeeded.Contains(control.panelID)).ToList(); foreach (string image in tiff.CreateTiffs("PharmPDF", 0, pharmPDF)) { if (!attachments.Contains(image)) { attachments.Add(image); } allAttachments.Add(image); } attachments.Add(Server.MapPath("PDFs/PharmAdmissions.pdf")); email.SendEmail("College of Pharmacy Admissions Document", tiffEmailBody + "doctype=ADM - Pharm Tech Demands/Risks", attachments, emailTo); attachments.Clear(); tiff.ClearAttachment(); panelsNeeded.Clear(); ////Create Pharm ESig //panelsNeeded.Add("pnlPharmESig"); //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 - E-Signature", attachments, emailTo); //attachments.Clear(); //tiff.ClearAttachment(); //panelsNeeded.Clear(); } catch { } }