Beispiel #1
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            // Put user code to initialize the page here

            clsCache.NoCache();

            userob = (clsUser)Session["User"];
            userid = userob.User_ID.ToString();


            if (!IsPostBack)
            {
                HtmlInputHidden[] hid = new HtmlInputHidden[15];
                hid[0]  = hidInstID;
                hid[1]  = hidUniID;
                hid[2]  = hidElgFormNo;
                hid[3]  = hidpkYear;
                hid[4]  = hidpkStudentID;
                hid[5]  = hidpkFacID;
                hid[6]  = hidpkCrID;
                hid[7]  = hidpkMoLrnID;
                hid[8]  = hidpkPtrnID;
                hid[9]  = hidpkBrnID;
                hid[10] = hidpkCrPrDetailsID;
                hid[11] = hidPRN;
                hid[12] = hidIsBlank;
                hid[13] = hidSearchType;
                hid[14] = hidDOB;
                Common.setHiddenVariables(ref hid);


                Eligibility.ELGV2_ViewStatus__1 ob = (Eligibility.ELGV2_ViewStatus__1)System.Web.HttpContext.Current.Handler;
                //WebCtrl.StudentsStatusSearch tempHidden = (WebCtrl.StudentsStatusSearch)ob.FindControl("StudentsStatusSearch1");

                ContentPlaceHolder           Cntph      = (ContentPlaceHolder)Page.PreviousPage.Master.FindControl("ContentPlaceHolder1");
                WebCtrl.StudentsStatusSearch tempHidden = (WebCtrl.StudentsStatusSearch)Cntph.FindControl("StudentsStatusSearch1");

                //setting hidden variables

                hidElgFormNo.Value       = ((HtmlInputHidden)tempHidden.FindControl("hidElgFormNo")).Value;
                hidPRN.Value             = ((HtmlInputHidden)tempHidden.FindControl("hidPRN")).Value;
                hidpkStudentID.Value     = ((HtmlInputHidden)tempHidden.FindControl("hidpkStudentID")).Value;
                hidpkYear.Value          = ((HtmlInputHidden)tempHidden.FindControl("hidpkYear")).Value;
                hidpkFacID.Value         = ((HtmlInputHidden)tempHidden.FindControl("hidpkFacID")).Value;
                hidpkCrID.Value          = ((HtmlInputHidden)tempHidden.FindControl("hidpkCrID")).Value;
                hidpkMoLrnID.Value       = ((HtmlInputHidden)tempHidden.FindControl("hidpkMoLrnID")).Value;
                hidpkPtrnID.Value        = ((HtmlInputHidden)tempHidden.FindControl("hidpkPtrnID")).Value;
                hidpkBrnID.Value         = ((HtmlInputHidden)tempHidden.FindControl("hidpkBrnID")).Value;
                hidpkCrPrDetailsID.Value = ((HtmlInputHidden)tempHidden.FindControl("hidpkCrPrDetailsID")).Value;
                hidIsBlank.Value         = ((HtmlInputHidden)tempHidden.FindControl("hidIsBlank")).Value;
                hidInstID.Value          = ((HtmlInputHidden)tempHidden.FindControl("hidInstID")).Value;
                hidSearchType.Value      = ((HtmlInputHidden)tempHidden.FindControl("hidSearchType")).Value;
                hidDOB.Value             = ((HtmlInputHidden)tempHidden.FindControl("hidDOB")).Value;
                FetchStudentDetails();

                if (hidInstID.Value != "" && hidInstID.Value != null)
                {
                    hidUniID.Value    = Classes.clsGetSettings.UniversityID.ToString();
                    lblPageHead.Text  = "View Eligibility Status";
                    lblSubHeader.Text = "  for " + InstRep.InstituteName(hidUniID.Value, hidInstID.Value);
                }
                if (IsPostBack)
                {
                    if (Request.QueryString["Search"] == "Simple")
                    {
                        ElgFormNo = hidElgFormNo.Value;
                    }
                }
            }
        }
Beispiel #2
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            // Put user code to initialize the page here

            Classes.clsCache.NoCache();

            userob = (clsUser)Session["User"];
            userid = userob.User_ID.ToString();


            if (!IsPostBack)
            {
                HtmlInputHidden[] hid = new HtmlInputHidden[5];
                hid[0] = hidInstID;
                hid[1] = hidUniID;
                hid[2] = hidElgFormNo;
                hid[3] = hidpkYear;
                hid[4] = hidpkStudentID;

                Common.setHiddenVariables(ref hid);

                StudentStatus ob = (StudentStatus)System.Web.HttpContext.Current.Handler;
                WebCtrl.StudentsStatusSearch tempHidden = (WebCtrl.StudentsStatusSearch)ob.FindControl("StudentsStatusSearch1");

                if (Request.QueryString["Search"] == "Simple")
                {
                    //hidElgFormNo.Value=((HtmlInputHidden)ob.FindControl("hidElgFormNo")).Value;
                    //hidpkYear.Value=((HtmlInputHidden)ob.FindControl("hidpkYear")).Value;
                    //hidpkStudentID.Value=((HtmlInputHidden)ob.FindControl("hidpkStudentID")).Value;
                    //hidCrMoLrnPtrnID.Value=((HtmlInputHidden)ob.FindControl("hidCrMoLrnPtrnID")).Value;
                    //ElgFormNo=ob.ElgFormNo;
                    //lblEligibilityFormNo.Text = ElgFormNo;
                    hidElgFormNo.Value   = ob.ElgFormNo;
                    ElgFormNo            = hidElgFormNo.Value;
                    hidUniID.Value       = ob.pk_Uni_ID.ToString();
                    hidpkYear.Value      = ob.pk_Year.ToString();
                    hidpkStudentID.Value = ob.pk_Student_ID.ToString();
                    hidPRN.Value         = ob.PRN;
                    FetchStudentDetails();
                }
                if (Request.QueryString["Search"] == "Adv")
                {
                    hidElgFormNo.Value   = ((HtmlInputHidden)tempHidden.FindControl("hidElgFormNo")).Value;
                    hidpkYear.Value      = ((HtmlInputHidden)tempHidden.FindControl("hidpkYear")).Value;
                    hidpkStudentID.Value = ((HtmlInputHidden)tempHidden.FindControl("hidpkStudentID")).Value;
                    //hidCrMoLrnPtrnID.Value=((HtmlInputHidden)ob.FindControl("hidCrMoLrnPtrnID")).Value;
                    FetchStudentDetails1(Convert.ToInt32(UniversityPortal.clsGetSettings.UniversityID), Convert.ToInt32(hidpkYear.Value), Convert.ToInt32(hidpkStudentID.Value));
                }
//				hidElgFlag.Value="NotAssigned";

                if (hidInstID.Value != "" && hidInstID.Value != null)
                {
                    //hidInstID.Value = Request.QueryString["InstituteID"].ToString().Trim();
                    lblTitle.Text  = "View Eligibility Status";
                    Institute.Text = "  for " + Classes.InstituteRepository.InstituteName(hidUniID.Value, hidInstID.Value);
                }
                if (IsPostBack)
                {
                    if (Request.QueryString["Search"] == "Simple")
                    {
                        ElgFormNo = hidElgFormNo.Value;
                    }
                }
            }
        }