protected void lnkCopyApp_Click(object sender, EventArgs e) { var camperAppl = new CamperApplication(); var redirectionLogic = new Redirection_Logic(); string newFJCID; camperAppl.CopyCamperApplication(Session["FJCID"].ToString(), out newFJCID); redirectionLogic.PageName = (int)Redirection_Logic.PageNames.ThankYou;// Added this flag to avoid confusion of setting federation id if new app is created and set the newfederationid =0 redirectionLogic.GetNextFederationDetails(Session["FJCID"].ToString()); int nextFederationId = redirectionLogic.NextFederationId; if ((nextFederationId == 72 || nextFederationId == 93) && !String.IsNullOrEmpty(newFJCID)) { camperAppl.DeleteCamperAnswerUsingFJCID(newFJCID); } if (nextFederationId == 0) { Session["FedId"] = null; } else { Session["FedId"] = nextFederationId.ToString(); } Session["FJCID"] = newFJCID; Session["STATUS"] = 5; // 2013-10-31 we must delete the codeValue Session variable if (redirectionLogic.BeenToPJL) { Session["codeValue"] = null; } // 2014-10-15 no one should pass to PJL now because PJL only accept JDS users but JDS users are routed to PJ Lottery already // all other failed applicants must if (redirectionLogic.NextFederationURL == "~/Enrollment/PJL/Summary.aspx") { camperAppl.UpdateFederationId(Session["FJCID"].ToString(), "0"); redirectionLogic.NextFederationId = 0; Session["FedId"] = null; Session["codeValue"] = null; Response.Redirect("Step1_NL.aspx"); } else { camperAppl.UpdateFederationId(Session["FJCID"].ToString(), nextFederationId.ToString()); Response.Redirect(redirectionLogic.NextFederationURL); } }
// added to redirect to either pjl or miip or NL page depending on inputs by sreevani protected void goldringcontinue_Click(object sender, EventArgs e) { if (Session["FJCID"] != null) { var camperAppl = new CamperApplication(); string strFJCID = Session["FJCID"].ToString(); var _objRedirectionLogic = new Redirection_Logic(); _objRedirectionLogic.GetNextFederationDetails(strFJCID); int nextfederationid = _objRedirectionLogic.NextFederationId; camperAppl.UpdateFederationId(strFJCID, nextfederationid.ToString()); Session["FedId"] = nextfederationid.ToString(); if (nextfederationid == 48 || nextfederationid == 63) { Response.Redirect(_objRedirectionLogic.NextFederationURL); } else { Response.Redirect("~/Enrollment/Step1_NL.aspx"); } } }
protected void Dallaslink_Click(object sender, EventArgs e) { CamperApplication CamperAppl = new CamperApplication(); if (Session["FJCID"] != null) { string strFJCID = Session["FJCID"].ToString(); int nextfederationid; Redirection_Logic _objRedirectionLogic = new Redirection_Logic(); _objRedirectionLogic.GetNextFederationDetails(strFJCID); nextfederationid = _objRedirectionLogic.NextFederationId; CamperAppl.UpdateFederationId(strFJCID, nextfederationid.ToString()); Session["FedId"] = nextfederationid.ToString(); if (nextfederationid == 48 || nextfederationid == 63) { Response.Redirect(_objRedirectionLogic.NextFederationURL); } else { Response.Redirect("../Step1_NL.aspx"); } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { strAmt = " in the amount of $" + GetGrantAmount(); var strStatus = (StatusInfo)Convert.ToInt32(Session["STATUS"]); var strFedId = Session["FedId"].ToString(); var strCampId = GetCampID(); DataRow dr; DataSet dsSelectedCamp = new DataSet(); DataSet dsContactDetails = new DataSet(); DataRow drContact; string strDesignation = string.Empty; DataSet ds = objGeneral.GetFederationDetails(strFedId); int iCount = ds.Tables[0].Rows.Count; pnlInEligibleNonJewish.Visible = false; var objRedirectionLogic = new Redirection_Logic(); if (Session["FJCID"] != null) { objRedirectionLogic.GetNextFederationDetails(Session["FJCID"].ToString()); } if (strStatus == StatusInfo.SystemEligible || strStatus == StatusInfo.EligibleNoCamp || strStatus == StatusInfo.EligiblePendingSchool || strStatus == StatusInfo.PendingSchoolAndCamp || strStatus == StatusInfo.EligiblePendingRegistrationCamp || strStatus == StatusInfo.EligibleByStaff || strStatus == StatusInfo.EligibleCampCoupon) //20- eligiblenoschoolnocamp { MarkSpecialCodeUsed(Int32.Parse(strFedId)); EligibleHandler(strStatus, strFedId, strCampId, ds); } else if (strStatus == StatusInfo.EligiblePendingNumberOfDays) { MarkSpecialCodeUsed(Int32.Parse(strFedId)); pnlEligiblePendingNumberOfDays.Visible = true; if (iCount <= 0) { return; } dr = ds.Tables[0].Rows[0]; if (strFedId == "60" || strFedId == "7" || strFedId == "26" || strFedId == "62" || strFedId == "66") { dsContactDetails = objGeneral.GetFederationCampContactDetails(strFedId, strCampId); drContact = dsContactDetails.Tables[0].Rows[0]; strOrganisation = drContact["Name"].ToString(); strOrganisation = strOrganisation.Trim(); lblFed3.Text = drContact["Name"].ToString(); lblContactPerson3.Text = drContact["Contact"].ToString(); lblPhone3.Text = drContact["Phone"].ToString(); lblEmail3.Text = drContact["Email"].ToString(); Email3.HRef = "mailto:" + lblEmail1.Text; } else { lblContactPerson3.Text = dr["Contact"].ToString(); strOrganisation = dr["Name"].ToString(); strOrganisation = strOrganisation.Trim(); lblFed3.Text = strOrganisation.Trim(); lblPhone3.Text = dr["Phone"].ToString(); lblEmail3.Text = dr["Email"].ToString(); Email3.HRef = "mailto:" + lblEmail1.Text; } } else if (((strStatus == StatusInfo.SystemInEligible || strStatus == StatusInfo.CamperDeclinedToGoToCamp)) && !objRedirectionLogic.BeenToPJL) { pnlEligible.Visible = false; pnlInEligible.Visible = true; if (iCount > 0) { dr = ds.Tables[0].Rows[0]; if (strFedId == "60" || strFedId == "7" || strFedId == "26" || strFedId == "62" || strFedId == "66") { dsContactDetails = objGeneral.GetFederationCampContactDetails(strFedId, strCampId); drContact = dsContactDetails.Tables[0].Rows[0]; lblFed2.Text = drContact["Name"].ToString(); lblContactPerson2.Text = drContact["Contact"].ToString(); lblPhone2.Text = drContact["Phone"].ToString(); lblEmail2.Text = drContact["Email"].ToString(); Email2.HRef = "mailto:" + lblEmail2.Text; } else { lblContactPerson2.Text = dr["Contact"].ToString(); lblFed2.Text = dr["Name"].ToString(); strDesignation = dr["Designation"].ToString(); if (!string.IsNullOrEmpty(strDesignation)) { lblDesignation2.Text = ", " + strDesignation; } else { lblDesignation2.Text = strDesignation; } lblPhone2.Text = dr["Phone"].ToString(); lblEmail2.Text = dr["Email"].ToString(); Email2.HRef = "mailto:" + lblEmail2.Text; } } if (lblFed2.Text.Trim().ToLower() == "national ramah commission") { dsSelectedCamp = objGeneral.GetFederationCampContactDetails(strFedId, strCampId); if (dsSelectedCamp.Tables[0].Rows.Count > 0) { lblFed2.Text = dsSelectedCamp.Tables[0].Rows[0]["Name"].ToString(); lblContactPerson2.Text = dsSelectedCamp.Tables[0].Rows[0]["Contact"].ToString(); lblPhone2.Text = dsSelectedCamp.Tables[0].Rows[0]["Phone"].ToString(); lblEmail2.Text = dsSelectedCamp.Tables[0].Rows[0]["Email"].ToString(); Email2.HRef = "mailto:" + lblEmail2.Text; if (!string.IsNullOrEmpty(strDesignation)) { lblDesignation2.Text = ", " + strDesignation; } } } } else if (strStatus == StatusInfo.NonJewish) { pnlEligible.Visible = false; pnlInEligible.Visible = false; pnlInEligibleNonJewish.Visible = true; } else if ((strStatus == StatusInfo.SystemInEligible) && objRedirectionLogic.BeenToPJL) { pnlEligible.Visible = false; pnlInEligible.Visible = false; PanelInEligiblePJL.Visible = true; dsContactDetails = objGeneral.GetFederationCampContactDetails(strFedId, strCampId); drContact = dsContactDetails.Tables[0].Rows[0]; Label9.Text = drContact["Name"].ToString(); Label10.Text = drContact["Contact"].ToString(); Label11.Text = drContact["Phone"].ToString(); Label12.Text = drContact["Email"].ToString(); } else if ((strStatus == StatusInfo.PendingValidation) && objRedirectionLogic.BeenToPJL) { pnlStatus1A.Visible = false; pnlStatus1B.Visible = false; pnlStatus1F.Visible = false; pnlStatus1G.Visible = false; PnlPJL.Visible = true; pnlEligible.Visible = true; pnlCommon.Visible = false; } } }