示例#1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            clsCache.NoCache();
            if (!IsPostBack)
            {
                if (PreviousPage != null)
                {
                    ContentPlaceHolder Cntp = (ContentPlaceHolder)Page.Master.FindControl("ContentPlaceHolder1");

                    if (((HtmlInputHidden)Cntp.FindControl("hidInstID")).Value != null || ((HtmlInputHidden)Cntp.FindControl("hidInstID")).Value != "")
                    {
                        hidInstID.Value = ((HtmlInputHidden)Cntp.FindControl("hidInstID")).Value;
                    }
                }
                ContentPlaceHolder Cntph = (ContentPlaceHolder)Page.Master.FindControl("ContentPlaceHolder1");
                sInst = (searchInstNew)Cntph.FindControl("SchInst1");

                HtmlInputHidden[] hid = new HtmlInputHidden[2];
                hid[0] = hidInstID;
                hid[1] = hidUniID;
                Common.setHiddenVariables(ref hid);
                lblPageHead.Text = "Resolve Pending Eligibility";
            }

            lblGridName.Visible = false;
            //sInst = (searchInstNew)Page.FindControl("SchInst1");
            SchInst1.dgData1.RowCommand += new GridViewCommandEventHandler(dgData1_RowCommand);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            clsCache.NoCache();

            if (!IsPostBack)
            {
                if (PreviousPage != null)
                {
                    ContentPlaceHolder Cntp = (ContentPlaceHolder)Page.Master.FindControl("ContentPlaceHolder1");

                    if (((HtmlInputHidden)Cntp.FindControl("hidInstID")).Value != null || ((HtmlInputHidden)Cntp.FindControl("hidInstID")).Value != "")
                    {
                        hidInstID.Value = ((HtmlInputHidden)Cntp.FindControl("hidInstID")).Value;
                    }
                }
            }

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

            sInst = (searchInstNew)Cntph.FindControl("SchInst1");

            lblGridName.Visible = false;
            //sInst = (searchInstNew)Page.FindControl("SchInst1");
            SchInst1.dgData1.RowCommand += new GridViewCommandEventHandler(dgData1_RowCommand);
        }
示例#3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            /*
             * HtmlInputHidden[] hid = new HtmlInputHidden[7];
             * hid[0] = hidUniID;
             * hid[1] = hidInstID;
             * hid[2] = hidCountryId;
             * hid[3] = hidStateID;
             * hid[4] = hidDistrictID;
             * hid[5] = hidTehsilID;
             * hid[6] = hidCollCode;
             * //Common.setHiddenVariables(ref hid);
             *
             */

            if (!IsPostBack)
            {
                if (PreviousPage != null)
                {
                    ContentPlaceHolder Cntp = (ContentPlaceHolder)Page.Master.FindControl("ContentPlaceHolder1");

                    if (((HtmlInputHidden)Cntp.FindControl("hidInstID")).Value != null || ((HtmlInputHidden)Cntp.FindControl("hidInstID")).Value != "")
                    {
                        hidInstID.Value = ((HtmlInputHidden)Cntp.FindControl("hidInstID")).Value;
                    }
                }
            }

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

            sInst = (searchInstNew)Cntph.FindControl("SchInst1");


            if (hidUniID.Value == "")
            {
                hidUniID.Value = Classes.clsGetSettings.UniversityID.ToString();
            }
            lblGridName.Visible = false;
            //sInst = (searchInstNew)Page.FindControl("SchInst1");

            SchInst1.dgData1.RowCommand += new GridViewCommandEventHandler(dgData1_RowCommand);

            /*
             * sInst.btnSearch.Click += new EventHandler(this.btnSearch_Click);
             * hidCountryId.Value = ((HtmlInputHidden)sInst.FindControl("hidCountryID")).Value;
             * hidStateID.Value = ((HtmlInputHidden)sInst.FindControl("hidStateID")).Value;
             * hidDistrictID.Value = ((HtmlInputHidden)sInst.FindControl("hidDistrictID")).Value;
             * hidTehsilID.Value = ((HtmlInputHidden)sInst.FindControl("hidTehsilID")).Value;
             * hidCollCode.Value = ((HtmlInputHidden)sInst.FindControl("hidCollCode")).Value;
             */
            //hidUniID.Value = ((HtmlInputHidden)sInst.FindControl("hidUniID")).Value;
            //hidInstID.Value = ((HtmlInputHidden)sInst.FindControl("hidInstID")).Value;
        }
示例#4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            clsCache.NoCache();
            if (!IsPostBack)
            {
                HtmlInputHidden[] hid = new HtmlInputHidden[2];
                hid[0] = hidInstID;
                hid[1] = hidUniID;
                Common.setHiddenVariables(ref hid);
                lblPageHead.Text = "Manual Process Eligibility";

                if (PreviousPage != null)
                {
                    ContentPlaceHolder Cntp = (ContentPlaceHolder)Page.Master.FindControl("ContentPlaceHolder1");

                    if (((HtmlInputHidden)Cntp.FindControl("hidInstID")).Value != null || ((HtmlInputHidden)Cntp.FindControl("hidInstID")).Value != "")
                    {
                        hidInstID.Value = ((HtmlInputHidden)Cntp.FindControl("hidInstID")).Value;
                    }
                }
            }

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

            sInst = (searchInstNew)Cntph.FindControl("SchInst1");

            lblGridName.Visible = false;
            //sInst = (searchInstNew)Page.FindControl("SchInst1");
            SchInst1.dgData1.RowCommand += new GridViewCommandEventHandler(dgData1_RowCommand);

            try
            {
                hidIsPRNValidationRequired.Value = Classes.clsGetSettings.IsPRNValidationRequired;
            }
            catch
            {
                hidIsPRNValidationRequired.Value = "N";
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            clsCache.NoCache();
            if (!IsPostBack)
            {
                if (PreviousPage != null)
                {
                    ContentPlaceHolder Cntp = (ContentPlaceHolder)Page.Master.FindControl("ContentPlaceHolder1");

                    if (((HtmlInputHidden)Cntp.FindControl("hidInstID")).Value != null || ((HtmlInputHidden)Cntp.FindControl("hidInstID")).Value != "")
                    {
                        hidInstID.Value = ((HtmlInputHidden)Cntp.FindControl("hidInstID")).Value;
                    }
                }
                ContentPlaceHolder Cntph = (ContentPlaceHolder)Page.Master.FindControl("ContentPlaceHolder1");
                sInst = (searchInstNew)Cntph.FindControl("SchInst1");

                clsUser user = (clsUser)Session["user"];
                if (user.UserTypeCode == "2")
                {
                    hidInstID.Value = user.UserReferenceID;
                    string InstID = hidInstID.Value;
                    hidUniID.Value = Classes.clsGetSettings.UniversityID.ToString();
                    Server.Transfer("ELGV2_ViewStatus__1.aspx?InstituteID=" + InstID, true);
                }
                else
                {
                    HtmlInputHidden[] hid = new HtmlInputHidden[2];
                    hid[0] = hidInstID;
                    hid[1] = hidUniID;
                    Common.setHiddenVariables(ref hid);
                    lblPageHead.Text = "View Eligibility Status";
                }
            }

            lblGridName.Visible = false;
            //sInst = (searchInstNew)Page.FindControl("SchInst1");
            SchInst1.dgData1.RowCommand += new GridViewCommandEventHandler(dgData1_RowCommand);
        }
        protected void Page_Load(object sender, System.EventArgs e)
        {
            clsCache.NoCache();

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

            RegStudentAdvancedSearchCtrl = (Eligibility.WebCtrl.StudentAdvanceSeachForConfigureChangeElgUnprocess)Cntph.FindControl("StudentAdvanceSeachForConfigureChangeElgUnprocess1");

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


            // Put user code to initialize the page here
            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  = "Mark Eligibility to Unprocessed";
                lblSubHeader.Text = "  for " + InstRep.InstituteName(hidUniID.Value, hidInstID.Value);
            }


            if (Request.QueryString["Search"] == "Adv")
            {
                if (Request.QueryString["Navigate"] == "back")
                {
                    RegStudentAdvancedSearchCtrl.QstrNavigate = "back";
                    RegStudentAdvancedSearchCtrl.StrUrl       = "ELGV2_ResolveProvisional__2.aspx?Search=Adv";
                    RegStudentAdvancedSearchCtrl.GridType     = "Reg";

                    //if (Request.QueryString["AcYear"] != "0")
                    //{
                    //    lblAcademicYear.Text = " [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_ResolveProvisional__2.aspx?Search=Adv";
                    RegStudentAdvancedSearchCtrl.GridType     = "Reg";
                }
            }
            else if (Request.QueryString["Search"] == "Simple")
            {
                if (Request.QueryString["Navigate"] == "back")
                {
                    RegStudentAdvancedSearchCtrl.QstrNavigate = "back";
                    RegStudentAdvancedSearchCtrl.StrUrl       = "ELGV2_ResolveProvisional__2.aspx?Search=Simple";
                    RegStudentAdvancedSearchCtrl.GridType     = "Reg";
                }
            }

            //added by Deboshree 16/7/10

            if (RegStudentAdvancedSearchCtrl.HidSearchType.Equals("Simple"))// || Request.QueryString["Search"] == "Simple")
            {
                RegStudentAdvancedSearchCtrl.StrUrl = "ELGV2_ResolveProvisional__2.aspx?Search=Simple";
                hid_fk_AcademicYr_ID.Value          = "0";
                lblAcademicYear.Attributes.Add("style", "display:none");
            }
            else if (RegStudentAdvancedSearchCtrl.HidSearchType.Equals("Adv"))// || Request.QueryString["Search"] == "Adv")
            {
                RegStudentAdvancedSearchCtrl.StrUrl = "ELGV2_ResolveProvisional__2.aspx?Search=Adv";
                if (hid_fk_AcademicYr_ID.Value != "0" || hid_fk_AcademicYr_ID.Value != "" || hid_fk_AcademicYr_ID.Value != null)
                {
                    if (hidAcademicYrText.Value != "--- Select ---")
                    {
                        lblAcademicYear.Text = " for Academic Year " + hidAcademicYrText.Value;
                        //lblAcademicYear.Attributes.Add("style", "display:inline");
                    }
                }
            }
            RegStudentAdvancedSearchCtrl.GridType = "Reg";
            //end add by Deboshree
        }
示例#7
0
        protected void Page_Load(object sender, EventArgs e)
        {
            user = (clsUser)Session["user"];



            if (!IsPostBack)
            {
                if (Page.PreviousPage != null && Page.PreviousPage.ToString().Equals("ASP.eligibility_elgv2_paperchange_aspx"))
                {
                    //-------------------------------------
                    // For University Login and Fresh load
                    //-------------------------------------
                    ContentPlaceHolder Cntph1 = (ContentPlaceHolder)Page.PreviousPage.Master.FindControl("ContentPlaceHolder1");
                    searchInstNew      temp   = (searchInstNew)Cntph1.FindControl("SchInst1");
                    hidInstID.Value = ((HtmlInputHidden)Cntph1.FindControl("hidInstID")).Value;

                    hidAcademicYear.Value = Session["AcademicYearID"].ToString();//Session["pk_AcademicYear_ID"].ToString();

                    hidUniID.Value    = Classes.clsGetSettings.UniversityID.ToString();
                    hidInstCode.Value = ((HtmlInputHidden)temp.FindControl("hidCollCode")).Value;
                    hidInstName.Value = ((HtmlInputHidden)temp.FindControl("hidCollName")).Value;
                }
                else
                {
                    if (user.UserTypeCode != "2")
                    {
                        //-----------------------------------------
                        // For University Login and Back Navigation
                        //-----------------------------------------
                        ContentPlaceHolder Cntph1 = (ContentPlaceHolder)Page.PreviousPage.Master.FindControl("ContentPlaceHolder1");
                        hidUniID.Value  = Classes.clsGetSettings.UniversityID.ToString();
                        hidInstID.Value = ((HtmlInputHidden)Cntph1.FindControl("hidInstID")).Value;

                        hidAcademicYear.Value = Session["AcademicYearID"].ToString();

                        hidInstName.Value = ((HtmlInputHidden)Cntph1.FindControl("hidInstName")).Value;
                        hidInstCode.Value = ((HtmlInputHidden)Cntph1.FindControl("hidInstCode")).Value;
                    }
                }
                YCMOU.IsReportUserAndDateDisplay = false;
                YCMOU.IsInstituteDisplay         = false;
                ((HtmlInputHidden)YCMOU.FindControl("hid_Institute_ID")).Value = hidInstID.Value;
            }

            YCMOU.isPpChange.Value = "Yes";
            //modified  by shafik on 09-oct-2012  added new hidden  as need to hide the academic year on paperchange  page
            YCMOU.hidIsAcdYrDdNotVisible.Value = "Yes";
            YCMOU.IsInstituteDisplay           = YCMOU.IsCourseDisply = YCMOU.IsFacultyDisplay = YCMOU.IsBranchDisply = YCMOU.IsCoursePartDisply = YCMOU.IsCourseTermDisply = YCMOU.IsAcYrDisplay = false;
            YCMOU.IsCollegeLogin = true;

            YCMOU.OnProceedClick += btnNext_Click;


            if (user.UserTypeCode == "2")
            {
                //-----------------------------------------------
                // For Institute Login (Fresh and Back Navigation)
                //-----------------------------------------------
                instIDs         = user.UserReferenceID;
                hidInstID.Value = instIDs.ToString();
                // hidInstName.Value = user.Name;
                lblPageHead.Text = lblPaper.Text + " Change";
                //dt = InstRep.InstituteDetails(hidUniID.Value, hidInstID.Value);
                //hidInstName.Value = dt.Rows[0]["Inst_Name"].ToString();
                //hidInstCode.Value = dt.Rows[0]["Inst_Code"].ToString();
                hidInstName.Value            = user.Name;
                lblSubHeader.Text            = "  for " + hidInstName.Value;
                YCMOU.hid_Institute_ID.Value = hidInstID.Value;
            }

            else
            {
                lblPageHead.Text  = lblPaper.Text + " Change";
                lblSubHeader.Text = "  for " + hidInstName.Value + " [" + hidInstCode.Value + "] ";
            }
        }
        protected void Page_Load(object sender, System.EventArgs e)
        {
            clsCache.NoCache();
            btnSimpleSearch.Attributes.Add("onclick", "return ChkValidation();");
            // Ajax.Utility.RegisterTypeForAjax(typeof(Eligibility.AjaxMethods), this.Page);
            Ajax.Utility.RegisterTypeForAjax(typeof(Student.clsStudent), this.Page);
            //   Ajax.Utility.RegisterTypeForAjax(typeof(Student.clsStudent));

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

            StudentAdvancedSearchCtrl = (Eligibility.WebCtrl.StudentAdvancedSearchforManualProcess)Cntph.FindControl("StudentAdvancedSearchForManualProcess1");

            //StudentAdvancedSearchCtrl = (Eligibility.WebCtrl.StudentAdvancedSearchforManualProcess)Page.FindControl("StudentAdvancedSearchForManualProcess1");
            hid_fk_AcademicYr_ID.Value = StudentAdvancedSearchCtrl.ddlAcademicYear.SelectedValue.ToString();
            hidAcademicYrText.Value    = StudentAdvancedSearchCtrl.ddlAcademicYear.SelectedItem.ToString();

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

                HtmlInputHidden[] hid = new HtmlInputHidden[29];
                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] = hidElgStatusColl;
                hid[12] = hidCollElgFlag;
                hid[13] = hidCollElgFlagReason;
                hid[14] = hidInv;
                hid[15] = hidIsBlank;
                hid[16] = hidrbFilterYesNo;
                hid[17] = hid_fk_AcademicYr_ID;
                hid[18] = hidAcademicYr;
                hid[19] = hidAcademicYrText;
                hid[20] = hidStateID;
                hid[21] = hidBodyID;
                hid[22] = hidBodySelText;
                hid[23] = hidDOB;
                hid[24] = hidLastName;
                hid[25] = hidFirstName;
                hid[26] = hidGender;
                hid[27] = hidrbWithInv;
                hid[28] = hidrbWithoutInv;

                Common.setHiddenVariables(ref hid);
            }

            if (hidInstID.Value != "" && hidInstID.Value != null)
            {
                lblPageHead.Text  = "Manual Process Eligibility";
                lblSubHeader.Text = "  for " + InstRep.InstituteName(hidUniID.Value, hidInstID.Value);
            }

            StudentAdvancedSearchCtrl.QstrNavigate = null;

            StudentAdvancedSearchCtrl.StrUrl   = "ELGV2_ManualProcess__2.aspx?Search=" + "Adv";
            StudentAdvancedSearchCtrl.GridType = "IA";


            if (Request.QueryString["Search"] == "Adv")
            {
                if (Request.QueryString["Navigate"] == "back")
                {
                    StudentAdvancedSearchCtrl.QstrNavigate = "back";
                    //StudentAdvancedSearchCtrl.StrUrl = "ELGV2_ManualProcess__2.aspx?Search=" + "Adv" + "&Inv=" + hidInv.Value.ToString() + "&CollElg=" + hidElgStatusColl.Value.ToString() + "&FilterYesNoExBody=" + hidrbFilterYesNo.Value.ToString() + "&AcYear=" + hid_fk_AcademicYr_ID.Value.ToString() + "&AcYearText=" + hidAcademicYrText.Value.ToString() + "&StateID=" + hidStateID.Value.ToString() + "BodyID=" + hidBodyID.Value.ToString() + "BodyText=" + hidBodySelText.Value.ToString() + "InstituteID=" + hidInstID.Value.ToString() + "Faculty=" + hidpkFacID.Value.ToString() + "Course=" + hidpkCrID.Value.ToString() + "MoLearning=" + hidpkMoLrnID.Value.ToString() + "Pattern=" + hidpkPtrnID.Value.ToString() + "Branch=" + hidpkBrnID.Value.ToString() + "CoursePrtDetails=" + hidpkCrPrDetailsID.Value.ToString() + "ElgFormNo=" + hidElgFormNo.Value.ToString();

                    //StudentAdvancedSearchCtrl.GridType = "IA";
                    divAdvSearch.Style.Remove("display");
                    divAdvSearch.Style.Add("display", "block");
                    divSimpleSearch.Style.Remove("display");
                    divSimpleSearch.Style.Add("display", "none");
                    StudentAdvancedSearchCtrl.Div1.Style.Add("display", "block");

                    if (Request.QueryString["AcYear"] != "0")
                    {
                        lblAcademicYear.Text = " [Academic Year " + Request.QueryString["AcYearText"].ToString() + "]";
                        //lblAcademicYear.Text = " for Academic Year " + hidAcademicYrText.Value;
                        lblAcademicYear.Attributes.Add("style", "display:inline");
                    }
                    else if (Request.QueryString["AcYear"] == "0")
                    {
                        lblAcademicYear.Attributes.Add("style", "display:none");
                    }
                }
                else
                {
                    StudentAdvancedSearchCtrl.QstrNavigate = null;
                    StudentAdvancedSearchCtrl.StrUrl       = "ELGV2_ManualProcess__2.aspx?Search=" + "Adv";
                }
            }
            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");
                StudentAdvancedSearchCtrl.DivFilterExamBody.Style.Add("display", "none");
                StudentAdvancedSearchCtrl.Div1.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");
                StudentAdvancedSearchCtrl.DivFilterExamBody.Style.Add("display", "none");
                StudentAdvancedSearchCtrl.Div1.Style.Add("display", "none");



                //if (hid_fk_AcademicYr_ID.Value.ToString() != "0" || hid_fk_AcademicYr_ID.Value != "" || hid_fk_AcademicYr_ID.Value != null)
                if (hidAcademicYrText.Value != "--- Select ---")

                {
                    lblAcademicYear.Text = " [Academic Year " + hidAcademicYrText.Value + "]";
                    lblAcademicYear.Attributes.Add("style", "display:inline");
                }
                else if (hidAcademicYrText.Value == "--- Select ---")
                {
                    lblAcademicYear.Attributes.Add("style", "display:none");
                    StudentAdvancedSearchCtrl.DivFilterExamBody.Style.Add("display", "none");
                    StudentAdvancedSearchCtrl.Div1.Style.Add("display", "none");
                }
            }
        }
示例#9
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            // Put user code to initialize the page here
            clsCache.NoCache();

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

            RegStudentAdvancedSearchCtrl = (Eligibility.WebCtrl.StudentsStatusSearch)CntphM.FindControl("StudentsStatusSearch1");


            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[13];
                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] = hidPRN;
                hid[12] = hidIsBlank;

                Common.setHiddenVariables(ref hid);
            }

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

            RegStudentAdvancedSearchCtrl = (Eligibility.WebCtrl.StudentsStatusSearch)Cntph.FindControl("StudentsStatusSearch1");

            if (hidInstID.Value != "" && hidInstID.Value != null)
            {
                lblPageHead.Text  = "View Eligibility Status";
                lblSubHeader.Text = "  for " + InstRep.InstituteName(hidUniID.Value, hidInstID.Value);
            }
            RegStudentAdvancedSearchCtrl.QstrNavigate = null;
            RegStudentAdvancedSearchCtrl.StrUrl       = "ELGV2_ViewStatus__2.aspx?Search=Adv";

            if (Request.QueryString["Search"] == "Adv")
            {
                if (Request.QueryString["Navigate"] == "back")
                {
                    RegStudentAdvancedSearchCtrl.QstrNavigate = "back";
                }
                else
                {
                    RegStudentAdvancedSearchCtrl.QstrNavigate = null;
                }

                RegStudentAdvancedSearchCtrl.StrUrl = "ELGV2_ViewStatus__2.aspx?Search=Adv";
            }

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

            //added by Deboshree 16/7/10

            if (RegStudentAdvancedSearchCtrl.HidSearchType.Equals("Simple"))// || Request.QueryString["Search"] == "Simple")
            {
                RegStudentAdvancedSearchCtrl.StrUrl = "ELGV2_ViewStatus__2.aspx?Search=Simple";
            }
            else if (RegStudentAdvancedSearchCtrl.HidSearchType.Equals("Adv"))// || Request.QueryString["Search"] == "Adv")
            {
                RegStudentAdvancedSearchCtrl.StrUrl = "ELGV2_ViewStatus__2.aspx?Search=Adv";
            }

            try
            {
                hidIsPRNValidationRequired.Value = Classes.clsGetSettings.IsPRNValidationRequired;
            }
            catch
            {
                hidIsPRNValidationRequired.Value = "N";
            }
        }
        protected void Page_Load(object sender, System.EventArgs e)
        {
            clsCache.NoCache();
            btnSimpleSearch.Attributes.Add("onclick", "return ChkValidation();");

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

            StudentAdvancedSearchCtrl = (Eligibility.WebCtrl.StudentAdvancedSearchforManualProcess_reg_Students)Cntph.FindControl("StudentAdvancedSearchforManualProcess1");

            //StudentAdvancedSearchCtrl = (Eligibility.WebCtrl.StudentAdvancedSearchforManualProcess_reg_Students)Page.FindControl("StudentAdvancedSearchforManualProcess1");

            //********
            //hid_fk_AcademicYr_ID.Value = StudentAdvancedSearchCtrl.ddlAcademicYear.SelectedValue.ToString();
            //hidAcademicYrText.Value = StudentAdvancedSearchCtrl.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();

                try
                {
                    hidIsPRNValidationRequired.Value = Classes.clsGetSettings.IsPRNValidationRequired;
                }
                catch
                {
                    hidIsPRNValidationRequired.Value = "N";
                }


                if (Request.QueryString["Search"] == "Simple" && Request.QueryString["Navigate"] == "back")
                {
                    hidPRN.Value       = ((HtmlInputHidden)Cntph1.FindControl("hidPRN")).Value;
                    hidElgFormNo.Value = ((HtmlInputHidden)Cntph1.FindControl("hidElgFormNo")).Value;
                    hidIsBlank.Value   = ((HtmlInputHidden)Cntph1.FindControl("hidIsBlank")).Value;
                }

                HtmlInputHidden[] hid = new HtmlInputHidden[20];
                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] = hidElgStatusColl;
                hid[12] = hidCollElgFlag;
                hid[13] = hidCollElgFlagReason;
                hid[14] = hidPRN;
                hid[15] = hidInv;
                hid[16] = hidIsBlank;
                hid[17] = hid_fk_AcademicYr_ID;
                hid[18] = hidAcademicYrText;
                hid[19] = hidIsPRNValidationRequired;

                Common.setHiddenVariables(ref hid);
            }

            if (hidInstID.Value != "" && hidInstID.Value != null)
            {
                lblPageHead.Text  = "Manual Process Eligibility";
                lblSubHeader.Text = "  for " + InstRep.InstituteName(hidUniID.Value, hidInstID.Value);
            }

            //StudentAdvancedSearchCtrl = (Eligibility.WebCtrl.StudentAdvancedSearchforManualProcess_reg_Students)Page.FindControl("StudentAdvancedSearchForManualProcess1");
            StudentAdvancedSearchCtrl.QstrNavigate = null;

            StudentAdvancedSearchCtrl.StrUrl   = "ELGV2_ManualProcess_reg_Students__2.aspx?Search=" + "Adv";
            StudentAdvancedSearchCtrl.GridType = "IA";
            if (Request.QueryString["Search"] == "Adv")
            {
                if (Request.QueryString["Navigate"] == "back")
                {
                    /*ContentPlaceHolder Cntph2 = (ContentPlaceHolder)Page.PreviousPage.Master.FindControl("ContentPlaceHolder1");
                     *
                     * hidPRN.Value = ((HtmlInputHidden)Cntph1.FindControl("hidPRN")).Value;
                     * hidElgFormNo.Value = ((HtmlInputHidden)Cntph1.FindControl("hidElgFormNo")).Value;
                     * hidIsBlank.Value = ((HtmlInputHidden)Cntph1.FindControl("hidIsBlank")).Value;*/

                    StudentAdvancedSearchCtrl.QstrNavigate = "back";
                    // StudentAdvancedSearchCtrl.StrUrl = "ELGV2_ManualProcess_reg_Students__2.aspx?Search=" + "Adv" + "&Inv=" + hidInv.Value.ToString() + "&CollElg=" + hidElgStatusColl.Value.ToString();
                    //// StudentAdvancedSearchCtrl.GridType = "IA";
                    // divAdvSearch.Style.Remove("display");
                    // divAdvSearch.Style.Add("display", "block");
                    // divSimpleSearch.Style.Remove("display");
                    // divSimpleSearch.Style.Add("display", "none");


                    // if (Request.QueryString["AcYear"] != "0")
                    // {
                    //     lblAcademicYear.Text = " [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
                {
                    StudentAdvancedSearchCtrl.QstrNavigate = null;
                    StudentAdvancedSearchCtrl.StrUrl       = "ELGV2_ManualProcess_reg_Students__2.aspx?Search=" + "Adv";
                }
            }
            else if (Request.QueryString["Search"] == "Simple")
            {
                if (Request.QueryString["Navigate"] == "back")
                {
                    StudentAdvancedSearchCtrl.QstrNavigate = "back";
                    //divAdvSearch.Style.Remove("display");
                    //divSimpleSearch.Style.Remove("display");
                    //divSimpleSearch.Style.Add("display", "block");
                    //divAdvSearch.Style.Add("display", "none");
                    //if (hidIsBlank.Value != "")
                    //{
                    //    txtElgFormNo.Text = hidElgFormNo.Value;
                    //}
                    //else
                    //{
                    //    txtPRN.Text = hidPRN.Value;
                    //}
                    //if (Request.QueryString["Inv"] == "1")
                    //{
                    //    rbWithInv.Checked = true;
                    //    rbWithoutInv.Checked = false;

                    //}


                    //else if (Request.QueryString["Inv"] == "0")
                    //{
                    //    rbWithoutInv.Checked = true;
                    //    rbWithInv.Checked = false;
                    //}

                    //fnFetchStudent();
                }
            }

            //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");

            //    //if (hid_fk_AcademicYr_ID.Value != "0" || hid_fk_AcademicYr_ID.Value != "")
            //    if (hidAcademicYrText.Value != "--- Select ---")
            //    {
            //        lblAcademicYear.Text = " for Academic Year " + hidAcademicYrText.Value;
            //        lblAcademicYear.Attributes.Add("style", "display:inline");
            //    }
            //    else if (hidAcademicYrText.Value == "--- Select ---")
            //    {
            //        lblAcademicYear.Attributes.Add("style", "display:none");

            //    }

            //}
        }
示例#11
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            clsCache.NoCache();

            //RegStudentAdvancedSearchCtrl = (Eligibility.WebCtrl.StudentAdvanceSearchForConfigure_reg_Students)Page.FindControl("StudentAdvanceSeachForConfigure1");

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

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

            hid_fk_AcademicYr_ID.Value = RegStudentAdvancedSearchCtrl.ddlAcademicYear.SelectedValue.ToString();
            hidAcademicYrText.Value    = RegStudentAdvancedSearchCtrl.ddlAcademicYear.SelectedItem.ToString();
            try
            {
                hidIsPRNValidationRequired.Value = Classes.clsGetSettings.IsPRNValidationRequired;
            }
            catch
            {
                hidIsPRNValidationRequired.Value = "N";
            }

            // Put user code to initialize the page here
            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();

                if (Request.QueryString["Search"] == "Simple" && Request.QueryString["Navigate"] == "back")
                {
                    hidPRN.Value       = ((HtmlInputHidden)Cntph1.FindControl("hidPRN")).Value;
                    hidElgFormNo.Value = ((HtmlInputHidden)Cntph1.FindControl("hidElgFormNo")).Value;
                    hidIsBlank.Value   = ((HtmlInputHidden)Cntph1.FindControl("hidIsBlank")).Value;
                }

                HtmlInputHidden[] hid = new HtmlInputHidden[20];
                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] = hidPRN;
                hid[12] = hidIsBlank;

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

                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.QstrNavigate = null;
            RegStudentAdvancedSearchCtrl.StrUrl       = "ELGV2_ResolvePending_reg_Students__2.aspx?Search=Adv";
            RegStudentAdvancedSearchCtrl.GridType     = "Reg";
            if (Request.QueryString["Search"] == "Adv")
            {
                if (Request.QueryString["Navigate"] == "back")
                {
                    RegStudentAdvancedSearchCtrl.QstrNavigate = "back";
                    RegStudentAdvancedSearchCtrl.StrUrl       = "ELGV2_ResolvePending_reg_Students__2.aspx?Search=Adv";
                    RegStudentAdvancedSearchCtrl.GridType     = "Reg";
                    divAdvSearch.Style.Add("display", "block");
                    divSimpleSearch.Style.Add("display", "none");
                    divAdvSearch.Style.Remove("display");
                }
                else
                {
                    RegStudentAdvancedSearchCtrl.QstrNavigate = null;
                    RegStudentAdvancedSearchCtrl.StrUrl       = "ELGV2_ResolvePending_reg_Students__2.aspx?Search=Adv";
                    RegStudentAdvancedSearchCtrl.GridType     = "Reg";
                }
            }
            else if (Request.QueryString["Search"] == "Simple")
            {
                if (Request.QueryString["Navigate"] == "back")
                {
                    RegStudentAdvancedSearchCtrl.QstrNavigate = "back";
                }
            }

            if (RegStudentAdvancedSearchCtrl.HidSearchType.Equals("Simple"))// || Request.QueryString["Search"] == "Simple")
            {
                RegStudentAdvancedSearchCtrl.StrUrl = "ELGV2_ResolvePending_reg_Students__2.aspx?Search=Simple";
            }
            else if (RegStudentAdvancedSearchCtrl.HidSearchType.Equals("Adv"))// || Request.QueryString["Search"] == "Adv")
            {
                RegStudentAdvancedSearchCtrl.StrUrl = "ELGV2_ResolvePending_reg_Students__2.aspx?Search=Adv";
            }
            RegStudentAdvancedSearchCtrl.GridType = "Reg";
        }