Exemple #1
0
        private void linkLabel_CreatePolicy_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            PricePolicy pricePolicy = new PricePolicy(usingAgent);

            pricePolicy.Show();
            this.Close();
        }
Exemple #2
0
        private void linkLabel_CreatePolicy_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            //IncompleteFeature incomplete = new IncompleteFeature();
            //incomplete.Show();
            PricePolicy pricePolicy = new PricePolicy(usingAgent);

            pricePolicy.Show();
            this.Close();
        }
Exemple #3
0
        public AddPolicy(Policy thePolicy, Agent inUsingAgent, PricePolicy pricePolicy)
        {
            InitializeComponent();
            inPolicy     = thePolicy;
            usingAgent   = inUsingAgent;
            previousPage = pricePolicy;
            //labels
            label_ShowPolicyNumber.Text = inPolicy.PolicyNumber;

            thePolicy.RepresentativeAgent  = inUsingAgent;
            label_ShowPolicyholderDOB.Text = inPolicy.Holder.BirthDate.ToString("yyyy/MM/dd");

            if (Convert.ToString(inPolicy.FathersAgeAtDeath) != "0")
            {
                label_ShowFatherAAD.Text = Convert.ToString(inPolicy.FathersAgeAtDeath);
            }

            if (Convert.ToString(inPolicy.MothersAgeAtDeath) != "0")
            {
                label_ShowMotherAAD.Text = Convert.ToString(inPolicy.MothersAgeAtDeath);
            }

            label_ShowSmokingHistory.Text        = Convert.ToString(inPolicy.SmokingHis);
            label_ShowCigPerDay.Text             = Convert.ToString(inPolicy.CigsPerDay);
            label_ShowSystolicBloodPressure.Text = Convert.ToString(inPolicy.SystolicBldPressure);
            label_ShowAverageFatPerDay.Text      = Convert.ToString(inPolicy.GramsFatPerDay);
            label_ShowHeartDisease.Text          = convertBool(inPolicy.HeartDisease);
            label_ShowCancer.Text       = convertBool(inPolicy.Cancer);
            label_ShowHospitalized.Text = convertBool(inPolicy.Hospitalized);

            if (inPolicy.DangerousActivities != "")
            {
                label_ShowDangerousActivities.Text = inPolicy.DangerousActivities;
            }

            label_ShowPolicyStartDate.Text = inPolicy.StartDate.ToString("yyyy/MM/dd");

            if (inPolicy.EndDate.ToString("yyyy/MM/dd") != "0001/01/01")
            {
                label_ShowPolicyEndDate.Text = inPolicy.EndDate.ToString("yyyy/MM/dd");
            }

            label_ShowAgentNumber.Text        = inPolicy.RepresentativeAgent.ID;
            label_ShowAgentFirstName.Text     = inPolicy.RepresentativeAgent.Firstname;
            label_ShowAgentLastName.Text      = inPolicy.RepresentativeAgent.Lastname;
            label_ShowPayoffAmount.Text       = "$" + Convert.ToString(inPolicy.PayOffAmount);
            label_ShowMonthlyPremium.Text     = "$" + Convert.ToString(inPolicy.Premium);
            textBox_BeneficiaryFirstName.Text = inPolicy.Beneficiary.FirstName;
            textBox_BeneficiaryLastName.Text  = inPolicy.Beneficiary.LastName;
        }
Exemple #4
0
 public AddPolicyMakeSure(bool forSave, Policy policy, AddPolicy addPolicy, Agent inUsingAgent, PricePolicy pricePolicy)
 {
     InitializeComponent();
     completePolicy  = policy;
     previousPage    = addPolicy;
     usingAgent      = inUsingAgent;
     prepreviousPage = pricePolicy;
     if (forSave)
     {
         label_CancelWarning.Visible = false;
         pictureBox_Warning.Visible  = false;
         button_Yes.Visible          = false;
         button_No.Visible           = false;
     }
     else
     {
         label_SaveMakeSure.Visible = false;
         button_Save.Visible        = false;
         button_Cancel.Visible      = false;
     }
 }
 public PricePolicyWarning(Agent inUsingAgent, PricePolicy inPage)
 {
     InitializeComponent();
     usingAgent   = inUsingAgent;
     previousPage = inPage;
 }