Ejemplo n.º 1
0
        private void FormClaimCanadian_Load(object sender, System.EventArgs e)
        {
            comboReferralReason.Items.Add("none");                   //0. -1 never used
            comboReferralReason.Items.Add("Pathological Anomalies"); //1
            comboReferralReason.Items.Add("Disabled (physical or mental)");
            comboReferralReason.Items.Add("Complexity of Treatment");
            comboReferralReason.Items.Add("Seizure Disorders");
            comboReferralReason.Items.Add("Extensive Surgery");
            comboReferralReason.Items.Add("Surgical Complexity");
            comboReferralReason.Items.Add("Rampant decay");
            comboReferralReason.Items.Add("Medical History (to provide details upon request)");
            comboReferralReason.Items.Add("Temporal Mandibular Joint Anomalies");
            comboReferralReason.Items.Add("Accidental Injury");
            comboReferralReason.Items.Add("Anaesthesia complications (local or general)");
            comboReferralReason.Items.Add("Developmental Anomalies");
            comboReferralReason.Items.Add("Behavioral Management");        //13
            listEligibilityCode.Items.Add("Full-time student");            //0
            listEligibilityCode.Items.Add("Disabled");
            listEligibilityCode.Items.Add("Disabled student");
            listEligibilityCode.Items.Add("Code not applicable");
            listPayeeCode.Items.Add("Pay the subscriber");            //0
            listPayeeCode.Items.Add("Pay other third party");
            listPayeeCode.Items.Add("Reserved");
            listPayeeCode.Items.Add("Pay the dentist");
            comboMaxProsthMaterial.Items.Add("not applicable");            //this always starts out selected. -1 never used.
            comboMaxProsthMaterial.Items.Add("Fixed bridge");
            comboMaxProsthMaterial.Items.Add("Maryland bridge");
            comboMaxProsthMaterial.Items.Add("Denture (Acrylic)");
            comboMaxProsthMaterial.Items.Add("Denture (Chrome Cobalt)");
            comboMaxProsthMaterial.Items.Add("Implant (Fixed)");
            comboMaxProsthMaterial.Items.Add("Implant (Removable)");
            comboMaxProsthMaterial.Items.Add("Crown");            //7.  not an official type
            comboMandProsthMaterial.Items.Add("not applicable");  //this always starts out selected. -1 never used.
            comboMandProsthMaterial.Items.Add("Fixed bridge");
            comboMandProsthMaterial.Items.Add("Maryland bridge");
            comboMandProsthMaterial.Items.Add("Denture (Acrylic)");
            comboMandProsthMaterial.Items.Add("Denture (Chrome Cobalt)");
            comboMandProsthMaterial.Items.Add("Implant (Fixed)");
            comboMandProsthMaterial.Items.Add("Implant (Removable)");
            comboMandProsthMaterial.Items.Add("Crown");
            //Load data for this claim---------------------------------------------------------------------------------------------
            if (CanCur.MaterialsForwarded.Contains("E"))
            {
                checkEmail.Checked = true;
            }
            if (CanCur.MaterialsForwarded.Contains("C"))
            {
                checkCorrespondence.Checked = true;
            }
            if (CanCur.MaterialsForwarded.Contains("M"))
            {
                checkModels.Checked = true;
            }
            if (CanCur.MaterialsForwarded.Contains("X"))
            {
                checkXrays.Checked = true;
            }
            if (CanCur.MaterialsForwarded.Contains("I"))
            {
                checkImages.Checked = true;
            }
            //this starts out blank, but they might be editing an existing claim
            if (CanCur.SecondaryCoverage == "Y")
            {
                radioSecondaryYes.Checked = true;
            }
            if (CanCur.SecondaryCoverage == "N")
            {
                radioSecondaryNo.Checked = true;
            }
            if (CanCur.SecondaryCoverage == "X")
            {
                radioSecondaryX.Checked = true;
            }
            textReferralProvider.Text         = CanCur.ReferralProviderNum;
            comboReferralReason.SelectedIndex = CanCur.ReferralReason;
            listEligibilityCode.SelectedIndex = CanCur.EligibilityCode - 1;
            //eg if code is 0, then -1 selected. If code is 1(full-time student), then 0 is selected
            textSchoolName.Text         = CanCur.SchoolName;
            listPayeeCode.SelectedIndex = CanCur.PayeeCode - 1;
            if (ClaimCur.AccidentDate.Year < 1900)
            {
                textAccidentDate.Text = "";
            }
            else
            {
                textAccidentDate.Text = ClaimCur.AccidentDate.ToShortDateString();
            }

            /*if(CanCur.CardSequenceNumber==0){
             *      textCardSequenceNumber.Text="";
             * }
             * else{
             *      textCardSequenceNumber.Text=CanCur.CardSequenceNumber.ToString();
             * }*/
            //max prosth-----------------------------------------------------------------------------------------------------
            if (CanCur.IsInitialUpper == "Y")
            {
                radioMaxProsthYes.Checked = true;
            }
            if (CanCur.IsInitialUpper == "N")
            {
                radioMaxProsthNo.Checked = true;
            }
            if (CanCur.IsInitialUpper == "X")
            {
                radioMaxProsthX.Checked = true;
            }
            if (CanCur.DateInitialUpper.Year < 1880)
            {
                textDateInitialUpper.Text = "";
            }
            else
            {
                textDateInitialUpper.Text = CanCur.DateInitialUpper.ToShortDateString();
            }
            comboMaxProsthMaterial.SelectedIndex = CanCur.MaxProsthMaterial;
            //mand prosth-----------------------------------------------------------------------------------------------------
            if (CanCur.IsInitialLower == "Y")
            {
                radioMandProsthYes.Checked = true;
            }
            if (CanCur.IsInitialLower == "N")
            {
                radioMandProsthNo.Checked = true;
            }
            if (CanCur.IsInitialLower == "X")
            {
                radioMandProsthX.Checked = true;
            }
            if (CanCur.DateInitialLower.Year < 1880)
            {
                textDateInitialLower.Text = "";
            }
            else
            {
                textDateInitialLower.Text = CanCur.DateInitialLower.ToShortDateString();
            }
            comboMandProsthMaterial.SelectedIndex = CanCur.MandProsthMaterial;
            //Missing teeth--------------------------------------------------------------------------------------------------
            MissingList = CanadianExtracts.GetForClaim(CanCur.ClaimNum);
            FillMissing();
        }