protected void Page_Load(object sender, System.EventArgs e)
        {
            clsCache.NoCache();

            ContentPlaceHolder Cntph = (ContentPlaceHolder)Page.Master.FindControl("ContentPlaceHolder1");

            RegStudentAdvancedSearchCtrl = (Eligibility.WebCtrl.StudentAdvanceSeachForConfigure)Cntph.FindControl("StudentAdvanceSeachForConfigure1");

            hid_fk_AcademicYr_ID.Value = RegStudentAdvancedSearchCtrl.ddlAcademicYear.SelectedValue.ToString();
            hidAcademicYrText.Value    = RegStudentAdvancedSearchCtrl.ddlAcademicYear.SelectedItem.ToString();


            if (!IsPostBack)
            {
                ContentPlaceHolder Cntph1 = (ContentPlaceHolder)Page.PreviousPage.Master.FindControl("ContentPlaceHolder1");
                searchInstNew      temp   = (searchInstNew)Cntph1.FindControl("SchInst1");
                hidInstID.Value = ((HtmlInputHidden)Cntph1.FindControl("hidInstID")).Value;
                hidUniID.Value  = Classes.clsGetSettings.UniversityID.ToString();

                HtmlInputHidden[] hid = new HtmlInputHidden[21];
                hid[0]  = hidInstID;
                hid[1]  = hidUniID;
                hid[2]  = hidElgFormNo;
                hid[3]  = hidpkStudentID;
                hid[4]  = hidpkYear;
                hid[5]  = hidpkFacID;
                hid[6]  = hidpkCrID;
                hid[7]  = hidpkMoLrnID;
                hid[8]  = hidpkPtrnID;
                hid[9]  = hidpkBrnID;
                hid[10] = hidpkCrPrDetailsID;

                hid[11] = hid_fk_AcademicYr_ID;
                hid[12] = hidAcademicYrText;
                hid[13] = hidFacName;
                hid[14] = hidCrName;
                hid[15] = hidMOLName;
                hid[16] = hidPattern;
                hid[17] = hidBrName;
                hid[18] = hidAcYrName;
                hid[19] = hidSearchType;
                hid[20] = hidAppFormNo;

                Common.setHiddenVariables(ref hid);


                if (hidInstID.Value != "" && hidInstID.Value != null)
                {
                    lblPageHead.Text  = "Resolve Pending Eligibility";
                    lblSubHeader.Text = "  for " + InstRep.InstituteName(hidUniID.Value, hidInstID.Value);
                }
            }
            RegStudentAdvancedSearchCtrl.GridType = "Reg";
            if (Request.QueryString["Search"] == "Adv")
            {
                if (Request.QueryString["Navigate"] == "back")
                {
                    RegStudentAdvancedSearchCtrl.QstrNavigate = "back";
                    RegStudentAdvancedSearchCtrl.StrUrl       = "ELGV2_ResolvePending__2.aspx?Search=Adv";
                    RegStudentAdvancedSearchCtrl.GridType     = "Reg";
                    divAdvSearch.Style.Add("display", "block");
                    divAdvSearch.Style.Remove("display");

                    //if (Request.QueryString["AcYear"] != "0")
                    //{
                    //    lblAcademicYear.Text = " for Academic Year " + Request.QueryString["AcYearText"].ToString();//+ hidAcademicYrText.Value;
                    //    lblAcademicYear.Attributes.Add("style", "display:inline");
                    //}
                    //else if (Request.QueryString["AcYear"] == "0")
                    //{
                    //    lblAcademicYear.Attributes.Add("style", "display:none");
                    //}
                }
                else
                {
                    RegStudentAdvancedSearchCtrl.QstrNavigate = null;
                    RegStudentAdvancedSearchCtrl.StrUrl       = "ELGV2_ResolvePending__2.aspx?Search=Adv";
                    RegStudentAdvancedSearchCtrl.GridType     = "Reg";
                }
            }

            else if (Request.QueryString["Search"] == "Simple")
            {
                RegStudentAdvancedSearchCtrl.QstrNavigate = "back";
                RegStudentAdvancedSearchCtrl.StrUrl       = "ELGV2_ResolvePending__2.aspx?Search=Simple";
            }


            //added by Deboshree 16/7/10
            if (RegStudentAdvancedSearchCtrl.HidSearchType.Equals("Simple"))// || Request.QueryString["Search"] == "Simple")
            {
                RegStudentAdvancedSearchCtrl.StrUrl = "ELGV2_ResolvePending__2.aspx?Search=Simple";
            }
            else if (RegStudentAdvancedSearchCtrl.HidSearchType.Equals("Adv"))// || Request.QueryString["Search"] == "Adv")
            {
                RegStudentAdvancedSearchCtrl.StrUrl = "ELGV2_ResolvePending__2.aspx?Search=Adv";
            }
            RegStudentAdvancedSearchCtrl.GridType = "Reg";
            //end add by Deboshree
        }
Пример #2
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            Classes.clsCache.NoCache();
            // Put user code to initialize the page here
            if (!IsPostBack)
            {
                HtmlInputHidden[] hid = new HtmlInputHidden[5];
                hid[0] = hidInstID;
                hid[1] = hidUniID;
                hid[2] = hidElgFormNo;
                hid[3] = hidpkStudentID;
                hid[4] = hidpkYear;
                Common.setHiddenVariables(ref hid);
            }

            if (hidInstID.Value != "" && hidInstID.Value != null)
            {
                //hidInstID.Value = Request.QueryString["InstituteID"].ToString().Trim();
                lblTitle.Text    = "Resolve Pending Eligibility";
                lblInstName.Text = "  for " + Classes.InstituteRepository.InstituteName(hidUniID.Value, hidInstID.Value);
            }
            btnSimpleSearch.Attributes.Add("onclick", "return ChkValidation();");
            RegStudentAdvancedSearchCtrl = (Eligibility.WebCtrl.StudentAdvanceSeachForConfigure)Page.FindControl("StudentAdvanceSeachForConfigure1");
            RegStudentAdvancedSearchCtrl.QstrNavigate = null;
            RegStudentAdvancedSearchCtrl.StrUrl       = "reg_PendingStudentEligibility__1.aspx?Search=Adv";
            RegStudentAdvancedSearchCtrl.GridType     = "Reg";
            if (Request.QueryString["Search"] == "Adv")
            {
                if (Request.QueryString["Navigate"] == "back")
                {
                    RegStudentAdvancedSearchCtrl.QstrNavigate = "back";
                    RegStudentAdvancedSearchCtrl.StrUrl       = "reg_PendingStudentEligibility__1.aspx?Search=Adv";
                    RegStudentAdvancedSearchCtrl.GridType     = "Reg";
                    divAdvSearch.Style.Add("display", "block");
                    divSimpleSearch.Style.Add("display", "none");
                }
                else
                {
                    RegStudentAdvancedSearchCtrl.QstrNavigate = null;
                    RegStudentAdvancedSearchCtrl.StrUrl       = "reg_PendingStudentEligibility__1.aspx?Search=Adv";
                    RegStudentAdvancedSearchCtrl.GridType     = "Reg";
                }
            }
            else if (Request.QueryString["Search"] == "Simple")
            {
                divAdvSearch.Style.Remove("display");
                divSimpleSearch.Style.Remove("display");
                divSimpleSearch.Style.Add("display", "block");
                divAdvSearch.Style.Add("display", "none");
            }
            if (hidSearchType.Value == "Simple")
            {
                divAdvSearch.Style.Remove("display");
                divSimpleSearch.Style.Remove("display");
                divSimpleSearch.Style.Add("display", "block");
                divAdvSearch.Style.Add("display", "none");
            }
            else if (hidSearchType.Value == "Adv")
            {
                divAdvSearch.Style.Remove("display");
                divSimpleSearch.Style.Remove("display");
                divAdvSearch.Style.Add("display", "block");
                divSimpleSearch.Style.Add("display", "none");
            }
        }