Пример #1
0
        public CougarCosts(CougarCostsController CoCtrl)
        {
            this.CostCtrl = CoCtrl;
            InitializeComponent();

            //get the plans from the Controller
            var Plans = CostCtrl.GetPlans();

            // Each text field for Basic plan
            PYMBBasic.Text             = Plans.ElementAt(0).PYMB.ToString();
            OPMIBasic.Text             = Plans.ElementAt(0).OPMIndividual.ToString();
            OPMFBasic.Text             = Plans.ElementAt(0).OPMFamily.ToString();
            APDBasic.Text              = Plans.ElementAt(0).APD.ToString();
            PrimaryBasicFee.Text       = Plans.ElementAt(0).PrimaryFee.ToString();
            DependentBasicFee.Text     = Plans.ElementAt(0).DependentFee.ToString();
            InpatientBasicPercent.Text = Plans.ElementAt(0).ServiceCosts[0].PercentCoverage.ToString();
            InpatientBasicCopay.Text   = Plans.ElementAt(0).ServiceCosts[0].RequiredCopayment.ToString();
            IBHBasicPercent.Text       = Plans.ElementAt(0).ServiceCosts[1].PercentCoverage.ToString();
            IBHBasicCopay.Text         = Plans.ElementAt(0).ServiceCosts[1].RequiredCopayment.ToString();
            ERBasicPercent.Text        = Plans.ElementAt(0).ServiceCosts[2].PercentCoverage.ToString();
            ERBasicCopay.Text          = Plans.ElementAt(0).ServiceCosts[2].RequiredCopayment.ToString();



            myInitialize();
        }
Пример #2
0
        public ChangeCosts(CougarCostsController CoCtrl)
        {
            this.CostCtrl = CoCtrl;
            InitializeComponent();
            PercentLabel.Hide();
            Error.Hide();
            Copay.Checked = true;

            var Plans = CostCtrl.GetPlans();

            foreach (var plan in Plans)
            {
                PlanList.Items.Add(plan.Type.ToString());
            }
        }