예제 #1
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[6];
                hid[0] = hidInstID;
                hid[1] = hidUniID;
                hid[2] = hidElgFormNo;
                hid[3] = hidCrMoLrnPtrnID;
                hid[4] = hidpkYear;
                hid[5] = hidpkStudentID;

                Common.setHiddenVariables(ref hid);
            }

            if (hidInstID.Value != "" && hidInstID.Value != null)
            {
                // hidInstID.Value = Request.QueryString["InstituteID"].ToString().Trim();
                lblTitle.Text     = "Resolve Pending Eligibility";
                lblInstitute.Text = "  for " + Classes.InstituteRepository.InstituteName(hidUniID.Value, hidInstID.Value);
            }
            rbEligible.Attributes.Add("onclick", "fnDisplayDiv();");
            rbDefaulter.Attributes.Add("onclick", "fnDisplayDiv();");
            rbPending.Attributes.Add("onclick", "fnDisplayDiv();");
            btnSubmit.Attributes.Add("onclick", "return fnConfirm();");
            userob = (clsUser)Session["User"];
            userid = userob.User_ID.ToString();

            if (Request.QueryString["Search"] == "Simple")
            {
                btnGoTo.Text = "Go To Search";
            }
            else                        // Search == "Adv"
            {
                btnGoTo.Text = "Go To Student List";
            }

            if (!IsPostBack)
            {
                reg_PendingStudentEligibility           ob         = (reg_PendingStudentEligibility)System.Web.HttpContext.Current.Handler;
                WebCtrl.StudentAdvanceSeachForConfigure tempHidden = (WebCtrl.StudentAdvanceSeachForConfigure)ob.FindControl("StudentAdvanceSeachForConfigure1");
                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)tempHidden.FindControl("hidCrMoLrnPtrnID")).Value;
                }
                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;
                }
                hidElgFlag.Value = "NotAssigned";
                FetchStudentDetails();
                divPRN.Style.Add("Display", "none");
                GoToDataBase            = 1;
                Session["GoToDataBase"] = GoToDataBase;
            }
            else if (IsPostBack)
            {
                GoToDataBase = Convert.ToInt32(Session["GoToDataBase"].ToString());
            }
        }
예제 #2
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            Classes.clsCache.NoCache();
            //Ajax.Utility.RegisterTypeForAjax(typeof(Eligibility.IA_StudentEligibility__1));
            Ajax.Utility.RegisterTypeForAjax(typeof(Eligibility.AjaxMethods), this.Page);

            if (!IsPostBack)
            {
                HtmlInputHidden[] hid = new HtmlInputHidden[6];
                hid[0] = hidInstID;
                hid[1] = hidUniID;
                hid[2] = hidElgFormNo;
                hid[3] = hidCrMoLrnPtrnID;
                hid[4] = hidpkYear;
                hid[5] = hidpkStudentID;
                Common.setHiddenVariables(ref hid);
            }

            if (hidInstID.Value != "" && hidInstID.Value != null)
            {
                // hidInstID.Value = Request.QueryString["InstituteID"].ToString().Trim();
                lblTitle.Text     = "Manual Process Eligibility";
                lblInstitute.Text = "  for " + Classes.InstituteRepository.InstituteName(hidUniID.Value, hidInstID.Value);
            }

            if (Request.QueryString["Search"] == "Simple")
            {
                btnGoTo.Text = "Go To Search";
            }
            else                        // Search == "Adv"
            {
                btnGoTo.Text = "Go To Student List";
            }

            rbEligible.Attributes.Add("onclick", "fnDisplayDiv();");
            rbDefaulter.Attributes.Add("onclick", "fnDisplayDiv();");
            rbPending.Attributes.Add("onclick", "fnDisplayDiv();");
            btnSubmit.Attributes.Add("onclick", "return fnConfirm();");
            //Getting UserID
            userob = (clsUser)Session["User"];
            userid = userob.User_ID.ToString();
            if (!IsPostBack)
            {
                IA_StudentEligibility ob = (IA_StudentEligibility)System.Web.HttpContext.Current.Handler;
                WebCtrl.StudentAdvanceSeachForConfigure tempHidden = (WebCtrl.StudentAdvanceSeachForConfigure)ob.FindControl("StudentAdvanceSeachForConfigure1");
                if (Request.QueryString["Search"] == "Adv")
                {
                    hidElgFormNo.Value     = ((HtmlInputHidden)tempHidden.FindControl("hidElgFormNo")).Value;
                    hidCrMoLrnPtrnID.Value = ((HtmlInputHidden)tempHidden.FindControl("hidCrMoLrnPtrnID")).Value;
                }
                if (Request.QueryString["Search"] == "Simple")
                {
                    hidElgFormNo.Value = ((HtmlInputHidden)ob.FindControl("hidElgFormNo")).Value;
                }
                FetchStudentDetails();
                GoToDataBase            = 1;
                Session["GoToDataBase"] = GoToDataBase;
            }
            else if (IsPostBack)
            {
                GoToDataBase    = Convert.ToInt32(Session["GoToDataBase"].ToString());
                Image1.ImageUrl = "PhotoAndSignTemp.aspx?img=PSession&sElgFormNo=" + hidElgFormNo.Value;
                Image2.ImageUrl = "PhotoAndSignTemp.aspx?img=SSession&sElgFormNo=" + hidElgFormNo.Value;;
            }
        }
        protected void Page_Load(object sender, System.EventArgs e)
        {
            clsCache.NoCache();
            // Put user code to initialize the page here
            if (!IsPostBack)
            {
                HtmlInputHidden[] hid = new HtmlInputHidden[20];
                hid[0]  = hidInstID;
                hid[1]  = hidUniID;
                hid[2]  = hidElgFormNo;
                hid[3]  = hidpkFacID;
                hid[4]  = hidpkYear;
                hid[5]  = hidpkStudentID;
                hid[6]  = hidpkCrID;
                hid[7]  = hidpkMoLrnID;
                hid[8]  = hidpkPtrnID;
                hid[9]  = hidpkBrnID;
                hid[10] = hidpkCrPrDetailsID;
                hid[11] = hidAcademicYr;

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

                Common.setHiddenVariables(ref hid);
            }

            if (hidInstID.Value != "" && hidInstID.Value != null)
            {
                // hidInstID.Value = Request.QueryString["InstituteID"].ToString().Trim();
                lblPageHead.Text  = "Resolve Pending Eligibility";
                lblSubHeader.Text = "  for " + InstRep.InstituteName(hidUniID.Value, hidInstID.Value);
                //lblInstitute.Text = "  for " + clsInstitute.InstituteName(hidUniID.Value, hidInstID.Value);
            }
            rbEligible.Attributes.Add("onclick", "fnDisplayDiv();");
            rbProvisional.Attributes.Add("onclick", "fnDisplayDiv();");
            rbDefaulter.Attributes.Add("onclick", "fnDisplayDiv();");
            rbPending.Attributes.Add("onclick", "fnDisplayDiv();");
            btnSubmit.Attributes.Add("onclick", "return fnConfirm();");
            userob = (clsUser)Session["User"];
            userid = userob.User_ID.ToString();

            if (Request.QueryString["Search"] == "Simple")
            {
                btnGoTo.Text = "Go To Search";
            }
            else            // Search == "Adv"
            {
                btnGoTo.Text = "Go To Student List";
            }

            if (!IsPostBack)
            {
                ContentPlaceHolder Cntph = (ContentPlaceHolder)Page.PreviousPage.Master.FindControl("ContentPlaceHolder1");
                WebCtrl.StudentAdvanceSeachForConfigure tempHidden = (WebCtrl.StudentAdvanceSeachForConfigure)Cntph.FindControl("StudentAdvanceSeachForConfigure1");


                //reg_PendingStudentEligibility ob = (reg_PendingStudentEligibility)System.Web.HttpContext.Current.Handler;
                //WebCtrl.StudentAdvanceSeachForConfigure tempHidden = (WebCtrl.StudentAdvanceSeachForConfigure)ob.FindControl("StudentAdvanceSeachForConfigure1");
                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;
                    hidpkFacID.Value         = ((HtmlInputHidden)tempHidden.FindControl("hidFacID")).Value;
                    hidpkCrID.Value          = ((HtmlInputHidden)tempHidden.FindControl("hidCrID")).Value;
                    hidpkMoLrnID.Value       = ((HtmlInputHidden)tempHidden.FindControl("hidCrMoLrnID")).Value;
                    hidpkPtrnID.Value        = ((HtmlInputHidden)tempHidden.FindControl("hidPtrnID")).Value;
                    hidpkBrnID.Value         = ((HtmlInputHidden)tempHidden.FindControl("hidBrnID")).Value;
                    hidpkCrPrDetailsID.Value = ((HtmlInputHidden)tempHidden.FindControl("hidCrPrDetailsID")).Value;

                    hid_fk_AcademicYr_ID.Value = ((HtmlInputHidden)tempHidden.FindControl("hid_fk_AcademicYr_ID")).Value;
                    hidAcademicYrText.Value    = ((HtmlInputHidden)tempHidden.FindControl("hidAcademicYrText")).Value;
                    hidFacName.Value           = ((HtmlInputHidden)tempHidden.FindControl("hidFacName")).Value;
                    hidCrName.Value            = ((HtmlInputHidden)tempHidden.FindControl("hidCrName")).Value;
                    hidMOLName.Value           = ((HtmlInputHidden)tempHidden.FindControl("hidMOLName")).Value;
                    hidPattern.Value           = ((HtmlInputHidden)tempHidden.FindControl("hidPattern")).Value;
                    hidBrName.Value            = ((HtmlInputHidden)tempHidden.FindControl("hidBrName")).Value;
                    hidInstID.Value            = ((HtmlInputHidden)tempHidden.FindControl("hidInstID")).Value;
                    hidAcYrName.Value          = ((HtmlInputHidden)tempHidden.FindControl("hidAcYrName")).Value;
                    hidSearchType.Value        = ((HtmlInputHidden)tempHidden.FindControl("hidSearchType")).Value;
                    hidBranchName.Value        = ((HtmlInputHidden)tempHidden.FindControl("hidBranchName")).Value;
                }
                if (Request.QueryString["Search"] == "Simple")
                {
                    hidElgFormNo.Value         = ((HtmlInputHidden)tempHidden.FindControl("hidElgFormNo")).Value;
                    hidpkYear.Value            = ((HtmlInputHidden)tempHidden.FindControl("hidpkYear")).Value;
                    hidpkStudentID.Value       = ((HtmlInputHidden)tempHidden.FindControl("hidpkStudentID")).Value;
                    hidpkFacID.Value           = ((HtmlInputHidden)tempHidden.FindControl("hidFacID")).Value;
                    hidpkCrID.Value            = ((HtmlInputHidden)tempHidden.FindControl("hidCrID")).Value;
                    hidpkMoLrnID.Value         = ((HtmlInputHidden)tempHidden.FindControl("hidCrMoLrnID")).Value;
                    hidpkPtrnID.Value          = ((HtmlInputHidden)tempHidden.FindControl("hidPtrnID")).Value;
                    hidpkBrnID.Value           = ((HtmlInputHidden)tempHidden.FindControl("hidBrnID")).Value;
                    hidpkCrPrDetailsID.Value   = ((HtmlInputHidden)tempHidden.FindControl("hidCrPrDetailsID")).Value;
                    hidInstID.Value            = ((HtmlInputHidden)tempHidden.FindControl("hidInstID")).Value;
                    hid_fk_AcademicYr_ID.Value = ((HtmlInputHidden)tempHidden.FindControl("hid_fk_AcademicYr_ID")).Value;
                    hidIsBlank.Value           = ((HtmlInputHidden)tempHidden.FindControl("hidIsBlank")).Value;
                }
                hidElgFlag.Value = "NotAssigned";
                FetchStudentDetails();
                divPRN.Style.Add("Display", "none");
                GoToDataBase            = 1;
                Session["GoToDataBase"] = GoToDataBase;
            }
            else if (IsPostBack)
            {
                GoToDataBase = Convert.ToInt32(Session["GoToDataBase"].ToString());
            }
        }