protected DeclineReason saveReasons()
 {
     DeclineReason myReason = new DeclineReason();
     //Store reasons in decline reason object
     if (ckSpouse.Checked)
     {
         myReason.SpousePlan = true;
     }
     if (ckMedicare.Checked)
     {
         myReason.Medicare = true;
     }
     if (ckCobra.Checked)
     {
         myReason.COBRA = true;
     }
     if (ckNoCoverage.Checked)
     {
         myReason.NoCoverage = true;
     }
     if (ckDisability.Checked)
     {
         myReason.Disability = true;
     }
     if (ckIndividualPlan.Checked)
     {
         myReason.Individual = true;
     }
     if (ckVA.Checked)
     {
         myReason.VA = true;
     }
     if (ckTriCare.Checked)
     {
         myReason.TriCare = true;
     }
     if (ckMedicaid.Checked)
     {
         myReason.Medicaid = true;
     }
     if (ckOther.Checked)
     {
         myReason.Other = true;
         myReason.Explanation = txtExplanation.Text;
     }
     return myReason;
 }
示例#2
0
        public void FillOutReasons(DeclineReason myReason, Coverage myCoverage,  string coverageType)
        {
            string prefixMed = "ocimedicaldecline";
            string prefixDental = "ocidentaldecline";
            string prefixLife = "ocilifedecline";
            string prefixVision = "ocivisiondecline";
            string myPrefix = "";

                if (coverageType == "Medical")
                {
                    myPrefix = prefixMed;
                    pdfFormFields.SetField("declineMed", "Yes");
                    pdfFormFields.SetField(myPrefix + "option", "Yes");
                }

                else if (coverageType == "Dental")
                {
                   myPrefix = prefixDental;
                   pdfFormFields.SetField("declineDental", "Yes");
                   pdfFormFields.SetField(myPrefix + "option", "Yes");
                }

                else if (coverageType == "Life")
                {
                    myPrefix = prefixLife;
                    pdfFormFields.SetField("declineLife", "Yes");
                    pdfFormFields.SetField(myPrefix + "option", "Yes");
                }

                else if (coverageType == "Vision")
                {
                    myPrefix = prefixVision;
                    pdfFormFields.SetField("declineVision", "Yes");
                    pdfFormFields.SetField(myPrefix + "option", "Yes");
                }

                else if (coverageType == "Disability")
                {
                    myPrefix = prefixVision;
                    pdfFormFields.SetField("declineDisability", "Yes");
                }

                if (coverageType != "Disablility")
                {
                    pdfFormFields.SetField(myPrefix + "names", myCoverage.getWhoIsWaiving(coverageType));
                }

            if (myReason.SpousePlan)
            {
                if (coverageType != "Disability")
                {
                    pdfFormFields.SetField(myPrefix + "01", "Yes");
                }
                pdfFormFields.SetField("decline06", "Yes");
            }
            if (myReason.Medicare)
            {
                if (coverageType != "Disability")
                {
                    pdfFormFields.SetField(myPrefix + "02", "Yes");
                }
                pdfFormFields.SetField("decline07", "Yes");
            }
            if (myReason.COBRA)
            {
                if (coverageType != "Disability")
                {
                    pdfFormFields.SetField(myPrefix + "03", "Yes");
                }
                pdfFormFields.SetField("decline08", "Yes");
            }
            if (myReason.NoCoverage)
            {
                if (coverageType != "Disability")
                {
                    pdfFormFields.SetField(myPrefix + "04", "Yes");
                }
                pdfFormFields.SetField("decline09", "Yes");
            }
            if (myReason.Disability)
            {
                pdfFormFields.SetField("decline10", "Yes");
            }
            if (myReason.Individual)
            {
                if (coverageType != "Disability")
                {
                    pdfFormFields.SetField(myPrefix + "05", "Yes");
                }
                pdfFormFields.SetField("decline11", "Yes");
            }
            if (myReason.VA)
            {
                if (coverageType != "Disability")
                {
                    pdfFormFields.SetField(myPrefix + "06", "Yes");
                }
                pdfFormFields.SetField("decline12", "Yes");
            }
            if (myReason.TriCare)
            {
                pdfFormFields.SetField("decline13", "Yes");
            }
            if (myReason.Medicaid)
            {
                if (coverageType != "Disability")
                {
                    pdfFormFields.SetField(myPrefix + "07", "Yes");
                }
                pdfFormFields.SetField("decline14", "Yes");
            }
            if (myReason.Other)
            {
                if (coverageType != "Disability")
                {
                    pdfFormFields.SetField(myPrefix + "08", "Yes");
                    pdfFormFields.SetField(myPrefix + "otherdescription", myReason.Explanation);
                }
                pdfFormFields.SetField("decline15", "Yes");
                pdfFormFields.SetField("decline15note", myReason.Explanation);
            }
        }
示例#3
0
        public void FillOutReasons(DeclineReason myReason, Coverage myCoverage, string coverageType)
        {
            string prefixMed    = "ocimedicaldecline";
            string prefixDental = "ocidentaldecline";
            string prefixLife   = "ocilifedecline";
            string prefixVision = "ocivisiondecline";
            string myPrefix     = "";

            if (coverageType == "Medical")
            {
                myPrefix = prefixMed;
                pdfFormFields.SetField("declineMed", "Yes");
                pdfFormFields.SetField(myPrefix + "option", "Yes");
            }


            else if (coverageType == "Dental")
            {
                myPrefix = prefixDental;
                pdfFormFields.SetField("declineDental", "Yes");
                pdfFormFields.SetField(myPrefix + "option", "Yes");
            }

            else if (coverageType == "Life")
            {
                myPrefix = prefixLife;
                pdfFormFields.SetField("declineLife", "Yes");
                pdfFormFields.SetField(myPrefix + "option", "Yes");
            }

            else if (coverageType == "Vision")
            {
                myPrefix = prefixVision;
                pdfFormFields.SetField("declineVision", "Yes");
                pdfFormFields.SetField(myPrefix + "option", "Yes");
            }

            else if (coverageType == "Disability")
            {
                myPrefix = prefixVision;
                pdfFormFields.SetField("declineDisability", "Yes");
            }

            if (coverageType != "Disablility")
            {
                pdfFormFields.SetField(myPrefix + "names", myCoverage.getWhoIsWaiving(coverageType));
            }

            if (myReason.SpousePlan)
            {
                if (coverageType != "Disability")
                {
                    pdfFormFields.SetField(myPrefix + "01", "Yes");
                }
                pdfFormFields.SetField("decline06", "Yes");
            }
            if (myReason.Medicare)
            {
                if (coverageType != "Disability")
                {
                    pdfFormFields.SetField(myPrefix + "02", "Yes");
                }
                pdfFormFields.SetField("decline07", "Yes");
            }
            if (myReason.COBRA)
            {
                if (coverageType != "Disability")
                {
                    pdfFormFields.SetField(myPrefix + "03", "Yes");
                }
                pdfFormFields.SetField("decline08", "Yes");
            }
            if (myReason.NoCoverage)
            {
                if (coverageType != "Disability")
                {
                    pdfFormFields.SetField(myPrefix + "04", "Yes");
                }
                pdfFormFields.SetField("decline09", "Yes");
            }
            if (myReason.Disability)
            {
                pdfFormFields.SetField("decline10", "Yes");
            }
            if (myReason.Individual)
            {
                if (coverageType != "Disability")
                {
                    pdfFormFields.SetField(myPrefix + "05", "Yes");
                }
                pdfFormFields.SetField("decline11", "Yes");
            }
            if (myReason.VA)
            {
                if (coverageType != "Disability")
                {
                    pdfFormFields.SetField(myPrefix + "06", "Yes");
                }
                pdfFormFields.SetField("decline12", "Yes");
            }
            if (myReason.TriCare)
            {
                pdfFormFields.SetField("decline13", "Yes");
            }
            if (myReason.Medicaid)
            {
                if (coverageType != "Disability")
                {
                    pdfFormFields.SetField(myPrefix + "07", "Yes");
                }
                pdfFormFields.SetField("decline14", "Yes");
            }
            if (myReason.Other)
            {
                if (coverageType != "Disability")
                {
                    pdfFormFields.SetField(myPrefix + "08", "Yes");
                    pdfFormFields.SetField(myPrefix + "otherdescription", myReason.Explanation);
                }
                pdfFormFields.SetField("decline15", "Yes");
                pdfFormFields.SetField("decline15note", myReason.Explanation);
            }
        }
示例#4
0
 //Disability Form
 protected DeclineReason saveReasons3()
 {
     DeclineReason myReason = new DeclineReason();
     //Store reasons in decline reason object
     if (RadioButton31.Checked)
     {
         myReason.SpousePlan = true;
     }
     if (RadioButton33.Checked)
     {
         myReason.Medicare = true;
     }
     if (RadioButton35.Checked)
     {
         myReason.COBRA = true;
     }
     if (RadioButton37.Checked)
     {
         myReason.NoCoverage = true;
     }
     if (RadioButton39.Checked)
     {
         myReason.Disability = true;
     }
     if (RadioButton32.Checked)
     {
         myReason.Individual = true;
     }
     if (RadioButton34.Checked)
     {
         myReason.VA = true;
     }
     if (RadioButton36.Checked)
     {
         myReason.TriCare = true;
     }
     if (RadioButton38.Checked)
     {
         myReason.Medicaid = true;
     }
     if (RadioButton40.Checked)
     {
         myReason.Other = true;
         myReason.Explanation = TextBox4.Text;
     }
     return myReason;
 }
示例#5
0
 //Life Form
 protected DeclineReason saveReasons2()
 {
     DeclineReason myReason = new DeclineReason();
     //Store reasons in decline reason object
     if (RadioButton21.Checked)
     {
         myReason.SpousePlan = true;
     }
     if (RadioButton23.Checked)
     {
         myReason.Medicare = true;
     }
     if (RadioButton25.Checked)
     {
         myReason.COBRA = true;
     }
     if (RadioButton27.Checked)
     {
         myReason.NoCoverage = true;
     }
     if (RadioButton29.Checked)
     {
         myReason.Disability = true;
     }
     if (RadioButton22.Checked)
     {
         myReason.Individual = true;
     }
     if (RadioButton24.Checked)
     {
         myReason.VA = true;
     }
     if (RadioButton26.Checked)
     {
         myReason.TriCare = true;
     }
     if (RadioButton28.Checked)
     {
         myReason.Medicaid = true;
     }
     if (RadioButton20.Checked)
     {
         myReason.Other = true;
         myReason.Explanation = TextBox3.Text;
     }
     return myReason;
 }