protected void imgBtnBasicContinue_Click(object sender, ImageClickEventArgs e)
        {
            //SessionWrapper.OrderDetail.DrugVerificationDetail = null;
            //SessionWrapper.OrderDetail.EducationalDetail = null;
            //SessionWrapper.OrderDetail.EmploymentDetailes = null;
            //SessionWrapper.OrderDetail.LicenseInfo = null;
            //SessionWrapper.OrderDetail.ReferenceInfoes = null;
            //SessionWrapper.CouponCode = null;
            //Session["PaymentFlag"] = false;

            List <int> lstOptionalReportID = new List <int>();

            foreach (RepeaterItem ritem in rptOptionalPlans.Items)
            {
                CheckBox btn = ritem.FindControl("chkBasicOptionalReport") as CheckBox;
                if (btn.Checked == true)
                {
                    Label lbl = ritem.FindControl("lblOptReportID") as Label;
                    lstOptionalReportID.Add(int.Parse(lbl.Text));
                }
            }

            //SessionWrapper.SelectedOptionalReports = lstOptionalReportID;
            SessionWrapper.OrderDetail.PlanId            = int.Parse(hdnPlanID.Value);
            SessionWrapper.OrderDetail.OptionalReportIds = lstOptionalReportID;

            //What information is required from user for this plan,stroe values in session
            SessionWrapper.RequiredInformation = null;
            SessionWrapper.RequiredInformation = new RequiredInformation();
            SessionWrapper.RequiredInformation.isEducationDetailsRequired     = Convert.ToBoolean(hdnEduInfoReq.Value.ToString());
            SessionWrapper.RequiredInformation.isEmploymentDetailsRequired    = Convert.ToBoolean(hdnEmpInfoReq.Value.ToString());
            SessionWrapper.RequiredInformation.isLicenseInformationRequired   = Convert.ToBoolean(hdnLicInfoReq.Value.ToString());
            SessionWrapper.RequiredInformation.isReferenceInformationRequired = Convert.ToBoolean(hdnRefInfoReq.Value.ToString());
            SessionWrapper.RequiredInformation.isDrugVerificationRequired     = Convert.ToBoolean(hdnDrugVerificationPlan.Value.ToString());

            BaseAbstractClass page = (BaseAbstractClass)Page;

            page.GetDetails();

            string planReport = hdnEmpInfoReq.Value.ToString() + "," + hdnEduInfoReq.Value.ToString() + "," + hdnLicInfoReq.Value.ToString() + "," + hdnRefInfoReq.Value.ToString() + "," + hdnDrugVerificationPlan.Value.ToString();
            Regex  reg        = new Regex("false", RegexOptions.IgnoreCase);
            int    flagCount  = reg.Matches(planReport).Count;

            //@@ Commented to show basic information on the Order details// Call Javascript function every time user hit continue button
            //if (flagCount != 5)
            //{
            ScriptManager.RegisterStartupScript(this.Parent.Page, this.Parent.Page.GetType(), "AnUniqueKey", "CheckIfUserloggedIn();", true);
            //}
            //else
            //{
            //    Response.Redirect("SearchByProf_PaymentInfo.aspx?SelectedTab=Payment");
            //}
        }
Ejemplo n.º 2
0
 // The client code calls the template method to execute the algorithm.
 // Client code does not have to know the concrete class of an object it
 // works with, as long as it works with objects through the interface of
 // their base class.
 public static void ClientCode(BaseAbstractClass abstractClass)
 {
     // ...
     abstractClass.TemplateMethod();
     // ...
 }