protected void wizardApplyForm_ActiveStepChanged(object sender, EventArgs e)
        {
            _objSecurePage = new SecurePage();
            int i = 0;

            _ObjCommon = new Common();
            switch (wizardApplyForm.ActiveStep.ID)
            {
            case "Instrucation":
            {
                wizardApplyForm.StepNextButtonText = "I Accept »";
                i = InsertUserBasicInfo();
                divSeccondImage.Visible = true;
                divFirstImage.Visible   = false;
                break;
            }

            case "AcedmicInfo":
            {
                wizardApplyForm.StepNextButtonText = "Next »";
                if (string.IsNullOrEmpty(StudentCourseInfo.StudentCourseEligibilty))
                {
                    StudentAcademicInfo.ValidateAcademicInfo(_ObjCommon.CourseId);
                    StudentAcademicInfo.BindLateralEntryInfo(_ObjCommon.CourseId);
                }
                else
                {
                    StudentAcademicInfo.BindLateralEntryInfo(0);
                    StudentAcademicInfo.HideShowAcademicInfo(StudentCourseInfo.StudentCourseEligibilty);
                }

                break;
            }

            case "Interested":
            {
                wizardApplyForm.StepNextButtonText = "Next »";
                i = InsertUpdateAcademicInfo(_objSecurePage.LoggedInUserId);

                break;
            }

            case "ExamAppeared":
            {
                wizardApplyForm.StepNextButtonText = "Next »";
                i = InsertCollegePrefrance(_objSecurePage.LoggedInUserId, _ObjCommon.CourseId);
                i = InsertCityPrefrance(_objSecurePage.LoggedInUserId);
                i = InsertUpdateExamApp(_objSecurePage.LoggedInUserId);

                break;
            }
            }
        }
示例#2
0
        protected void WizardApplyFormActiveStepChanged(object sender, EventArgs e)
        {
            _objSecurePage = new SecurePage();
            int i = 0;

            _objCommon = new Common();
            if (wizardApplyForm.ActiveStep != null)
            {
                switch (wizardApplyForm.ActiveStep.ID)
                {
                case "Instrucation":
                {
                    wizardApplyForm.StepNextButtonText = "I Accept »";

                    divSeccondImage.Visible = true;
                    divFirstImage.Visible   = false;
                    var collegeData = CollegeProvider.Instance.GetCollegeBasicDetailsByBranchCourseId(
                        Convert.ToInt32(UcSeatAvailiablity.CollegeBranchCourseId != "0"
                                                    ? UcSeatAvailiablity.CollegeBranchCourseId
                                                    : Request.QueryString["collegeId"]));
                    new Consulling().InsertStudentCollegePrefrance(new SecurePage().LoggedInUserId,
                                                                   collegeData.First().CollegeBranchName,
                                                                   new Common().CourseId, true);                   /*... TO INSERT COLLEGE PREFERNCE BY INDU KUMAR PANDEY....*/

                    var bookedCollege =
                        new Consulling().GetBookedCollegeById(
                            Convert.ToInt32(UcSeatAvailiablity.CollegeBranchCourseId != "0"
                                                         ? UcSeatAvailiablity.CollegeBranchCourseId
                                                         : Request.QueryString["collegeId"]));                    /*.....TO GET BOOKED COLLEGE PAYMENT...................*/

                    var amount = "";
                    if (bookedCollege != null && bookedCollege.Tables.Count > 0)
                    {
                        if (bookedCollege.Tables[0].Rows.Count > 0)
                        {
                            amount = Convert.ToString(bookedCollege.Tables[0].Rows[0]["AjBookSeatAmount"]);
                            if (
                                !string.IsNullOrEmpty(
                                    Convert.ToString(bookedCollege.Tables[0].Rows[0]["AjInstruction"])))
                            {
                                ucInstrucation.CollegeVisible    = true;
                                ucInstrucation.CollegeInstuction =
                                    Convert.ToString(bookedCollege.Tables[0].Rows[0]["AjInstruction"]);
                            }
                            else
                            {
                                ucInstrucation.CollegeVisible = false;
                            }
                        }
                        else
                        {
                            ucInstrucation.CollegeVisible = false;
                        }
                    }
                    else
                    {
                        ucInstrucation.CollegeVisible = false;
                    }

                    this.TotalAmountInserted = !string.IsNullOrEmpty(amount)
                                                           ? amount
                                                           : Convert.ToString(
                        ConfigurationManager.AppSettings["BookSeatAmount"]);
                    ucInstrucation.TotalAmountFees = TotalAmountInserted;
                    break;
                }

                case "AcedmicInfo":
                {
                    wizardApplyForm.StepNextButtonText = "Next »";
                    if (string.IsNullOrEmpty(StudentCourseInfo.StudentCourseEligibilty))
                    {
                        StudentAcademicInfo.ValidateAcademicInfo(_objCommon.CourseId);
                        StudentAcademicInfo.BindLateralEntryInfo(_objCommon.CourseId);
                    }
                    else
                    {
                        StudentAcademicInfo.BindLateralEntryInfo(0);
                        StudentAcademicInfo.HideShowAcademicInfo(StudentCourseInfo.StudentCourseEligibilty);
                    }
                    InsertUserBasicInfo();                                                           /*...TO INSERT USER INFORMATION......*/

                    break;
                }

                case "wzdPayment":
                {
                    break;
                }


                case "SeatAvailability":
                {
                    i = InsertUpdateAcademicInfo(_objSecurePage.LoggedInUserId);                         /*...TO INSERT USER STUDENT ACCADEMIC INFORMATION......*/
                    GetMaximumaMarks(new Common().CourseId);                                             /*.....TO CHECK STUDENT SEAT AVAILIBITY....*/
                    wizardApplyForm.StepNextButtonText = "Next »";

                    break;
                }
                }
            }
        }